1
0

aclocal.m4 338 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615
  1. # generated automatically by aclocal 1.11.4 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
  4. # Inc.
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  10. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. # PARTICULAR PURPOSE.
  12. m4_ifndef([AC_AUTOCONF_VERSION],
  13. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  14. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  15. [m4_warning([this file was generated for autoconf 2.68.
  16. You have another version of autoconf. It may work, but is not guaranteed to.
  17. If you have problems, you may need to regenerate the build system entirely.
  18. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  19. # codeset.m4 serial 4 (gettext-0.18)
  20. dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc.
  21. dnl This file is free software; the Free Software Foundation
  22. dnl gives unlimited permission to copy and/or distribute it,
  23. dnl with or without modifications, as long as this notice is preserved.
  24. dnl From Bruno Haible.
  25. AC_DEFUN([AM_LANGINFO_CODESET],
  26. [
  27. AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset],
  28. [AC_TRY_LINK([#include <langinfo.h>],
  29. [char* cs = nl_langinfo(CODESET); return !cs;],
  30. [am_cv_langinfo_codeset=yes],
  31. [am_cv_langinfo_codeset=no])
  32. ])
  33. if test $am_cv_langinfo_codeset = yes; then
  34. AC_DEFINE([HAVE_LANGINFO_CODESET], [1],
  35. [Define if you have <langinfo.h> and nl_langinfo(CODESET).])
  36. fi
  37. ])
  38. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  39. #
  40. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  41. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  42. # Foundation, Inc.
  43. # Written by Gordon Matzigkeit, 1996
  44. #
  45. # This file is free software; the Free Software Foundation gives
  46. # unlimited permission to copy and/or distribute it, with or without
  47. # modifications, as long as this notice is preserved.
  48. m4_define([_LT_COPYING], [dnl
  49. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  50. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  51. # Foundation, Inc.
  52. # Written by Gordon Matzigkeit, 1996
  53. #
  54. # This file is part of GNU Libtool.
  55. #
  56. # GNU Libtool is free software; you can redistribute it and/or
  57. # modify it under the terms of the GNU General Public License as
  58. # published by the Free Software Foundation; either version 2 of
  59. # the License, or (at your option) any later version.
  60. #
  61. # As a special exception to the GNU General Public License,
  62. # if you distribute this file as part of a program or library that
  63. # is built using GNU Libtool, you may include this file under the
  64. # same distribution terms that you use for the rest of that program.
  65. #
  66. # GNU Libtool is distributed in the hope that it will be useful,
  67. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  68. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  69. # GNU General Public License for more details.
  70. #
  71. # You should have received a copy of the GNU General Public License
  72. # along with GNU Libtool; see the file COPYING. If not, a copy
  73. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  74. # obtained by writing to the Free Software Foundation, Inc.,
  75. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  76. ])
  77. # serial 57 LT_INIT
  78. # LT_PREREQ(VERSION)
  79. # ------------------
  80. # Complain and exit if this libtool version is less that VERSION.
  81. m4_defun([LT_PREREQ],
  82. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  83. [m4_default([$3],
  84. [m4_fatal([Libtool version $1 or higher is required],
  85. 63)])],
  86. [$2])])
  87. # _LT_CHECK_BUILDDIR
  88. # ------------------
  89. # Complain if the absolute build directory name contains unusual characters
  90. m4_defun([_LT_CHECK_BUILDDIR],
  91. [case `pwd` in
  92. *\ * | *\ *)
  93. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  94. esac
  95. ])
  96. # LT_INIT([OPTIONS])
  97. # ------------------
  98. AC_DEFUN([LT_INIT],
  99. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  100. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  101. AC_BEFORE([$0], [LT_LANG])dnl
  102. AC_BEFORE([$0], [LT_OUTPUT])dnl
  103. AC_BEFORE([$0], [LTDL_INIT])dnl
  104. m4_require([_LT_CHECK_BUILDDIR])dnl
  105. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  106. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  107. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  108. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  109. dnl unless we require an AC_DEFUNed macro:
  110. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  111. AC_REQUIRE([LTSUGAR_VERSION])dnl
  112. AC_REQUIRE([LTVERSION_VERSION])dnl
  113. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  114. m4_require([_LT_PROG_LTMAIN])dnl
  115. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  116. dnl Parse OPTIONS
  117. _LT_SET_OPTIONS([$0], [$1])
  118. # This can be used to rebuild libtool when needed
  119. LIBTOOL_DEPS="$ltmain"
  120. # Always use our own libtool.
  121. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  122. AC_SUBST(LIBTOOL)dnl
  123. _LT_SETUP
  124. # Only expand once:
  125. m4_define([LT_INIT])
  126. ])# LT_INIT
  127. # Old names:
  128. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  129. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  130. dnl aclocal-1.4 backwards compatibility:
  131. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  132. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  133. # _LT_CC_BASENAME(CC)
  134. # -------------------
  135. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  136. m4_defun([_LT_CC_BASENAME],
  137. [for cc_temp in $1""; do
  138. case $cc_temp in
  139. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  140. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  141. \-*) ;;
  142. *) break;;
  143. esac
  144. done
  145. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  146. ])
  147. # _LT_FILEUTILS_DEFAULTS
  148. # ----------------------
  149. # It is okay to use these file commands and assume they have been set
  150. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  151. m4_defun([_LT_FILEUTILS_DEFAULTS],
  152. [: ${CP="cp -f"}
  153. : ${MV="mv -f"}
  154. : ${RM="rm -f"}
  155. ])# _LT_FILEUTILS_DEFAULTS
  156. # _LT_SETUP
  157. # ---------
  158. m4_defun([_LT_SETUP],
  159. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  160. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  161. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  162. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  163. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  164. dnl
  165. _LT_DECL([], [host_alias], [0], [The host system])dnl
  166. _LT_DECL([], [host], [0])dnl
  167. _LT_DECL([], [host_os], [0])dnl
  168. dnl
  169. _LT_DECL([], [build_alias], [0], [The build system])dnl
  170. _LT_DECL([], [build], [0])dnl
  171. _LT_DECL([], [build_os], [0])dnl
  172. dnl
  173. AC_REQUIRE([AC_PROG_CC])dnl
  174. AC_REQUIRE([LT_PATH_LD])dnl
  175. AC_REQUIRE([LT_PATH_NM])dnl
  176. dnl
  177. AC_REQUIRE([AC_PROG_LN_S])dnl
  178. test -z "$LN_S" && LN_S="ln -s"
  179. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  180. dnl
  181. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  182. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  183. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  184. dnl
  185. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  186. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  187. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  188. m4_require([_LT_CMD_RELOAD])dnl
  189. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  190. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  191. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  192. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  193. m4_require([_LT_WITH_SYSROOT])dnl
  194. _LT_CONFIG_LIBTOOL_INIT([
  195. # See if we are running on zsh, and set the options which allow our
  196. # commands through without removal of \ escapes INIT.
  197. if test -n "\${ZSH_VERSION+set}" ; then
  198. setopt NO_GLOB_SUBST
  199. fi
  200. ])
  201. if test -n "${ZSH_VERSION+set}" ; then
  202. setopt NO_GLOB_SUBST
  203. fi
  204. _LT_CHECK_OBJDIR
  205. m4_require([_LT_TAG_COMPILER])dnl
  206. case $host_os in
  207. aix3*)
  208. # AIX sometimes has problems with the GCC collect2 program. For some
  209. # reason, if we set the COLLECT_NAMES environment variable, the problems
  210. # vanish in a puff of smoke.
  211. if test "X${COLLECT_NAMES+set}" != Xset; then
  212. COLLECT_NAMES=
  213. export COLLECT_NAMES
  214. fi
  215. ;;
  216. esac
  217. # Global variables:
  218. ofile=libtool
  219. can_build_shared=yes
  220. # All known linkers require a `.a' archive for static linking (except MSVC,
  221. # which needs '.lib').
  222. libext=a
  223. with_gnu_ld="$lt_cv_prog_gnu_ld"
  224. old_CC="$CC"
  225. old_CFLAGS="$CFLAGS"
  226. # Set sane defaults for various variables
  227. test -z "$CC" && CC=cc
  228. test -z "$LTCC" && LTCC=$CC
  229. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  230. test -z "$LD" && LD=ld
  231. test -z "$ac_objext" && ac_objext=o
  232. _LT_CC_BASENAME([$compiler])
  233. # Only perform the check for file, if the check method requires it
  234. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  235. case $deplibs_check_method in
  236. file_magic*)
  237. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  238. _LT_PATH_MAGIC
  239. fi
  240. ;;
  241. esac
  242. # Use C for the default configuration in the libtool script
  243. LT_SUPPORTED_TAG([CC])
  244. _LT_LANG_C_CONFIG
  245. _LT_LANG_DEFAULT_CONFIG
  246. _LT_CONFIG_COMMANDS
  247. ])# _LT_SETUP
  248. # _LT_PREPARE_SED_QUOTE_VARS
  249. # --------------------------
  250. # Define a few sed substitution that help us do robust quoting.
  251. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  252. [# Backslashify metacharacters that are still active within
  253. # double-quoted strings.
  254. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  255. # Same as above, but do not quote variable references.
  256. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  257. # Sed substitution to delay expansion of an escaped shell variable in a
  258. # double_quote_subst'ed string.
  259. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  260. # Sed substitution to delay expansion of an escaped single quote.
  261. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  262. # Sed substitution to avoid accidental globbing in evaled expressions
  263. no_glob_subst='s/\*/\\\*/g'
  264. ])
  265. # _LT_PROG_LTMAIN
  266. # ---------------
  267. # Note that this code is called both from `configure', and `config.status'
  268. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  269. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  270. # so we pass a copy along to make sure it has a sensible value anyway.
  271. m4_defun([_LT_PROG_LTMAIN],
  272. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  273. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  274. ltmain="$ac_aux_dir/ltmain.sh"
  275. ])# _LT_PROG_LTMAIN
  276. # So that we can recreate a full libtool script including additional
  277. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  278. # in macros and then make a single call at the end using the `libtool'
  279. # label.
  280. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  281. # ----------------------------------------
  282. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  283. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  284. [m4_ifval([$1],
  285. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  286. [$1
  287. ])])])
  288. # Initialize.
  289. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  290. # _LT_CONFIG_LIBTOOL([COMMANDS])
  291. # ------------------------------
  292. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  293. m4_define([_LT_CONFIG_LIBTOOL],
  294. [m4_ifval([$1],
  295. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  296. [$1
  297. ])])])
  298. # Initialize.
  299. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  300. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  301. # -----------------------------------------------------
  302. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  303. [_LT_CONFIG_LIBTOOL([$1])
  304. _LT_CONFIG_LIBTOOL_INIT([$2])
  305. ])
  306. # _LT_FORMAT_COMMENT([COMMENT])
  307. # -----------------------------
  308. # Add leading comment marks to the start of each line, and a trailing
  309. # full-stop to the whole comment if one is not present already.
  310. m4_define([_LT_FORMAT_COMMENT],
  311. [m4_ifval([$1], [
  312. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  313. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  314. )])
  315. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  316. # -------------------------------------------------------------------
  317. # CONFIGNAME is the name given to the value in the libtool script.
  318. # VARNAME is the (base) name used in the configure script.
  319. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  320. # VARNAME. Any other value will be used directly.
  321. m4_define([_LT_DECL],
  322. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  323. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  324. [m4_ifval([$1], [$1], [$2])])
  325. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  326. m4_ifval([$4],
  327. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  328. lt_dict_add_subkey([lt_decl_dict], [$2],
  329. [tagged?], [m4_ifval([$5], [yes], [no])])])
  330. ])
  331. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  332. # --------------------------------------------------------
  333. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  334. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  335. # ------------------------------------------------
  336. m4_define([lt_decl_tag_varnames],
  337. [_lt_decl_filter([tagged?], [yes], $@)])
  338. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  339. # ---------------------------------------------------------
  340. m4_define([_lt_decl_filter],
  341. [m4_case([$#],
  342. [0], [m4_fatal([$0: too few arguments: $#])],
  343. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  344. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  345. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  346. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  347. ])
  348. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  349. # --------------------------------------------------
  350. m4_define([lt_decl_quote_varnames],
  351. [_lt_decl_filter([value], [1], $@)])
  352. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  353. # ---------------------------------------------------
  354. m4_define([lt_decl_dquote_varnames],
  355. [_lt_decl_filter([value], [2], $@)])
  356. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  357. # ---------------------------------------------------
  358. m4_define([lt_decl_varnames_tagged],
  359. [m4_assert([$# <= 2])dnl
  360. _$0(m4_quote(m4_default([$1], [[, ]])),
  361. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  362. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  363. m4_define([_lt_decl_varnames_tagged],
  364. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  365. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  366. # ------------------------------------------------
  367. m4_define([lt_decl_all_varnames],
  368. [_$0(m4_quote(m4_default([$1], [[, ]])),
  369. m4_if([$2], [],
  370. m4_quote(lt_decl_varnames),
  371. m4_quote(m4_shift($@))))[]dnl
  372. ])
  373. m4_define([_lt_decl_all_varnames],
  374. [lt_join($@, lt_decl_varnames_tagged([$1],
  375. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  376. ])
  377. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  378. # ------------------------------------
  379. # Quote a variable value, and forward it to `config.status' so that its
  380. # declaration there will have the same value as in `configure'. VARNAME
  381. # must have a single quote delimited value for this to work.
  382. m4_define([_LT_CONFIG_STATUS_DECLARE],
  383. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  384. # _LT_CONFIG_STATUS_DECLARATIONS
  385. # ------------------------------
  386. # We delimit libtool config variables with single quotes, so when
  387. # we write them to config.status, we have to be sure to quote all
  388. # embedded single quotes properly. In configure, this macro expands
  389. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  390. #
  391. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  392. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  393. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  394. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  395. # _LT_LIBTOOL_TAGS
  396. # ----------------
  397. # Output comment and list of tags supported by the script
  398. m4_defun([_LT_LIBTOOL_TAGS],
  399. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  400. available_tags="_LT_TAGS"dnl
  401. ])
  402. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  403. # -----------------------------------
  404. # Extract the dictionary values for VARNAME (optionally with TAG) and
  405. # expand to a commented shell variable setting:
  406. #
  407. # # Some comment about what VAR is for.
  408. # visible_name=$lt_internal_name
  409. m4_define([_LT_LIBTOOL_DECLARE],
  410. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  411. [description])))[]dnl
  412. m4_pushdef([_libtool_name],
  413. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  414. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  415. [0], [_libtool_name=[$]$1],
  416. [1], [_libtool_name=$lt_[]$1],
  417. [2], [_libtool_name=$lt_[]$1],
  418. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  419. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  420. ])
  421. # _LT_LIBTOOL_CONFIG_VARS
  422. # -----------------------
  423. # Produce commented declarations of non-tagged libtool config variables
  424. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  425. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  426. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  427. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  428. [m4_foreach([_lt_var],
  429. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  430. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  431. # _LT_LIBTOOL_TAG_VARS(TAG)
  432. # -------------------------
  433. m4_define([_LT_LIBTOOL_TAG_VARS],
  434. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  435. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  436. # _LT_TAGVAR(VARNAME, [TAGNAME])
  437. # ------------------------------
  438. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  439. # _LT_CONFIG_COMMANDS
  440. # -------------------
  441. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  442. # variables for single and double quote escaping we saved from calls
  443. # to _LT_DECL, we can put quote escaped variables declarations
  444. # into `config.status', and then the shell code to quote escape them in
  445. # for loops in `config.status'. Finally, any additional code accumulated
  446. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  447. m4_defun([_LT_CONFIG_COMMANDS],
  448. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  449. dnl If the libtool generation code has been placed in $CONFIG_LT,
  450. dnl instead of duplicating it all over again into config.status,
  451. dnl then we will have config.status run $CONFIG_LT later, so it
  452. dnl needs to know what name is stored there:
  453. [AC_CONFIG_COMMANDS([libtool],
  454. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  455. dnl If the libtool generation code is destined for config.status,
  456. dnl expand the accumulated commands and init code now:
  457. [AC_CONFIG_COMMANDS([libtool],
  458. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  459. ])#_LT_CONFIG_COMMANDS
  460. # Initialize.
  461. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  462. [
  463. # The HP-UX ksh and POSIX shell print the target directory to stdout
  464. # if CDPATH is set.
  465. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  466. sed_quote_subst='$sed_quote_subst'
  467. double_quote_subst='$double_quote_subst'
  468. delay_variable_subst='$delay_variable_subst'
  469. _LT_CONFIG_STATUS_DECLARATIONS
  470. LTCC='$LTCC'
  471. LTCFLAGS='$LTCFLAGS'
  472. compiler='$compiler_DEFAULT'
  473. # A function that is used when there is no print builtin or printf.
  474. func_fallback_echo ()
  475. {
  476. eval 'cat <<_LTECHO_EOF
  477. \$[]1
  478. _LTECHO_EOF'
  479. }
  480. # Quote evaled strings.
  481. for var in lt_decl_all_varnames([[ \
  482. ]], lt_decl_quote_varnames); do
  483. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  484. *[[\\\\\\\`\\"\\\$]]*)
  485. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  486. ;;
  487. *)
  488. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  489. ;;
  490. esac
  491. done
  492. # Double-quote double-evaled strings.
  493. for var in lt_decl_all_varnames([[ \
  494. ]], lt_decl_dquote_varnames); do
  495. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  496. *[[\\\\\\\`\\"\\\$]]*)
  497. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  498. ;;
  499. *)
  500. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  501. ;;
  502. esac
  503. done
  504. _LT_OUTPUT_LIBTOOL_INIT
  505. ])
  506. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  507. # ------------------------------------
  508. # Generate a child script FILE with all initialization necessary to
  509. # reuse the environment learned by the parent script, and make the
  510. # file executable. If COMMENT is supplied, it is inserted after the
  511. # `#!' sequence but before initialization text begins. After this
  512. # macro, additional text can be appended to FILE to form the body of
  513. # the child script. The macro ends with non-zero status if the
  514. # file could not be fully written (such as if the disk is full).
  515. m4_ifdef([AS_INIT_GENERATED],
  516. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  517. [m4_defun([_LT_GENERATED_FILE_INIT],
  518. [m4_require([AS_PREPARE])]dnl
  519. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  520. [lt_write_fail=0
  521. cat >$1 <<_ASEOF || lt_write_fail=1
  522. #! $SHELL
  523. # Generated by $as_me.
  524. $2
  525. SHELL=\${CONFIG_SHELL-$SHELL}
  526. export SHELL
  527. _ASEOF
  528. cat >>$1 <<\_ASEOF || lt_write_fail=1
  529. AS_SHELL_SANITIZE
  530. _AS_PREPARE
  531. exec AS_MESSAGE_FD>&1
  532. _ASEOF
  533. test $lt_write_fail = 0 && chmod +x $1[]dnl
  534. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  535. # LT_OUTPUT
  536. # ---------
  537. # This macro allows early generation of the libtool script (before
  538. # AC_OUTPUT is called), incase it is used in configure for compilation
  539. # tests.
  540. AC_DEFUN([LT_OUTPUT],
  541. [: ${CONFIG_LT=./config.lt}
  542. AC_MSG_NOTICE([creating $CONFIG_LT])
  543. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  544. [# Run this file to recreate a libtool stub with the current configuration.])
  545. cat >>"$CONFIG_LT" <<\_LTEOF
  546. lt_cl_silent=false
  547. exec AS_MESSAGE_LOG_FD>>config.log
  548. {
  549. echo
  550. AS_BOX([Running $as_me.])
  551. } >&AS_MESSAGE_LOG_FD
  552. lt_cl_help="\
  553. \`$as_me' creates a local libtool stub from the current configuration,
  554. for use in further configure time tests before the real libtool is
  555. generated.
  556. Usage: $[0] [[OPTIONS]]
  557. -h, --help print this help, then exit
  558. -V, --version print version number, then exit
  559. -q, --quiet do not print progress messages
  560. -d, --debug don't remove temporary files
  561. Report bugs to <bug-libtool@gnu.org>."
  562. lt_cl_version="\
  563. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  564. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  565. configured by $[0], generated by m4_PACKAGE_STRING.
  566. Copyright (C) 2011 Free Software Foundation, Inc.
  567. This config.lt script is free software; the Free Software Foundation
  568. gives unlimited permision to copy, distribute and modify it."
  569. while test $[#] != 0
  570. do
  571. case $[1] in
  572. --version | --v* | -V )
  573. echo "$lt_cl_version"; exit 0 ;;
  574. --help | --h* | -h )
  575. echo "$lt_cl_help"; exit 0 ;;
  576. --debug | --d* | -d )
  577. debug=: ;;
  578. --quiet | --q* | --silent | --s* | -q )
  579. lt_cl_silent=: ;;
  580. -*) AC_MSG_ERROR([unrecognized option: $[1]
  581. Try \`$[0] --help' for more information.]) ;;
  582. *) AC_MSG_ERROR([unrecognized argument: $[1]
  583. Try \`$[0] --help' for more information.]) ;;
  584. esac
  585. shift
  586. done
  587. if $lt_cl_silent; then
  588. exec AS_MESSAGE_FD>/dev/null
  589. fi
  590. _LTEOF
  591. cat >>"$CONFIG_LT" <<_LTEOF
  592. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  593. _LTEOF
  594. cat >>"$CONFIG_LT" <<\_LTEOF
  595. AC_MSG_NOTICE([creating $ofile])
  596. _LT_OUTPUT_LIBTOOL_COMMANDS
  597. AS_EXIT(0)
  598. _LTEOF
  599. chmod +x "$CONFIG_LT"
  600. # configure is writing to config.log, but config.lt does its own redirection,
  601. # appending to config.log, which fails on DOS, as config.log is still kept
  602. # open by configure. Here we exec the FD to /dev/null, effectively closing
  603. # config.log, so it can be properly (re)opened and appended to by config.lt.
  604. lt_cl_success=:
  605. test "$silent" = yes &&
  606. lt_config_lt_args="$lt_config_lt_args --quiet"
  607. exec AS_MESSAGE_LOG_FD>/dev/null
  608. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  609. exec AS_MESSAGE_LOG_FD>>config.log
  610. $lt_cl_success || AS_EXIT(1)
  611. ])# LT_OUTPUT
  612. # _LT_CONFIG(TAG)
  613. # ---------------
  614. # If TAG is the built-in tag, create an initial libtool script with a
  615. # default configuration from the untagged config vars. Otherwise add code
  616. # to config.status for appending the configuration named by TAG from the
  617. # matching tagged config vars.
  618. m4_defun([_LT_CONFIG],
  619. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  620. _LT_CONFIG_SAVE_COMMANDS([
  621. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  622. m4_if(_LT_TAG, [C], [
  623. # See if we are running on zsh, and set the options which allow our
  624. # commands through without removal of \ escapes.
  625. if test -n "${ZSH_VERSION+set}" ; then
  626. setopt NO_GLOB_SUBST
  627. fi
  628. cfgfile="${ofile}T"
  629. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  630. $RM "$cfgfile"
  631. cat <<_LT_EOF >> "$cfgfile"
  632. #! $SHELL
  633. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  634. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  635. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  636. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  637. #
  638. _LT_COPYING
  639. _LT_LIBTOOL_TAGS
  640. # ### BEGIN LIBTOOL CONFIG
  641. _LT_LIBTOOL_CONFIG_VARS
  642. _LT_LIBTOOL_TAG_VARS
  643. # ### END LIBTOOL CONFIG
  644. _LT_EOF
  645. case $host_os in
  646. aix3*)
  647. cat <<\_LT_EOF >> "$cfgfile"
  648. # AIX sometimes has problems with the GCC collect2 program. For some
  649. # reason, if we set the COLLECT_NAMES environment variable, the problems
  650. # vanish in a puff of smoke.
  651. if test "X${COLLECT_NAMES+set}" != Xset; then
  652. COLLECT_NAMES=
  653. export COLLECT_NAMES
  654. fi
  655. _LT_EOF
  656. ;;
  657. esac
  658. _LT_PROG_LTMAIN
  659. # We use sed instead of cat because bash on DJGPP gets confused if
  660. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  661. # text mode, it properly converts lines to CR/LF. This bash problem
  662. # is reportedly fixed, but why not run on old versions too?
  663. sed '$q' "$ltmain" >> "$cfgfile" \
  664. || (rm -f "$cfgfile"; exit 1)
  665. _LT_PROG_REPLACE_SHELLFNS
  666. mv -f "$cfgfile" "$ofile" ||
  667. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  668. chmod +x "$ofile"
  669. ],
  670. [cat <<_LT_EOF >> "$ofile"
  671. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  672. dnl in a comment (ie after a #).
  673. # ### BEGIN LIBTOOL TAG CONFIG: $1
  674. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  675. # ### END LIBTOOL TAG CONFIG: $1
  676. _LT_EOF
  677. ])dnl /m4_if
  678. ],
  679. [m4_if([$1], [], [
  680. PACKAGE='$PACKAGE'
  681. VERSION='$VERSION'
  682. TIMESTAMP='$TIMESTAMP'
  683. RM='$RM'
  684. ofile='$ofile'], [])
  685. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  686. ])# _LT_CONFIG
  687. # LT_SUPPORTED_TAG(TAG)
  688. # ---------------------
  689. # Trace this macro to discover what tags are supported by the libtool
  690. # --tag option, using:
  691. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  692. AC_DEFUN([LT_SUPPORTED_TAG], [])
  693. # C support is built-in for now
  694. m4_define([_LT_LANG_C_enabled], [])
  695. m4_define([_LT_TAGS], [])
  696. # LT_LANG(LANG)
  697. # -------------
  698. # Enable libtool support for the given language if not already enabled.
  699. AC_DEFUN([LT_LANG],
  700. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  701. m4_case([$1],
  702. [C], [_LT_LANG(C)],
  703. [C++], [_LT_LANG(CXX)],
  704. [Go], [_LT_LANG(GO)],
  705. [Java], [_LT_LANG(GCJ)],
  706. [Fortran 77], [_LT_LANG(F77)],
  707. [Fortran], [_LT_LANG(FC)],
  708. [Windows Resource], [_LT_LANG(RC)],
  709. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  710. [_LT_LANG($1)],
  711. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  712. ])# LT_LANG
  713. # _LT_LANG(LANGNAME)
  714. # ------------------
  715. m4_defun([_LT_LANG],
  716. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  717. [LT_SUPPORTED_TAG([$1])dnl
  718. m4_append([_LT_TAGS], [$1 ])dnl
  719. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  720. _LT_LANG_$1_CONFIG($1)])dnl
  721. ])# _LT_LANG
  722. m4_ifndef([AC_PROG_GO], [
  723. # NOTE: This macro has been submitted for inclusion into #
  724. # GNU Autoconf as AC_PROG_GO. When it is available in #
  725. # a released version of Autoconf we should remove this #
  726. # macro and use it instead. #
  727. m4_defun([AC_PROG_GO],
  728. [AC_LANG_PUSH(Go)dnl
  729. AC_ARG_VAR([GOC], [Go compiler command])dnl
  730. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  731. _AC_ARG_VAR_LDFLAGS()dnl
  732. AC_CHECK_TOOL(GOC, gccgo)
  733. if test -z "$GOC"; then
  734. if test -n "$ac_tool_prefix"; then
  735. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  736. fi
  737. fi
  738. if test -z "$GOC"; then
  739. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  740. fi
  741. ])#m4_defun
  742. ])#m4_ifndef
  743. # _LT_LANG_DEFAULT_CONFIG
  744. # -----------------------
  745. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  746. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  747. [LT_LANG(CXX)],
  748. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  749. AC_PROVIDE_IFELSE([AC_PROG_F77],
  750. [LT_LANG(F77)],
  751. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  752. AC_PROVIDE_IFELSE([AC_PROG_FC],
  753. [LT_LANG(FC)],
  754. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  755. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  756. dnl pulling things in needlessly.
  757. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  758. [LT_LANG(GCJ)],
  759. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  760. [LT_LANG(GCJ)],
  761. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  762. [LT_LANG(GCJ)],
  763. [m4_ifdef([AC_PROG_GCJ],
  764. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  765. m4_ifdef([A][M_PROG_GCJ],
  766. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  767. m4_ifdef([LT_PROG_GCJ],
  768. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  769. AC_PROVIDE_IFELSE([AC_PROG_GO],
  770. [LT_LANG(GO)],
  771. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  772. AC_PROVIDE_IFELSE([LT_PROG_RC],
  773. [LT_LANG(RC)],
  774. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  775. ])# _LT_LANG_DEFAULT_CONFIG
  776. # Obsolete macros:
  777. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  778. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  779. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  780. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  781. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  782. dnl aclocal-1.4 backwards compatibility:
  783. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  784. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  785. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  786. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  787. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  788. # _LT_TAG_COMPILER
  789. # ----------------
  790. m4_defun([_LT_TAG_COMPILER],
  791. [AC_REQUIRE([AC_PROG_CC])dnl
  792. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  793. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  794. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  795. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  796. # If no C compiler was specified, use CC.
  797. LTCC=${LTCC-"$CC"}
  798. # If no C compiler flags were specified, use CFLAGS.
  799. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  800. # Allow CC to be a program name with arguments.
  801. compiler=$CC
  802. ])# _LT_TAG_COMPILER
  803. # _LT_COMPILER_BOILERPLATE
  804. # ------------------------
  805. # Check for compiler boilerplate output or warnings with
  806. # the simple compiler test code.
  807. m4_defun([_LT_COMPILER_BOILERPLATE],
  808. [m4_require([_LT_DECL_SED])dnl
  809. ac_outfile=conftest.$ac_objext
  810. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  811. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  812. _lt_compiler_boilerplate=`cat conftest.err`
  813. $RM conftest*
  814. ])# _LT_COMPILER_BOILERPLATE
  815. # _LT_LINKER_BOILERPLATE
  816. # ----------------------
  817. # Check for linker boilerplate output or warnings with
  818. # the simple link test code.
  819. m4_defun([_LT_LINKER_BOILERPLATE],
  820. [m4_require([_LT_DECL_SED])dnl
  821. ac_outfile=conftest.$ac_objext
  822. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  823. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  824. _lt_linker_boilerplate=`cat conftest.err`
  825. $RM -r conftest*
  826. ])# _LT_LINKER_BOILERPLATE
  827. # _LT_REQUIRED_DARWIN_CHECKS
  828. # -------------------------
  829. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  830. case $host_os in
  831. rhapsody* | darwin*)
  832. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  833. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  834. AC_CHECK_TOOL([LIPO], [lipo], [:])
  835. AC_CHECK_TOOL([OTOOL], [otool], [:])
  836. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  837. _LT_DECL([], [DSYMUTIL], [1],
  838. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  839. _LT_DECL([], [NMEDIT], [1],
  840. [Tool to change global to local symbols on Mac OS X])
  841. _LT_DECL([], [LIPO], [1],
  842. [Tool to manipulate fat objects and archives on Mac OS X])
  843. _LT_DECL([], [OTOOL], [1],
  844. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  845. _LT_DECL([], [OTOOL64], [1],
  846. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  847. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  848. [lt_cv_apple_cc_single_mod=no
  849. if test -z "${LT_MULTI_MODULE}"; then
  850. # By default we will add the -single_module flag. You can override
  851. # by either setting the environment variable LT_MULTI_MODULE
  852. # non-empty at configure time, or by adding -multi_module to the
  853. # link flags.
  854. rm -rf libconftest.dylib*
  855. echo "int foo(void){return 1;}" > conftest.c
  856. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  857. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  858. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  859. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  860. _lt_result=$?
  861. # If there is a non-empty error log, and "single_module"
  862. # appears in it, assume the flag caused a linker warning
  863. if test -s conftest.err && $GREP single_module conftest.err; then
  864. cat conftest.err >&AS_MESSAGE_LOG_FD
  865. # Otherwise, if the output was created with a 0 exit code from
  866. # the compiler, it worked.
  867. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  868. lt_cv_apple_cc_single_mod=yes
  869. else
  870. cat conftest.err >&AS_MESSAGE_LOG_FD
  871. fi
  872. rm -rf libconftest.dylib*
  873. rm -f conftest.*
  874. fi])
  875. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  876. [lt_cv_ld_exported_symbols_list],
  877. [lt_cv_ld_exported_symbols_list=no
  878. save_LDFLAGS=$LDFLAGS
  879. echo "_main" > conftest.sym
  880. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  881. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  882. [lt_cv_ld_exported_symbols_list=yes],
  883. [lt_cv_ld_exported_symbols_list=no])
  884. LDFLAGS="$save_LDFLAGS"
  885. ])
  886. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  887. [lt_cv_ld_force_load=no
  888. cat > conftest.c << _LT_EOF
  889. int forced_loaded() { return 2;}
  890. _LT_EOF
  891. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  892. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  893. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  894. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  895. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  896. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  897. cat > conftest.c << _LT_EOF
  898. int main() { return 0;}
  899. _LT_EOF
  900. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  901. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  902. _lt_result=$?
  903. if test -s conftest.err && $GREP force_load conftest.err; then
  904. cat conftest.err >&AS_MESSAGE_LOG_FD
  905. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  906. lt_cv_ld_force_load=yes
  907. else
  908. cat conftest.err >&AS_MESSAGE_LOG_FD
  909. fi
  910. rm -f conftest.err libconftest.a conftest conftest.c
  911. rm -rf conftest.dSYM
  912. ])
  913. case $host_os in
  914. rhapsody* | darwin1.[[012]])
  915. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  916. darwin1.*)
  917. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  918. darwin*) # darwin 5.x on
  919. # if running on 10.5 or later, the deployment target defaults
  920. # to the OS version, if on x86, and 10.4, the deployment
  921. # target defaults to 10.4. Don't you love it?
  922. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  923. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  924. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  925. 10.[[012]]*)
  926. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  927. 10.*)
  928. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  929. esac
  930. ;;
  931. esac
  932. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  933. _lt_dar_single_mod='$single_module'
  934. fi
  935. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  936. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  937. else
  938. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  939. fi
  940. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  941. _lt_dsymutil='~$DSYMUTIL $lib || :'
  942. else
  943. _lt_dsymutil=
  944. fi
  945. ;;
  946. esac
  947. ])
  948. # _LT_DARWIN_LINKER_FEATURES([TAG])
  949. # ---------------------------------
  950. # Checks for linker and compiler features on darwin
  951. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  952. [
  953. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  954. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  955. _LT_TAGVAR(hardcode_direct, $1)=no
  956. _LT_TAGVAR(hardcode_automatic, $1)=yes
  957. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  958. if test "$lt_cv_ld_force_load" = "yes"; then
  959. _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\"`'
  960. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  961. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  962. else
  963. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  964. fi
  965. _LT_TAGVAR(link_all_deplibs, $1)=yes
  966. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  967. case $cc_basename in
  968. ifort*) _lt_dar_can_shared=yes ;;
  969. *) _lt_dar_can_shared=$GCC ;;
  970. esac
  971. if test "$_lt_dar_can_shared" = "yes"; then
  972. output_verbose_link_cmd=func_echo_all
  973. _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}"
  974. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  975. _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}"
  976. _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}"
  977. m4_if([$1], [CXX],
  978. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  979. _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}"
  980. _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}"
  981. fi
  982. ],[])
  983. else
  984. _LT_TAGVAR(ld_shlibs, $1)=no
  985. fi
  986. ])
  987. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  988. # ----------------------------------
  989. # Links a minimal program and checks the executable
  990. # for the system default hardcoded library path. In most cases,
  991. # this is /usr/lib:/lib, but when the MPI compilers are used
  992. # the location of the communication and MPI libs are included too.
  993. # If we don't find anything, use the default library path according
  994. # to the aix ld manual.
  995. # Store the results from the different compilers for each TAGNAME.
  996. # Allow to override them for all tags through lt_cv_aix_libpath.
  997. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  998. [m4_require([_LT_DECL_SED])dnl
  999. if test "${lt_cv_aix_libpath+set}" = set; then
  1000. aix_libpath=$lt_cv_aix_libpath
  1001. else
  1002. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  1003. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  1004. lt_aix_libpath_sed='[
  1005. /Import File Strings/,/^$/ {
  1006. /^0/ {
  1007. s/^0 *\([^ ]*\) *$/\1/
  1008. p
  1009. }
  1010. }]'
  1011. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1012. # Check for a 64-bit object if we didn't find anything.
  1013. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1014. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1015. fi],[])
  1016. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1017. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  1018. fi
  1019. ])
  1020. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1021. fi
  1022. ])# _LT_SYS_MODULE_PATH_AIX
  1023. # _LT_SHELL_INIT(ARG)
  1024. # -------------------
  1025. m4_define([_LT_SHELL_INIT],
  1026. [m4_divert_text([M4SH-INIT], [$1
  1027. ])])# _LT_SHELL_INIT
  1028. # _LT_PROG_ECHO_BACKSLASH
  1029. # -----------------------
  1030. # Find how we can fake an echo command that does not interpret backslash.
  1031. # In particular, with Autoconf 2.60 or later we add some code to the start
  1032. # of the generated configure script which will find a shell with a builtin
  1033. # printf (which we can use as an echo command).
  1034. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1035. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1036. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1037. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1038. AC_MSG_CHECKING([how to print strings])
  1039. # Test print first, because it will be a builtin if present.
  1040. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1041. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1042. ECHO='print -r --'
  1043. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1044. ECHO='printf %s\n'
  1045. else
  1046. # Use this function as a fallback that always works.
  1047. func_fallback_echo ()
  1048. {
  1049. eval 'cat <<_LTECHO_EOF
  1050. $[]1
  1051. _LTECHO_EOF'
  1052. }
  1053. ECHO='func_fallback_echo'
  1054. fi
  1055. # func_echo_all arg...
  1056. # Invoke $ECHO with all args, space-separated.
  1057. func_echo_all ()
  1058. {
  1059. $ECHO "$*"
  1060. }
  1061. case "$ECHO" in
  1062. printf*) AC_MSG_RESULT([printf]) ;;
  1063. print*) AC_MSG_RESULT([print -r]) ;;
  1064. *) AC_MSG_RESULT([cat]) ;;
  1065. esac
  1066. m4_ifdef([_AS_DETECT_SUGGESTED],
  1067. [_AS_DETECT_SUGGESTED([
  1068. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1069. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1070. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1071. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1072. PATH=/empty FPATH=/empty; export PATH FPATH
  1073. test "X`printf %s $ECHO`" = "X$ECHO" \
  1074. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1075. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1076. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1077. ])# _LT_PROG_ECHO_BACKSLASH
  1078. # _LT_WITH_SYSROOT
  1079. # ----------------
  1080. AC_DEFUN([_LT_WITH_SYSROOT],
  1081. [AC_MSG_CHECKING([for sysroot])
  1082. AC_ARG_WITH([sysroot],
  1083. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1084. (or the compiler's sysroot if not specified).],
  1085. [], [with_sysroot=no])
  1086. dnl lt_sysroot will always be passed unquoted. We quote it here
  1087. dnl in case the user passed a directory name.
  1088. lt_sysroot=
  1089. case ${with_sysroot} in #(
  1090. yes)
  1091. if test "$GCC" = yes; then
  1092. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1093. fi
  1094. ;; #(
  1095. /*)
  1096. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1097. ;; #(
  1098. no|'')
  1099. ;; #(
  1100. *)
  1101. AC_MSG_RESULT([${with_sysroot}])
  1102. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1103. ;;
  1104. esac
  1105. AC_MSG_RESULT([${lt_sysroot:-no}])
  1106. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1107. [dependent libraries, and in which our libraries should be installed.])])
  1108. # _LT_ENABLE_LOCK
  1109. # ---------------
  1110. m4_defun([_LT_ENABLE_LOCK],
  1111. [AC_ARG_ENABLE([libtool-lock],
  1112. [AS_HELP_STRING([--disable-libtool-lock],
  1113. [avoid locking (might break parallel builds)])])
  1114. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1115. # Some flags need to be propagated to the compiler or linker for good
  1116. # libtool support.
  1117. case $host in
  1118. ia64-*-hpux*)
  1119. # Find out which ABI we are using.
  1120. echo 'int i;' > conftest.$ac_ext
  1121. if AC_TRY_EVAL(ac_compile); then
  1122. case `/usr/bin/file conftest.$ac_objext` in
  1123. *ELF-32*)
  1124. HPUX_IA64_MODE="32"
  1125. ;;
  1126. *ELF-64*)
  1127. HPUX_IA64_MODE="64"
  1128. ;;
  1129. esac
  1130. fi
  1131. rm -rf conftest*
  1132. ;;
  1133. *-*-irix6*)
  1134. # Find out which ABI we are using.
  1135. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1136. if AC_TRY_EVAL(ac_compile); then
  1137. if test "$lt_cv_prog_gnu_ld" = yes; then
  1138. case `/usr/bin/file conftest.$ac_objext` in
  1139. *32-bit*)
  1140. LD="${LD-ld} -melf32bsmip"
  1141. ;;
  1142. *N32*)
  1143. LD="${LD-ld} -melf32bmipn32"
  1144. ;;
  1145. *64-bit*)
  1146. LD="${LD-ld} -melf64bmip"
  1147. ;;
  1148. esac
  1149. else
  1150. case `/usr/bin/file conftest.$ac_objext` in
  1151. *32-bit*)
  1152. LD="${LD-ld} -32"
  1153. ;;
  1154. *N32*)
  1155. LD="${LD-ld} -n32"
  1156. ;;
  1157. *64-bit*)
  1158. LD="${LD-ld} -64"
  1159. ;;
  1160. esac
  1161. fi
  1162. fi
  1163. rm -rf conftest*
  1164. ;;
  1165. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1166. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1167. # Find out which ABI we are using.
  1168. echo 'int i;' > conftest.$ac_ext
  1169. if AC_TRY_EVAL(ac_compile); then
  1170. case `/usr/bin/file conftest.o` in
  1171. *32-bit*)
  1172. case $host in
  1173. x86_64-*kfreebsd*-gnu)
  1174. LD="${LD-ld} -m elf_i386_fbsd"
  1175. ;;
  1176. x86_64-*linux*)
  1177. LD="${LD-ld} -m elf_i386"
  1178. ;;
  1179. ppc64-*linux*|powerpc64-*linux*)
  1180. LD="${LD-ld} -m elf32ppclinux"
  1181. ;;
  1182. s390x-*linux*)
  1183. LD="${LD-ld} -m elf_s390"
  1184. ;;
  1185. sparc64-*linux*)
  1186. LD="${LD-ld} -m elf32_sparc"
  1187. ;;
  1188. esac
  1189. ;;
  1190. *64-bit*)
  1191. case $host in
  1192. x86_64-*kfreebsd*-gnu)
  1193. LD="${LD-ld} -m elf_x86_64_fbsd"
  1194. ;;
  1195. x86_64-*linux*)
  1196. LD="${LD-ld} -m elf_x86_64"
  1197. ;;
  1198. ppc*-*linux*|powerpc*-*linux*)
  1199. LD="${LD-ld} -m elf64ppc"
  1200. ;;
  1201. s390*-*linux*|s390*-*tpf*)
  1202. LD="${LD-ld} -m elf64_s390"
  1203. ;;
  1204. sparc*-*linux*)
  1205. LD="${LD-ld} -m elf64_sparc"
  1206. ;;
  1207. esac
  1208. ;;
  1209. esac
  1210. fi
  1211. rm -rf conftest*
  1212. ;;
  1213. *-*-sco3.2v5*)
  1214. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1215. SAVE_CFLAGS="$CFLAGS"
  1216. CFLAGS="$CFLAGS -belf"
  1217. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1218. [AC_LANG_PUSH(C)
  1219. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1220. AC_LANG_POP])
  1221. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1222. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1223. CFLAGS="$SAVE_CFLAGS"
  1224. fi
  1225. ;;
  1226. *-*solaris*)
  1227. # Find out which ABI we are using.
  1228. echo 'int i;' > conftest.$ac_ext
  1229. if AC_TRY_EVAL(ac_compile); then
  1230. case `/usr/bin/file conftest.o` in
  1231. *64-bit*)
  1232. case $lt_cv_prog_gnu_ld in
  1233. yes*)
  1234. case $host in
  1235. i?86-*-solaris*)
  1236. LD="${LD-ld} -m elf_x86_64"
  1237. ;;
  1238. sparc*-*-solaris*)
  1239. LD="${LD-ld} -m elf64_sparc"
  1240. ;;
  1241. esac
  1242. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1243. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1244. LD="${LD-ld}_sol2"
  1245. fi
  1246. ;;
  1247. *)
  1248. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1249. LD="${LD-ld} -64"
  1250. fi
  1251. ;;
  1252. esac
  1253. ;;
  1254. esac
  1255. fi
  1256. rm -rf conftest*
  1257. ;;
  1258. esac
  1259. need_locks="$enable_libtool_lock"
  1260. ])# _LT_ENABLE_LOCK
  1261. # _LT_PROG_AR
  1262. # -----------
  1263. m4_defun([_LT_PROG_AR],
  1264. [AC_CHECK_TOOLS(AR, [ar], false)
  1265. : ${AR=ar}
  1266. : ${AR_FLAGS=cru}
  1267. _LT_DECL([], [AR], [1], [The archiver])
  1268. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1269. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1270. [lt_cv_ar_at_file=no
  1271. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1272. [echo conftest.$ac_objext > conftest.lst
  1273. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1274. AC_TRY_EVAL([lt_ar_try])
  1275. if test "$ac_status" -eq 0; then
  1276. # Ensure the archiver fails upon bogus file names.
  1277. rm -f conftest.$ac_objext libconftest.a
  1278. AC_TRY_EVAL([lt_ar_try])
  1279. if test "$ac_status" -ne 0; then
  1280. lt_cv_ar_at_file=@
  1281. fi
  1282. fi
  1283. rm -f conftest.* libconftest.a
  1284. ])
  1285. ])
  1286. if test "x$lt_cv_ar_at_file" = xno; then
  1287. archiver_list_spec=
  1288. else
  1289. archiver_list_spec=$lt_cv_ar_at_file
  1290. fi
  1291. _LT_DECL([], [archiver_list_spec], [1],
  1292. [How to feed a file listing to the archiver])
  1293. ])# _LT_PROG_AR
  1294. # _LT_CMD_OLD_ARCHIVE
  1295. # -------------------
  1296. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1297. [_LT_PROG_AR
  1298. AC_CHECK_TOOL(STRIP, strip, :)
  1299. test -z "$STRIP" && STRIP=:
  1300. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1301. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1302. test -z "$RANLIB" && RANLIB=:
  1303. _LT_DECL([], [RANLIB], [1],
  1304. [Commands used to install an old-style archive])
  1305. # Determine commands to create old-style static archives.
  1306. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1307. old_postinstall_cmds='chmod 644 $oldlib'
  1308. old_postuninstall_cmds=
  1309. if test -n "$RANLIB"; then
  1310. case $host_os in
  1311. openbsd*)
  1312. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1313. ;;
  1314. *)
  1315. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1316. ;;
  1317. esac
  1318. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1319. fi
  1320. case $host_os in
  1321. darwin*)
  1322. lock_old_archive_extraction=yes ;;
  1323. *)
  1324. lock_old_archive_extraction=no ;;
  1325. esac
  1326. _LT_DECL([], [old_postinstall_cmds], [2])
  1327. _LT_DECL([], [old_postuninstall_cmds], [2])
  1328. _LT_TAGDECL([], [old_archive_cmds], [2],
  1329. [Commands used to build an old-style archive])
  1330. _LT_DECL([], [lock_old_archive_extraction], [0],
  1331. [Whether to use a lock for old archive extraction])
  1332. ])# _LT_CMD_OLD_ARCHIVE
  1333. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1334. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1335. # ----------------------------------------------------------------
  1336. # Check whether the given compiler option works
  1337. AC_DEFUN([_LT_COMPILER_OPTION],
  1338. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1339. m4_require([_LT_DECL_SED])dnl
  1340. AC_CACHE_CHECK([$1], [$2],
  1341. [$2=no
  1342. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1343. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1344. lt_compiler_flag="$3"
  1345. # Insert the option either (1) after the last *FLAGS variable, or
  1346. # (2) before a word containing "conftest.", or (3) at the end.
  1347. # Note that $ac_compile itself does not contain backslashes and begins
  1348. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1349. # The option is referenced via a variable to avoid confusing sed.
  1350. lt_compile=`echo "$ac_compile" | $SED \
  1351. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1352. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1353. -e 's:$: $lt_compiler_flag:'`
  1354. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1355. (eval "$lt_compile" 2>conftest.err)
  1356. ac_status=$?
  1357. cat conftest.err >&AS_MESSAGE_LOG_FD
  1358. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1359. if (exit $ac_status) && test -s "$ac_outfile"; then
  1360. # The compiler can only warn and ignore the option if not recognized
  1361. # So say no if there are warnings other than the usual output.
  1362. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1363. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1364. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1365. $2=yes
  1366. fi
  1367. fi
  1368. $RM conftest*
  1369. ])
  1370. if test x"[$]$2" = xyes; then
  1371. m4_if([$5], , :, [$5])
  1372. else
  1373. m4_if([$6], , :, [$6])
  1374. fi
  1375. ])# _LT_COMPILER_OPTION
  1376. # Old name:
  1377. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1378. dnl aclocal-1.4 backwards compatibility:
  1379. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1380. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1381. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1382. # ----------------------------------------------------
  1383. # Check whether the given linker option works
  1384. AC_DEFUN([_LT_LINKER_OPTION],
  1385. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1386. m4_require([_LT_DECL_SED])dnl
  1387. AC_CACHE_CHECK([$1], [$2],
  1388. [$2=no
  1389. save_LDFLAGS="$LDFLAGS"
  1390. LDFLAGS="$LDFLAGS $3"
  1391. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1392. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1393. # The linker can only warn and ignore the option if not recognized
  1394. # So say no if there are warnings
  1395. if test -s conftest.err; then
  1396. # Append any errors to the config.log.
  1397. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1398. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1399. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1400. if diff conftest.exp conftest.er2 >/dev/null; then
  1401. $2=yes
  1402. fi
  1403. else
  1404. $2=yes
  1405. fi
  1406. fi
  1407. $RM -r conftest*
  1408. LDFLAGS="$save_LDFLAGS"
  1409. ])
  1410. if test x"[$]$2" = xyes; then
  1411. m4_if([$4], , :, [$4])
  1412. else
  1413. m4_if([$5], , :, [$5])
  1414. fi
  1415. ])# _LT_LINKER_OPTION
  1416. # Old name:
  1417. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1418. dnl aclocal-1.4 backwards compatibility:
  1419. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1420. # LT_CMD_MAX_LEN
  1421. #---------------
  1422. AC_DEFUN([LT_CMD_MAX_LEN],
  1423. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1424. # find the maximum length of command line arguments
  1425. AC_MSG_CHECKING([the maximum length of command line arguments])
  1426. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1427. i=0
  1428. teststring="ABCD"
  1429. case $build_os in
  1430. msdosdjgpp*)
  1431. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1432. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1433. # during glob expansion). Even if it were fixed, the result of this
  1434. # check would be larger than it should be.
  1435. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1436. ;;
  1437. gnu*)
  1438. # Under GNU Hurd, this test is not required because there is
  1439. # no limit to the length of command line arguments.
  1440. # Libtool will interpret -1 as no limit whatsoever
  1441. lt_cv_sys_max_cmd_len=-1;
  1442. ;;
  1443. cygwin* | mingw* | cegcc*)
  1444. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1445. # about 5 minutes as the teststring grows exponentially.
  1446. # Worse, since 9x/ME are not pre-emptively multitasking,
  1447. # you end up with a "frozen" computer, even though with patience
  1448. # the test eventually succeeds (with a max line length of 256k).
  1449. # Instead, let's just punt: use the minimum linelength reported by
  1450. # all of the supported platforms: 8192 (on NT/2K/XP).
  1451. lt_cv_sys_max_cmd_len=8192;
  1452. ;;
  1453. mint*)
  1454. # On MiNT this can take a long time and run out of memory.
  1455. lt_cv_sys_max_cmd_len=8192;
  1456. ;;
  1457. amigaos*)
  1458. # On AmigaOS with pdksh, this test takes hours, literally.
  1459. # So we just punt and use a minimum line length of 8192.
  1460. lt_cv_sys_max_cmd_len=8192;
  1461. ;;
  1462. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1463. # This has been around since 386BSD, at least. Likely further.
  1464. if test -x /sbin/sysctl; then
  1465. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1466. elif test -x /usr/sbin/sysctl; then
  1467. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1468. else
  1469. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1470. fi
  1471. # And add a safety zone
  1472. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1473. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1474. ;;
  1475. interix*)
  1476. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1477. lt_cv_sys_max_cmd_len=196608
  1478. ;;
  1479. os2*)
  1480. # The test takes a long time on OS/2.
  1481. lt_cv_sys_max_cmd_len=8192
  1482. ;;
  1483. osf*)
  1484. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1485. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1486. # nice to cause kernel panics so lets avoid the loop below.
  1487. # First set a reasonable default.
  1488. lt_cv_sys_max_cmd_len=16384
  1489. #
  1490. if test -x /sbin/sysconfig; then
  1491. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1492. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1493. esac
  1494. fi
  1495. ;;
  1496. sco3.2v5*)
  1497. lt_cv_sys_max_cmd_len=102400
  1498. ;;
  1499. sysv5* | sco5v6* | sysv4.2uw2*)
  1500. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1501. if test -n "$kargmax"; then
  1502. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1503. else
  1504. lt_cv_sys_max_cmd_len=32768
  1505. fi
  1506. ;;
  1507. *)
  1508. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1509. if test -n "$lt_cv_sys_max_cmd_len"; then
  1510. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1511. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1512. else
  1513. # Make teststring a little bigger before we do anything with it.
  1514. # a 1K string should be a reasonable start.
  1515. for i in 1 2 3 4 5 6 7 8 ; do
  1516. teststring=$teststring$teststring
  1517. done
  1518. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1519. # If test is not a shell built-in, we'll probably end up computing a
  1520. # maximum length that is only half of the actual maximum length, but
  1521. # we can't tell.
  1522. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1523. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1524. test $i != 17 # 1/2 MB should be enough
  1525. do
  1526. i=`expr $i + 1`
  1527. teststring=$teststring$teststring
  1528. done
  1529. # Only check the string length outside the loop.
  1530. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1531. teststring=
  1532. # Add a significant safety factor because C++ compilers can tack on
  1533. # massive amounts of additional arguments before passing them to the
  1534. # linker. It appears as though 1/2 is a usable value.
  1535. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1536. fi
  1537. ;;
  1538. esac
  1539. ])
  1540. if test -n $lt_cv_sys_max_cmd_len ; then
  1541. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1542. else
  1543. AC_MSG_RESULT(none)
  1544. fi
  1545. max_cmd_len=$lt_cv_sys_max_cmd_len
  1546. _LT_DECL([], [max_cmd_len], [0],
  1547. [What is the maximum length of a command?])
  1548. ])# LT_CMD_MAX_LEN
  1549. # Old name:
  1550. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1551. dnl aclocal-1.4 backwards compatibility:
  1552. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1553. # _LT_HEADER_DLFCN
  1554. # ----------------
  1555. m4_defun([_LT_HEADER_DLFCN],
  1556. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1557. ])# _LT_HEADER_DLFCN
  1558. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1559. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1560. # ----------------------------------------------------------------
  1561. m4_defun([_LT_TRY_DLOPEN_SELF],
  1562. [m4_require([_LT_HEADER_DLFCN])dnl
  1563. if test "$cross_compiling" = yes; then :
  1564. [$4]
  1565. else
  1566. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1567. lt_status=$lt_dlunknown
  1568. cat > conftest.$ac_ext <<_LT_EOF
  1569. [#line $LINENO "configure"
  1570. #include "confdefs.h"
  1571. #if HAVE_DLFCN_H
  1572. #include <dlfcn.h>
  1573. #endif
  1574. #include <stdio.h>
  1575. #ifdef RTLD_GLOBAL
  1576. # define LT_DLGLOBAL RTLD_GLOBAL
  1577. #else
  1578. # ifdef DL_GLOBAL
  1579. # define LT_DLGLOBAL DL_GLOBAL
  1580. # else
  1581. # define LT_DLGLOBAL 0
  1582. # endif
  1583. #endif
  1584. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1585. find out it does not work in some platform. */
  1586. #ifndef LT_DLLAZY_OR_NOW
  1587. # ifdef RTLD_LAZY
  1588. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1589. # else
  1590. # ifdef DL_LAZY
  1591. # define LT_DLLAZY_OR_NOW DL_LAZY
  1592. # else
  1593. # ifdef RTLD_NOW
  1594. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1595. # else
  1596. # ifdef DL_NOW
  1597. # define LT_DLLAZY_OR_NOW DL_NOW
  1598. # else
  1599. # define LT_DLLAZY_OR_NOW 0
  1600. # endif
  1601. # endif
  1602. # endif
  1603. # endif
  1604. #endif
  1605. /* When -fvisbility=hidden is used, assume the code has been annotated
  1606. correspondingly for the symbols needed. */
  1607. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1608. int fnord () __attribute__((visibility("default")));
  1609. #endif
  1610. int fnord () { return 42; }
  1611. int main ()
  1612. {
  1613. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1614. int status = $lt_dlunknown;
  1615. if (self)
  1616. {
  1617. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1618. else
  1619. {
  1620. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1621. else puts (dlerror ());
  1622. }
  1623. /* dlclose (self); */
  1624. }
  1625. else
  1626. puts (dlerror ());
  1627. return status;
  1628. }]
  1629. _LT_EOF
  1630. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1631. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1632. lt_status=$?
  1633. case x$lt_status in
  1634. x$lt_dlno_uscore) $1 ;;
  1635. x$lt_dlneed_uscore) $2 ;;
  1636. x$lt_dlunknown|x*) $3 ;;
  1637. esac
  1638. else :
  1639. # compilation failed
  1640. $3
  1641. fi
  1642. fi
  1643. rm -fr conftest*
  1644. ])# _LT_TRY_DLOPEN_SELF
  1645. # LT_SYS_DLOPEN_SELF
  1646. # ------------------
  1647. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1648. [m4_require([_LT_HEADER_DLFCN])dnl
  1649. if test "x$enable_dlopen" != xyes; then
  1650. enable_dlopen=unknown
  1651. enable_dlopen_self=unknown
  1652. enable_dlopen_self_static=unknown
  1653. else
  1654. lt_cv_dlopen=no
  1655. lt_cv_dlopen_libs=
  1656. case $host_os in
  1657. beos*)
  1658. lt_cv_dlopen="load_add_on"
  1659. lt_cv_dlopen_libs=
  1660. lt_cv_dlopen_self=yes
  1661. ;;
  1662. mingw* | pw32* | cegcc*)
  1663. lt_cv_dlopen="LoadLibrary"
  1664. lt_cv_dlopen_libs=
  1665. ;;
  1666. cygwin*)
  1667. lt_cv_dlopen="dlopen"
  1668. lt_cv_dlopen_libs=
  1669. ;;
  1670. darwin*)
  1671. # if libdl is installed we need to link against it
  1672. AC_CHECK_LIB([dl], [dlopen],
  1673. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1674. lt_cv_dlopen="dyld"
  1675. lt_cv_dlopen_libs=
  1676. lt_cv_dlopen_self=yes
  1677. ])
  1678. ;;
  1679. *)
  1680. AC_CHECK_FUNC([shl_load],
  1681. [lt_cv_dlopen="shl_load"],
  1682. [AC_CHECK_LIB([dld], [shl_load],
  1683. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1684. [AC_CHECK_FUNC([dlopen],
  1685. [lt_cv_dlopen="dlopen"],
  1686. [AC_CHECK_LIB([dl], [dlopen],
  1687. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1688. [AC_CHECK_LIB([svld], [dlopen],
  1689. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1690. [AC_CHECK_LIB([dld], [dld_link],
  1691. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1692. ])
  1693. ])
  1694. ])
  1695. ])
  1696. ])
  1697. ;;
  1698. esac
  1699. if test "x$lt_cv_dlopen" != xno; then
  1700. enable_dlopen=yes
  1701. else
  1702. enable_dlopen=no
  1703. fi
  1704. case $lt_cv_dlopen in
  1705. dlopen)
  1706. save_CPPFLAGS="$CPPFLAGS"
  1707. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1708. save_LDFLAGS="$LDFLAGS"
  1709. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1710. save_LIBS="$LIBS"
  1711. LIBS="$lt_cv_dlopen_libs $LIBS"
  1712. AC_CACHE_CHECK([whether a program can dlopen itself],
  1713. lt_cv_dlopen_self, [dnl
  1714. _LT_TRY_DLOPEN_SELF(
  1715. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1716. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1717. ])
  1718. if test "x$lt_cv_dlopen_self" = xyes; then
  1719. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1720. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1721. lt_cv_dlopen_self_static, [dnl
  1722. _LT_TRY_DLOPEN_SELF(
  1723. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1724. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1725. ])
  1726. fi
  1727. CPPFLAGS="$save_CPPFLAGS"
  1728. LDFLAGS="$save_LDFLAGS"
  1729. LIBS="$save_LIBS"
  1730. ;;
  1731. esac
  1732. case $lt_cv_dlopen_self in
  1733. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1734. *) enable_dlopen_self=unknown ;;
  1735. esac
  1736. case $lt_cv_dlopen_self_static in
  1737. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1738. *) enable_dlopen_self_static=unknown ;;
  1739. esac
  1740. fi
  1741. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1742. [Whether dlopen is supported])
  1743. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1744. [Whether dlopen of programs is supported])
  1745. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1746. [Whether dlopen of statically linked programs is supported])
  1747. ])# LT_SYS_DLOPEN_SELF
  1748. # Old name:
  1749. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1750. dnl aclocal-1.4 backwards compatibility:
  1751. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1752. # _LT_COMPILER_C_O([TAGNAME])
  1753. # ---------------------------
  1754. # Check to see if options -c and -o are simultaneously supported by compiler.
  1755. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1756. m4_defun([_LT_COMPILER_C_O],
  1757. [m4_require([_LT_DECL_SED])dnl
  1758. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1759. m4_require([_LT_TAG_COMPILER])dnl
  1760. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1761. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1762. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1763. $RM -r conftest 2>/dev/null
  1764. mkdir conftest
  1765. cd conftest
  1766. mkdir out
  1767. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1768. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1769. # Insert the option either (1) after the last *FLAGS variable, or
  1770. # (2) before a word containing "conftest.", or (3) at the end.
  1771. # Note that $ac_compile itself does not contain backslashes and begins
  1772. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1773. lt_compile=`echo "$ac_compile" | $SED \
  1774. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1775. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1776. -e 's:$: $lt_compiler_flag:'`
  1777. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1778. (eval "$lt_compile" 2>out/conftest.err)
  1779. ac_status=$?
  1780. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1781. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1782. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1783. then
  1784. # The compiler can only warn and ignore the option if not recognized
  1785. # So say no if there are warnings
  1786. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1787. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1788. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1789. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1790. fi
  1791. fi
  1792. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1793. $RM conftest*
  1794. # SGI C++ compiler will create directory out/ii_files/ for
  1795. # template instantiation
  1796. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1797. $RM out/* && rmdir out
  1798. cd ..
  1799. $RM -r conftest
  1800. $RM conftest*
  1801. ])
  1802. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1803. [Does compiler simultaneously support -c and -o options?])
  1804. ])# _LT_COMPILER_C_O
  1805. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1806. # ----------------------------------
  1807. # Check to see if we can do hard links to lock some files if needed
  1808. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1809. [m4_require([_LT_ENABLE_LOCK])dnl
  1810. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1811. _LT_COMPILER_C_O([$1])
  1812. hard_links="nottested"
  1813. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1814. # do not overwrite the value of need_locks provided by the user
  1815. AC_MSG_CHECKING([if we can lock with hard links])
  1816. hard_links=yes
  1817. $RM conftest*
  1818. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1819. touch conftest.a
  1820. ln conftest.a conftest.b 2>&5 || hard_links=no
  1821. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1822. AC_MSG_RESULT([$hard_links])
  1823. if test "$hard_links" = no; then
  1824. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1825. need_locks=warn
  1826. fi
  1827. else
  1828. need_locks=no
  1829. fi
  1830. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1831. ])# _LT_COMPILER_FILE_LOCKS
  1832. # _LT_CHECK_OBJDIR
  1833. # ----------------
  1834. m4_defun([_LT_CHECK_OBJDIR],
  1835. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1836. [rm -f .libs 2>/dev/null
  1837. mkdir .libs 2>/dev/null
  1838. if test -d .libs; then
  1839. lt_cv_objdir=.libs
  1840. else
  1841. # MS-DOS does not allow filenames that begin with a dot.
  1842. lt_cv_objdir=_libs
  1843. fi
  1844. rmdir .libs 2>/dev/null])
  1845. objdir=$lt_cv_objdir
  1846. _LT_DECL([], [objdir], [0],
  1847. [The name of the directory that contains temporary libtool files])dnl
  1848. m4_pattern_allow([LT_OBJDIR])dnl
  1849. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1850. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1851. ])# _LT_CHECK_OBJDIR
  1852. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1853. # --------------------------------------
  1854. # Check hardcoding attributes.
  1855. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1856. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1857. _LT_TAGVAR(hardcode_action, $1)=
  1858. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1859. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1860. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1861. # We can hardcode non-existent directories.
  1862. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1863. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1864. # have to relink, otherwise we might link with an installed library
  1865. # when we should be linking with a yet-to-be-installed one
  1866. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1867. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1868. # Linking always hardcodes the temporary library directory.
  1869. _LT_TAGVAR(hardcode_action, $1)=relink
  1870. else
  1871. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1872. _LT_TAGVAR(hardcode_action, $1)=immediate
  1873. fi
  1874. else
  1875. # We cannot hardcode anything, or else we can only hardcode existing
  1876. # directories.
  1877. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1878. fi
  1879. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1880. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1881. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1882. # Fast installation is not supported
  1883. enable_fast_install=no
  1884. elif test "$shlibpath_overrides_runpath" = yes ||
  1885. test "$enable_shared" = no; then
  1886. # Fast installation is not necessary
  1887. enable_fast_install=needless
  1888. fi
  1889. _LT_TAGDECL([], [hardcode_action], [0],
  1890. [How to hardcode a shared library path into an executable])
  1891. ])# _LT_LINKER_HARDCODE_LIBPATH
  1892. # _LT_CMD_STRIPLIB
  1893. # ----------------
  1894. m4_defun([_LT_CMD_STRIPLIB],
  1895. [m4_require([_LT_DECL_EGREP])
  1896. striplib=
  1897. old_striplib=
  1898. AC_MSG_CHECKING([whether stripping libraries is possible])
  1899. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1900. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1901. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1902. AC_MSG_RESULT([yes])
  1903. else
  1904. # FIXME - insert some real tests, host_os isn't really good enough
  1905. case $host_os in
  1906. darwin*)
  1907. if test -n "$STRIP" ; then
  1908. striplib="$STRIP -x"
  1909. old_striplib="$STRIP -S"
  1910. AC_MSG_RESULT([yes])
  1911. else
  1912. AC_MSG_RESULT([no])
  1913. fi
  1914. ;;
  1915. *)
  1916. AC_MSG_RESULT([no])
  1917. ;;
  1918. esac
  1919. fi
  1920. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1921. _LT_DECL([], [striplib], [1])
  1922. ])# _LT_CMD_STRIPLIB
  1923. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1924. # -----------------------------
  1925. # PORTME Fill in your ld.so characteristics
  1926. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1927. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1928. m4_require([_LT_DECL_EGREP])dnl
  1929. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1930. m4_require([_LT_DECL_OBJDUMP])dnl
  1931. m4_require([_LT_DECL_SED])dnl
  1932. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1933. AC_MSG_CHECKING([dynamic linker characteristics])
  1934. m4_if([$1],
  1935. [], [
  1936. if test "$GCC" = yes; then
  1937. case $host_os in
  1938. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1939. *) lt_awk_arg="/^libraries:/" ;;
  1940. esac
  1941. case $host_os in
  1942. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1943. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1944. esac
  1945. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1946. case $lt_search_path_spec in
  1947. *\;*)
  1948. # if the path contains ";" then we assume it to be the separator
  1949. # otherwise default to the standard path separator (i.e. ":") - it is
  1950. # assumed that no part of a normal pathname contains ";" but that should
  1951. # okay in the real world where ";" in dirpaths is itself problematic.
  1952. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1953. ;;
  1954. *)
  1955. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1956. ;;
  1957. esac
  1958. # Ok, now we have the path, separated by spaces, we can step through it
  1959. # and add multilib dir if necessary.
  1960. lt_tmp_lt_search_path_spec=
  1961. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1962. for lt_sys_path in $lt_search_path_spec; do
  1963. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1964. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1965. else
  1966. test -d "$lt_sys_path" && \
  1967. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1968. fi
  1969. done
  1970. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1971. BEGIN {RS=" "; FS="/|\n";} {
  1972. lt_foo="";
  1973. lt_count=0;
  1974. for (lt_i = NF; lt_i > 0; lt_i--) {
  1975. if ($lt_i != "" && $lt_i != ".") {
  1976. if ($lt_i == "..") {
  1977. lt_count++;
  1978. } else {
  1979. if (lt_count == 0) {
  1980. lt_foo="/" $lt_i lt_foo;
  1981. } else {
  1982. lt_count--;
  1983. }
  1984. }
  1985. }
  1986. }
  1987. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1988. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1989. }'`
  1990. # AWK program above erroneously prepends '/' to C:/dos/paths
  1991. # for these hosts.
  1992. case $host_os in
  1993. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1994. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1995. esac
  1996. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1997. else
  1998. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1999. fi])
  2000. library_names_spec=
  2001. libname_spec='lib$name'
  2002. soname_spec=
  2003. shrext_cmds=".so"
  2004. postinstall_cmds=
  2005. postuninstall_cmds=
  2006. finish_cmds=
  2007. finish_eval=
  2008. shlibpath_var=
  2009. shlibpath_overrides_runpath=unknown
  2010. version_type=none
  2011. dynamic_linker="$host_os ld.so"
  2012. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2013. need_lib_prefix=unknown
  2014. hardcode_into_libs=no
  2015. # when you set need_version to no, make sure it does not cause -set_version
  2016. # flags to be left without arguments
  2017. need_version=unknown
  2018. case $host_os in
  2019. aix3*)
  2020. version_type=linux # correct to gnu/linux during the next big refactor
  2021. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2022. shlibpath_var=LIBPATH
  2023. # AIX 3 has no versioning support, so we append a major version to the name.
  2024. soname_spec='${libname}${release}${shared_ext}$major'
  2025. ;;
  2026. aix[[4-9]]*)
  2027. version_type=linux # correct to gnu/linux during the next big refactor
  2028. need_lib_prefix=no
  2029. need_version=no
  2030. hardcode_into_libs=yes
  2031. if test "$host_cpu" = ia64; then
  2032. # AIX 5 supports IA64
  2033. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2034. shlibpath_var=LD_LIBRARY_PATH
  2035. else
  2036. # With GCC up to 2.95.x, collect2 would create an import file
  2037. # for dependence libraries. The import file would start with
  2038. # the line `#! .'. This would cause the generated library to
  2039. # depend on `.', always an invalid library. This was fixed in
  2040. # development snapshots of GCC prior to 3.0.
  2041. case $host_os in
  2042. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2043. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2044. echo ' yes '
  2045. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2046. :
  2047. else
  2048. can_build_shared=no
  2049. fi
  2050. ;;
  2051. esac
  2052. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2053. # soname into executable. Probably we can add versioning support to
  2054. # collect2, so additional links can be useful in future.
  2055. if test "$aix_use_runtimelinking" = yes; then
  2056. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2057. # instead of lib<name>.a to let people know that these are not
  2058. # typical AIX shared libraries.
  2059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2060. else
  2061. # We preserve .a as extension for shared libraries through AIX4.2
  2062. # and later when we are not doing run time linking.
  2063. library_names_spec='${libname}${release}.a $libname.a'
  2064. soname_spec='${libname}${release}${shared_ext}$major'
  2065. fi
  2066. shlibpath_var=LIBPATH
  2067. fi
  2068. ;;
  2069. amigaos*)
  2070. case $host_cpu in
  2071. powerpc)
  2072. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2073. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2074. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2075. ;;
  2076. m68k)
  2077. library_names_spec='$libname.ixlibrary $libname.a'
  2078. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2079. 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'
  2080. ;;
  2081. esac
  2082. ;;
  2083. beos*)
  2084. library_names_spec='${libname}${shared_ext}'
  2085. dynamic_linker="$host_os ld.so"
  2086. shlibpath_var=LIBRARY_PATH
  2087. ;;
  2088. bsdi[[45]]*)
  2089. version_type=linux # correct to gnu/linux during the next big refactor
  2090. need_version=no
  2091. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2092. soname_spec='${libname}${release}${shared_ext}$major'
  2093. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2094. shlibpath_var=LD_LIBRARY_PATH
  2095. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2096. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2097. # the default ld.so.conf also contains /usr/contrib/lib and
  2098. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2099. # libtool to hard-code these into programs
  2100. ;;
  2101. cygwin* | mingw* | pw32* | cegcc*)
  2102. version_type=windows
  2103. shrext_cmds=".dll"
  2104. need_version=no
  2105. need_lib_prefix=no
  2106. case $GCC,$cc_basename in
  2107. yes,*)
  2108. # gcc
  2109. library_names_spec='$libname.dll.a'
  2110. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2111. postinstall_cmds='base_file=`basename \${file}`~
  2112. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2113. dldir=$destdir/`dirname \$dlpath`~
  2114. test -d \$dldir || mkdir -p \$dldir~
  2115. $install_prog $dir/$dlname \$dldir/$dlname~
  2116. chmod a+x \$dldir/$dlname~
  2117. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2118. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2119. fi'
  2120. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2121. dlpath=$dir/\$dldll~
  2122. $RM \$dlpath'
  2123. shlibpath_overrides_runpath=yes
  2124. case $host_os in
  2125. cygwin*)
  2126. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2127. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2128. m4_if([$1], [],[
  2129. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2130. ;;
  2131. mingw* | cegcc*)
  2132. # MinGW DLLs use traditional 'lib' prefix
  2133. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2134. ;;
  2135. pw32*)
  2136. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2137. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2138. ;;
  2139. esac
  2140. dynamic_linker='Win32 ld.exe'
  2141. ;;
  2142. *,cl*)
  2143. # Native MSVC
  2144. libname_spec='$name'
  2145. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2146. library_names_spec='${libname}.dll.lib'
  2147. case $build_os in
  2148. mingw*)
  2149. sys_lib_search_path_spec=
  2150. lt_save_ifs=$IFS
  2151. IFS=';'
  2152. for lt_path in $LIB
  2153. do
  2154. IFS=$lt_save_ifs
  2155. # Let DOS variable expansion print the short 8.3 style file name.
  2156. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2157. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2158. done
  2159. IFS=$lt_save_ifs
  2160. # Convert to MSYS style.
  2161. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2162. ;;
  2163. cygwin*)
  2164. # Convert to unix form, then to dos form, then back to unix form
  2165. # but this time dos style (no spaces!) so that the unix form looks
  2166. # like /cygdrive/c/PROGRA~1:/cygdr...
  2167. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2168. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2169. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2170. ;;
  2171. *)
  2172. sys_lib_search_path_spec="$LIB"
  2173. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2174. # It is most probably a Windows format PATH.
  2175. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2176. else
  2177. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2178. fi
  2179. # FIXME: find the short name or the path components, as spaces are
  2180. # common. (e.g. "Program Files" -> "PROGRA~1")
  2181. ;;
  2182. esac
  2183. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2184. postinstall_cmds='base_file=`basename \${file}`~
  2185. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2186. dldir=$destdir/`dirname \$dlpath`~
  2187. test -d \$dldir || mkdir -p \$dldir~
  2188. $install_prog $dir/$dlname \$dldir/$dlname'
  2189. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2190. dlpath=$dir/\$dldll~
  2191. $RM \$dlpath'
  2192. shlibpath_overrides_runpath=yes
  2193. dynamic_linker='Win32 link.exe'
  2194. ;;
  2195. *)
  2196. # Assume MSVC wrapper
  2197. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2198. dynamic_linker='Win32 ld.exe'
  2199. ;;
  2200. esac
  2201. # FIXME: first we should search . and the directory the executable is in
  2202. shlibpath_var=PATH
  2203. ;;
  2204. darwin* | rhapsody*)
  2205. dynamic_linker="$host_os dyld"
  2206. version_type=darwin
  2207. need_lib_prefix=no
  2208. need_version=no
  2209. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2210. soname_spec='${libname}${release}${major}$shared_ext'
  2211. shlibpath_overrides_runpath=yes
  2212. shlibpath_var=DYLD_LIBRARY_PATH
  2213. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2214. m4_if([$1], [],[
  2215. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2216. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2217. ;;
  2218. dgux*)
  2219. version_type=linux # correct to gnu/linux during the next big refactor
  2220. need_lib_prefix=no
  2221. need_version=no
  2222. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2223. soname_spec='${libname}${release}${shared_ext}$major'
  2224. shlibpath_var=LD_LIBRARY_PATH
  2225. ;;
  2226. freebsd* | dragonfly*)
  2227. # DragonFly does not have aout. When/if they implement a new
  2228. # versioning mechanism, adjust this.
  2229. if test -x /usr/bin/objformat; then
  2230. objformat=`/usr/bin/objformat`
  2231. else
  2232. case $host_os in
  2233. freebsd[[23]].*) objformat=aout ;;
  2234. *) objformat=elf ;;
  2235. esac
  2236. fi
  2237. version_type=freebsd-$objformat
  2238. case $version_type in
  2239. freebsd-elf*)
  2240. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2241. need_version=no
  2242. need_lib_prefix=no
  2243. ;;
  2244. freebsd-*)
  2245. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2246. need_version=yes
  2247. ;;
  2248. esac
  2249. shlibpath_var=LD_LIBRARY_PATH
  2250. case $host_os in
  2251. freebsd2.*)
  2252. shlibpath_overrides_runpath=yes
  2253. ;;
  2254. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2255. shlibpath_overrides_runpath=yes
  2256. hardcode_into_libs=yes
  2257. ;;
  2258. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2259. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2260. shlibpath_overrides_runpath=no
  2261. hardcode_into_libs=yes
  2262. ;;
  2263. *) # from 4.6 on, and DragonFly
  2264. shlibpath_overrides_runpath=yes
  2265. hardcode_into_libs=yes
  2266. ;;
  2267. esac
  2268. ;;
  2269. gnu*)
  2270. version_type=linux # correct to gnu/linux during the next big refactor
  2271. need_lib_prefix=no
  2272. need_version=no
  2273. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2274. soname_spec='${libname}${release}${shared_ext}$major'
  2275. shlibpath_var=LD_LIBRARY_PATH
  2276. shlibpath_overrides_runpath=no
  2277. hardcode_into_libs=yes
  2278. ;;
  2279. haiku*)
  2280. version_type=linux # correct to gnu/linux during the next big refactor
  2281. need_lib_prefix=no
  2282. need_version=no
  2283. dynamic_linker="$host_os runtime_loader"
  2284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2285. soname_spec='${libname}${release}${shared_ext}$major'
  2286. shlibpath_var=LIBRARY_PATH
  2287. shlibpath_overrides_runpath=yes
  2288. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2289. hardcode_into_libs=yes
  2290. ;;
  2291. hpux9* | hpux10* | hpux11*)
  2292. # Give a soname corresponding to the major version so that dld.sl refuses to
  2293. # link against other versions.
  2294. version_type=sunos
  2295. need_lib_prefix=no
  2296. need_version=no
  2297. case $host_cpu in
  2298. ia64*)
  2299. shrext_cmds='.so'
  2300. hardcode_into_libs=yes
  2301. dynamic_linker="$host_os dld.so"
  2302. shlibpath_var=LD_LIBRARY_PATH
  2303. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2304. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2305. soname_spec='${libname}${release}${shared_ext}$major'
  2306. if test "X$HPUX_IA64_MODE" = X32; then
  2307. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2308. else
  2309. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2310. fi
  2311. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2312. ;;
  2313. hppa*64*)
  2314. shrext_cmds='.sl'
  2315. hardcode_into_libs=yes
  2316. dynamic_linker="$host_os dld.sl"
  2317. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2318. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2320. soname_spec='${libname}${release}${shared_ext}$major'
  2321. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2322. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2323. ;;
  2324. *)
  2325. shrext_cmds='.sl'
  2326. dynamic_linker="$host_os dld.sl"
  2327. shlibpath_var=SHLIB_PATH
  2328. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2329. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2330. soname_spec='${libname}${release}${shared_ext}$major'
  2331. ;;
  2332. esac
  2333. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2334. postinstall_cmds='chmod 555 $lib'
  2335. # or fails outright, so override atomically:
  2336. install_override_mode=555
  2337. ;;
  2338. interix[[3-9]]*)
  2339. version_type=linux # correct to gnu/linux during the next big refactor
  2340. need_lib_prefix=no
  2341. need_version=no
  2342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2343. soname_spec='${libname}${release}${shared_ext}$major'
  2344. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2345. shlibpath_var=LD_LIBRARY_PATH
  2346. shlibpath_overrides_runpath=no
  2347. hardcode_into_libs=yes
  2348. ;;
  2349. irix5* | irix6* | nonstopux*)
  2350. case $host_os in
  2351. nonstopux*) version_type=nonstopux ;;
  2352. *)
  2353. if test "$lt_cv_prog_gnu_ld" = yes; then
  2354. version_type=linux # correct to gnu/linux during the next big refactor
  2355. else
  2356. version_type=irix
  2357. fi ;;
  2358. esac
  2359. need_lib_prefix=no
  2360. need_version=no
  2361. soname_spec='${libname}${release}${shared_ext}$major'
  2362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2363. case $host_os in
  2364. irix5* | nonstopux*)
  2365. libsuff= shlibsuff=
  2366. ;;
  2367. *)
  2368. case $LD in # libtool.m4 will add one of these switches to LD
  2369. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2370. libsuff= shlibsuff= libmagic=32-bit;;
  2371. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2372. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2373. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2374. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2375. *) libsuff= shlibsuff= libmagic=never-match;;
  2376. esac
  2377. ;;
  2378. esac
  2379. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2380. shlibpath_overrides_runpath=no
  2381. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2382. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2383. hardcode_into_libs=yes
  2384. ;;
  2385. # No shared lib support for Linux oldld, aout, or coff.
  2386. linux*oldld* | linux*aout* | linux*coff*)
  2387. dynamic_linker=no
  2388. ;;
  2389. # This must be glibc/ELF.
  2390. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2391. version_type=linux # correct to gnu/linux during the next big refactor
  2392. need_lib_prefix=no
  2393. need_version=no
  2394. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2395. soname_spec='${libname}${release}${shared_ext}$major'
  2396. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2397. shlibpath_var=LD_LIBRARY_PATH
  2398. shlibpath_overrides_runpath=no
  2399. # Some binutils ld are patched to set DT_RUNPATH
  2400. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2401. [lt_cv_shlibpath_overrides_runpath=no
  2402. save_LDFLAGS=$LDFLAGS
  2403. save_libdir=$libdir
  2404. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2405. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2406. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2407. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2408. [lt_cv_shlibpath_overrides_runpath=yes])])
  2409. LDFLAGS=$save_LDFLAGS
  2410. libdir=$save_libdir
  2411. ])
  2412. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2413. # This implies no fast_install, which is unacceptable.
  2414. # Some rework will be needed to allow for fast_install
  2415. # before this can be enabled.
  2416. hardcode_into_libs=yes
  2417. # Append ld.so.conf contents to the search path
  2418. if test -f /etc/ld.so.conf; then
  2419. 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' ' '`
  2420. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2421. fi
  2422. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2423. # powerpc, because MkLinux only supported shared libraries with the
  2424. # GNU dynamic linker. Since this was broken with cross compilers,
  2425. # most powerpc-linux boxes support dynamic linking these days and
  2426. # people can always --disable-shared, the test was removed, and we
  2427. # assume the GNU/Linux dynamic linker is in use.
  2428. dynamic_linker='GNU/Linux ld.so'
  2429. ;;
  2430. netbsd*)
  2431. version_type=sunos
  2432. need_lib_prefix=no
  2433. need_version=no
  2434. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2435. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2436. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2437. dynamic_linker='NetBSD (a.out) ld.so'
  2438. else
  2439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2440. soname_spec='${libname}${release}${shared_ext}$major'
  2441. dynamic_linker='NetBSD ld.elf_so'
  2442. fi
  2443. shlibpath_var=LD_LIBRARY_PATH
  2444. shlibpath_overrides_runpath=yes
  2445. hardcode_into_libs=yes
  2446. ;;
  2447. newsos6)
  2448. version_type=linux # correct to gnu/linux during the next big refactor
  2449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2450. shlibpath_var=LD_LIBRARY_PATH
  2451. shlibpath_overrides_runpath=yes
  2452. ;;
  2453. *nto* | *qnx*)
  2454. version_type=qnx
  2455. need_lib_prefix=no
  2456. need_version=no
  2457. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2458. soname_spec='${libname}${release}${shared_ext}$major'
  2459. shlibpath_var=LD_LIBRARY_PATH
  2460. shlibpath_overrides_runpath=no
  2461. hardcode_into_libs=yes
  2462. dynamic_linker='ldqnx.so'
  2463. ;;
  2464. openbsd*)
  2465. version_type=sunos
  2466. sys_lib_dlsearch_path_spec="/usr/lib"
  2467. need_lib_prefix=no
  2468. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2469. case $host_os in
  2470. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2471. *) need_version=no ;;
  2472. esac
  2473. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2474. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2475. shlibpath_var=LD_LIBRARY_PATH
  2476. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2477. case $host_os in
  2478. openbsd2.[[89]] | openbsd2.[[89]].*)
  2479. shlibpath_overrides_runpath=no
  2480. ;;
  2481. *)
  2482. shlibpath_overrides_runpath=yes
  2483. ;;
  2484. esac
  2485. else
  2486. shlibpath_overrides_runpath=yes
  2487. fi
  2488. ;;
  2489. os2*)
  2490. libname_spec='$name'
  2491. shrext_cmds=".dll"
  2492. need_lib_prefix=no
  2493. library_names_spec='$libname${shared_ext} $libname.a'
  2494. dynamic_linker='OS/2 ld.exe'
  2495. shlibpath_var=LIBPATH
  2496. ;;
  2497. osf3* | osf4* | osf5*)
  2498. version_type=osf
  2499. need_lib_prefix=no
  2500. need_version=no
  2501. soname_spec='${libname}${release}${shared_ext}$major'
  2502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2503. shlibpath_var=LD_LIBRARY_PATH
  2504. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2505. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2506. ;;
  2507. rdos*)
  2508. dynamic_linker=no
  2509. ;;
  2510. solaris*)
  2511. version_type=linux # correct to gnu/linux during the next big refactor
  2512. need_lib_prefix=no
  2513. need_version=no
  2514. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2515. soname_spec='${libname}${release}${shared_ext}$major'
  2516. shlibpath_var=LD_LIBRARY_PATH
  2517. shlibpath_overrides_runpath=yes
  2518. hardcode_into_libs=yes
  2519. # ldd complains unless libraries are executable
  2520. postinstall_cmds='chmod +x $lib'
  2521. ;;
  2522. sunos4*)
  2523. version_type=sunos
  2524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2525. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2526. shlibpath_var=LD_LIBRARY_PATH
  2527. shlibpath_overrides_runpath=yes
  2528. if test "$with_gnu_ld" = yes; then
  2529. need_lib_prefix=no
  2530. fi
  2531. need_version=yes
  2532. ;;
  2533. sysv4 | sysv4.3*)
  2534. version_type=linux # correct to gnu/linux during the next big refactor
  2535. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2536. soname_spec='${libname}${release}${shared_ext}$major'
  2537. shlibpath_var=LD_LIBRARY_PATH
  2538. case $host_vendor in
  2539. sni)
  2540. shlibpath_overrides_runpath=no
  2541. need_lib_prefix=no
  2542. runpath_var=LD_RUN_PATH
  2543. ;;
  2544. siemens)
  2545. need_lib_prefix=no
  2546. ;;
  2547. motorola)
  2548. need_lib_prefix=no
  2549. need_version=no
  2550. shlibpath_overrides_runpath=no
  2551. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2552. ;;
  2553. esac
  2554. ;;
  2555. sysv4*MP*)
  2556. if test -d /usr/nec ;then
  2557. version_type=linux # correct to gnu/linux during the next big refactor
  2558. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2559. soname_spec='$libname${shared_ext}.$major'
  2560. shlibpath_var=LD_LIBRARY_PATH
  2561. fi
  2562. ;;
  2563. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2564. version_type=freebsd-elf
  2565. need_lib_prefix=no
  2566. need_version=no
  2567. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2568. soname_spec='${libname}${release}${shared_ext}$major'
  2569. shlibpath_var=LD_LIBRARY_PATH
  2570. shlibpath_overrides_runpath=yes
  2571. hardcode_into_libs=yes
  2572. if test "$with_gnu_ld" = yes; then
  2573. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2574. else
  2575. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2576. case $host_os in
  2577. sco3.2v5*)
  2578. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2579. ;;
  2580. esac
  2581. fi
  2582. sys_lib_dlsearch_path_spec='/usr/lib'
  2583. ;;
  2584. tpf*)
  2585. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2586. version_type=linux # correct to gnu/linux during the next big refactor
  2587. need_lib_prefix=no
  2588. need_version=no
  2589. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2590. shlibpath_var=LD_LIBRARY_PATH
  2591. shlibpath_overrides_runpath=no
  2592. hardcode_into_libs=yes
  2593. ;;
  2594. uts4*)
  2595. version_type=linux # correct to gnu/linux during the next big refactor
  2596. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2597. soname_spec='${libname}${release}${shared_ext}$major'
  2598. shlibpath_var=LD_LIBRARY_PATH
  2599. ;;
  2600. *)
  2601. dynamic_linker=no
  2602. ;;
  2603. esac
  2604. AC_MSG_RESULT([$dynamic_linker])
  2605. test "$dynamic_linker" = no && can_build_shared=no
  2606. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2607. if test "$GCC" = yes; then
  2608. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2609. fi
  2610. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2611. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2612. fi
  2613. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2614. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2615. fi
  2616. _LT_DECL([], [variables_saved_for_relink], [1],
  2617. [Variables whose values should be saved in libtool wrapper scripts and
  2618. restored at link time])
  2619. _LT_DECL([], [need_lib_prefix], [0],
  2620. [Do we need the "lib" prefix for modules?])
  2621. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2622. _LT_DECL([], [version_type], [0], [Library versioning type])
  2623. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2624. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2625. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2626. [Is shlibpath searched before the hard-coded library search path?])
  2627. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2628. _LT_DECL([], [library_names_spec], [1],
  2629. [[List of archive names. First name is the real one, the rest are links.
  2630. The last name is the one that the linker finds with -lNAME]])
  2631. _LT_DECL([], [soname_spec], [1],
  2632. [[The coded name of the library, if different from the real name]])
  2633. _LT_DECL([], [install_override_mode], [1],
  2634. [Permission mode override for installation of shared libraries])
  2635. _LT_DECL([], [postinstall_cmds], [2],
  2636. [Command to use after installation of a shared archive])
  2637. _LT_DECL([], [postuninstall_cmds], [2],
  2638. [Command to use after uninstallation of a shared archive])
  2639. _LT_DECL([], [finish_cmds], [2],
  2640. [Commands used to finish a libtool library installation in a directory])
  2641. _LT_DECL([], [finish_eval], [1],
  2642. [[As "finish_cmds", except a single script fragment to be evaled but
  2643. not shown]])
  2644. _LT_DECL([], [hardcode_into_libs], [0],
  2645. [Whether we should hardcode library paths into libraries])
  2646. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2647. [Compile-time system search path for libraries])
  2648. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2649. [Run-time system search path for libraries])
  2650. ])# _LT_SYS_DYNAMIC_LINKER
  2651. # _LT_PATH_TOOL_PREFIX(TOOL)
  2652. # --------------------------
  2653. # find a file program which can recognize shared library
  2654. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2655. [m4_require([_LT_DECL_EGREP])dnl
  2656. AC_MSG_CHECKING([for $1])
  2657. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2658. [case $MAGIC_CMD in
  2659. [[\\/*] | ?:[\\/]*])
  2660. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2661. ;;
  2662. *)
  2663. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2664. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2665. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2666. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2667. dnl not every word. This closes a longstanding sh security hole.
  2668. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2669. for ac_dir in $ac_dummy; do
  2670. IFS="$lt_save_ifs"
  2671. test -z "$ac_dir" && ac_dir=.
  2672. if test -f $ac_dir/$1; then
  2673. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2674. if test -n "$file_magic_test_file"; then
  2675. case $deplibs_check_method in
  2676. "file_magic "*)
  2677. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2678. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2679. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2680. $EGREP "$file_magic_regex" > /dev/null; then
  2681. :
  2682. else
  2683. cat <<_LT_EOF 1>&2
  2684. *** Warning: the command libtool uses to detect shared libraries,
  2685. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2686. *** The result is that libtool may fail to recognize shared libraries
  2687. *** as such. This will affect the creation of libtool libraries that
  2688. *** depend on shared libraries, but programs linked with such libtool
  2689. *** libraries will work regardless of this problem. Nevertheless, you
  2690. *** may want to report the problem to your system manager and/or to
  2691. *** bug-libtool@gnu.org
  2692. _LT_EOF
  2693. fi ;;
  2694. esac
  2695. fi
  2696. break
  2697. fi
  2698. done
  2699. IFS="$lt_save_ifs"
  2700. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2701. ;;
  2702. esac])
  2703. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2704. if test -n "$MAGIC_CMD"; then
  2705. AC_MSG_RESULT($MAGIC_CMD)
  2706. else
  2707. AC_MSG_RESULT(no)
  2708. fi
  2709. _LT_DECL([], [MAGIC_CMD], [0],
  2710. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2711. ])# _LT_PATH_TOOL_PREFIX
  2712. # Old name:
  2713. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2714. dnl aclocal-1.4 backwards compatibility:
  2715. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2716. # _LT_PATH_MAGIC
  2717. # --------------
  2718. # find a file program which can recognize a shared library
  2719. m4_defun([_LT_PATH_MAGIC],
  2720. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2721. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2722. if test -n "$ac_tool_prefix"; then
  2723. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2724. else
  2725. MAGIC_CMD=:
  2726. fi
  2727. fi
  2728. ])# _LT_PATH_MAGIC
  2729. # LT_PATH_LD
  2730. # ----------
  2731. # find the pathname to the GNU or non-GNU linker
  2732. AC_DEFUN([LT_PATH_LD],
  2733. [AC_REQUIRE([AC_PROG_CC])dnl
  2734. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2735. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2736. m4_require([_LT_DECL_SED])dnl
  2737. m4_require([_LT_DECL_EGREP])dnl
  2738. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2739. AC_ARG_WITH([gnu-ld],
  2740. [AS_HELP_STRING([--with-gnu-ld],
  2741. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2742. [test "$withval" = no || with_gnu_ld=yes],
  2743. [with_gnu_ld=no])dnl
  2744. ac_prog=ld
  2745. if test "$GCC" = yes; then
  2746. # Check if gcc -print-prog-name=ld gives a path.
  2747. AC_MSG_CHECKING([for ld used by $CC])
  2748. case $host in
  2749. *-*-mingw*)
  2750. # gcc leaves a trailing carriage return which upsets mingw
  2751. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2752. *)
  2753. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2754. esac
  2755. case $ac_prog in
  2756. # Accept absolute paths.
  2757. [[\\/]]* | ?:[[\\/]]*)
  2758. re_direlt='/[[^/]][[^/]]*/\.\./'
  2759. # Canonicalize the pathname of ld
  2760. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2761. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2762. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2763. done
  2764. test -z "$LD" && LD="$ac_prog"
  2765. ;;
  2766. "")
  2767. # If it fails, then pretend we aren't using GCC.
  2768. ac_prog=ld
  2769. ;;
  2770. *)
  2771. # If it is relative, then search for the first ld in PATH.
  2772. with_gnu_ld=unknown
  2773. ;;
  2774. esac
  2775. elif test "$with_gnu_ld" = yes; then
  2776. AC_MSG_CHECKING([for GNU ld])
  2777. else
  2778. AC_MSG_CHECKING([for non-GNU ld])
  2779. fi
  2780. AC_CACHE_VAL(lt_cv_path_LD,
  2781. [if test -z "$LD"; then
  2782. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2783. for ac_dir in $PATH; do
  2784. IFS="$lt_save_ifs"
  2785. test -z "$ac_dir" && ac_dir=.
  2786. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2787. lt_cv_path_LD="$ac_dir/$ac_prog"
  2788. # Check to see if the program is GNU ld. I'd rather use --version,
  2789. # but apparently some variants of GNU ld only accept -v.
  2790. # Break only if it was the GNU/non-GNU ld that we prefer.
  2791. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2792. *GNU* | *'with BFD'*)
  2793. test "$with_gnu_ld" != no && break
  2794. ;;
  2795. *)
  2796. test "$with_gnu_ld" != yes && break
  2797. ;;
  2798. esac
  2799. fi
  2800. done
  2801. IFS="$lt_save_ifs"
  2802. else
  2803. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2804. fi])
  2805. LD="$lt_cv_path_LD"
  2806. if test -n "$LD"; then
  2807. AC_MSG_RESULT($LD)
  2808. else
  2809. AC_MSG_RESULT(no)
  2810. fi
  2811. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2812. _LT_PATH_LD_GNU
  2813. AC_SUBST([LD])
  2814. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2815. ])# LT_PATH_LD
  2816. # Old names:
  2817. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2818. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2819. dnl aclocal-1.4 backwards compatibility:
  2820. dnl AC_DEFUN([AM_PROG_LD], [])
  2821. dnl AC_DEFUN([AC_PROG_LD], [])
  2822. # _LT_PATH_LD_GNU
  2823. #- --------------
  2824. m4_defun([_LT_PATH_LD_GNU],
  2825. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2826. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2827. case `$LD -v 2>&1 </dev/null` in
  2828. *GNU* | *'with BFD'*)
  2829. lt_cv_prog_gnu_ld=yes
  2830. ;;
  2831. *)
  2832. lt_cv_prog_gnu_ld=no
  2833. ;;
  2834. esac])
  2835. with_gnu_ld=$lt_cv_prog_gnu_ld
  2836. ])# _LT_PATH_LD_GNU
  2837. # _LT_CMD_RELOAD
  2838. # --------------
  2839. # find reload flag for linker
  2840. # -- PORTME Some linkers may need a different reload flag.
  2841. m4_defun([_LT_CMD_RELOAD],
  2842. [AC_CACHE_CHECK([for $LD option to reload object files],
  2843. lt_cv_ld_reload_flag,
  2844. [lt_cv_ld_reload_flag='-r'])
  2845. reload_flag=$lt_cv_ld_reload_flag
  2846. case $reload_flag in
  2847. "" | " "*) ;;
  2848. *) reload_flag=" $reload_flag" ;;
  2849. esac
  2850. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2851. case $host_os in
  2852. cygwin* | mingw* | pw32* | cegcc*)
  2853. if test "$GCC" != yes; then
  2854. reload_cmds=false
  2855. fi
  2856. ;;
  2857. darwin*)
  2858. if test "$GCC" = yes; then
  2859. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2860. else
  2861. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2862. fi
  2863. ;;
  2864. esac
  2865. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2866. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2867. ])# _LT_CMD_RELOAD
  2868. # _LT_CHECK_MAGIC_METHOD
  2869. # ----------------------
  2870. # how to check for library dependencies
  2871. # -- PORTME fill in with the dynamic library characteristics
  2872. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2873. [m4_require([_LT_DECL_EGREP])
  2874. m4_require([_LT_DECL_OBJDUMP])
  2875. AC_CACHE_CHECK([how to recognize dependent libraries],
  2876. lt_cv_deplibs_check_method,
  2877. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2878. lt_cv_file_magic_test_file=
  2879. lt_cv_deplibs_check_method='unknown'
  2880. # Need to set the preceding variable on all platforms that support
  2881. # interlibrary dependencies.
  2882. # 'none' -- dependencies not supported.
  2883. # `unknown' -- same as none, but documents that we really don't know.
  2884. # 'pass_all' -- all dependencies passed with no checks.
  2885. # 'test_compile' -- check by making test program.
  2886. # 'file_magic [[regex]]' -- check by looking for files in library path
  2887. # which responds to the $file_magic_cmd with a given extended regex.
  2888. # If you have `file' or equivalent on your system and you're not sure
  2889. # whether `pass_all' will *always* work, you probably want this one.
  2890. case $host_os in
  2891. aix[[4-9]]*)
  2892. lt_cv_deplibs_check_method=pass_all
  2893. ;;
  2894. beos*)
  2895. lt_cv_deplibs_check_method=pass_all
  2896. ;;
  2897. bsdi[[45]]*)
  2898. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2899. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2900. lt_cv_file_magic_test_file=/shlib/libc.so
  2901. ;;
  2902. cygwin*)
  2903. # func_win32_libid is a shell function defined in ltmain.sh
  2904. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2905. lt_cv_file_magic_cmd='func_win32_libid'
  2906. ;;
  2907. mingw* | pw32*)
  2908. # Base MSYS/MinGW do not provide the 'file' command needed by
  2909. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2910. # unless we find 'file', for example because we are cross-compiling.
  2911. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2912. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2913. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2914. lt_cv_file_magic_cmd='func_win32_libid'
  2915. else
  2916. # Keep this pattern in sync with the one in func_win32_libid.
  2917. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2918. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2919. fi
  2920. ;;
  2921. cegcc*)
  2922. # use the weaker test based on 'objdump'. See mingw*.
  2923. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2924. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2925. ;;
  2926. darwin* | rhapsody*)
  2927. lt_cv_deplibs_check_method=pass_all
  2928. ;;
  2929. freebsd* | dragonfly*)
  2930. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2931. case $host_cpu in
  2932. i*86 )
  2933. # Not sure whether the presence of OpenBSD here was a mistake.
  2934. # Let's accept both of them until this is cleared up.
  2935. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2936. lt_cv_file_magic_cmd=/usr/bin/file
  2937. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2938. ;;
  2939. esac
  2940. else
  2941. lt_cv_deplibs_check_method=pass_all
  2942. fi
  2943. ;;
  2944. gnu*)
  2945. lt_cv_deplibs_check_method=pass_all
  2946. ;;
  2947. haiku*)
  2948. lt_cv_deplibs_check_method=pass_all
  2949. ;;
  2950. hpux10.20* | hpux11*)
  2951. lt_cv_file_magic_cmd=/usr/bin/file
  2952. case $host_cpu in
  2953. ia64*)
  2954. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2955. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2956. ;;
  2957. hppa*64*)
  2958. [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]']
  2959. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2960. ;;
  2961. *)
  2962. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2963. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2964. ;;
  2965. esac
  2966. ;;
  2967. interix[[3-9]]*)
  2968. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2969. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2970. ;;
  2971. irix5* | irix6* | nonstopux*)
  2972. case $LD in
  2973. *-32|*"-32 ") libmagic=32-bit;;
  2974. *-n32|*"-n32 ") libmagic=N32;;
  2975. *-64|*"-64 ") libmagic=64-bit;;
  2976. *) libmagic=never-match;;
  2977. esac
  2978. lt_cv_deplibs_check_method=pass_all
  2979. ;;
  2980. # This must be glibc/ELF.
  2981. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2982. lt_cv_deplibs_check_method=pass_all
  2983. ;;
  2984. netbsd*)
  2985. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2986. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2987. else
  2988. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2989. fi
  2990. ;;
  2991. newos6*)
  2992. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2993. lt_cv_file_magic_cmd=/usr/bin/file
  2994. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2995. ;;
  2996. *nto* | *qnx*)
  2997. lt_cv_deplibs_check_method=pass_all
  2998. ;;
  2999. openbsd*)
  3000. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3001. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3002. else
  3003. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3004. fi
  3005. ;;
  3006. osf3* | osf4* | osf5*)
  3007. lt_cv_deplibs_check_method=pass_all
  3008. ;;
  3009. rdos*)
  3010. lt_cv_deplibs_check_method=pass_all
  3011. ;;
  3012. solaris*)
  3013. lt_cv_deplibs_check_method=pass_all
  3014. ;;
  3015. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3016. lt_cv_deplibs_check_method=pass_all
  3017. ;;
  3018. sysv4 | sysv4.3*)
  3019. case $host_vendor in
  3020. motorola)
  3021. 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]]'
  3022. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3023. ;;
  3024. ncr)
  3025. lt_cv_deplibs_check_method=pass_all
  3026. ;;
  3027. sequent)
  3028. lt_cv_file_magic_cmd='/bin/file'
  3029. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3030. ;;
  3031. sni)
  3032. lt_cv_file_magic_cmd='/bin/file'
  3033. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3034. lt_cv_file_magic_test_file=/lib/libc.so
  3035. ;;
  3036. siemens)
  3037. lt_cv_deplibs_check_method=pass_all
  3038. ;;
  3039. pc)
  3040. lt_cv_deplibs_check_method=pass_all
  3041. ;;
  3042. esac
  3043. ;;
  3044. tpf*)
  3045. lt_cv_deplibs_check_method=pass_all
  3046. ;;
  3047. esac
  3048. ])
  3049. file_magic_glob=
  3050. want_nocaseglob=no
  3051. if test "$build" = "$host"; then
  3052. case $host_os in
  3053. mingw* | pw32*)
  3054. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3055. want_nocaseglob=yes
  3056. else
  3057. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3058. fi
  3059. ;;
  3060. esac
  3061. fi
  3062. file_magic_cmd=$lt_cv_file_magic_cmd
  3063. deplibs_check_method=$lt_cv_deplibs_check_method
  3064. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3065. _LT_DECL([], [deplibs_check_method], [1],
  3066. [Method to check whether dependent libraries are shared objects])
  3067. _LT_DECL([], [file_magic_cmd], [1],
  3068. [Command to use when deplibs_check_method = "file_magic"])
  3069. _LT_DECL([], [file_magic_glob], [1],
  3070. [How to find potential files when deplibs_check_method = "file_magic"])
  3071. _LT_DECL([], [want_nocaseglob], [1],
  3072. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3073. ])# _LT_CHECK_MAGIC_METHOD
  3074. # LT_PATH_NM
  3075. # ----------
  3076. # find the pathname to a BSD- or MS-compatible name lister
  3077. AC_DEFUN([LT_PATH_NM],
  3078. [AC_REQUIRE([AC_PROG_CC])dnl
  3079. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3080. [if test -n "$NM"; then
  3081. # Let the user override the test.
  3082. lt_cv_path_NM="$NM"
  3083. else
  3084. lt_nm_to_check="${ac_tool_prefix}nm"
  3085. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3086. lt_nm_to_check="$lt_nm_to_check nm"
  3087. fi
  3088. for lt_tmp_nm in $lt_nm_to_check; do
  3089. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3090. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3091. IFS="$lt_save_ifs"
  3092. test -z "$ac_dir" && ac_dir=.
  3093. tmp_nm="$ac_dir/$lt_tmp_nm"
  3094. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3095. # Check to see if the nm accepts a BSD-compat flag.
  3096. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3097. # nm: unknown option "B" ignored
  3098. # Tru64's nm complains that /dev/null is an invalid object file
  3099. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3100. */dev/null* | *'Invalid file or object type'*)
  3101. lt_cv_path_NM="$tmp_nm -B"
  3102. break
  3103. ;;
  3104. *)
  3105. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3106. */dev/null*)
  3107. lt_cv_path_NM="$tmp_nm -p"
  3108. break
  3109. ;;
  3110. *)
  3111. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3112. continue # so that we can try to find one that supports BSD flags
  3113. ;;
  3114. esac
  3115. ;;
  3116. esac
  3117. fi
  3118. done
  3119. IFS="$lt_save_ifs"
  3120. done
  3121. : ${lt_cv_path_NM=no}
  3122. fi])
  3123. if test "$lt_cv_path_NM" != "no"; then
  3124. NM="$lt_cv_path_NM"
  3125. else
  3126. # Didn't find any BSD compatible name lister, look for dumpbin.
  3127. if test -n "$DUMPBIN"; then :
  3128. # Let the user override the test.
  3129. else
  3130. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3131. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3132. *COFF*)
  3133. DUMPBIN="$DUMPBIN -symbols"
  3134. ;;
  3135. *)
  3136. DUMPBIN=:
  3137. ;;
  3138. esac
  3139. fi
  3140. AC_SUBST([DUMPBIN])
  3141. if test "$DUMPBIN" != ":"; then
  3142. NM="$DUMPBIN"
  3143. fi
  3144. fi
  3145. test -z "$NM" && NM=nm
  3146. AC_SUBST([NM])
  3147. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3148. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3149. [lt_cv_nm_interface="BSD nm"
  3150. echo "int some_variable = 0;" > conftest.$ac_ext
  3151. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3152. (eval "$ac_compile" 2>conftest.err)
  3153. cat conftest.err >&AS_MESSAGE_LOG_FD
  3154. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3155. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3156. cat conftest.err >&AS_MESSAGE_LOG_FD
  3157. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3158. cat conftest.out >&AS_MESSAGE_LOG_FD
  3159. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3160. lt_cv_nm_interface="MS dumpbin"
  3161. fi
  3162. rm -f conftest*])
  3163. ])# LT_PATH_NM
  3164. # Old names:
  3165. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3166. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3167. dnl aclocal-1.4 backwards compatibility:
  3168. dnl AC_DEFUN([AM_PROG_NM], [])
  3169. dnl AC_DEFUN([AC_PROG_NM], [])
  3170. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3171. # --------------------------------
  3172. # how to determine the name of the shared library
  3173. # associated with a specific link library.
  3174. # -- PORTME fill in with the dynamic library characteristics
  3175. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3176. [m4_require([_LT_DECL_EGREP])
  3177. m4_require([_LT_DECL_OBJDUMP])
  3178. m4_require([_LT_DECL_DLLTOOL])
  3179. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3180. lt_cv_sharedlib_from_linklib_cmd,
  3181. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3182. case $host_os in
  3183. cygwin* | mingw* | pw32* | cegcc*)
  3184. # two different shell functions defined in ltmain.sh
  3185. # decide which to use based on capabilities of $DLLTOOL
  3186. case `$DLLTOOL --help 2>&1` in
  3187. *--identify-strict*)
  3188. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3189. ;;
  3190. *)
  3191. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3192. ;;
  3193. esac
  3194. ;;
  3195. *)
  3196. # fallback: assume linklib IS sharedlib
  3197. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3198. ;;
  3199. esac
  3200. ])
  3201. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3202. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3203. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3204. [Command to associate shared and link libraries])
  3205. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3206. # _LT_PATH_MANIFEST_TOOL
  3207. # ----------------------
  3208. # locate the manifest tool
  3209. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3210. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3211. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3212. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3213. [lt_cv_path_mainfest_tool=no
  3214. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3215. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3216. cat conftest.err >&AS_MESSAGE_LOG_FD
  3217. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3218. lt_cv_path_mainfest_tool=yes
  3219. fi
  3220. rm -f conftest*])
  3221. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3222. MANIFEST_TOOL=:
  3223. fi
  3224. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3225. ])# _LT_PATH_MANIFEST_TOOL
  3226. # LT_LIB_M
  3227. # --------
  3228. # check for math library
  3229. AC_DEFUN([LT_LIB_M],
  3230. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3231. LIBM=
  3232. case $host in
  3233. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3234. # These system don't have libm, or don't need it
  3235. ;;
  3236. *-ncr-sysv4.3*)
  3237. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3238. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3239. ;;
  3240. *)
  3241. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3242. ;;
  3243. esac
  3244. AC_SUBST([LIBM])
  3245. ])# LT_LIB_M
  3246. # Old name:
  3247. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3248. dnl aclocal-1.4 backwards compatibility:
  3249. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3250. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3251. # -------------------------------
  3252. m4_defun([_LT_COMPILER_NO_RTTI],
  3253. [m4_require([_LT_TAG_COMPILER])dnl
  3254. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3255. if test "$GCC" = yes; then
  3256. case $cc_basename in
  3257. nvcc*)
  3258. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3259. *)
  3260. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3261. esac
  3262. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3263. lt_cv_prog_compiler_rtti_exceptions,
  3264. [-fno-rtti -fno-exceptions], [],
  3265. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3266. fi
  3267. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3268. [Compiler flag to turn off builtin functions])
  3269. ])# _LT_COMPILER_NO_RTTI
  3270. # _LT_CMD_GLOBAL_SYMBOLS
  3271. # ----------------------
  3272. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3273. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3274. AC_REQUIRE([AC_PROG_CC])dnl
  3275. AC_REQUIRE([AC_PROG_AWK])dnl
  3276. AC_REQUIRE([LT_PATH_NM])dnl
  3277. AC_REQUIRE([LT_PATH_LD])dnl
  3278. m4_require([_LT_DECL_SED])dnl
  3279. m4_require([_LT_DECL_EGREP])dnl
  3280. m4_require([_LT_TAG_COMPILER])dnl
  3281. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3282. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3283. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3284. [
  3285. # These are sane defaults that work on at least a few old systems.
  3286. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3287. # Character class describing NM global symbol codes.
  3288. symcode='[[BCDEGRST]]'
  3289. # Regexp to match symbols that can be accessed directly from C.
  3290. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3291. # Define system-specific variables.
  3292. case $host_os in
  3293. aix*)
  3294. symcode='[[BCDT]]'
  3295. ;;
  3296. cygwin* | mingw* | pw32* | cegcc*)
  3297. symcode='[[ABCDGISTW]]'
  3298. ;;
  3299. hpux*)
  3300. if test "$host_cpu" = ia64; then
  3301. symcode='[[ABCDEGRST]]'
  3302. fi
  3303. ;;
  3304. irix* | nonstopux*)
  3305. symcode='[[BCDEGRST]]'
  3306. ;;
  3307. osf*)
  3308. symcode='[[BCDEGQRST]]'
  3309. ;;
  3310. solaris*)
  3311. symcode='[[BDRT]]'
  3312. ;;
  3313. sco3.2v5*)
  3314. symcode='[[DT]]'
  3315. ;;
  3316. sysv4.2uw2*)
  3317. symcode='[[DT]]'
  3318. ;;
  3319. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3320. symcode='[[ABDT]]'
  3321. ;;
  3322. sysv4)
  3323. symcode='[[DFNSTU]]'
  3324. ;;
  3325. esac
  3326. # If we're using GNU nm, then use its standard symbol codes.
  3327. case `$NM -V 2>&1` in
  3328. *GNU* | *'with BFD'*)
  3329. symcode='[[ABCDGIRSTW]]' ;;
  3330. esac
  3331. # Transform an extracted symbol line into a proper C declaration.
  3332. # Some systems (esp. on ia64) link data and code symbols differently,
  3333. # so use this general approach.
  3334. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3335. # Transform an extracted symbol line into symbol name and symbol address
  3336. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3337. 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'"
  3338. # Handle CRLF in mingw tool chain
  3339. opt_cr=
  3340. case $build_os in
  3341. mingw*)
  3342. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3343. ;;
  3344. esac
  3345. # Try without a prefix underscore, then with it.
  3346. for ac_symprfx in "" "_"; do
  3347. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3348. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3349. # Write the raw and C identifiers.
  3350. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3351. # Fake it for dumpbin and say T for any non-static function
  3352. # and D for any global variable.
  3353. # Also find C++ and __fastcall symbols from MSVC++,
  3354. # which start with @ or ?.
  3355. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3356. " {last_section=section; section=\$ 3};"\
  3357. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3358. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3359. " \$ 0!~/External *\|/{next};"\
  3360. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3361. " {if(hide[section]) next};"\
  3362. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3363. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3364. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3365. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3366. " ' prfx=^$ac_symprfx]"
  3367. else
  3368. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3369. fi
  3370. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3371. # Check to see that the pipe works correctly.
  3372. pipe_works=no
  3373. rm -f conftest*
  3374. cat > conftest.$ac_ext <<_LT_EOF
  3375. #ifdef __cplusplus
  3376. extern "C" {
  3377. #endif
  3378. char nm_test_var;
  3379. void nm_test_func(void);
  3380. void nm_test_func(void){}
  3381. #ifdef __cplusplus
  3382. }
  3383. #endif
  3384. int main(){nm_test_var='a';nm_test_func();return(0);}
  3385. _LT_EOF
  3386. if AC_TRY_EVAL(ac_compile); then
  3387. # Now try to grab the symbols.
  3388. nlist=conftest.nm
  3389. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3390. # Try sorting and uniquifying the output.
  3391. if sort "$nlist" | uniq > "$nlist"T; then
  3392. mv -f "$nlist"T "$nlist"
  3393. else
  3394. rm -f "$nlist"T
  3395. fi
  3396. # Make sure that we snagged all the symbols we need.
  3397. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3398. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3399. cat <<_LT_EOF > conftest.$ac_ext
  3400. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3401. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3402. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3403. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3404. # define LT@&t@_DLSYM_CONST
  3405. #elif defined(__osf__)
  3406. /* This system does not cope well with relocations in const data. */
  3407. # define LT@&t@_DLSYM_CONST
  3408. #else
  3409. # define LT@&t@_DLSYM_CONST const
  3410. #endif
  3411. #ifdef __cplusplus
  3412. extern "C" {
  3413. #endif
  3414. _LT_EOF
  3415. # Now generate the symbol file.
  3416. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3417. cat <<_LT_EOF >> conftest.$ac_ext
  3418. /* The mapping between symbol names and symbols. */
  3419. LT@&t@_DLSYM_CONST struct {
  3420. const char *name;
  3421. void *address;
  3422. }
  3423. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3424. {
  3425. { "@PROGRAM@", (void *) 0 },
  3426. _LT_EOF
  3427. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3428. cat <<\_LT_EOF >> conftest.$ac_ext
  3429. {0, (void *) 0}
  3430. };
  3431. /* This works around a problem in FreeBSD linker */
  3432. #ifdef FREEBSD_WORKAROUND
  3433. static const void *lt_preloaded_setup() {
  3434. return lt__PROGRAM__LTX_preloaded_symbols;
  3435. }
  3436. #endif
  3437. #ifdef __cplusplus
  3438. }
  3439. #endif
  3440. _LT_EOF
  3441. # Now try linking the two files.
  3442. mv conftest.$ac_objext conftstm.$ac_objext
  3443. lt_globsym_save_LIBS=$LIBS
  3444. lt_globsym_save_CFLAGS=$CFLAGS
  3445. LIBS="conftstm.$ac_objext"
  3446. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3447. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3448. pipe_works=yes
  3449. fi
  3450. LIBS=$lt_globsym_save_LIBS
  3451. CFLAGS=$lt_globsym_save_CFLAGS
  3452. else
  3453. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3454. fi
  3455. else
  3456. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3457. fi
  3458. else
  3459. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3460. fi
  3461. else
  3462. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3463. cat conftest.$ac_ext >&5
  3464. fi
  3465. rm -rf conftest* conftst*
  3466. # Do not use the global_symbol_pipe unless it works.
  3467. if test "$pipe_works" = yes; then
  3468. break
  3469. else
  3470. lt_cv_sys_global_symbol_pipe=
  3471. fi
  3472. done
  3473. ])
  3474. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3475. lt_cv_sys_global_symbol_to_cdecl=
  3476. fi
  3477. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3478. AC_MSG_RESULT(failed)
  3479. else
  3480. AC_MSG_RESULT(ok)
  3481. fi
  3482. # Response file support.
  3483. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3484. nm_file_list_spec='@'
  3485. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3486. nm_file_list_spec='@'
  3487. fi
  3488. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3489. [Take the output of nm and produce a listing of raw symbols and C names])
  3490. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3491. [Transform the output of nm in a proper C declaration])
  3492. _LT_DECL([global_symbol_to_c_name_address],
  3493. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3494. [Transform the output of nm in a C name address pair])
  3495. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3496. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3497. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3498. _LT_DECL([], [nm_file_list_spec], [1],
  3499. [Specify filename containing input files for $NM])
  3500. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3501. # _LT_COMPILER_PIC([TAGNAME])
  3502. # ---------------------------
  3503. m4_defun([_LT_COMPILER_PIC],
  3504. [m4_require([_LT_TAG_COMPILER])dnl
  3505. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3506. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3507. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3508. m4_if([$1], [CXX], [
  3509. # C++ specific cases for pic, static, wl, etc.
  3510. if test "$GXX" = yes; then
  3511. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3512. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3513. case $host_os in
  3514. aix*)
  3515. # All AIX code is PIC.
  3516. if test "$host_cpu" = ia64; then
  3517. # AIX 5 now supports IA64 processor
  3518. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3519. fi
  3520. ;;
  3521. amigaos*)
  3522. case $host_cpu in
  3523. powerpc)
  3524. # see comment about AmigaOS4 .so support
  3525. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3526. ;;
  3527. m68k)
  3528. # FIXME: we need at least 68020 code to build shared libraries, but
  3529. # adding the `-m68020' flag to GCC prevents building anything better,
  3530. # like `-m68040'.
  3531. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3532. ;;
  3533. esac
  3534. ;;
  3535. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3536. # PIC is the default for these OSes.
  3537. ;;
  3538. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3539. # This hack is so that the source file can tell whether it is being
  3540. # built for inclusion in a dll (and should export symbols for example).
  3541. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3542. # (--disable-auto-import) libraries
  3543. m4_if([$1], [GCJ], [],
  3544. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3545. ;;
  3546. darwin* | rhapsody*)
  3547. # PIC is the default on this platform
  3548. # Common symbols not allowed in MH_DYLIB files
  3549. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3550. ;;
  3551. *djgpp*)
  3552. # DJGPP does not support shared libraries at all
  3553. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3554. ;;
  3555. haiku*)
  3556. # PIC is the default for Haiku.
  3557. # The "-static" flag exists, but is broken.
  3558. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3559. ;;
  3560. interix[[3-9]]*)
  3561. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3562. # Instead, we relocate shared libraries at runtime.
  3563. ;;
  3564. sysv4*MP*)
  3565. if test -d /usr/nec; then
  3566. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3567. fi
  3568. ;;
  3569. hpux*)
  3570. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3571. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3572. # sets the default TLS model and affects inlining.
  3573. case $host_cpu in
  3574. hppa*64*)
  3575. ;;
  3576. *)
  3577. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3578. ;;
  3579. esac
  3580. ;;
  3581. *qnx* | *nto*)
  3582. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3583. # it will coredump.
  3584. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3585. ;;
  3586. *)
  3587. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3588. ;;
  3589. esac
  3590. else
  3591. case $host_os in
  3592. aix[[4-9]]*)
  3593. # All AIX code is PIC.
  3594. if test "$host_cpu" = ia64; then
  3595. # AIX 5 now supports IA64 processor
  3596. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3597. else
  3598. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3599. fi
  3600. ;;
  3601. chorus*)
  3602. case $cc_basename in
  3603. cxch68*)
  3604. # Green Hills C++ Compiler
  3605. # _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"
  3606. ;;
  3607. esac
  3608. ;;
  3609. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3610. # This hack is so that the source file can tell whether it is being
  3611. # built for inclusion in a dll (and should export symbols for example).
  3612. m4_if([$1], [GCJ], [],
  3613. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3614. ;;
  3615. dgux*)
  3616. case $cc_basename in
  3617. ec++*)
  3618. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3619. ;;
  3620. ghcx*)
  3621. # Green Hills C++ Compiler
  3622. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3623. ;;
  3624. *)
  3625. ;;
  3626. esac
  3627. ;;
  3628. freebsd* | dragonfly*)
  3629. # FreeBSD uses GNU C++
  3630. ;;
  3631. hpux9* | hpux10* | hpux11*)
  3632. case $cc_basename in
  3633. CC*)
  3634. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3635. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3636. if test "$host_cpu" != ia64; then
  3637. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3638. fi
  3639. ;;
  3640. aCC*)
  3641. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3642. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3643. case $host_cpu in
  3644. hppa*64*|ia64*)
  3645. # +Z the default
  3646. ;;
  3647. *)
  3648. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3649. ;;
  3650. esac
  3651. ;;
  3652. *)
  3653. ;;
  3654. esac
  3655. ;;
  3656. interix*)
  3657. # This is c89, which is MS Visual C++ (no shared libs)
  3658. # Anyone wants to do a port?
  3659. ;;
  3660. irix5* | irix6* | nonstopux*)
  3661. case $cc_basename in
  3662. CC*)
  3663. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3664. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3665. # CC pic flag -KPIC is the default.
  3666. ;;
  3667. *)
  3668. ;;
  3669. esac
  3670. ;;
  3671. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3672. case $cc_basename in
  3673. KCC*)
  3674. # KAI C++ Compiler
  3675. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3676. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3677. ;;
  3678. ecpc* )
  3679. # old Intel C++ for x86_64 which still supported -KPIC.
  3680. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3681. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3682. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3683. ;;
  3684. icpc* )
  3685. # Intel C++, used to be incompatible with GCC.
  3686. # ICC 10 doesn't accept -KPIC any more.
  3687. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3688. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3689. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3690. ;;
  3691. pgCC* | pgcpp*)
  3692. # Portland Group C++ compiler
  3693. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3694. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3695. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3696. ;;
  3697. cxx*)
  3698. # Compaq C++
  3699. # Make sure the PIC flag is empty. It appears that all Alpha
  3700. # Linux and Compaq Tru64 Unix objects are PIC.
  3701. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3702. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3703. ;;
  3704. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3705. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3706. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3707. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3708. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3709. ;;
  3710. *)
  3711. case `$CC -V 2>&1 | sed 5q` in
  3712. *Sun\ C*)
  3713. # Sun C++ 5.9
  3714. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3715. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3716. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3717. ;;
  3718. esac
  3719. ;;
  3720. esac
  3721. ;;
  3722. lynxos*)
  3723. ;;
  3724. m88k*)
  3725. ;;
  3726. mvs*)
  3727. case $cc_basename in
  3728. cxx*)
  3729. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3730. ;;
  3731. *)
  3732. ;;
  3733. esac
  3734. ;;
  3735. netbsd*)
  3736. ;;
  3737. *qnx* | *nto*)
  3738. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3739. # it will coredump.
  3740. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3741. ;;
  3742. osf3* | osf4* | osf5*)
  3743. case $cc_basename in
  3744. KCC*)
  3745. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3746. ;;
  3747. RCC*)
  3748. # Rational C++ 2.4.1
  3749. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3750. ;;
  3751. cxx*)
  3752. # Digital/Compaq C++
  3753. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3754. # Make sure the PIC flag is empty. It appears that all Alpha
  3755. # Linux and Compaq Tru64 Unix objects are PIC.
  3756. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3757. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3758. ;;
  3759. *)
  3760. ;;
  3761. esac
  3762. ;;
  3763. psos*)
  3764. ;;
  3765. solaris*)
  3766. case $cc_basename in
  3767. CC* | sunCC*)
  3768. # Sun C++ 4.2, 5.x and Centerline C++
  3769. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3770. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3771. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3772. ;;
  3773. gcx*)
  3774. # Green Hills C++ Compiler
  3775. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3776. ;;
  3777. *)
  3778. ;;
  3779. esac
  3780. ;;
  3781. sunos4*)
  3782. case $cc_basename in
  3783. CC*)
  3784. # Sun C++ 4.x
  3785. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3786. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3787. ;;
  3788. lcc*)
  3789. # Lucid
  3790. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3791. ;;
  3792. *)
  3793. ;;
  3794. esac
  3795. ;;
  3796. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3797. case $cc_basename in
  3798. CC*)
  3799. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3800. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3801. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3802. ;;
  3803. esac
  3804. ;;
  3805. tandem*)
  3806. case $cc_basename in
  3807. NCC*)
  3808. # NonStop-UX NCC 3.20
  3809. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3810. ;;
  3811. *)
  3812. ;;
  3813. esac
  3814. ;;
  3815. vxworks*)
  3816. ;;
  3817. *)
  3818. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3819. ;;
  3820. esac
  3821. fi
  3822. ],
  3823. [
  3824. if test "$GCC" = yes; then
  3825. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3826. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3827. case $host_os in
  3828. aix*)
  3829. # All AIX code is PIC.
  3830. if test "$host_cpu" = ia64; then
  3831. # AIX 5 now supports IA64 processor
  3832. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3833. fi
  3834. ;;
  3835. amigaos*)
  3836. case $host_cpu in
  3837. powerpc)
  3838. # see comment about AmigaOS4 .so support
  3839. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3840. ;;
  3841. m68k)
  3842. # FIXME: we need at least 68020 code to build shared libraries, but
  3843. # adding the `-m68020' flag to GCC prevents building anything better,
  3844. # like `-m68040'.
  3845. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3846. ;;
  3847. esac
  3848. ;;
  3849. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3850. # PIC is the default for these OSes.
  3851. ;;
  3852. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3853. # This hack is so that the source file can tell whether it is being
  3854. # built for inclusion in a dll (and should export symbols for example).
  3855. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3856. # (--disable-auto-import) libraries
  3857. m4_if([$1], [GCJ], [],
  3858. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3859. ;;
  3860. darwin* | rhapsody*)
  3861. # PIC is the default on this platform
  3862. # Common symbols not allowed in MH_DYLIB files
  3863. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3864. ;;
  3865. haiku*)
  3866. # PIC is the default for Haiku.
  3867. # The "-static" flag exists, but is broken.
  3868. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3869. ;;
  3870. hpux*)
  3871. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3872. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3873. # sets the default TLS model and affects inlining.
  3874. case $host_cpu in
  3875. hppa*64*)
  3876. # +Z the default
  3877. ;;
  3878. *)
  3879. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3880. ;;
  3881. esac
  3882. ;;
  3883. interix[[3-9]]*)
  3884. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3885. # Instead, we relocate shared libraries at runtime.
  3886. ;;
  3887. msdosdjgpp*)
  3888. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3889. # on systems that don't support them.
  3890. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3891. enable_shared=no
  3892. ;;
  3893. *nto* | *qnx*)
  3894. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3895. # it will coredump.
  3896. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3897. ;;
  3898. sysv4*MP*)
  3899. if test -d /usr/nec; then
  3900. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3901. fi
  3902. ;;
  3903. *)
  3904. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3905. ;;
  3906. esac
  3907. case $cc_basename in
  3908. nvcc*) # Cuda Compiler Driver 2.2
  3909. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3910. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3911. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3912. fi
  3913. ;;
  3914. esac
  3915. else
  3916. # PORTME Check for flag to pass linker flags through the system compiler.
  3917. case $host_os in
  3918. aix*)
  3919. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3920. if test "$host_cpu" = ia64; then
  3921. # AIX 5 now supports IA64 processor
  3922. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3923. else
  3924. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3925. fi
  3926. ;;
  3927. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3928. # This hack is so that the source file can tell whether it is being
  3929. # built for inclusion in a dll (and should export symbols for example).
  3930. m4_if([$1], [GCJ], [],
  3931. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3932. ;;
  3933. hpux9* | hpux10* | hpux11*)
  3934. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3935. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3936. # not for PA HP-UX.
  3937. case $host_cpu in
  3938. hppa*64*|ia64*)
  3939. # +Z the default
  3940. ;;
  3941. *)
  3942. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3943. ;;
  3944. esac
  3945. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3946. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3947. ;;
  3948. irix5* | irix6* | nonstopux*)
  3949. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3950. # PIC (with -KPIC) is the default.
  3951. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3952. ;;
  3953. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3954. case $cc_basename in
  3955. # old Intel for x86_64 which still supported -KPIC.
  3956. ecc*)
  3957. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3958. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3959. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3960. ;;
  3961. # icc used to be incompatible with GCC.
  3962. # ICC 10 doesn't accept -KPIC any more.
  3963. icc* | ifort*)
  3964. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3965. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3966. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3967. ;;
  3968. # Lahey Fortran 8.1.
  3969. lf95*)
  3970. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3971. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3972. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3973. ;;
  3974. nagfor*)
  3975. # NAG Fortran compiler
  3976. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3977. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3978. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3979. ;;
  3980. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3981. # Portland Group compilers (*not* the Pentium gcc compiler,
  3982. # which looks to be a dead project)
  3983. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3984. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3985. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3986. ;;
  3987. ccc*)
  3988. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3989. # All Alpha code is PIC.
  3990. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3991. ;;
  3992. xl* | bgxl* | bgf* | mpixl*)
  3993. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3994. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3995. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3996. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3997. ;;
  3998. *)
  3999. case `$CC -V 2>&1 | sed 5q` in
  4000. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4001. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4002. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4003. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4004. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4005. ;;
  4006. *Sun\ F* | *Sun*Fortran*)
  4007. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4008. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4009. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4010. ;;
  4011. *Sun\ C*)
  4012. # Sun C 5.9
  4013. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4014. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4015. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4016. ;;
  4017. *Intel*\ [[CF]]*Compiler*)
  4018. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4019. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4020. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4021. ;;
  4022. *Portland\ Group*)
  4023. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4024. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4025. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4026. ;;
  4027. esac
  4028. ;;
  4029. esac
  4030. ;;
  4031. newsos6)
  4032. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4033. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4034. ;;
  4035. *nto* | *qnx*)
  4036. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4037. # it will coredump.
  4038. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4039. ;;
  4040. osf3* | osf4* | osf5*)
  4041. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4042. # All OSF/1 code is PIC.
  4043. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4044. ;;
  4045. rdos*)
  4046. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4047. ;;
  4048. solaris*)
  4049. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4050. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4051. case $cc_basename in
  4052. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4053. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4054. *)
  4055. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4056. esac
  4057. ;;
  4058. sunos4*)
  4059. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4060. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4061. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4062. ;;
  4063. sysv4 | sysv4.2uw2* | sysv4.3*)
  4064. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4065. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4066. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4067. ;;
  4068. sysv4*MP*)
  4069. if test -d /usr/nec ;then
  4070. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4071. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4072. fi
  4073. ;;
  4074. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4075. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4076. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4077. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4078. ;;
  4079. unicos*)
  4080. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4081. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4082. ;;
  4083. uts4*)
  4084. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4085. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4086. ;;
  4087. *)
  4088. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4089. ;;
  4090. esac
  4091. fi
  4092. ])
  4093. case $host_os in
  4094. # For platforms which do not support PIC, -DPIC is meaningless:
  4095. *djgpp*)
  4096. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4097. ;;
  4098. *)
  4099. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4100. ;;
  4101. esac
  4102. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4103. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4104. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4105. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4106. #
  4107. # Check to make sure the PIC flag actually works.
  4108. #
  4109. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4110. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4111. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4112. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4113. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4114. "" | " "*) ;;
  4115. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4116. esac],
  4117. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4118. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4119. fi
  4120. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4121. [Additional compiler flags for building library objects])
  4122. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4123. [How to pass a linker flag through the compiler])
  4124. #
  4125. # Check to make sure the static flag actually works.
  4126. #
  4127. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4128. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4129. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4130. $lt_tmp_static_flag,
  4131. [],
  4132. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4133. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4134. [Compiler flag to prevent dynamic linking])
  4135. ])# _LT_COMPILER_PIC
  4136. # _LT_LINKER_SHLIBS([TAGNAME])
  4137. # ----------------------------
  4138. # See if the linker supports building shared libraries.
  4139. m4_defun([_LT_LINKER_SHLIBS],
  4140. [AC_REQUIRE([LT_PATH_LD])dnl
  4141. AC_REQUIRE([LT_PATH_NM])dnl
  4142. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4143. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4144. m4_require([_LT_DECL_EGREP])dnl
  4145. m4_require([_LT_DECL_SED])dnl
  4146. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4147. m4_require([_LT_TAG_COMPILER])dnl
  4148. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4149. m4_if([$1], [CXX], [
  4150. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4151. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4152. case $host_os in
  4153. aix[[4-9]]*)
  4154. # If we're using GNU nm, then we don't want the "-C" option.
  4155. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4156. # Also, AIX nm treats weak defined symbols like other global defined
  4157. # symbols, whereas GNU nm marks them as "W".
  4158. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4159. _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'
  4160. else
  4161. _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'
  4162. fi
  4163. ;;
  4164. pw32*)
  4165. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4166. ;;
  4167. cygwin* | mingw* | cegcc*)
  4168. case $cc_basename in
  4169. cl*)
  4170. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4171. ;;
  4172. *)
  4173. _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'
  4174. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4175. ;;
  4176. esac
  4177. ;;
  4178. *)
  4179. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4180. ;;
  4181. esac
  4182. ], [
  4183. runpath_var=
  4184. _LT_TAGVAR(allow_undefined_flag, $1)=
  4185. _LT_TAGVAR(always_export_symbols, $1)=no
  4186. _LT_TAGVAR(archive_cmds, $1)=
  4187. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4188. _LT_TAGVAR(compiler_needs_object, $1)=no
  4189. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4190. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4191. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4192. _LT_TAGVAR(hardcode_automatic, $1)=no
  4193. _LT_TAGVAR(hardcode_direct, $1)=no
  4194. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4195. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4196. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4197. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4198. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4199. _LT_TAGVAR(inherit_rpath, $1)=no
  4200. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4201. _LT_TAGVAR(module_cmds, $1)=
  4202. _LT_TAGVAR(module_expsym_cmds, $1)=
  4203. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4204. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4205. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4206. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4207. # include_expsyms should be a list of space-separated symbols to be *always*
  4208. # included in the symbol list
  4209. _LT_TAGVAR(include_expsyms, $1)=
  4210. # exclude_expsyms can be an extended regexp of symbols to exclude
  4211. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4212. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4213. # as well as any symbol that contains `d'.
  4214. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4215. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4216. # platforms (ab)use it in PIC code, but their linkers get confused if
  4217. # the symbol is explicitly referenced. Since portable code cannot
  4218. # rely on this symbol name, it's probably fine to never include it in
  4219. # preloaded symbol tables.
  4220. # Exclude shared library initialization/finalization symbols.
  4221. dnl Note also adjust exclude_expsyms for C++ above.
  4222. extract_expsyms_cmds=
  4223. case $host_os in
  4224. cygwin* | mingw* | pw32* | cegcc*)
  4225. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4226. # When not using gcc, we currently assume that we are using
  4227. # Microsoft Visual C++.
  4228. if test "$GCC" != yes; then
  4229. with_gnu_ld=no
  4230. fi
  4231. ;;
  4232. interix*)
  4233. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4234. with_gnu_ld=yes
  4235. ;;
  4236. openbsd*)
  4237. with_gnu_ld=no
  4238. ;;
  4239. esac
  4240. _LT_TAGVAR(ld_shlibs, $1)=yes
  4241. # On some targets, GNU ld is compatible enough with the native linker
  4242. # that we're better off using the native interface for both.
  4243. lt_use_gnu_ld_interface=no
  4244. if test "$with_gnu_ld" = yes; then
  4245. case $host_os in
  4246. aix*)
  4247. # The AIX port of GNU ld has always aspired to compatibility
  4248. # with the native linker. However, as the warning in the GNU ld
  4249. # block says, versions before 2.19.5* couldn't really create working
  4250. # shared libraries, regardless of the interface used.
  4251. case `$LD -v 2>&1` in
  4252. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4253. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4254. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4255. *)
  4256. lt_use_gnu_ld_interface=yes
  4257. ;;
  4258. esac
  4259. ;;
  4260. *)
  4261. lt_use_gnu_ld_interface=yes
  4262. ;;
  4263. esac
  4264. fi
  4265. if test "$lt_use_gnu_ld_interface" = yes; then
  4266. # If archive_cmds runs LD, not CC, wlarc should be empty
  4267. wlarc='${wl}'
  4268. # Set some defaults for GNU ld with shared library support. These
  4269. # are reset later if shared libraries are not supported. Putting them
  4270. # here allows them to be overridden if necessary.
  4271. runpath_var=LD_RUN_PATH
  4272. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4273. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4274. # ancient GNU ld didn't support --whole-archive et. al.
  4275. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4276. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4277. else
  4278. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4279. fi
  4280. supports_anon_versioning=no
  4281. case `$LD -v 2>&1` in
  4282. *GNU\ gold*) supports_anon_versioning=yes ;;
  4283. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4284. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4285. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4286. *\ 2.11.*) ;; # other 2.11 versions
  4287. *) supports_anon_versioning=yes ;;
  4288. esac
  4289. # See if GNU ld supports shared libraries.
  4290. case $host_os in
  4291. aix[[3-9]]*)
  4292. # On AIX/PPC, the GNU linker is very broken
  4293. if test "$host_cpu" != ia64; then
  4294. _LT_TAGVAR(ld_shlibs, $1)=no
  4295. cat <<_LT_EOF 1>&2
  4296. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4297. *** to be unable to reliably create shared libraries on AIX.
  4298. *** Therefore, libtool is disabling shared libraries support. If you
  4299. *** really care for shared libraries, you may want to install binutils
  4300. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4301. *** You will then need to restart the configuration process.
  4302. _LT_EOF
  4303. fi
  4304. ;;
  4305. amigaos*)
  4306. case $host_cpu in
  4307. powerpc)
  4308. # see comment about AmigaOS4 .so support
  4309. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4310. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4311. ;;
  4312. m68k)
  4313. _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)'
  4314. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4315. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4316. ;;
  4317. esac
  4318. ;;
  4319. beos*)
  4320. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4321. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4322. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4323. # support --undefined. This deserves some investigation. FIXME
  4324. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4325. else
  4326. _LT_TAGVAR(ld_shlibs, $1)=no
  4327. fi
  4328. ;;
  4329. cygwin* | mingw* | pw32* | cegcc*)
  4330. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4331. # as there is no search path for DLLs.
  4332. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4333. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4334. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4335. _LT_TAGVAR(always_export_symbols, $1)=no
  4336. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4337. _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'
  4338. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4339. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4340. _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'
  4341. # If the export-symbols file already is a .def file (1st line
  4342. # is EXPORTS), use it as is; otherwise, prepend...
  4343. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4344. cp $export_symbols $output_objdir/$soname.def;
  4345. else
  4346. echo EXPORTS > $output_objdir/$soname.def;
  4347. cat $export_symbols >> $output_objdir/$soname.def;
  4348. fi~
  4349. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4350. else
  4351. _LT_TAGVAR(ld_shlibs, $1)=no
  4352. fi
  4353. ;;
  4354. haiku*)
  4355. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4356. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4357. ;;
  4358. interix[[3-9]]*)
  4359. _LT_TAGVAR(hardcode_direct, $1)=no
  4360. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4361. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4362. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4363. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4364. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4365. # default) and relocated if they conflict, which is a slow very memory
  4366. # consuming and fragmenting process. To avoid this, we pick a random,
  4367. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4368. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4369. _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'
  4370. _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'
  4371. ;;
  4372. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4373. tmp_diet=no
  4374. if test "$host_os" = linux-dietlibc; then
  4375. case $cc_basename in
  4376. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4377. esac
  4378. fi
  4379. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4380. && test "$tmp_diet" = no
  4381. then
  4382. tmp_addflag=' $pic_flag'
  4383. tmp_sharedflag='-shared'
  4384. case $cc_basename,$host_cpu in
  4385. pgcc*) # Portland Group C compiler
  4386. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4387. tmp_addflag=' $pic_flag'
  4388. ;;
  4389. pgf77* | pgf90* | pgf95* | pgfortran*)
  4390. # Portland Group f77 and f90 compilers
  4391. _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'
  4392. tmp_addflag=' $pic_flag -Mnomain' ;;
  4393. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4394. tmp_addflag=' -i_dynamic' ;;
  4395. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4396. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4397. ifc* | ifort*) # Intel Fortran compiler
  4398. tmp_addflag=' -nofor_main' ;;
  4399. lf95*) # Lahey Fortran 8.1
  4400. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4401. tmp_sharedflag='--shared' ;;
  4402. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4403. tmp_sharedflag='-qmkshrobj'
  4404. tmp_addflag= ;;
  4405. nvcc*) # Cuda Compiler Driver 2.2
  4406. _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'
  4407. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4408. ;;
  4409. esac
  4410. case `$CC -V 2>&1 | sed 5q` in
  4411. *Sun\ C*) # Sun C 5.9
  4412. _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'
  4413. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4414. tmp_sharedflag='-G' ;;
  4415. *Sun\ F*) # Sun Fortran 8.3
  4416. tmp_sharedflag='-G' ;;
  4417. esac
  4418. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4419. if test "x$supports_anon_versioning" = xyes; then
  4420. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4421. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4422. echo "local: *; };" >> $output_objdir/$libname.ver~
  4423. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4424. fi
  4425. case $cc_basename in
  4426. xlf* | bgf* | bgxlf* | mpixlf*)
  4427. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4428. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4429. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4430. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4431. if test "x$supports_anon_versioning" = xyes; then
  4432. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4433. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4434. echo "local: *; };" >> $output_objdir/$libname.ver~
  4435. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4436. fi
  4437. ;;
  4438. esac
  4439. else
  4440. _LT_TAGVAR(ld_shlibs, $1)=no
  4441. fi
  4442. ;;
  4443. netbsd*)
  4444. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4445. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4446. wlarc=
  4447. else
  4448. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4449. _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'
  4450. fi
  4451. ;;
  4452. solaris*)
  4453. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4454. _LT_TAGVAR(ld_shlibs, $1)=no
  4455. cat <<_LT_EOF 1>&2
  4456. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4457. *** create shared libraries on Solaris systems. Therefore, libtool
  4458. *** is disabling shared libraries support. We urge you to upgrade GNU
  4459. *** binutils to release 2.9.1 or newer. Another option is to modify
  4460. *** your PATH or compiler configuration so that the native linker is
  4461. *** used, and then restart.
  4462. _LT_EOF
  4463. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4464. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4465. _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'
  4466. else
  4467. _LT_TAGVAR(ld_shlibs, $1)=no
  4468. fi
  4469. ;;
  4470. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4471. case `$LD -v 2>&1` in
  4472. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4473. _LT_TAGVAR(ld_shlibs, $1)=no
  4474. cat <<_LT_EOF 1>&2
  4475. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4476. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4477. *** is disabling shared libraries support. We urge you to upgrade GNU
  4478. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4479. *** your PATH or compiler configuration so that the native linker is
  4480. *** used, and then restart.
  4481. _LT_EOF
  4482. ;;
  4483. *)
  4484. # For security reasons, it is highly recommended that you always
  4485. # use absolute paths for naming shared libraries, and exclude the
  4486. # DT_RUNPATH tag from executables and libraries. But doing so
  4487. # requires that you compile everything twice, which is a pain.
  4488. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4489. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4490. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4491. _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'
  4492. else
  4493. _LT_TAGVAR(ld_shlibs, $1)=no
  4494. fi
  4495. ;;
  4496. esac
  4497. ;;
  4498. sunos4*)
  4499. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4500. wlarc=
  4501. _LT_TAGVAR(hardcode_direct, $1)=yes
  4502. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4503. ;;
  4504. *)
  4505. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4506. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4507. _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'
  4508. else
  4509. _LT_TAGVAR(ld_shlibs, $1)=no
  4510. fi
  4511. ;;
  4512. esac
  4513. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4514. runpath_var=
  4515. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4516. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4517. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4518. fi
  4519. else
  4520. # PORTME fill in a description of your system's linker (not GNU ld)
  4521. case $host_os in
  4522. aix3*)
  4523. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4524. _LT_TAGVAR(always_export_symbols, $1)=yes
  4525. _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'
  4526. # Note: this linker hardcodes the directories in LIBPATH if there
  4527. # are no directories specified by -L.
  4528. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4529. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4530. # Neither direct hardcoding nor static linking is supported with a
  4531. # broken collect2.
  4532. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4533. fi
  4534. ;;
  4535. aix[[4-9]]*)
  4536. if test "$host_cpu" = ia64; then
  4537. # On IA64, the linker does run time linking by default, so we don't
  4538. # have to do anything special.
  4539. aix_use_runtimelinking=no
  4540. exp_sym_flag='-Bexport'
  4541. no_entry_flag=""
  4542. else
  4543. # If we're using GNU nm, then we don't want the "-C" option.
  4544. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4545. # Also, AIX nm treats weak defined symbols like other global
  4546. # defined symbols, whereas GNU nm marks them as "W".
  4547. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4548. _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'
  4549. else
  4550. _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'
  4551. fi
  4552. aix_use_runtimelinking=no
  4553. # Test if we are trying to use run time linking or normal
  4554. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4555. # need to do runtime linking.
  4556. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4557. for ld_flag in $LDFLAGS; do
  4558. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4559. aix_use_runtimelinking=yes
  4560. break
  4561. fi
  4562. done
  4563. ;;
  4564. esac
  4565. exp_sym_flag='-bexport'
  4566. no_entry_flag='-bnoentry'
  4567. fi
  4568. # When large executables or shared objects are built, AIX ld can
  4569. # have problems creating the table of contents. If linking a library
  4570. # or program results in "error TOC overflow" add -mminimal-toc to
  4571. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4572. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4573. _LT_TAGVAR(archive_cmds, $1)=''
  4574. _LT_TAGVAR(hardcode_direct, $1)=yes
  4575. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4576. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4577. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4578. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4579. if test "$GCC" = yes; then
  4580. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4581. # We only want to do this on AIX 4.2 and lower, the check
  4582. # below for broken collect2 doesn't work under 4.3+
  4583. collect2name=`${CC} -print-prog-name=collect2`
  4584. if test -f "$collect2name" &&
  4585. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4586. then
  4587. # We have reworked collect2
  4588. :
  4589. else
  4590. # We have old collect2
  4591. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4592. # It fails to find uninstalled libraries when the uninstalled
  4593. # path is not listed in the libpath. Setting hardcode_minus_L
  4594. # to unsupported forces relinking
  4595. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4596. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4597. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4598. fi
  4599. ;;
  4600. esac
  4601. shared_flag='-shared'
  4602. if test "$aix_use_runtimelinking" = yes; then
  4603. shared_flag="$shared_flag "'${wl}-G'
  4604. fi
  4605. else
  4606. # not using gcc
  4607. if test "$host_cpu" = ia64; then
  4608. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4609. # chokes on -Wl,-G. The following line is correct:
  4610. shared_flag='-G'
  4611. else
  4612. if test "$aix_use_runtimelinking" = yes; then
  4613. shared_flag='${wl}-G'
  4614. else
  4615. shared_flag='${wl}-bM:SRE'
  4616. fi
  4617. fi
  4618. fi
  4619. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4620. # It seems that -bexpall does not export symbols beginning with
  4621. # underscore (_), so it is better to generate a list of symbols to export.
  4622. _LT_TAGVAR(always_export_symbols, $1)=yes
  4623. if test "$aix_use_runtimelinking" = yes; then
  4624. # Warning - without using the other runtime loading flags (-brtl),
  4625. # -berok will link without error, but may produce a broken library.
  4626. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4627. # Determine the default libpath from the value encoded in an
  4628. # empty executable.
  4629. _LT_SYS_MODULE_PATH_AIX([$1])
  4630. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4631. _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"
  4632. else
  4633. if test "$host_cpu" = ia64; then
  4634. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4635. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4636. _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"
  4637. else
  4638. # Determine the default libpath from the value encoded in an
  4639. # empty executable.
  4640. _LT_SYS_MODULE_PATH_AIX([$1])
  4641. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4642. # Warning - without using the other run time loading flags,
  4643. # -berok will link without error, but may produce a broken library.
  4644. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4645. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4646. if test "$with_gnu_ld" = yes; then
  4647. # We only use this code for GNU lds that support --whole-archive.
  4648. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4649. else
  4650. # Exported symbols can be pulled into shared objects from archives
  4651. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4652. fi
  4653. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4654. # This is similar to how AIX traditionally builds its shared libraries.
  4655. _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'
  4656. fi
  4657. fi
  4658. ;;
  4659. amigaos*)
  4660. case $host_cpu in
  4661. powerpc)
  4662. # see comment about AmigaOS4 .so support
  4663. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4664. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4665. ;;
  4666. m68k)
  4667. _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)'
  4668. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4669. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4670. ;;
  4671. esac
  4672. ;;
  4673. bsdi[[45]]*)
  4674. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4675. ;;
  4676. cygwin* | mingw* | pw32* | cegcc*)
  4677. # When not using gcc, we currently assume that we are using
  4678. # Microsoft Visual C++.
  4679. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4680. # no search path for DLLs.
  4681. case $cc_basename in
  4682. cl*)
  4683. # Native MSVC
  4684. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4685. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4686. _LT_TAGVAR(always_export_symbols, $1)=yes
  4687. _LT_TAGVAR(file_list_spec, $1)='@'
  4688. # Tell ltmain to make .lib files, not .a files.
  4689. libext=lib
  4690. # Tell ltmain to make .dll files, not .so files.
  4691. shrext_cmds=".dll"
  4692. # FIXME: Setting linknames here is a bad hack.
  4693. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4694. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4695. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4696. else
  4697. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4698. fi~
  4699. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4700. linknames='
  4701. # The linker will not automatically build a static lib if we build a DLL.
  4702. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4703. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4704. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4705. _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'
  4706. # Don't use ranlib
  4707. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4708. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4709. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4710. case $lt_outputfile in
  4711. *.exe|*.EXE) ;;
  4712. *)
  4713. lt_outputfile="$lt_outputfile.exe"
  4714. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4715. ;;
  4716. esac~
  4717. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4718. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4719. $RM "$lt_outputfile.manifest";
  4720. fi'
  4721. ;;
  4722. *)
  4723. # Assume MSVC wrapper
  4724. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4725. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4726. # Tell ltmain to make .lib files, not .a files.
  4727. libext=lib
  4728. # Tell ltmain to make .dll files, not .so files.
  4729. shrext_cmds=".dll"
  4730. # FIXME: Setting linknames here is a bad hack.
  4731. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4732. # The linker will automatically build a .lib file if we build a DLL.
  4733. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4734. # FIXME: Should let the user specify the lib program.
  4735. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4736. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4737. ;;
  4738. esac
  4739. ;;
  4740. darwin* | rhapsody*)
  4741. _LT_DARWIN_LINKER_FEATURES($1)
  4742. ;;
  4743. dgux*)
  4744. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4745. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4746. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4747. ;;
  4748. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4749. # support. Future versions do this automatically, but an explicit c++rt0.o
  4750. # does not break anything, and helps significantly (at the cost of a little
  4751. # extra space).
  4752. freebsd2.2*)
  4753. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4754. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4755. _LT_TAGVAR(hardcode_direct, $1)=yes
  4756. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4757. ;;
  4758. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4759. freebsd2.*)
  4760. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4761. _LT_TAGVAR(hardcode_direct, $1)=yes
  4762. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4763. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4764. ;;
  4765. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4766. freebsd* | dragonfly*)
  4767. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4768. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4769. _LT_TAGVAR(hardcode_direct, $1)=yes
  4770. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4771. ;;
  4772. hpux9*)
  4773. if test "$GCC" = yes; then
  4774. _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'
  4775. else
  4776. _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'
  4777. fi
  4778. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4779. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4780. _LT_TAGVAR(hardcode_direct, $1)=yes
  4781. # hardcode_minus_L: Not really in the search PATH,
  4782. # but as the default location of the library.
  4783. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4784. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4785. ;;
  4786. hpux10*)
  4787. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4788. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4789. else
  4790. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4791. fi
  4792. if test "$with_gnu_ld" = no; then
  4793. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4794. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4795. _LT_TAGVAR(hardcode_direct, $1)=yes
  4796. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4797. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4798. # hardcode_minus_L: Not really in the search PATH,
  4799. # but as the default location of the library.
  4800. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4801. fi
  4802. ;;
  4803. hpux11*)
  4804. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4805. case $host_cpu in
  4806. hppa*64*)
  4807. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4808. ;;
  4809. ia64*)
  4810. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4811. ;;
  4812. *)
  4813. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4814. ;;
  4815. esac
  4816. else
  4817. case $host_cpu in
  4818. hppa*64*)
  4819. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4820. ;;
  4821. ia64*)
  4822. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4823. ;;
  4824. *)
  4825. m4_if($1, [], [
  4826. # Older versions of the 11.00 compiler do not understand -b yet
  4827. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4828. _LT_LINKER_OPTION([if $CC understands -b],
  4829. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4830. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4831. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4832. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4833. ;;
  4834. esac
  4835. fi
  4836. if test "$with_gnu_ld" = no; then
  4837. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4838. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4839. case $host_cpu in
  4840. hppa*64*|ia64*)
  4841. _LT_TAGVAR(hardcode_direct, $1)=no
  4842. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4843. ;;
  4844. *)
  4845. _LT_TAGVAR(hardcode_direct, $1)=yes
  4846. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4847. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4848. # hardcode_minus_L: Not really in the search PATH,
  4849. # but as the default location of the library.
  4850. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4851. ;;
  4852. esac
  4853. fi
  4854. ;;
  4855. irix5* | irix6* | nonstopux*)
  4856. if test "$GCC" = yes; then
  4857. _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'
  4858. # Try to use the -exported_symbol ld option, if it does not
  4859. # work, assume that -exports_file does not work either and
  4860. # implicitly export all symbols.
  4861. # This should be the same for all languages, so no per-tag cache variable.
  4862. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4863. [lt_cv_irix_exported_symbol],
  4864. [save_LDFLAGS="$LDFLAGS"
  4865. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4866. AC_LINK_IFELSE(
  4867. [AC_LANG_SOURCE(
  4868. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4869. [C++], [[int foo (void) { return 0; }]],
  4870. [Fortran 77], [[
  4871. subroutine foo
  4872. end]],
  4873. [Fortran], [[
  4874. subroutine foo
  4875. end]])])],
  4876. [lt_cv_irix_exported_symbol=yes],
  4877. [lt_cv_irix_exported_symbol=no])
  4878. LDFLAGS="$save_LDFLAGS"])
  4879. if test "$lt_cv_irix_exported_symbol" = yes; then
  4880. _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'
  4881. fi
  4882. else
  4883. _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'
  4884. _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'
  4885. fi
  4886. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4887. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4888. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4889. _LT_TAGVAR(inherit_rpath, $1)=yes
  4890. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4891. ;;
  4892. netbsd*)
  4893. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4894. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4895. else
  4896. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4897. fi
  4898. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4899. _LT_TAGVAR(hardcode_direct, $1)=yes
  4900. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4901. ;;
  4902. newsos6)
  4903. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4904. _LT_TAGVAR(hardcode_direct, $1)=yes
  4905. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4906. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4907. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4908. ;;
  4909. *nto* | *qnx*)
  4910. ;;
  4911. openbsd*)
  4912. if test -f /usr/libexec/ld.so; then
  4913. _LT_TAGVAR(hardcode_direct, $1)=yes
  4914. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4915. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4916. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4917. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4918. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4919. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4920. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4921. else
  4922. case $host_os in
  4923. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4924. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4925. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4926. ;;
  4927. *)
  4928. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4929. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4930. ;;
  4931. esac
  4932. fi
  4933. else
  4934. _LT_TAGVAR(ld_shlibs, $1)=no
  4935. fi
  4936. ;;
  4937. os2*)
  4938. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4939. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4940. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4941. _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'
  4942. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4943. ;;
  4944. osf3*)
  4945. if test "$GCC" = yes; then
  4946. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4947. _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'
  4948. else
  4949. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4950. _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'
  4951. fi
  4952. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4953. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4954. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4955. ;;
  4956. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4957. if test "$GCC" = yes; then
  4958. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4959. _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'
  4960. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4961. else
  4962. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4963. _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'
  4964. _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~
  4965. $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'
  4966. # Both c and cxx compiler support -rpath directly
  4967. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4968. fi
  4969. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4970. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4971. ;;
  4972. solaris*)
  4973. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4974. if test "$GCC" = yes; then
  4975. wlarc='${wl}'
  4976. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4977. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4978. $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'
  4979. else
  4980. case `$CC -V 2>&1` in
  4981. *"Compilers 5.0"*)
  4982. wlarc=''
  4983. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4984. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4985. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4986. ;;
  4987. *)
  4988. wlarc='${wl}'
  4989. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4990. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4991. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4992. ;;
  4993. esac
  4994. fi
  4995. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4996. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4997. case $host_os in
  4998. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4999. *)
  5000. # The compiler driver will combine and reorder linker options,
  5001. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5002. # but is careful enough not to reorder.
  5003. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5004. if test "$GCC" = yes; then
  5005. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5006. else
  5007. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5008. fi
  5009. ;;
  5010. esac
  5011. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5012. ;;
  5013. sunos4*)
  5014. if test "x$host_vendor" = xsequent; then
  5015. # Use $CC to link under sequent, because it throws in some extra .o
  5016. # files that make .init and .fini sections work.
  5017. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5018. else
  5019. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5020. fi
  5021. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5022. _LT_TAGVAR(hardcode_direct, $1)=yes
  5023. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5024. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5025. ;;
  5026. sysv4)
  5027. case $host_vendor in
  5028. sni)
  5029. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5030. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5031. ;;
  5032. siemens)
  5033. ## LD is ld it makes a PLAMLIB
  5034. ## CC just makes a GrossModule.
  5035. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5036. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5037. _LT_TAGVAR(hardcode_direct, $1)=no
  5038. ;;
  5039. motorola)
  5040. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5041. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5042. ;;
  5043. esac
  5044. runpath_var='LD_RUN_PATH'
  5045. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5046. ;;
  5047. sysv4.3*)
  5048. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5049. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5050. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5051. ;;
  5052. sysv4*MP*)
  5053. if test -d /usr/nec; then
  5054. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5055. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5056. runpath_var=LD_RUN_PATH
  5057. hardcode_runpath_var=yes
  5058. _LT_TAGVAR(ld_shlibs, $1)=yes
  5059. fi
  5060. ;;
  5061. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5062. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5063. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5064. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5065. runpath_var='LD_RUN_PATH'
  5066. if test "$GCC" = yes; then
  5067. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5068. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5069. else
  5070. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5071. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5072. fi
  5073. ;;
  5074. sysv5* | sco3.2v5* | sco5v6*)
  5075. # Note: We can NOT use -z defs as we might desire, because we do not
  5076. # link with -lc, and that would cause any symbols used from libc to
  5077. # always be unresolved, which means just about no library would
  5078. # ever link correctly. If we're not using GNU ld we use -z text
  5079. # though, which does catch some bad symbols but isn't as heavy-handed
  5080. # as -z defs.
  5081. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5082. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5083. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5084. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5085. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5086. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5087. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5088. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5089. runpath_var='LD_RUN_PATH'
  5090. if test "$GCC" = yes; then
  5091. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5092. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5093. else
  5094. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5095. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5096. fi
  5097. ;;
  5098. uts4*)
  5099. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5100. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5101. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5102. ;;
  5103. *)
  5104. _LT_TAGVAR(ld_shlibs, $1)=no
  5105. ;;
  5106. esac
  5107. if test x$host_vendor = xsni; then
  5108. case $host in
  5109. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5110. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5111. ;;
  5112. esac
  5113. fi
  5114. fi
  5115. ])
  5116. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5117. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5118. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5119. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5120. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5121. _LT_DECL([], [extract_expsyms_cmds], [2],
  5122. [The commands to extract the exported symbol list from a shared archive])
  5123. #
  5124. # Do we need to explicitly link libc?
  5125. #
  5126. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5127. x|xyes)
  5128. # Assume -lc should be added
  5129. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5130. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5131. case $_LT_TAGVAR(archive_cmds, $1) in
  5132. *'~'*)
  5133. # FIXME: we may have to deal with multi-command sequences.
  5134. ;;
  5135. '$CC '*)
  5136. # Test whether the compiler implicitly links with -lc since on some
  5137. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5138. # to ld, don't add -lc before -lgcc.
  5139. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5140. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5141. [$RM conftest*
  5142. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5143. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5144. soname=conftest
  5145. lib=conftest
  5146. libobjs=conftest.$ac_objext
  5147. deplibs=
  5148. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5149. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5150. compiler_flags=-v
  5151. linker_flags=-v
  5152. verstring=
  5153. output_objdir=.
  5154. libname=conftest
  5155. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5156. _LT_TAGVAR(allow_undefined_flag, $1)=
  5157. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5158. then
  5159. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5160. else
  5161. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5162. fi
  5163. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5164. else
  5165. cat conftest.err 1>&5
  5166. fi
  5167. $RM conftest*
  5168. ])
  5169. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5170. ;;
  5171. esac
  5172. fi
  5173. ;;
  5174. esac
  5175. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5176. [Whether or not to add -lc for building shared libraries])
  5177. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5178. [enable_shared_with_static_runtimes], [0],
  5179. [Whether or not to disallow shared libs when runtime libs are static])
  5180. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5181. [Compiler flag to allow reflexive dlopens])
  5182. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5183. [Compiler flag to generate shared objects directly from archives])
  5184. _LT_TAGDECL([], [compiler_needs_object], [1],
  5185. [Whether the compiler copes with passing no objects directly])
  5186. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5187. [Create an old-style archive from a shared archive])
  5188. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5189. [Create a temporary old-style archive to link instead of a shared archive])
  5190. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5191. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5192. _LT_TAGDECL([], [module_cmds], [2],
  5193. [Commands used to build a loadable module if different from building
  5194. a shared archive.])
  5195. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5196. _LT_TAGDECL([], [with_gnu_ld], [1],
  5197. [Whether we are building with GNU ld or not])
  5198. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5199. [Flag that allows shared libraries with undefined symbols to be built])
  5200. _LT_TAGDECL([], [no_undefined_flag], [1],
  5201. [Flag that enforces no undefined symbols])
  5202. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5203. [Flag to hardcode $libdir into a binary during linking.
  5204. This must work even if $libdir does not exist])
  5205. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5206. [Whether we need a single "-rpath" flag with a separated argument])
  5207. _LT_TAGDECL([], [hardcode_direct], [0],
  5208. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5209. DIR into the resulting binary])
  5210. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5211. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5212. DIR into the resulting binary and the resulting library dependency is
  5213. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5214. library is relocated])
  5215. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5216. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5217. into the resulting binary])
  5218. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5219. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5220. into the resulting binary])
  5221. _LT_TAGDECL([], [hardcode_automatic], [0],
  5222. [Set to "yes" if building a shared library automatically hardcodes DIR
  5223. into the library and all subsequent libraries and executables linked
  5224. against it])
  5225. _LT_TAGDECL([], [inherit_rpath], [0],
  5226. [Set to yes if linker adds runtime paths of dependent libraries
  5227. to runtime path list])
  5228. _LT_TAGDECL([], [link_all_deplibs], [0],
  5229. [Whether libtool must link a program against all its dependency libraries])
  5230. _LT_TAGDECL([], [always_export_symbols], [0],
  5231. [Set to "yes" if exported symbols are required])
  5232. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5233. [The commands to list exported symbols])
  5234. _LT_TAGDECL([], [exclude_expsyms], [1],
  5235. [Symbols that should not be listed in the preloaded symbols])
  5236. _LT_TAGDECL([], [include_expsyms], [1],
  5237. [Symbols that must always be exported])
  5238. _LT_TAGDECL([], [prelink_cmds], [2],
  5239. [Commands necessary for linking programs (against libraries) with templates])
  5240. _LT_TAGDECL([], [postlink_cmds], [2],
  5241. [Commands necessary for finishing linking programs])
  5242. _LT_TAGDECL([], [file_list_spec], [1],
  5243. [Specify filename containing input files])
  5244. dnl FIXME: Not yet implemented
  5245. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5246. dnl [Compiler flag to generate thread safe objects])
  5247. ])# _LT_LINKER_SHLIBS
  5248. # _LT_LANG_C_CONFIG([TAG])
  5249. # ------------------------
  5250. # Ensure that the configuration variables for a C compiler are suitably
  5251. # defined. These variables are subsequently used by _LT_CONFIG to write
  5252. # the compiler configuration to `libtool'.
  5253. m4_defun([_LT_LANG_C_CONFIG],
  5254. [m4_require([_LT_DECL_EGREP])dnl
  5255. lt_save_CC="$CC"
  5256. AC_LANG_PUSH(C)
  5257. # Source file extension for C test sources.
  5258. ac_ext=c
  5259. # Object file extension for compiled C test sources.
  5260. objext=o
  5261. _LT_TAGVAR(objext, $1)=$objext
  5262. # Code to be used in simple compile tests
  5263. lt_simple_compile_test_code="int some_variable = 0;"
  5264. # Code to be used in simple link tests
  5265. lt_simple_link_test_code='int main(){return(0);}'
  5266. _LT_TAG_COMPILER
  5267. # Save the default compiler, since it gets overwritten when the other
  5268. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5269. compiler_DEFAULT=$CC
  5270. # save warnings/boilerplate of simple test code
  5271. _LT_COMPILER_BOILERPLATE
  5272. _LT_LINKER_BOILERPLATE
  5273. if test -n "$compiler"; then
  5274. _LT_COMPILER_NO_RTTI($1)
  5275. _LT_COMPILER_PIC($1)
  5276. _LT_COMPILER_C_O($1)
  5277. _LT_COMPILER_FILE_LOCKS($1)
  5278. _LT_LINKER_SHLIBS($1)
  5279. _LT_SYS_DYNAMIC_LINKER($1)
  5280. _LT_LINKER_HARDCODE_LIBPATH($1)
  5281. LT_SYS_DLOPEN_SELF
  5282. _LT_CMD_STRIPLIB
  5283. # Report which library types will actually be built
  5284. AC_MSG_CHECKING([if libtool supports shared libraries])
  5285. AC_MSG_RESULT([$can_build_shared])
  5286. AC_MSG_CHECKING([whether to build shared libraries])
  5287. test "$can_build_shared" = "no" && enable_shared=no
  5288. # On AIX, shared libraries and static libraries use the same namespace, and
  5289. # are all built from PIC.
  5290. case $host_os in
  5291. aix3*)
  5292. test "$enable_shared" = yes && enable_static=no
  5293. if test -n "$RANLIB"; then
  5294. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5295. postinstall_cmds='$RANLIB $lib'
  5296. fi
  5297. ;;
  5298. aix[[4-9]]*)
  5299. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5300. test "$enable_shared" = yes && enable_static=no
  5301. fi
  5302. ;;
  5303. esac
  5304. AC_MSG_RESULT([$enable_shared])
  5305. AC_MSG_CHECKING([whether to build static libraries])
  5306. # Make sure either enable_shared or enable_static is yes.
  5307. test "$enable_shared" = yes || enable_static=yes
  5308. AC_MSG_RESULT([$enable_static])
  5309. _LT_CONFIG($1)
  5310. fi
  5311. AC_LANG_POP
  5312. CC="$lt_save_CC"
  5313. ])# _LT_LANG_C_CONFIG
  5314. # _LT_LANG_CXX_CONFIG([TAG])
  5315. # --------------------------
  5316. # Ensure that the configuration variables for a C++ compiler are suitably
  5317. # defined. These variables are subsequently used by _LT_CONFIG to write
  5318. # the compiler configuration to `libtool'.
  5319. m4_defun([_LT_LANG_CXX_CONFIG],
  5320. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5321. m4_require([_LT_DECL_EGREP])dnl
  5322. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5323. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5324. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5325. (test "X$CXX" != "Xg++"))) ; then
  5326. AC_PROG_CXXCPP
  5327. else
  5328. _lt_caught_CXX_error=yes
  5329. fi
  5330. AC_LANG_PUSH(C++)
  5331. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5332. _LT_TAGVAR(allow_undefined_flag, $1)=
  5333. _LT_TAGVAR(always_export_symbols, $1)=no
  5334. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5335. _LT_TAGVAR(compiler_needs_object, $1)=no
  5336. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5337. _LT_TAGVAR(hardcode_direct, $1)=no
  5338. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5339. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5340. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5341. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5342. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5343. _LT_TAGVAR(hardcode_automatic, $1)=no
  5344. _LT_TAGVAR(inherit_rpath, $1)=no
  5345. _LT_TAGVAR(module_cmds, $1)=
  5346. _LT_TAGVAR(module_expsym_cmds, $1)=
  5347. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5348. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5349. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5350. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5351. _LT_TAGVAR(no_undefined_flag, $1)=
  5352. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5353. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5354. # Source file extension for C++ test sources.
  5355. ac_ext=cpp
  5356. # Object file extension for compiled C++ test sources.
  5357. objext=o
  5358. _LT_TAGVAR(objext, $1)=$objext
  5359. # No sense in running all these tests if we already determined that
  5360. # the CXX compiler isn't working. Some variables (like enable_shared)
  5361. # are currently assumed to apply to all compilers on this platform,
  5362. # and will be corrupted by setting them based on a non-working compiler.
  5363. if test "$_lt_caught_CXX_error" != yes; then
  5364. # Code to be used in simple compile tests
  5365. lt_simple_compile_test_code="int some_variable = 0;"
  5366. # Code to be used in simple link tests
  5367. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5368. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5369. _LT_TAG_COMPILER
  5370. # save warnings/boilerplate of simple test code
  5371. _LT_COMPILER_BOILERPLATE
  5372. _LT_LINKER_BOILERPLATE
  5373. # Allow CC to be a program name with arguments.
  5374. lt_save_CC=$CC
  5375. lt_save_CFLAGS=$CFLAGS
  5376. lt_save_LD=$LD
  5377. lt_save_GCC=$GCC
  5378. GCC=$GXX
  5379. lt_save_with_gnu_ld=$with_gnu_ld
  5380. lt_save_path_LD=$lt_cv_path_LD
  5381. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5382. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5383. else
  5384. $as_unset lt_cv_prog_gnu_ld
  5385. fi
  5386. if test -n "${lt_cv_path_LDCXX+set}"; then
  5387. lt_cv_path_LD=$lt_cv_path_LDCXX
  5388. else
  5389. $as_unset lt_cv_path_LD
  5390. fi
  5391. test -z "${LDCXX+set}" || LD=$LDCXX
  5392. CC=${CXX-"c++"}
  5393. CFLAGS=$CXXFLAGS
  5394. compiler=$CC
  5395. _LT_TAGVAR(compiler, $1)=$CC
  5396. _LT_CC_BASENAME([$compiler])
  5397. if test -n "$compiler"; then
  5398. # We don't want -fno-exception when compiling C++ code, so set the
  5399. # no_builtin_flag separately
  5400. if test "$GXX" = yes; then
  5401. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5402. else
  5403. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5404. fi
  5405. if test "$GXX" = yes; then
  5406. # Set up default GNU C++ configuration
  5407. LT_PATH_LD
  5408. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5409. # archiving commands below assume that GNU ld is being used.
  5410. if test "$with_gnu_ld" = yes; then
  5411. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5412. _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'
  5413. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5414. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5415. # If archive_cmds runs LD, not CC, wlarc should be empty
  5416. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5417. # investigate it a little bit more. (MM)
  5418. wlarc='${wl}'
  5419. # ancient GNU ld didn't support --whole-archive et. al.
  5420. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5421. $GREP 'no-whole-archive' > /dev/null; then
  5422. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5423. else
  5424. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5425. fi
  5426. else
  5427. with_gnu_ld=no
  5428. wlarc=
  5429. # A generic and very simple default shared library creation
  5430. # command for GNU C++ for the case where it uses the native
  5431. # linker, instead of GNU ld. If possible, this setting should
  5432. # overridden to take advantage of the native linker features on
  5433. # the platform it is being used on.
  5434. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5435. fi
  5436. # Commands to make compiler produce verbose output that lists
  5437. # what "hidden" libraries, object files and flags are used when
  5438. # linking a shared library.
  5439. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5440. else
  5441. GXX=no
  5442. with_gnu_ld=no
  5443. wlarc=
  5444. fi
  5445. # PORTME: fill in a description of your system's C++ link characteristics
  5446. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5447. _LT_TAGVAR(ld_shlibs, $1)=yes
  5448. case $host_os in
  5449. aix3*)
  5450. # FIXME: insert proper C++ library support
  5451. _LT_TAGVAR(ld_shlibs, $1)=no
  5452. ;;
  5453. aix[[4-9]]*)
  5454. if test "$host_cpu" = ia64; then
  5455. # On IA64, the linker does run time linking by default, so we don't
  5456. # have to do anything special.
  5457. aix_use_runtimelinking=no
  5458. exp_sym_flag='-Bexport'
  5459. no_entry_flag=""
  5460. else
  5461. aix_use_runtimelinking=no
  5462. # Test if we are trying to use run time linking or normal
  5463. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5464. # need to do runtime linking.
  5465. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5466. for ld_flag in $LDFLAGS; do
  5467. case $ld_flag in
  5468. *-brtl*)
  5469. aix_use_runtimelinking=yes
  5470. break
  5471. ;;
  5472. esac
  5473. done
  5474. ;;
  5475. esac
  5476. exp_sym_flag='-bexport'
  5477. no_entry_flag='-bnoentry'
  5478. fi
  5479. # When large executables or shared objects are built, AIX ld can
  5480. # have problems creating the table of contents. If linking a library
  5481. # or program results in "error TOC overflow" add -mminimal-toc to
  5482. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5483. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5484. _LT_TAGVAR(archive_cmds, $1)=''
  5485. _LT_TAGVAR(hardcode_direct, $1)=yes
  5486. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5487. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5488. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5489. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5490. if test "$GXX" = yes; then
  5491. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5492. # We only want to do this on AIX 4.2 and lower, the check
  5493. # below for broken collect2 doesn't work under 4.3+
  5494. collect2name=`${CC} -print-prog-name=collect2`
  5495. if test -f "$collect2name" &&
  5496. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5497. then
  5498. # We have reworked collect2
  5499. :
  5500. else
  5501. # We have old collect2
  5502. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5503. # It fails to find uninstalled libraries when the uninstalled
  5504. # path is not listed in the libpath. Setting hardcode_minus_L
  5505. # to unsupported forces relinking
  5506. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5507. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5508. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5509. fi
  5510. esac
  5511. shared_flag='-shared'
  5512. if test "$aix_use_runtimelinking" = yes; then
  5513. shared_flag="$shared_flag "'${wl}-G'
  5514. fi
  5515. else
  5516. # not using gcc
  5517. if test "$host_cpu" = ia64; then
  5518. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5519. # chokes on -Wl,-G. The following line is correct:
  5520. shared_flag='-G'
  5521. else
  5522. if test "$aix_use_runtimelinking" = yes; then
  5523. shared_flag='${wl}-G'
  5524. else
  5525. shared_flag='${wl}-bM:SRE'
  5526. fi
  5527. fi
  5528. fi
  5529. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5530. # It seems that -bexpall does not export symbols beginning with
  5531. # underscore (_), so it is better to generate a list of symbols to
  5532. # export.
  5533. _LT_TAGVAR(always_export_symbols, $1)=yes
  5534. if test "$aix_use_runtimelinking" = yes; then
  5535. # Warning - without using the other runtime loading flags (-brtl),
  5536. # -berok will link without error, but may produce a broken library.
  5537. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5538. # Determine the default libpath from the value encoded in an empty
  5539. # executable.
  5540. _LT_SYS_MODULE_PATH_AIX([$1])
  5541. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5542. _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"
  5543. else
  5544. if test "$host_cpu" = ia64; then
  5545. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5546. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5547. _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"
  5548. else
  5549. # Determine the default libpath from the value encoded in an
  5550. # empty executable.
  5551. _LT_SYS_MODULE_PATH_AIX([$1])
  5552. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5553. # Warning - without using the other run time loading flags,
  5554. # -berok will link without error, but may produce a broken library.
  5555. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5556. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5557. if test "$with_gnu_ld" = yes; then
  5558. # We only use this code for GNU lds that support --whole-archive.
  5559. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5560. else
  5561. # Exported symbols can be pulled into shared objects from archives
  5562. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5563. fi
  5564. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5565. # This is similar to how AIX traditionally builds its shared
  5566. # libraries.
  5567. _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'
  5568. fi
  5569. fi
  5570. ;;
  5571. beos*)
  5572. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5573. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5574. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5575. # support --undefined. This deserves some investigation. FIXME
  5576. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5577. else
  5578. _LT_TAGVAR(ld_shlibs, $1)=no
  5579. fi
  5580. ;;
  5581. chorus*)
  5582. case $cc_basename in
  5583. *)
  5584. # FIXME: insert proper C++ library support
  5585. _LT_TAGVAR(ld_shlibs, $1)=no
  5586. ;;
  5587. esac
  5588. ;;
  5589. cygwin* | mingw* | pw32* | cegcc*)
  5590. case $GXX,$cc_basename in
  5591. ,cl* | no,cl*)
  5592. # Native MSVC
  5593. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5594. # no search path for DLLs.
  5595. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5596. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5597. _LT_TAGVAR(always_export_symbols, $1)=yes
  5598. _LT_TAGVAR(file_list_spec, $1)='@'
  5599. # Tell ltmain to make .lib files, not .a files.
  5600. libext=lib
  5601. # Tell ltmain to make .dll files, not .so files.
  5602. shrext_cmds=".dll"
  5603. # FIXME: Setting linknames here is a bad hack.
  5604. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5605. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5606. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5607. else
  5608. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5609. fi~
  5610. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5611. linknames='
  5612. # The linker will not automatically build a static lib if we build a DLL.
  5613. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5614. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5615. # Don't use ranlib
  5616. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5617. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5618. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5619. case $lt_outputfile in
  5620. *.exe|*.EXE) ;;
  5621. *)
  5622. lt_outputfile="$lt_outputfile.exe"
  5623. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5624. ;;
  5625. esac~
  5626. func_to_tool_file "$lt_outputfile"~
  5627. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5628. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5629. $RM "$lt_outputfile.manifest";
  5630. fi'
  5631. ;;
  5632. *)
  5633. # g++
  5634. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5635. # as there is no search path for DLLs.
  5636. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5637. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5638. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5639. _LT_TAGVAR(always_export_symbols, $1)=no
  5640. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5641. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5642. _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'
  5643. # If the export-symbols file already is a .def file (1st line
  5644. # is EXPORTS), use it as is; otherwise, prepend...
  5645. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5646. cp $export_symbols $output_objdir/$soname.def;
  5647. else
  5648. echo EXPORTS > $output_objdir/$soname.def;
  5649. cat $export_symbols >> $output_objdir/$soname.def;
  5650. fi~
  5651. $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'
  5652. else
  5653. _LT_TAGVAR(ld_shlibs, $1)=no
  5654. fi
  5655. ;;
  5656. esac
  5657. ;;
  5658. darwin* | rhapsody*)
  5659. _LT_DARWIN_LINKER_FEATURES($1)
  5660. ;;
  5661. dgux*)
  5662. case $cc_basename in
  5663. ec++*)
  5664. # FIXME: insert proper C++ library support
  5665. _LT_TAGVAR(ld_shlibs, $1)=no
  5666. ;;
  5667. ghcx*)
  5668. # Green Hills C++ Compiler
  5669. # FIXME: insert proper C++ library support
  5670. _LT_TAGVAR(ld_shlibs, $1)=no
  5671. ;;
  5672. *)
  5673. # FIXME: insert proper C++ library support
  5674. _LT_TAGVAR(ld_shlibs, $1)=no
  5675. ;;
  5676. esac
  5677. ;;
  5678. freebsd2.*)
  5679. # C++ shared libraries reported to be fairly broken before
  5680. # switch to ELF
  5681. _LT_TAGVAR(ld_shlibs, $1)=no
  5682. ;;
  5683. freebsd-elf*)
  5684. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5685. ;;
  5686. freebsd* | dragonfly*)
  5687. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5688. # conventions
  5689. _LT_TAGVAR(ld_shlibs, $1)=yes
  5690. ;;
  5691. gnu*)
  5692. ;;
  5693. haiku*)
  5694. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5695. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5696. ;;
  5697. hpux9*)
  5698. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5699. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5700. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5701. _LT_TAGVAR(hardcode_direct, $1)=yes
  5702. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5703. # but as the default
  5704. # location of the library.
  5705. case $cc_basename in
  5706. CC*)
  5707. # FIXME: insert proper C++ library support
  5708. _LT_TAGVAR(ld_shlibs, $1)=no
  5709. ;;
  5710. aCC*)
  5711. _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'
  5712. # Commands to make compiler produce verbose output that lists
  5713. # what "hidden" libraries, object files and flags are used when
  5714. # linking a shared library.
  5715. #
  5716. # There doesn't appear to be a way to prevent this compiler from
  5717. # explicitly linking system object files so we need to strip them
  5718. # from the output so that they don't get included in the library
  5719. # dependencies.
  5720. 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"'
  5721. ;;
  5722. *)
  5723. if test "$GXX" = yes; then
  5724. _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'
  5725. else
  5726. # FIXME: insert proper C++ library support
  5727. _LT_TAGVAR(ld_shlibs, $1)=no
  5728. fi
  5729. ;;
  5730. esac
  5731. ;;
  5732. hpux10*|hpux11*)
  5733. if test $with_gnu_ld = no; then
  5734. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5735. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5736. case $host_cpu in
  5737. hppa*64*|ia64*)
  5738. ;;
  5739. *)
  5740. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5741. ;;
  5742. esac
  5743. fi
  5744. case $host_cpu in
  5745. hppa*64*|ia64*)
  5746. _LT_TAGVAR(hardcode_direct, $1)=no
  5747. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5748. ;;
  5749. *)
  5750. _LT_TAGVAR(hardcode_direct, $1)=yes
  5751. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5752. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5753. # but as the default
  5754. # location of the library.
  5755. ;;
  5756. esac
  5757. case $cc_basename in
  5758. CC*)
  5759. # FIXME: insert proper C++ library support
  5760. _LT_TAGVAR(ld_shlibs, $1)=no
  5761. ;;
  5762. aCC*)
  5763. case $host_cpu in
  5764. hppa*64*)
  5765. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5766. ;;
  5767. ia64*)
  5768. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5769. ;;
  5770. *)
  5771. _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'
  5772. ;;
  5773. esac
  5774. # Commands to make compiler produce verbose output that lists
  5775. # what "hidden" libraries, object files and flags are used when
  5776. # linking a shared library.
  5777. #
  5778. # There doesn't appear to be a way to prevent this compiler from
  5779. # explicitly linking system object files so we need to strip them
  5780. # from the output so that they don't get included in the library
  5781. # dependencies.
  5782. 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"'
  5783. ;;
  5784. *)
  5785. if test "$GXX" = yes; then
  5786. if test $with_gnu_ld = no; then
  5787. case $host_cpu in
  5788. hppa*64*)
  5789. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5790. ;;
  5791. ia64*)
  5792. _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'
  5793. ;;
  5794. *)
  5795. _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'
  5796. ;;
  5797. esac
  5798. fi
  5799. else
  5800. # FIXME: insert proper C++ library support
  5801. _LT_TAGVAR(ld_shlibs, $1)=no
  5802. fi
  5803. ;;
  5804. esac
  5805. ;;
  5806. interix[[3-9]]*)
  5807. _LT_TAGVAR(hardcode_direct, $1)=no
  5808. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5809. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5810. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5811. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5812. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5813. # default) and relocated if they conflict, which is a slow very memory
  5814. # consuming and fragmenting process. To avoid this, we pick a random,
  5815. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5816. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5817. _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'
  5818. _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'
  5819. ;;
  5820. irix5* | irix6*)
  5821. case $cc_basename in
  5822. CC*)
  5823. # SGI C++
  5824. _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'
  5825. # Archives containing C++ object files must be created using
  5826. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5827. # necessary to make sure instantiated templates are included
  5828. # in the archive.
  5829. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5830. ;;
  5831. *)
  5832. if test "$GXX" = yes; then
  5833. if test "$with_gnu_ld" = no; then
  5834. _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'
  5835. else
  5836. _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'
  5837. fi
  5838. fi
  5839. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5840. ;;
  5841. esac
  5842. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5843. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5844. _LT_TAGVAR(inherit_rpath, $1)=yes
  5845. ;;
  5846. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5847. case $cc_basename in
  5848. KCC*)
  5849. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5850. # KCC will only create a shared library if the output file
  5851. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5852. # to its proper name (with version) after linking.
  5853. _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'
  5854. _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'
  5855. # Commands to make compiler produce verbose output that lists
  5856. # what "hidden" libraries, object files and flags are used when
  5857. # linking a shared library.
  5858. #
  5859. # There doesn't appear to be a way to prevent this compiler from
  5860. # explicitly linking system object files so we need to strip them
  5861. # from the output so that they don't get included in the library
  5862. # dependencies.
  5863. 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"'
  5864. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5865. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5866. # Archives containing C++ object files must be created using
  5867. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5868. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5869. ;;
  5870. icpc* | ecpc* )
  5871. # Intel C++
  5872. with_gnu_ld=yes
  5873. # version 8.0 and above of icpc choke on multiply defined symbols
  5874. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5875. # earlier do not add the objects themselves.
  5876. case `$CC -V 2>&1` in
  5877. *"Version 7."*)
  5878. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5879. _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'
  5880. ;;
  5881. *) # Version 8.0 or newer
  5882. tmp_idyn=
  5883. case $host_cpu in
  5884. ia64*) tmp_idyn=' -i_dynamic';;
  5885. esac
  5886. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5887. _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'
  5888. ;;
  5889. esac
  5890. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5891. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5892. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5893. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5894. ;;
  5895. pgCC* | pgcpp*)
  5896. # Portland Group C++ compiler
  5897. case `$CC -V` in
  5898. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5899. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5900. rm -rf $tpldir~
  5901. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5902. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5903. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5904. rm -rf $tpldir~
  5905. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5906. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5907. $RANLIB $oldlib'
  5908. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5909. rm -rf $tpldir~
  5910. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5911. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5912. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5913. rm -rf $tpldir~
  5914. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5915. $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'
  5916. ;;
  5917. *) # Version 6 and above use weak symbols
  5918. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5919. _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'
  5920. ;;
  5921. esac
  5922. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5923. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5924. _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'
  5925. ;;
  5926. cxx*)
  5927. # Compaq C++
  5928. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5929. _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'
  5930. runpath_var=LD_RUN_PATH
  5931. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5932. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5933. # Commands to make compiler produce verbose output that lists
  5934. # what "hidden" libraries, object files and flags are used when
  5935. # linking a shared library.
  5936. #
  5937. # There doesn't appear to be a way to prevent this compiler from
  5938. # explicitly linking system object files so we need to strip them
  5939. # from the output so that they don't get included in the library
  5940. # dependencies.
  5941. 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'
  5942. ;;
  5943. xl* | mpixl* | bgxl*)
  5944. # IBM XL 8.0 on PPC, with GNU ld
  5945. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5946. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5947. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5948. if test "x$supports_anon_versioning" = xyes; then
  5949. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5950. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5951. echo "local: *; };" >> $output_objdir/$libname.ver~
  5952. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5953. fi
  5954. ;;
  5955. *)
  5956. case `$CC -V 2>&1 | sed 5q` in
  5957. *Sun\ C*)
  5958. # Sun C++ 5.9
  5959. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5960. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5961. _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'
  5962. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5963. _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'
  5964. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5965. # Not sure whether something based on
  5966. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5967. # would be better.
  5968. output_verbose_link_cmd='func_echo_all'
  5969. # Archives containing C++ object files must be created using
  5970. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5971. # necessary to make sure instantiated templates are included
  5972. # in the archive.
  5973. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5974. ;;
  5975. esac
  5976. ;;
  5977. esac
  5978. ;;
  5979. lynxos*)
  5980. # FIXME: insert proper C++ library support
  5981. _LT_TAGVAR(ld_shlibs, $1)=no
  5982. ;;
  5983. m88k*)
  5984. # FIXME: insert proper C++ library support
  5985. _LT_TAGVAR(ld_shlibs, $1)=no
  5986. ;;
  5987. mvs*)
  5988. case $cc_basename in
  5989. cxx*)
  5990. # FIXME: insert proper C++ library support
  5991. _LT_TAGVAR(ld_shlibs, $1)=no
  5992. ;;
  5993. *)
  5994. # FIXME: insert proper C++ library support
  5995. _LT_TAGVAR(ld_shlibs, $1)=no
  5996. ;;
  5997. esac
  5998. ;;
  5999. netbsd*)
  6000. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6001. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6002. wlarc=
  6003. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6004. _LT_TAGVAR(hardcode_direct, $1)=yes
  6005. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6006. fi
  6007. # Workaround some broken pre-1.5 toolchains
  6008. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6009. ;;
  6010. *nto* | *qnx*)
  6011. _LT_TAGVAR(ld_shlibs, $1)=yes
  6012. ;;
  6013. openbsd2*)
  6014. # C++ shared libraries are fairly broken
  6015. _LT_TAGVAR(ld_shlibs, $1)=no
  6016. ;;
  6017. openbsd*)
  6018. if test -f /usr/libexec/ld.so; then
  6019. _LT_TAGVAR(hardcode_direct, $1)=yes
  6020. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6021. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6022. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6023. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6024. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6025. _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'
  6026. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6027. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6028. fi
  6029. output_verbose_link_cmd=func_echo_all
  6030. else
  6031. _LT_TAGVAR(ld_shlibs, $1)=no
  6032. fi
  6033. ;;
  6034. osf3* | osf4* | osf5*)
  6035. case $cc_basename in
  6036. KCC*)
  6037. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6038. # KCC will only create a shared library if the output file
  6039. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6040. # to its proper name (with version) after linking.
  6041. _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'
  6042. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6043. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6044. # Archives containing C++ object files must be created using
  6045. # the KAI C++ compiler.
  6046. case $host in
  6047. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6048. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6049. esac
  6050. ;;
  6051. RCC*)
  6052. # Rational C++ 2.4.1
  6053. # FIXME: insert proper C++ library support
  6054. _LT_TAGVAR(ld_shlibs, $1)=no
  6055. ;;
  6056. cxx*)
  6057. case $host in
  6058. osf3*)
  6059. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6060. _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'
  6061. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6062. ;;
  6063. *)
  6064. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6065. _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'
  6066. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6067. echo "-hidden">> $lib.exp~
  6068. $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~
  6069. $RM $lib.exp'
  6070. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6071. ;;
  6072. esac
  6073. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6074. # Commands to make compiler produce verbose output that lists
  6075. # what "hidden" libraries, object files and flags are used when
  6076. # linking a shared library.
  6077. #
  6078. # There doesn't appear to be a way to prevent this compiler from
  6079. # explicitly linking system object files so we need to strip them
  6080. # from the output so that they don't get included in the library
  6081. # dependencies.
  6082. 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"'
  6083. ;;
  6084. *)
  6085. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6086. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6087. case $host in
  6088. osf3*)
  6089. _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'
  6090. ;;
  6091. *)
  6092. _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'
  6093. ;;
  6094. esac
  6095. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6096. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6097. # Commands to make compiler produce verbose output that lists
  6098. # what "hidden" libraries, object files and flags are used when
  6099. # linking a shared library.
  6100. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6101. else
  6102. # FIXME: insert proper C++ library support
  6103. _LT_TAGVAR(ld_shlibs, $1)=no
  6104. fi
  6105. ;;
  6106. esac
  6107. ;;
  6108. psos*)
  6109. # FIXME: insert proper C++ library support
  6110. _LT_TAGVAR(ld_shlibs, $1)=no
  6111. ;;
  6112. sunos4*)
  6113. case $cc_basename in
  6114. CC*)
  6115. # Sun C++ 4.x
  6116. # FIXME: insert proper C++ library support
  6117. _LT_TAGVAR(ld_shlibs, $1)=no
  6118. ;;
  6119. lcc*)
  6120. # Lucid
  6121. # FIXME: insert proper C++ library support
  6122. _LT_TAGVAR(ld_shlibs, $1)=no
  6123. ;;
  6124. *)
  6125. # FIXME: insert proper C++ library support
  6126. _LT_TAGVAR(ld_shlibs, $1)=no
  6127. ;;
  6128. esac
  6129. ;;
  6130. solaris*)
  6131. case $cc_basename in
  6132. CC* | sunCC*)
  6133. # Sun C++ 4.2, 5.x and Centerline C++
  6134. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6135. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6136. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6137. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6138. $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'
  6139. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6140. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6141. case $host_os in
  6142. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6143. *)
  6144. # The compiler driver will combine and reorder linker options,
  6145. # but understands `-z linker_flag'.
  6146. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6147. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6148. ;;
  6149. esac
  6150. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6151. output_verbose_link_cmd='func_echo_all'
  6152. # Archives containing C++ object files must be created using
  6153. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6154. # necessary to make sure instantiated templates are included
  6155. # in the archive.
  6156. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6157. ;;
  6158. gcx*)
  6159. # Green Hills C++ Compiler
  6160. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6161. # The C++ compiler must be used to create the archive.
  6162. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6163. ;;
  6164. *)
  6165. # GNU C++ compiler with Solaris linker
  6166. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6167. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6168. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6169. _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'
  6170. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6171. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6172. # Commands to make compiler produce verbose output that lists
  6173. # what "hidden" libraries, object files and flags are used when
  6174. # linking a shared library.
  6175. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6176. else
  6177. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6178. # platform.
  6179. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6180. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6181. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6182. # Commands to make compiler produce verbose output that lists
  6183. # what "hidden" libraries, object files and flags are used when
  6184. # linking a shared library.
  6185. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6186. fi
  6187. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6188. case $host_os in
  6189. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6190. *)
  6191. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6192. ;;
  6193. esac
  6194. fi
  6195. ;;
  6196. esac
  6197. ;;
  6198. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6199. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6200. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6201. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6202. runpath_var='LD_RUN_PATH'
  6203. case $cc_basename in
  6204. CC*)
  6205. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6206. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6207. ;;
  6208. *)
  6209. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6210. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6211. ;;
  6212. esac
  6213. ;;
  6214. sysv5* | sco3.2v5* | sco5v6*)
  6215. # Note: We can NOT use -z defs as we might desire, because we do not
  6216. # link with -lc, and that would cause any symbols used from libc to
  6217. # always be unresolved, which means just about no library would
  6218. # ever link correctly. If we're not using GNU ld we use -z text
  6219. # though, which does catch some bad symbols but isn't as heavy-handed
  6220. # as -z defs.
  6221. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6222. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6223. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6224. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6225. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6226. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6227. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6228. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6229. runpath_var='LD_RUN_PATH'
  6230. case $cc_basename in
  6231. CC*)
  6232. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6233. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6234. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6235. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6236. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6237. '"$_LT_TAGVAR(reload_cmds, $1)"
  6238. ;;
  6239. *)
  6240. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6241. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6242. ;;
  6243. esac
  6244. ;;
  6245. tandem*)
  6246. case $cc_basename in
  6247. NCC*)
  6248. # NonStop-UX NCC 3.20
  6249. # FIXME: insert proper C++ library support
  6250. _LT_TAGVAR(ld_shlibs, $1)=no
  6251. ;;
  6252. *)
  6253. # FIXME: insert proper C++ library support
  6254. _LT_TAGVAR(ld_shlibs, $1)=no
  6255. ;;
  6256. esac
  6257. ;;
  6258. vxworks*)
  6259. # FIXME: insert proper C++ library support
  6260. _LT_TAGVAR(ld_shlibs, $1)=no
  6261. ;;
  6262. *)
  6263. # FIXME: insert proper C++ library support
  6264. _LT_TAGVAR(ld_shlibs, $1)=no
  6265. ;;
  6266. esac
  6267. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6268. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6269. _LT_TAGVAR(GCC, $1)="$GXX"
  6270. _LT_TAGVAR(LD, $1)="$LD"
  6271. ## CAVEAT EMPTOR:
  6272. ## There is no encapsulation within the following macros, do not change
  6273. ## the running order or otherwise move them around unless you know exactly
  6274. ## what you are doing...
  6275. _LT_SYS_HIDDEN_LIBDEPS($1)
  6276. _LT_COMPILER_PIC($1)
  6277. _LT_COMPILER_C_O($1)
  6278. _LT_COMPILER_FILE_LOCKS($1)
  6279. _LT_LINKER_SHLIBS($1)
  6280. _LT_SYS_DYNAMIC_LINKER($1)
  6281. _LT_LINKER_HARDCODE_LIBPATH($1)
  6282. _LT_CONFIG($1)
  6283. fi # test -n "$compiler"
  6284. CC=$lt_save_CC
  6285. CFLAGS=$lt_save_CFLAGS
  6286. LDCXX=$LD
  6287. LD=$lt_save_LD
  6288. GCC=$lt_save_GCC
  6289. with_gnu_ld=$lt_save_with_gnu_ld
  6290. lt_cv_path_LDCXX=$lt_cv_path_LD
  6291. lt_cv_path_LD=$lt_save_path_LD
  6292. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6293. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6294. fi # test "$_lt_caught_CXX_error" != yes
  6295. AC_LANG_POP
  6296. ])# _LT_LANG_CXX_CONFIG
  6297. # _LT_FUNC_STRIPNAME_CNF
  6298. # ----------------------
  6299. # func_stripname_cnf prefix suffix name
  6300. # strip PREFIX and SUFFIX off of NAME.
  6301. # PREFIX and SUFFIX must not contain globbing or regex special
  6302. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6303. # dot (in which case that matches only a dot).
  6304. #
  6305. # This function is identical to the (non-XSI) version of func_stripname,
  6306. # except this one can be used by m4 code that may be executed by configure,
  6307. # rather than the libtool script.
  6308. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6309. AC_REQUIRE([_LT_DECL_SED])
  6310. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6311. func_stripname_cnf ()
  6312. {
  6313. case ${2} in
  6314. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6315. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6316. esac
  6317. } # func_stripname_cnf
  6318. ])# _LT_FUNC_STRIPNAME_CNF
  6319. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6320. # ---------------------------------
  6321. # Figure out "hidden" library dependencies from verbose
  6322. # compiler output when linking a shared library.
  6323. # Parse the compiler output and extract the necessary
  6324. # objects, libraries and library flags.
  6325. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6326. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6327. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6328. # Dependencies to place before and after the object being linked:
  6329. _LT_TAGVAR(predep_objects, $1)=
  6330. _LT_TAGVAR(postdep_objects, $1)=
  6331. _LT_TAGVAR(predeps, $1)=
  6332. _LT_TAGVAR(postdeps, $1)=
  6333. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6334. dnl we can't use the lt_simple_compile_test_code here,
  6335. dnl because it contains code intended for an executable,
  6336. dnl not a library. It's possible we should let each
  6337. dnl tag define a new lt_????_link_test_code variable,
  6338. dnl but it's only used here...
  6339. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6340. int a;
  6341. void foo (void) { a = 0; }
  6342. _LT_EOF
  6343. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6344. class Foo
  6345. {
  6346. public:
  6347. Foo (void) { a = 0; }
  6348. private:
  6349. int a;
  6350. };
  6351. _LT_EOF
  6352. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6353. subroutine foo
  6354. implicit none
  6355. integer*4 a
  6356. a=0
  6357. return
  6358. end
  6359. _LT_EOF
  6360. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6361. subroutine foo
  6362. implicit none
  6363. integer a
  6364. a=0
  6365. return
  6366. end
  6367. _LT_EOF
  6368. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6369. public class foo {
  6370. private int a;
  6371. public void bar (void) {
  6372. a = 0;
  6373. }
  6374. };
  6375. _LT_EOF
  6376. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6377. package foo
  6378. func foo() {
  6379. }
  6380. _LT_EOF
  6381. ])
  6382. _lt_libdeps_save_CFLAGS=$CFLAGS
  6383. case "$CC $CFLAGS " in #(
  6384. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6385. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6386. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6387. esac
  6388. dnl Parse the compiler output and extract the necessary
  6389. dnl objects, libraries and library flags.
  6390. if AC_TRY_EVAL(ac_compile); then
  6391. # Parse the compiler output and extract the necessary
  6392. # objects, libraries and library flags.
  6393. # Sentinel used to keep track of whether or not we are before
  6394. # the conftest object file.
  6395. pre_test_object_deps_done=no
  6396. for p in `eval "$output_verbose_link_cmd"`; do
  6397. case ${prev}${p} in
  6398. -L* | -R* | -l*)
  6399. # Some compilers place space between "-{L,R}" and the path.
  6400. # Remove the space.
  6401. if test $p = "-L" ||
  6402. test $p = "-R"; then
  6403. prev=$p
  6404. continue
  6405. fi
  6406. # Expand the sysroot to ease extracting the directories later.
  6407. if test -z "$prev"; then
  6408. case $p in
  6409. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6410. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6411. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6412. esac
  6413. fi
  6414. case $p in
  6415. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6416. esac
  6417. if test "$pre_test_object_deps_done" = no; then
  6418. case ${prev} in
  6419. -L | -R)
  6420. # Internal compiler library paths should come after those
  6421. # provided the user. The postdeps already come after the
  6422. # user supplied libs so there is no need to process them.
  6423. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6424. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6425. else
  6426. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6427. fi
  6428. ;;
  6429. # The "-l" case would never come before the object being
  6430. # linked, so don't bother handling this case.
  6431. esac
  6432. else
  6433. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6434. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6435. else
  6436. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6437. fi
  6438. fi
  6439. prev=
  6440. ;;
  6441. *.lto.$objext) ;; # Ignore GCC LTO objects
  6442. *.$objext)
  6443. # This assumes that the test object file only shows up
  6444. # once in the compiler output.
  6445. if test "$p" = "conftest.$objext"; then
  6446. pre_test_object_deps_done=yes
  6447. continue
  6448. fi
  6449. if test "$pre_test_object_deps_done" = no; then
  6450. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6451. _LT_TAGVAR(predep_objects, $1)="$p"
  6452. else
  6453. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6454. fi
  6455. else
  6456. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6457. _LT_TAGVAR(postdep_objects, $1)="$p"
  6458. else
  6459. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6460. fi
  6461. fi
  6462. ;;
  6463. *) ;; # Ignore the rest.
  6464. esac
  6465. done
  6466. # Clean up.
  6467. rm -f a.out a.exe
  6468. else
  6469. echo "libtool.m4: error: problem compiling $1 test program"
  6470. fi
  6471. $RM -f confest.$objext
  6472. CFLAGS=$_lt_libdeps_save_CFLAGS
  6473. # PORTME: override above test on systems where it is broken
  6474. m4_if([$1], [CXX],
  6475. [case $host_os in
  6476. interix[[3-9]]*)
  6477. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6478. # hack all around it, let's just trust "g++" to DTRT.
  6479. _LT_TAGVAR(predep_objects,$1)=
  6480. _LT_TAGVAR(postdep_objects,$1)=
  6481. _LT_TAGVAR(postdeps,$1)=
  6482. ;;
  6483. linux*)
  6484. case `$CC -V 2>&1 | sed 5q` in
  6485. *Sun\ C*)
  6486. # Sun C++ 5.9
  6487. # The more standards-conforming stlport4 library is
  6488. # incompatible with the Cstd library. Avoid specifying
  6489. # it if it's in CXXFLAGS. Ignore libCrun as
  6490. # -library=stlport4 depends on it.
  6491. case " $CXX $CXXFLAGS " in
  6492. *" -library=stlport4 "*)
  6493. solaris_use_stlport4=yes
  6494. ;;
  6495. esac
  6496. if test "$solaris_use_stlport4" != yes; then
  6497. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6498. fi
  6499. ;;
  6500. esac
  6501. ;;
  6502. solaris*)
  6503. case $cc_basename in
  6504. CC* | sunCC*)
  6505. # The more standards-conforming stlport4 library is
  6506. # incompatible with the Cstd library. Avoid specifying
  6507. # it if it's in CXXFLAGS. Ignore libCrun as
  6508. # -library=stlport4 depends on it.
  6509. case " $CXX $CXXFLAGS " in
  6510. *" -library=stlport4 "*)
  6511. solaris_use_stlport4=yes
  6512. ;;
  6513. esac
  6514. # Adding this requires a known-good setup of shared libraries for
  6515. # Sun compiler versions before 5.6, else PIC objects from an old
  6516. # archive will be linked into the output, leading to subtle bugs.
  6517. if test "$solaris_use_stlport4" != yes; then
  6518. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6519. fi
  6520. ;;
  6521. esac
  6522. ;;
  6523. esac
  6524. ])
  6525. case " $_LT_TAGVAR(postdeps, $1) " in
  6526. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6527. esac
  6528. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6529. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6530. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6531. fi
  6532. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6533. [The directories searched by this compiler when creating a shared library])
  6534. _LT_TAGDECL([], [predep_objects], [1],
  6535. [Dependencies to place before and after the objects being linked to
  6536. create a shared library])
  6537. _LT_TAGDECL([], [postdep_objects], [1])
  6538. _LT_TAGDECL([], [predeps], [1])
  6539. _LT_TAGDECL([], [postdeps], [1])
  6540. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6541. [The library search path used internally by the compiler when linking
  6542. a shared library])
  6543. ])# _LT_SYS_HIDDEN_LIBDEPS
  6544. # _LT_LANG_F77_CONFIG([TAG])
  6545. # --------------------------
  6546. # Ensure that the configuration variables for a Fortran 77 compiler are
  6547. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6548. # to write the compiler configuration to `libtool'.
  6549. m4_defun([_LT_LANG_F77_CONFIG],
  6550. [AC_LANG_PUSH(Fortran 77)
  6551. if test -z "$F77" || test "X$F77" = "Xno"; then
  6552. _lt_disable_F77=yes
  6553. fi
  6554. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6555. _LT_TAGVAR(allow_undefined_flag, $1)=
  6556. _LT_TAGVAR(always_export_symbols, $1)=no
  6557. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6558. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6559. _LT_TAGVAR(hardcode_direct, $1)=no
  6560. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6561. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6562. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6563. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6564. _LT_TAGVAR(hardcode_automatic, $1)=no
  6565. _LT_TAGVAR(inherit_rpath, $1)=no
  6566. _LT_TAGVAR(module_cmds, $1)=
  6567. _LT_TAGVAR(module_expsym_cmds, $1)=
  6568. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6569. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6570. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6571. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6572. _LT_TAGVAR(no_undefined_flag, $1)=
  6573. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6574. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6575. # Source file extension for f77 test sources.
  6576. ac_ext=f
  6577. # Object file extension for compiled f77 test sources.
  6578. objext=o
  6579. _LT_TAGVAR(objext, $1)=$objext
  6580. # No sense in running all these tests if we already determined that
  6581. # the F77 compiler isn't working. Some variables (like enable_shared)
  6582. # are currently assumed to apply to all compilers on this platform,
  6583. # and will be corrupted by setting them based on a non-working compiler.
  6584. if test "$_lt_disable_F77" != yes; then
  6585. # Code to be used in simple compile tests
  6586. lt_simple_compile_test_code="\
  6587. subroutine t
  6588. return
  6589. end
  6590. "
  6591. # Code to be used in simple link tests
  6592. lt_simple_link_test_code="\
  6593. program t
  6594. end
  6595. "
  6596. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6597. _LT_TAG_COMPILER
  6598. # save warnings/boilerplate of simple test code
  6599. _LT_COMPILER_BOILERPLATE
  6600. _LT_LINKER_BOILERPLATE
  6601. # Allow CC to be a program name with arguments.
  6602. lt_save_CC="$CC"
  6603. lt_save_GCC=$GCC
  6604. lt_save_CFLAGS=$CFLAGS
  6605. CC=${F77-"f77"}
  6606. CFLAGS=$FFLAGS
  6607. compiler=$CC
  6608. _LT_TAGVAR(compiler, $1)=$CC
  6609. _LT_CC_BASENAME([$compiler])
  6610. GCC=$G77
  6611. if test -n "$compiler"; then
  6612. AC_MSG_CHECKING([if libtool supports shared libraries])
  6613. AC_MSG_RESULT([$can_build_shared])
  6614. AC_MSG_CHECKING([whether to build shared libraries])
  6615. test "$can_build_shared" = "no" && enable_shared=no
  6616. # On AIX, shared libraries and static libraries use the same namespace, and
  6617. # are all built from PIC.
  6618. case $host_os in
  6619. aix3*)
  6620. test "$enable_shared" = yes && enable_static=no
  6621. if test -n "$RANLIB"; then
  6622. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6623. postinstall_cmds='$RANLIB $lib'
  6624. fi
  6625. ;;
  6626. aix[[4-9]]*)
  6627. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6628. test "$enable_shared" = yes && enable_static=no
  6629. fi
  6630. ;;
  6631. esac
  6632. AC_MSG_RESULT([$enable_shared])
  6633. AC_MSG_CHECKING([whether to build static libraries])
  6634. # Make sure either enable_shared or enable_static is yes.
  6635. test "$enable_shared" = yes || enable_static=yes
  6636. AC_MSG_RESULT([$enable_static])
  6637. _LT_TAGVAR(GCC, $1)="$G77"
  6638. _LT_TAGVAR(LD, $1)="$LD"
  6639. ## CAVEAT EMPTOR:
  6640. ## There is no encapsulation within the following macros, do not change
  6641. ## the running order or otherwise move them around unless you know exactly
  6642. ## what you are doing...
  6643. _LT_COMPILER_PIC($1)
  6644. _LT_COMPILER_C_O($1)
  6645. _LT_COMPILER_FILE_LOCKS($1)
  6646. _LT_LINKER_SHLIBS($1)
  6647. _LT_SYS_DYNAMIC_LINKER($1)
  6648. _LT_LINKER_HARDCODE_LIBPATH($1)
  6649. _LT_CONFIG($1)
  6650. fi # test -n "$compiler"
  6651. GCC=$lt_save_GCC
  6652. CC="$lt_save_CC"
  6653. CFLAGS="$lt_save_CFLAGS"
  6654. fi # test "$_lt_disable_F77" != yes
  6655. AC_LANG_POP
  6656. ])# _LT_LANG_F77_CONFIG
  6657. # _LT_LANG_FC_CONFIG([TAG])
  6658. # -------------------------
  6659. # Ensure that the configuration variables for a Fortran compiler are
  6660. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6661. # to write the compiler configuration to `libtool'.
  6662. m4_defun([_LT_LANG_FC_CONFIG],
  6663. [AC_LANG_PUSH(Fortran)
  6664. if test -z "$FC" || test "X$FC" = "Xno"; then
  6665. _lt_disable_FC=yes
  6666. fi
  6667. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6668. _LT_TAGVAR(allow_undefined_flag, $1)=
  6669. _LT_TAGVAR(always_export_symbols, $1)=no
  6670. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6671. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6672. _LT_TAGVAR(hardcode_direct, $1)=no
  6673. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6674. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6675. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6676. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6677. _LT_TAGVAR(hardcode_automatic, $1)=no
  6678. _LT_TAGVAR(inherit_rpath, $1)=no
  6679. _LT_TAGVAR(module_cmds, $1)=
  6680. _LT_TAGVAR(module_expsym_cmds, $1)=
  6681. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6682. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6683. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6684. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6685. _LT_TAGVAR(no_undefined_flag, $1)=
  6686. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6687. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6688. # Source file extension for fc test sources.
  6689. ac_ext=${ac_fc_srcext-f}
  6690. # Object file extension for compiled fc test sources.
  6691. objext=o
  6692. _LT_TAGVAR(objext, $1)=$objext
  6693. # No sense in running all these tests if we already determined that
  6694. # the FC compiler isn't working. Some variables (like enable_shared)
  6695. # are currently assumed to apply to all compilers on this platform,
  6696. # and will be corrupted by setting them based on a non-working compiler.
  6697. if test "$_lt_disable_FC" != yes; then
  6698. # Code to be used in simple compile tests
  6699. lt_simple_compile_test_code="\
  6700. subroutine t
  6701. return
  6702. end
  6703. "
  6704. # Code to be used in simple link tests
  6705. lt_simple_link_test_code="\
  6706. program t
  6707. end
  6708. "
  6709. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6710. _LT_TAG_COMPILER
  6711. # save warnings/boilerplate of simple test code
  6712. _LT_COMPILER_BOILERPLATE
  6713. _LT_LINKER_BOILERPLATE
  6714. # Allow CC to be a program name with arguments.
  6715. lt_save_CC="$CC"
  6716. lt_save_GCC=$GCC
  6717. lt_save_CFLAGS=$CFLAGS
  6718. CC=${FC-"f95"}
  6719. CFLAGS=$FCFLAGS
  6720. compiler=$CC
  6721. GCC=$ac_cv_fc_compiler_gnu
  6722. _LT_TAGVAR(compiler, $1)=$CC
  6723. _LT_CC_BASENAME([$compiler])
  6724. if test -n "$compiler"; then
  6725. AC_MSG_CHECKING([if libtool supports shared libraries])
  6726. AC_MSG_RESULT([$can_build_shared])
  6727. AC_MSG_CHECKING([whether to build shared libraries])
  6728. test "$can_build_shared" = "no" && enable_shared=no
  6729. # On AIX, shared libraries and static libraries use the same namespace, and
  6730. # are all built from PIC.
  6731. case $host_os in
  6732. aix3*)
  6733. test "$enable_shared" = yes && enable_static=no
  6734. if test -n "$RANLIB"; then
  6735. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6736. postinstall_cmds='$RANLIB $lib'
  6737. fi
  6738. ;;
  6739. aix[[4-9]]*)
  6740. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6741. test "$enable_shared" = yes && enable_static=no
  6742. fi
  6743. ;;
  6744. esac
  6745. AC_MSG_RESULT([$enable_shared])
  6746. AC_MSG_CHECKING([whether to build static libraries])
  6747. # Make sure either enable_shared or enable_static is yes.
  6748. test "$enable_shared" = yes || enable_static=yes
  6749. AC_MSG_RESULT([$enable_static])
  6750. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6751. _LT_TAGVAR(LD, $1)="$LD"
  6752. ## CAVEAT EMPTOR:
  6753. ## There is no encapsulation within the following macros, do not change
  6754. ## the running order or otherwise move them around unless you know exactly
  6755. ## what you are doing...
  6756. _LT_SYS_HIDDEN_LIBDEPS($1)
  6757. _LT_COMPILER_PIC($1)
  6758. _LT_COMPILER_C_O($1)
  6759. _LT_COMPILER_FILE_LOCKS($1)
  6760. _LT_LINKER_SHLIBS($1)
  6761. _LT_SYS_DYNAMIC_LINKER($1)
  6762. _LT_LINKER_HARDCODE_LIBPATH($1)
  6763. _LT_CONFIG($1)
  6764. fi # test -n "$compiler"
  6765. GCC=$lt_save_GCC
  6766. CC=$lt_save_CC
  6767. CFLAGS=$lt_save_CFLAGS
  6768. fi # test "$_lt_disable_FC" != yes
  6769. AC_LANG_POP
  6770. ])# _LT_LANG_FC_CONFIG
  6771. # _LT_LANG_GCJ_CONFIG([TAG])
  6772. # --------------------------
  6773. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6774. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6775. # to write the compiler configuration to `libtool'.
  6776. m4_defun([_LT_LANG_GCJ_CONFIG],
  6777. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6778. AC_LANG_SAVE
  6779. # Source file extension for Java test sources.
  6780. ac_ext=java
  6781. # Object file extension for compiled Java test sources.
  6782. objext=o
  6783. _LT_TAGVAR(objext, $1)=$objext
  6784. # Code to be used in simple compile tests
  6785. lt_simple_compile_test_code="class foo {}"
  6786. # Code to be used in simple link tests
  6787. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6788. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6789. _LT_TAG_COMPILER
  6790. # save warnings/boilerplate of simple test code
  6791. _LT_COMPILER_BOILERPLATE
  6792. _LT_LINKER_BOILERPLATE
  6793. # Allow CC to be a program name with arguments.
  6794. lt_save_CC=$CC
  6795. lt_save_CFLAGS=$CFLAGS
  6796. lt_save_GCC=$GCC
  6797. GCC=yes
  6798. CC=${GCJ-"gcj"}
  6799. CFLAGS=$GCJFLAGS
  6800. compiler=$CC
  6801. _LT_TAGVAR(compiler, $1)=$CC
  6802. _LT_TAGVAR(LD, $1)="$LD"
  6803. _LT_CC_BASENAME([$compiler])
  6804. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6805. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6806. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6807. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6808. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6809. if test -n "$compiler"; then
  6810. _LT_COMPILER_NO_RTTI($1)
  6811. _LT_COMPILER_PIC($1)
  6812. _LT_COMPILER_C_O($1)
  6813. _LT_COMPILER_FILE_LOCKS($1)
  6814. _LT_LINKER_SHLIBS($1)
  6815. _LT_LINKER_HARDCODE_LIBPATH($1)
  6816. _LT_CONFIG($1)
  6817. fi
  6818. AC_LANG_RESTORE
  6819. GCC=$lt_save_GCC
  6820. CC=$lt_save_CC
  6821. CFLAGS=$lt_save_CFLAGS
  6822. ])# _LT_LANG_GCJ_CONFIG
  6823. # _LT_LANG_GO_CONFIG([TAG])
  6824. # --------------------------
  6825. # Ensure that the configuration variables for the GNU Go compiler
  6826. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6827. # to write the compiler configuration to `libtool'.
  6828. m4_defun([_LT_LANG_GO_CONFIG],
  6829. [AC_REQUIRE([LT_PROG_GO])dnl
  6830. AC_LANG_SAVE
  6831. # Source file extension for Go test sources.
  6832. ac_ext=go
  6833. # Object file extension for compiled Go test sources.
  6834. objext=o
  6835. _LT_TAGVAR(objext, $1)=$objext
  6836. # Code to be used in simple compile tests
  6837. lt_simple_compile_test_code="package main; func main() { }"
  6838. # Code to be used in simple link tests
  6839. lt_simple_link_test_code='package main; func main() { }'
  6840. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6841. _LT_TAG_COMPILER
  6842. # save warnings/boilerplate of simple test code
  6843. _LT_COMPILER_BOILERPLATE
  6844. _LT_LINKER_BOILERPLATE
  6845. # Allow CC to be a program name with arguments.
  6846. lt_save_CC=$CC
  6847. lt_save_CFLAGS=$CFLAGS
  6848. lt_save_GCC=$GCC
  6849. GCC=yes
  6850. CC=${GOC-"gccgo"}
  6851. CFLAGS=$GOFLAGS
  6852. compiler=$CC
  6853. _LT_TAGVAR(compiler, $1)=$CC
  6854. _LT_TAGVAR(LD, $1)="$LD"
  6855. _LT_CC_BASENAME([$compiler])
  6856. # Go did not exist at the time GCC didn't implicitly link libc in.
  6857. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6858. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6859. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6860. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6861. if test -n "$compiler"; then
  6862. _LT_COMPILER_NO_RTTI($1)
  6863. _LT_COMPILER_PIC($1)
  6864. _LT_COMPILER_C_O($1)
  6865. _LT_COMPILER_FILE_LOCKS($1)
  6866. _LT_LINKER_SHLIBS($1)
  6867. _LT_LINKER_HARDCODE_LIBPATH($1)
  6868. _LT_CONFIG($1)
  6869. fi
  6870. AC_LANG_RESTORE
  6871. GCC=$lt_save_GCC
  6872. CC=$lt_save_CC
  6873. CFLAGS=$lt_save_CFLAGS
  6874. ])# _LT_LANG_GO_CONFIG
  6875. # _LT_LANG_RC_CONFIG([TAG])
  6876. # -------------------------
  6877. # Ensure that the configuration variables for the Windows resource compiler
  6878. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6879. # to write the compiler configuration to `libtool'.
  6880. m4_defun([_LT_LANG_RC_CONFIG],
  6881. [AC_REQUIRE([LT_PROG_RC])dnl
  6882. AC_LANG_SAVE
  6883. # Source file extension for RC test sources.
  6884. ac_ext=rc
  6885. # Object file extension for compiled RC test sources.
  6886. objext=o
  6887. _LT_TAGVAR(objext, $1)=$objext
  6888. # Code to be used in simple compile tests
  6889. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6890. # Code to be used in simple link tests
  6891. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6892. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6893. _LT_TAG_COMPILER
  6894. # save warnings/boilerplate of simple test code
  6895. _LT_COMPILER_BOILERPLATE
  6896. _LT_LINKER_BOILERPLATE
  6897. # Allow CC to be a program name with arguments.
  6898. lt_save_CC="$CC"
  6899. lt_save_CFLAGS=$CFLAGS
  6900. lt_save_GCC=$GCC
  6901. GCC=
  6902. CC=${RC-"windres"}
  6903. CFLAGS=
  6904. compiler=$CC
  6905. _LT_TAGVAR(compiler, $1)=$CC
  6906. _LT_CC_BASENAME([$compiler])
  6907. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6908. if test -n "$compiler"; then
  6909. :
  6910. _LT_CONFIG($1)
  6911. fi
  6912. GCC=$lt_save_GCC
  6913. AC_LANG_RESTORE
  6914. CC=$lt_save_CC
  6915. CFLAGS=$lt_save_CFLAGS
  6916. ])# _LT_LANG_RC_CONFIG
  6917. # LT_PROG_GCJ
  6918. # -----------
  6919. AC_DEFUN([LT_PROG_GCJ],
  6920. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6921. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6922. [AC_CHECK_TOOL(GCJ, gcj,)
  6923. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6924. AC_SUBST(GCJFLAGS)])])[]dnl
  6925. ])
  6926. # Old name:
  6927. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6928. dnl aclocal-1.4 backwards compatibility:
  6929. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6930. # LT_PROG_GO
  6931. # ----------
  6932. AC_DEFUN([LT_PROG_GO],
  6933. [AC_CHECK_TOOL(GOC, gccgo,)
  6934. ])
  6935. # LT_PROG_RC
  6936. # ----------
  6937. AC_DEFUN([LT_PROG_RC],
  6938. [AC_CHECK_TOOL(RC, windres,)
  6939. ])
  6940. # Old name:
  6941. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6942. dnl aclocal-1.4 backwards compatibility:
  6943. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6944. # _LT_DECL_EGREP
  6945. # --------------
  6946. # If we don't have a new enough Autoconf to choose the best grep
  6947. # available, choose the one first in the user's PATH.
  6948. m4_defun([_LT_DECL_EGREP],
  6949. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6950. AC_REQUIRE([AC_PROG_FGREP])dnl
  6951. test -z "$GREP" && GREP=grep
  6952. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6953. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6954. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6955. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6956. AC_SUBST([GREP])
  6957. ])
  6958. # _LT_DECL_OBJDUMP
  6959. # --------------
  6960. # If we don't have a new enough Autoconf to choose the best objdump
  6961. # available, choose the one first in the user's PATH.
  6962. m4_defun([_LT_DECL_OBJDUMP],
  6963. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6964. test -z "$OBJDUMP" && OBJDUMP=objdump
  6965. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6966. AC_SUBST([OBJDUMP])
  6967. ])
  6968. # _LT_DECL_DLLTOOL
  6969. # ----------------
  6970. # Ensure DLLTOOL variable is set.
  6971. m4_defun([_LT_DECL_DLLTOOL],
  6972. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6973. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6974. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6975. AC_SUBST([DLLTOOL])
  6976. ])
  6977. # _LT_DECL_SED
  6978. # ------------
  6979. # Check for a fully-functional sed program, that truncates
  6980. # as few characters as possible. Prefer GNU sed if found.
  6981. m4_defun([_LT_DECL_SED],
  6982. [AC_PROG_SED
  6983. test -z "$SED" && SED=sed
  6984. Xsed="$SED -e 1s/^X//"
  6985. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6986. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6987. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6988. ])# _LT_DECL_SED
  6989. m4_ifndef([AC_PROG_SED], [
  6990. # NOTE: This macro has been submitted for inclusion into #
  6991. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6992. # a released version of Autoconf we should remove this #
  6993. # macro and use it instead. #
  6994. m4_defun([AC_PROG_SED],
  6995. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6996. AC_CACHE_VAL(lt_cv_path_SED,
  6997. [# Loop through the user's path and test for sed and gsed.
  6998. # Then use that list of sed's as ones to test for truncation.
  6999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7000. for as_dir in $PATH
  7001. do
  7002. IFS=$as_save_IFS
  7003. test -z "$as_dir" && as_dir=.
  7004. for lt_ac_prog in sed gsed; do
  7005. for ac_exec_ext in '' $ac_executable_extensions; do
  7006. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7007. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7008. fi
  7009. done
  7010. done
  7011. done
  7012. IFS=$as_save_IFS
  7013. lt_ac_max=0
  7014. lt_ac_count=0
  7015. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7016. # along with /bin/sed that truncates output.
  7017. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7018. test ! -f $lt_ac_sed && continue
  7019. cat /dev/null > conftest.in
  7020. lt_ac_count=0
  7021. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7022. # Check for GNU sed and select it if it is found.
  7023. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7024. lt_cv_path_SED=$lt_ac_sed
  7025. break
  7026. fi
  7027. while true; do
  7028. cat conftest.in conftest.in >conftest.tmp
  7029. mv conftest.tmp conftest.in
  7030. cp conftest.in conftest.nl
  7031. echo >>conftest.nl
  7032. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7033. cmp -s conftest.out conftest.nl || break
  7034. # 10000 chars as input seems more than enough
  7035. test $lt_ac_count -gt 10 && break
  7036. lt_ac_count=`expr $lt_ac_count + 1`
  7037. if test $lt_ac_count -gt $lt_ac_max; then
  7038. lt_ac_max=$lt_ac_count
  7039. lt_cv_path_SED=$lt_ac_sed
  7040. fi
  7041. done
  7042. done
  7043. ])
  7044. SED=$lt_cv_path_SED
  7045. AC_SUBST([SED])
  7046. AC_MSG_RESULT([$SED])
  7047. ])#AC_PROG_SED
  7048. ])#m4_ifndef
  7049. # Old name:
  7050. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7051. dnl aclocal-1.4 backwards compatibility:
  7052. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7053. # _LT_CHECK_SHELL_FEATURES
  7054. # ------------------------
  7055. # Find out whether the shell is Bourne or XSI compatible,
  7056. # or has some other useful features.
  7057. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7058. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7059. # Try some XSI features
  7060. xsi_shell=no
  7061. ( _lt_dummy="a/b/c"
  7062. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7063. = c,a/b,b/c, \
  7064. && eval 'test $(( 1 + 1 )) -eq 2 \
  7065. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7066. && xsi_shell=yes
  7067. AC_MSG_RESULT([$xsi_shell])
  7068. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7069. AC_MSG_CHECKING([whether the shell understands "+="])
  7070. lt_shell_append=no
  7071. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7072. >/dev/null 2>&1 \
  7073. && lt_shell_append=yes
  7074. AC_MSG_RESULT([$lt_shell_append])
  7075. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7076. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7077. lt_unset=unset
  7078. else
  7079. lt_unset=false
  7080. fi
  7081. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7082. # test EBCDIC or ASCII
  7083. case `echo X|tr X '\101'` in
  7084. A) # ASCII based system
  7085. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7086. lt_SP2NL='tr \040 \012'
  7087. lt_NL2SP='tr \015\012 \040\040'
  7088. ;;
  7089. *) # EBCDIC based system
  7090. lt_SP2NL='tr \100 \n'
  7091. lt_NL2SP='tr \r\n \100\100'
  7092. ;;
  7093. esac
  7094. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7095. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7096. ])# _LT_CHECK_SHELL_FEATURES
  7097. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7098. # ------------------------------------------------------
  7099. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7100. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7101. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7102. [dnl {
  7103. sed -e '/^$1 ()$/,/^} # $1 /c\
  7104. $1 ()\
  7105. {\
  7106. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7107. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7108. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7109. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7110. test 0 -eq $? || _lt_function_replace_fail=:
  7111. ])
  7112. # _LT_PROG_REPLACE_SHELLFNS
  7113. # -------------------------
  7114. # Replace existing portable implementations of several shell functions with
  7115. # equivalent extended shell implementations where those features are available..
  7116. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7117. [if test x"$xsi_shell" = xyes; then
  7118. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7119. case ${1} in
  7120. */*) func_dirname_result="${1%/*}${2}" ;;
  7121. * ) func_dirname_result="${3}" ;;
  7122. esac])
  7123. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7124. func_basename_result="${1##*/}"])
  7125. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7126. case ${1} in
  7127. */*) func_dirname_result="${1%/*}${2}" ;;
  7128. * ) func_dirname_result="${3}" ;;
  7129. esac
  7130. func_basename_result="${1##*/}"])
  7131. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7132. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7133. # positional parameters, so assign one to ordinary parameter first.
  7134. func_stripname_result=${3}
  7135. func_stripname_result=${func_stripname_result#"${1}"}
  7136. func_stripname_result=${func_stripname_result%"${2}"}])
  7137. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7138. func_split_long_opt_name=${1%%=*}
  7139. func_split_long_opt_arg=${1#*=}])
  7140. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7141. func_split_short_opt_arg=${1#??}
  7142. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7143. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7144. case ${1} in
  7145. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7146. *) func_lo2o_result=${1} ;;
  7147. esac])
  7148. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7149. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7150. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7151. fi
  7152. if test x"$lt_shell_append" = xyes; then
  7153. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7154. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7155. func_quote_for_eval "${2}"
  7156. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7157. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7158. # Save a `func_append' function call where possible by direct use of '+='
  7159. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7160. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7161. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7162. test 0 -eq $? || _lt_function_replace_fail=:
  7163. else
  7164. # Save a `func_append' function call even when '+=' is not available
  7165. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7166. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7167. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7168. test 0 -eq $? || _lt_function_replace_fail=:
  7169. fi
  7170. if test x"$_lt_function_replace_fail" = x":"; then
  7171. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7172. fi
  7173. ])
  7174. # _LT_PATH_CONVERSION_FUNCTIONS
  7175. # -----------------------------
  7176. # Determine which file name conversion functions should be used by
  7177. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7178. # for certain cross-compile configurations and native mingw.
  7179. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7180. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7181. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7182. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7183. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7184. [case $host in
  7185. *-*-mingw* )
  7186. case $build in
  7187. *-*-mingw* ) # actually msys
  7188. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7189. ;;
  7190. *-*-cygwin* )
  7191. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7192. ;;
  7193. * ) # otherwise, assume *nix
  7194. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7195. ;;
  7196. esac
  7197. ;;
  7198. *-*-cygwin* )
  7199. case $build in
  7200. *-*-mingw* ) # actually msys
  7201. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7202. ;;
  7203. *-*-cygwin* )
  7204. lt_cv_to_host_file_cmd=func_convert_file_noop
  7205. ;;
  7206. * ) # otherwise, assume *nix
  7207. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7208. ;;
  7209. esac
  7210. ;;
  7211. * ) # unhandled hosts (and "normal" native builds)
  7212. lt_cv_to_host_file_cmd=func_convert_file_noop
  7213. ;;
  7214. esac
  7215. ])
  7216. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7217. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7218. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7219. [0], [convert $build file names to $host format])dnl
  7220. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7221. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7222. [#assume ordinary cross tools, or native build.
  7223. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7224. case $host in
  7225. *-*-mingw* )
  7226. case $build in
  7227. *-*-mingw* ) # actually msys
  7228. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7229. ;;
  7230. esac
  7231. ;;
  7232. esac
  7233. ])
  7234. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7235. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7236. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7237. [0], [convert $build files to toolchain format])dnl
  7238. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7239. # Helper functions for option handling. -*- Autoconf -*-
  7240. #
  7241. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7242. # Inc.
  7243. # Written by Gary V. Vaughan, 2004
  7244. #
  7245. # This file is free software; the Free Software Foundation gives
  7246. # unlimited permission to copy and/or distribute it, with or without
  7247. # modifications, as long as this notice is preserved.
  7248. # serial 7 ltoptions.m4
  7249. # This is to help aclocal find these macros, as it can't see m4_define.
  7250. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7251. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7252. # ------------------------------------------
  7253. m4_define([_LT_MANGLE_OPTION],
  7254. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7255. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7256. # ---------------------------------------
  7257. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7258. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7259. # saved as a flag.
  7260. m4_define([_LT_SET_OPTION],
  7261. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7262. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7263. _LT_MANGLE_DEFUN([$1], [$2]),
  7264. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7265. ])
  7266. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7267. # ------------------------------------------------------------
  7268. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7269. m4_define([_LT_IF_OPTION],
  7270. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7271. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7272. # -------------------------------------------------------
  7273. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7274. # are set.
  7275. m4_define([_LT_UNLESS_OPTIONS],
  7276. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7277. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7278. [m4_define([$0_found])])])[]dnl
  7279. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7280. ])[]dnl
  7281. ])
  7282. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7283. # ----------------------------------------
  7284. # OPTION-LIST is a space-separated list of Libtool options associated
  7285. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7286. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7287. # the unknown option and exit.
  7288. m4_defun([_LT_SET_OPTIONS],
  7289. [# Set options
  7290. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7291. [_LT_SET_OPTION([$1], _LT_Option)])
  7292. m4_if([$1],[LT_INIT],[
  7293. dnl
  7294. dnl Simply set some default values (i.e off) if boolean options were not
  7295. dnl specified:
  7296. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7297. ])
  7298. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7299. ])
  7300. dnl
  7301. dnl If no reference was made to various pairs of opposing options, then
  7302. dnl we run the default mode handler for the pair. For example, if neither
  7303. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7304. dnl archives by default:
  7305. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7306. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7307. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7308. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7309. [_LT_ENABLE_FAST_INSTALL])
  7310. ])
  7311. ])# _LT_SET_OPTIONS
  7312. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7313. # -----------------------------------------
  7314. m4_define([_LT_MANGLE_DEFUN],
  7315. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7316. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7317. # -----------------------------------------------
  7318. m4_define([LT_OPTION_DEFINE],
  7319. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7320. ])# LT_OPTION_DEFINE
  7321. # dlopen
  7322. # ------
  7323. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7324. ])
  7325. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7326. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7327. AC_DIAGNOSE([obsolete],
  7328. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7329. put the `dlopen' option into LT_INIT's first parameter.])
  7330. ])
  7331. dnl aclocal-1.4 backwards compatibility:
  7332. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7333. # win32-dll
  7334. # ---------
  7335. # Declare package support for building win32 dll's.
  7336. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7337. [enable_win32_dll=yes
  7338. case $host in
  7339. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7340. AC_CHECK_TOOL(AS, as, false)
  7341. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7342. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7343. ;;
  7344. esac
  7345. test -z "$AS" && AS=as
  7346. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7347. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7348. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7349. test -z "$OBJDUMP" && OBJDUMP=objdump
  7350. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7351. ])# win32-dll
  7352. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7353. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7354. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7355. AC_DIAGNOSE([obsolete],
  7356. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7357. put the `win32-dll' option into LT_INIT's first parameter.])
  7358. ])
  7359. dnl aclocal-1.4 backwards compatibility:
  7360. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7361. # _LT_ENABLE_SHARED([DEFAULT])
  7362. # ----------------------------
  7363. # implement the --enable-shared flag, and supports the `shared' and
  7364. # `disable-shared' LT_INIT options.
  7365. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7366. m4_define([_LT_ENABLE_SHARED],
  7367. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7368. AC_ARG_ENABLE([shared],
  7369. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7370. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7371. [p=${PACKAGE-default}
  7372. case $enableval in
  7373. yes) enable_shared=yes ;;
  7374. no) enable_shared=no ;;
  7375. *)
  7376. enable_shared=no
  7377. # Look at the argument we got. We use all the common list separators.
  7378. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7379. for pkg in $enableval; do
  7380. IFS="$lt_save_ifs"
  7381. if test "X$pkg" = "X$p"; then
  7382. enable_shared=yes
  7383. fi
  7384. done
  7385. IFS="$lt_save_ifs"
  7386. ;;
  7387. esac],
  7388. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7389. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7390. [Whether or not to build shared libraries])
  7391. ])# _LT_ENABLE_SHARED
  7392. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7393. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7394. # Old names:
  7395. AC_DEFUN([AC_ENABLE_SHARED],
  7396. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7397. ])
  7398. AC_DEFUN([AC_DISABLE_SHARED],
  7399. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7400. ])
  7401. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7402. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7403. dnl aclocal-1.4 backwards compatibility:
  7404. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7405. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7406. # _LT_ENABLE_STATIC([DEFAULT])
  7407. # ----------------------------
  7408. # implement the --enable-static flag, and support the `static' and
  7409. # `disable-static' LT_INIT options.
  7410. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7411. m4_define([_LT_ENABLE_STATIC],
  7412. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7413. AC_ARG_ENABLE([static],
  7414. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7415. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7416. [p=${PACKAGE-default}
  7417. case $enableval in
  7418. yes) enable_static=yes ;;
  7419. no) enable_static=no ;;
  7420. *)
  7421. enable_static=no
  7422. # Look at the argument we got. We use all the common list separators.
  7423. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7424. for pkg in $enableval; do
  7425. IFS="$lt_save_ifs"
  7426. if test "X$pkg" = "X$p"; then
  7427. enable_static=yes
  7428. fi
  7429. done
  7430. IFS="$lt_save_ifs"
  7431. ;;
  7432. esac],
  7433. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7434. _LT_DECL([build_old_libs], [enable_static], [0],
  7435. [Whether or not to build static libraries])
  7436. ])# _LT_ENABLE_STATIC
  7437. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7438. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7439. # Old names:
  7440. AC_DEFUN([AC_ENABLE_STATIC],
  7441. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7442. ])
  7443. AC_DEFUN([AC_DISABLE_STATIC],
  7444. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7445. ])
  7446. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7447. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7448. dnl aclocal-1.4 backwards compatibility:
  7449. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7450. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7451. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7452. # ----------------------------------
  7453. # implement the --enable-fast-install flag, and support the `fast-install'
  7454. # and `disable-fast-install' LT_INIT options.
  7455. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7456. m4_define([_LT_ENABLE_FAST_INSTALL],
  7457. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7458. AC_ARG_ENABLE([fast-install],
  7459. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7460. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7461. [p=${PACKAGE-default}
  7462. case $enableval in
  7463. yes) enable_fast_install=yes ;;
  7464. no) enable_fast_install=no ;;
  7465. *)
  7466. enable_fast_install=no
  7467. # Look at the argument we got. We use all the common list separators.
  7468. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7469. for pkg in $enableval; do
  7470. IFS="$lt_save_ifs"
  7471. if test "X$pkg" = "X$p"; then
  7472. enable_fast_install=yes
  7473. fi
  7474. done
  7475. IFS="$lt_save_ifs"
  7476. ;;
  7477. esac],
  7478. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7479. _LT_DECL([fast_install], [enable_fast_install], [0],
  7480. [Whether or not to optimize for fast installation])dnl
  7481. ])# _LT_ENABLE_FAST_INSTALL
  7482. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7483. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7484. # Old names:
  7485. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7486. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7487. AC_DIAGNOSE([obsolete],
  7488. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7489. the `fast-install' option into LT_INIT's first parameter.])
  7490. ])
  7491. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7492. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7493. AC_DIAGNOSE([obsolete],
  7494. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7495. the `disable-fast-install' option into LT_INIT's first parameter.])
  7496. ])
  7497. dnl aclocal-1.4 backwards compatibility:
  7498. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7499. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7500. # _LT_WITH_PIC([MODE])
  7501. # --------------------
  7502. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7503. # LT_INIT options.
  7504. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7505. m4_define([_LT_WITH_PIC],
  7506. [AC_ARG_WITH([pic],
  7507. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7508. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7509. [lt_p=${PACKAGE-default}
  7510. case $withval in
  7511. yes|no) pic_mode=$withval ;;
  7512. *)
  7513. pic_mode=default
  7514. # Look at the argument we got. We use all the common list separators.
  7515. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7516. for lt_pkg in $withval; do
  7517. IFS="$lt_save_ifs"
  7518. if test "X$lt_pkg" = "X$lt_p"; then
  7519. pic_mode=yes
  7520. fi
  7521. done
  7522. IFS="$lt_save_ifs"
  7523. ;;
  7524. esac],
  7525. [pic_mode=default])
  7526. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7527. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7528. ])# _LT_WITH_PIC
  7529. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7530. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7531. # Old name:
  7532. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7533. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7534. AC_DIAGNOSE([obsolete],
  7535. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7536. put the `pic-only' option into LT_INIT's first parameter.])
  7537. ])
  7538. dnl aclocal-1.4 backwards compatibility:
  7539. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7540. m4_define([_LTDL_MODE], [])
  7541. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7542. [m4_define([_LTDL_MODE], [nonrecursive])])
  7543. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7544. [m4_define([_LTDL_MODE], [recursive])])
  7545. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7546. [m4_define([_LTDL_MODE], [subproject])])
  7547. m4_define([_LTDL_TYPE], [])
  7548. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7549. [m4_define([_LTDL_TYPE], [installable])])
  7550. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7551. [m4_define([_LTDL_TYPE], [convenience])])
  7552. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7553. #
  7554. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7555. # Written by Gary V. Vaughan, 2004
  7556. #
  7557. # This file is free software; the Free Software Foundation gives
  7558. # unlimited permission to copy and/or distribute it, with or without
  7559. # modifications, as long as this notice is preserved.
  7560. # serial 6 ltsugar.m4
  7561. # This is to help aclocal find these macros, as it can't see m4_define.
  7562. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7563. # lt_join(SEP, ARG1, [ARG2...])
  7564. # -----------------------------
  7565. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7566. # associated separator.
  7567. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7568. # versions in m4sugar had bugs.
  7569. m4_define([lt_join],
  7570. [m4_if([$#], [1], [],
  7571. [$#], [2], [[$2]],
  7572. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7573. m4_define([_lt_join],
  7574. [m4_if([$#$2], [2], [],
  7575. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7576. # lt_car(LIST)
  7577. # lt_cdr(LIST)
  7578. # ------------
  7579. # Manipulate m4 lists.
  7580. # These macros are necessary as long as will still need to support
  7581. # Autoconf-2.59 which quotes differently.
  7582. m4_define([lt_car], [[$1]])
  7583. m4_define([lt_cdr],
  7584. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7585. [$#], 1, [],
  7586. [m4_dquote(m4_shift($@))])])
  7587. m4_define([lt_unquote], $1)
  7588. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7589. # ------------------------------------------
  7590. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7591. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7592. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7593. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7594. # than defined and empty).
  7595. #
  7596. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7597. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7598. m4_define([lt_append],
  7599. [m4_define([$1],
  7600. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7601. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7602. # ----------------------------------------------------------
  7603. # Produce a SEP delimited list of all paired combinations of elements of
  7604. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7605. # has the form PREFIXmINFIXSUFFIXn.
  7606. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7607. m4_define([lt_combine],
  7608. [m4_if(m4_eval([$# > 3]), [1],
  7609. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7610. [[m4_foreach([_Lt_prefix], [$2],
  7611. [m4_foreach([_Lt_suffix],
  7612. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7613. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7614. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7615. # -----------------------------------------------------------------------
  7616. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7617. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7618. m4_define([lt_if_append_uniq],
  7619. [m4_ifdef([$1],
  7620. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7621. [lt_append([$1], [$2], [$3])$4],
  7622. [$5])],
  7623. [lt_append([$1], [$2], [$3])$4])])
  7624. # lt_dict_add(DICT, KEY, VALUE)
  7625. # -----------------------------
  7626. m4_define([lt_dict_add],
  7627. [m4_define([$1($2)], [$3])])
  7628. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7629. # --------------------------------------------
  7630. m4_define([lt_dict_add_subkey],
  7631. [m4_define([$1($2:$3)], [$4])])
  7632. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7633. # ----------------------------------
  7634. m4_define([lt_dict_fetch],
  7635. [m4_ifval([$3],
  7636. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7637. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7638. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7639. # -----------------------------------------------------------------
  7640. m4_define([lt_if_dict_fetch],
  7641. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7642. [$5],
  7643. [$6])])
  7644. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7645. # --------------------------------------------------------------
  7646. m4_define([lt_dict_filter],
  7647. [m4_if([$5], [], [],
  7648. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7649. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7650. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7651. ])
  7652. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7653. #
  7654. # Copyright (C) 2004 Free Software Foundation, Inc.
  7655. # Written by Scott James Remnant, 2004
  7656. #
  7657. # This file is free software; the Free Software Foundation gives
  7658. # unlimited permission to copy and/or distribute it, with or without
  7659. # modifications, as long as this notice is preserved.
  7660. # @configure_input@
  7661. # serial 3337 ltversion.m4
  7662. # This file is part of GNU Libtool
  7663. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7664. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7665. AC_DEFUN([LTVERSION_VERSION],
  7666. [macro_version='2.4.2'
  7667. macro_revision='1.3337'
  7668. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7669. _LT_DECL(, macro_revision, 0)
  7670. ])
  7671. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7672. #
  7673. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7674. # Written by Scott James Remnant, 2004.
  7675. #
  7676. # This file is free software; the Free Software Foundation gives
  7677. # unlimited permission to copy and/or distribute it, with or without
  7678. # modifications, as long as this notice is preserved.
  7679. # serial 5 lt~obsolete.m4
  7680. # These exist entirely to fool aclocal when bootstrapping libtool.
  7681. #
  7682. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7683. # which have later been changed to m4_define as they aren't part of the
  7684. # exported API, or moved to Autoconf or Automake where they belong.
  7685. #
  7686. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7687. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7688. # using a macro with the same name in our local m4/libtool.m4 it'll
  7689. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7690. # and doesn't know about Autoconf macros at all.)
  7691. #
  7692. # So we provide this file, which has a silly filename so it's always
  7693. # included after everything else. This provides aclocal with the
  7694. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7695. # because those macros already exist, or will be overwritten later.
  7696. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7697. #
  7698. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7699. # Yes, that means every name once taken will need to remain here until
  7700. # we give up compatibility with versions before 1.7, at which point
  7701. # we need to keep only those names which we still refer to.
  7702. # This is to help aclocal find these macros, as it can't see m4_define.
  7703. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7704. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7705. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7706. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7707. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7708. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7709. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7710. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7711. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7712. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7713. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7714. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7715. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7716. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7717. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7718. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7719. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7720. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7721. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7722. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7723. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7724. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7725. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7726. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7727. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7728. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7729. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7730. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7731. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7732. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7733. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7734. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7735. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7736. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7737. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7738. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7739. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7740. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7741. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7742. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7743. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7744. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7745. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7746. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7747. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7748. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7749. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7750. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7751. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7752. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7753. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7754. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7755. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7756. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7757. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7758. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7759. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7760. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7761. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7762. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7763. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7764. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7765. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
  7766. # Foundation, Inc.
  7767. #
  7768. # This file is free software; the Free Software Foundation
  7769. # gives unlimited permission to copy and/or distribute it,
  7770. # with or without modifications, as long as this notice is preserved.
  7771. # serial 1
  7772. # AM_AUTOMAKE_VERSION(VERSION)
  7773. # ----------------------------
  7774. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7775. # generated from the m4 files accompanying Automake X.Y.
  7776. # (This private macro should not be called outside this file.)
  7777. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7778. [am__api_version='1.11'
  7779. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7780. dnl require some minimum version. Point them to the right macro.
  7781. m4_if([$1], [1.11.4], [],
  7782. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7783. ])
  7784. # _AM_AUTOCONF_VERSION(VERSION)
  7785. # -----------------------------
  7786. # aclocal traces this macro to find the Autoconf version.
  7787. # This is a private macro too. Using m4_define simplifies
  7788. # the logic in aclocal, which can simply ignore this definition.
  7789. m4_define([_AM_AUTOCONF_VERSION], [])
  7790. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7791. # -------------------------------
  7792. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7793. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7794. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7795. [AM_AUTOMAKE_VERSION([1.11.4])dnl
  7796. m4_ifndef([AC_AUTOCONF_VERSION],
  7797. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7798. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7799. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7800. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  7801. #
  7802. # This file is free software; the Free Software Foundation
  7803. # gives unlimited permission to copy and/or distribute it,
  7804. # with or without modifications, as long as this notice is preserved.
  7805. # serial 1
  7806. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7807. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7808. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7809. #
  7810. # Of course, Automake must honor this variable whenever it calls a
  7811. # tool from the auxiliary directory. The problem is that $srcdir (and
  7812. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7813. # depending on how configure is run. This is pretty annoying, since
  7814. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7815. # source directory, any form will work fine, but in subdirectories a
  7816. # relative path needs to be adjusted first.
  7817. #
  7818. # $ac_aux_dir/missing
  7819. # fails when called from a subdirectory if $ac_aux_dir is relative
  7820. # $top_srcdir/$ac_aux_dir/missing
  7821. # fails if $ac_aux_dir is absolute,
  7822. # fails when called from a subdirectory in a VPATH build with
  7823. # a relative $ac_aux_dir
  7824. #
  7825. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7826. # are both prefixed by $srcdir. In an in-source build this is usually
  7827. # harmless because $srcdir is `.', but things will broke when you
  7828. # start a VPATH build or use an absolute $srcdir.
  7829. #
  7830. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7831. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7832. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7833. # and then we would define $MISSING as
  7834. # MISSING="\${SHELL} $am_aux_dir/missing"
  7835. # This will work as long as MISSING is not called from configure, because
  7836. # unfortunately $(top_srcdir) has no meaning in configure.
  7837. # However there are other variables, like CC, which are often used in
  7838. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7839. #
  7840. # Another solution, used here, is to always expand $ac_aux_dir to an
  7841. # absolute PATH. The drawback is that using absolute paths prevent a
  7842. # configured tree to be moved without reconfiguration.
  7843. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7844. [dnl Rely on autoconf to set up CDPATH properly.
  7845. AC_PREREQ([2.50])dnl
  7846. # expand $ac_aux_dir to an absolute path
  7847. am_aux_dir=`cd $ac_aux_dir && pwd`
  7848. ])
  7849. # AM_CONDITIONAL -*- Autoconf -*-
  7850. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7851. # Free Software Foundation, Inc.
  7852. #
  7853. # This file is free software; the Free Software Foundation
  7854. # gives unlimited permission to copy and/or distribute it,
  7855. # with or without modifications, as long as this notice is preserved.
  7856. # serial 9
  7857. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7858. # -------------------------------------
  7859. # Define a conditional.
  7860. AC_DEFUN([AM_CONDITIONAL],
  7861. [AC_PREREQ(2.52)dnl
  7862. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7863. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7864. AC_SUBST([$1_TRUE])dnl
  7865. AC_SUBST([$1_FALSE])dnl
  7866. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7867. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7868. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7869. if $2; then
  7870. $1_TRUE=
  7871. $1_FALSE='#'
  7872. else
  7873. $1_TRUE='#'
  7874. $1_FALSE=
  7875. fi
  7876. AC_CONFIG_COMMANDS_PRE(
  7877. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7878. AC_MSG_ERROR([[conditional "$1" was never defined.
  7879. Usually this means the macro was only invoked conditionally.]])
  7880. fi])])
  7881. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
  7882. # 2010, 2011 Free Software Foundation, Inc.
  7883. #
  7884. # This file is free software; the Free Software Foundation
  7885. # gives unlimited permission to copy and/or distribute it,
  7886. # with or without modifications, as long as this notice is preserved.
  7887. # serial 12
  7888. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7889. # written in clear, in which case automake, when reading aclocal.m4,
  7890. # will think it sees a *use*, and therefore will trigger all it's
  7891. # C support machinery. Also note that it means that autoscan, seeing
  7892. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7893. # _AM_DEPENDENCIES(NAME)
  7894. # ----------------------
  7895. # See how the compiler implements dependency checking.
  7896. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7897. # We try a few techniques and use that to set a single cache variable.
  7898. #
  7899. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7900. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7901. # dependency, and given that the user is not expected to run this macro,
  7902. # just rely on AC_PROG_CC.
  7903. AC_DEFUN([_AM_DEPENDENCIES],
  7904. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7905. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7906. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7907. AC_REQUIRE([AM_DEP_TRACK])dnl
  7908. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7909. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7910. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7911. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7912. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7913. [depcc="$$1" am_compiler_list=])
  7914. AC_CACHE_CHECK([dependency style of $depcc],
  7915. [am_cv_$1_dependencies_compiler_type],
  7916. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7917. # We make a subdir and do the tests there. Otherwise we can end up
  7918. # making bogus files that we don't know about and never remove. For
  7919. # instance it was reported that on HP-UX the gcc test will end up
  7920. # making a dummy file named `D' -- because `-MD' means `put the output
  7921. # in D'.
  7922. rm -rf conftest.dir
  7923. mkdir conftest.dir
  7924. # Copy depcomp to subdir because otherwise we won't find it if we're
  7925. # using a relative directory.
  7926. cp "$am_depcomp" conftest.dir
  7927. cd conftest.dir
  7928. # We will build objects and dependencies in a subdirectory because
  7929. # it helps to detect inapplicable dependency modes. For instance
  7930. # both Tru64's cc and ICC support -MD to output dependencies as a
  7931. # side effect of compilation, but ICC will put the dependencies in
  7932. # the current directory while Tru64 will put them in the object
  7933. # directory.
  7934. mkdir sub
  7935. am_cv_$1_dependencies_compiler_type=none
  7936. if test "$am_compiler_list" = ""; then
  7937. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7938. fi
  7939. am__universal=false
  7940. m4_case([$1], [CC],
  7941. [case " $depcc " in #(
  7942. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7943. esac],
  7944. [CXX],
  7945. [case " $depcc " in #(
  7946. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7947. esac])
  7948. for depmode in $am_compiler_list; do
  7949. # Setup a source with many dependencies, because some compilers
  7950. # like to wrap large dependency lists on column 80 (with \), and
  7951. # we should not choose a depcomp mode which is confused by this.
  7952. #
  7953. # We need to recreate these files for each test, as the compiler may
  7954. # overwrite some of them when testing with obscure command lines.
  7955. # This happens at least with the AIX C compiler.
  7956. : > sub/conftest.c
  7957. for i in 1 2 3 4 5 6; do
  7958. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7959. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7960. # Solaris 8's {/usr,}/bin/sh.
  7961. touch sub/conftst$i.h
  7962. done
  7963. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7964. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7965. # mode. It turns out that the SunPro C++ compiler does not properly
  7966. # handle `-M -o', and we need to detect this. Also, some Intel
  7967. # versions had trouble with output in subdirs
  7968. am__obj=sub/conftest.${OBJEXT-o}
  7969. am__minus_obj="-o $am__obj"
  7970. case $depmode in
  7971. gcc)
  7972. # This depmode causes a compiler race in universal mode.
  7973. test "$am__universal" = false || continue
  7974. ;;
  7975. nosideeffect)
  7976. # after this tag, mechanisms are not by side-effect, so they'll
  7977. # only be used when explicitly requested
  7978. if test "x$enable_dependency_tracking" = xyes; then
  7979. continue
  7980. else
  7981. break
  7982. fi
  7983. ;;
  7984. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7985. # This compiler won't grok `-c -o', but also, the minuso test has
  7986. # not run yet. These depmodes are late enough in the game, and
  7987. # so weak that their functioning should not be impacted.
  7988. am__obj=conftest.${OBJEXT-o}
  7989. am__minus_obj=
  7990. ;;
  7991. none) break ;;
  7992. esac
  7993. if depmode=$depmode \
  7994. source=sub/conftest.c object=$am__obj \
  7995. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7996. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7997. >/dev/null 2>conftest.err &&
  7998. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7999. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8000. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8001. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8002. # icc doesn't choke on unknown options, it will just issue warnings
  8003. # or remarks (even with -Werror). So we grep stderr for any message
  8004. # that says an option was ignored or not supported.
  8005. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8006. # icc: Command line warning: ignoring option '-M'; no argument required
  8007. # The diagnosis changed in icc 8.0:
  8008. # icc: Command line remark: option '-MP' not supported
  8009. if (grep 'ignoring option' conftest.err ||
  8010. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8011. am_cv_$1_dependencies_compiler_type=$depmode
  8012. break
  8013. fi
  8014. fi
  8015. done
  8016. cd ..
  8017. rm -rf conftest.dir
  8018. else
  8019. am_cv_$1_dependencies_compiler_type=none
  8020. fi
  8021. ])
  8022. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8023. AM_CONDITIONAL([am__fastdep$1], [
  8024. test "x$enable_dependency_tracking" != xno \
  8025. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8026. ])
  8027. # AM_SET_DEPDIR
  8028. # -------------
  8029. # Choose a directory name for dependency files.
  8030. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8031. AC_DEFUN([AM_SET_DEPDIR],
  8032. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8033. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8034. ])
  8035. # AM_DEP_TRACK
  8036. # ------------
  8037. AC_DEFUN([AM_DEP_TRACK],
  8038. [AC_ARG_ENABLE(dependency-tracking,
  8039. [ --disable-dependency-tracking speeds up one-time build
  8040. --enable-dependency-tracking do not reject slow dependency extractors])
  8041. if test "x$enable_dependency_tracking" != xno; then
  8042. am_depcomp="$ac_aux_dir/depcomp"
  8043. AMDEPBACKSLASH='\'
  8044. am__nodep='_no'
  8045. fi
  8046. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8047. AC_SUBST([AMDEPBACKSLASH])dnl
  8048. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8049. AC_SUBST([am__nodep])dnl
  8050. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8051. ])
  8052. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8053. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8054. # Free Software Foundation, Inc.
  8055. #
  8056. # This file is free software; the Free Software Foundation
  8057. # gives unlimited permission to copy and/or distribute it,
  8058. # with or without modifications, as long as this notice is preserved.
  8059. #serial 5
  8060. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8061. # ------------------------------
  8062. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8063. [{
  8064. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8065. # are listed without --file. Let's play safe and only enable the eval
  8066. # if we detect the quoting.
  8067. case $CONFIG_FILES in
  8068. *\'*) eval set x "$CONFIG_FILES" ;;
  8069. *) set x $CONFIG_FILES ;;
  8070. esac
  8071. shift
  8072. for mf
  8073. do
  8074. # Strip MF so we end up with the name of the file.
  8075. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8076. # Check whether this is an Automake generated Makefile or not.
  8077. # We used to match only the files named `Makefile.in', but
  8078. # some people rename them; so instead we look at the file content.
  8079. # Grep'ing the first line is not enough: some people post-process
  8080. # each Makefile.in and add a new line on top of each file to say so.
  8081. # Grep'ing the whole file is not good either: AIX grep has a line
  8082. # limit of 2048, but all sed's we know have understand at least 4000.
  8083. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8084. dirpart=`AS_DIRNAME("$mf")`
  8085. else
  8086. continue
  8087. fi
  8088. # Extract the definition of DEPDIR, am__include, and am__quote
  8089. # from the Makefile without running `make'.
  8090. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8091. test -z "$DEPDIR" && continue
  8092. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8093. test -z "am__include" && continue
  8094. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8095. # When using ansi2knr, U may be empty or an underscore; expand it
  8096. U=`sed -n 's/^U = //p' < "$mf"`
  8097. # Find all dependency output files, they are included files with
  8098. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8099. # simplest approach to changing $(DEPDIR) to its actual value in the
  8100. # expansion.
  8101. for file in `sed -n "
  8102. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8103. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8104. # Make sure the directory exists.
  8105. test -f "$dirpart/$file" && continue
  8106. fdir=`AS_DIRNAME(["$file"])`
  8107. AS_MKDIR_P([$dirpart/$fdir])
  8108. # echo "creating $dirpart/$file"
  8109. echo '# dummy' > "$dirpart/$file"
  8110. done
  8111. done
  8112. }
  8113. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8114. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8115. # -----------------------------
  8116. # This macro should only be invoked once -- use via AC_REQUIRE.
  8117. #
  8118. # This code is only required when automatic dependency tracking
  8119. # is enabled. FIXME. This creates each `.P' file that we will
  8120. # need in order to bootstrap the dependency handling code.
  8121. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8122. [AC_CONFIG_COMMANDS([depfiles],
  8123. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8124. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8125. ])
  8126. # Do all the work for Automake. -*- Autoconf -*-
  8127. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8128. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8129. #
  8130. # This file is free software; the Free Software Foundation
  8131. # gives unlimited permission to copy and/or distribute it,
  8132. # with or without modifications, as long as this notice is preserved.
  8133. # serial 16
  8134. # This macro actually does too much. Some checks are only needed if
  8135. # your package does certain things. But this isn't really a big deal.
  8136. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8137. # AM_INIT_AUTOMAKE([OPTIONS])
  8138. # -----------------------------------------------
  8139. # The call with PACKAGE and VERSION arguments is the old style
  8140. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8141. # and VERSION should now be passed to AC_INIT and removed from
  8142. # the call to AM_INIT_AUTOMAKE.
  8143. # We support both call styles for the transition. After
  8144. # the next Automake release, Autoconf can make the AC_INIT
  8145. # arguments mandatory, and then we can depend on a new Autoconf
  8146. # release and drop the old call support.
  8147. AC_DEFUN([AM_INIT_AUTOMAKE],
  8148. [AC_PREREQ([2.62])dnl
  8149. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8150. dnl the ones we care about.
  8151. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8152. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8153. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8154. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8155. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8156. # is not polluted with repeated "-I."
  8157. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8158. # test to see if srcdir already configured
  8159. if test -f $srcdir/config.status; then
  8160. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8161. fi
  8162. fi
  8163. # test whether we have cygpath
  8164. if test -z "$CYGPATH_W"; then
  8165. if (cygpath --version) >/dev/null 2>/dev/null; then
  8166. CYGPATH_W='cygpath -w'
  8167. else
  8168. CYGPATH_W=echo
  8169. fi
  8170. fi
  8171. AC_SUBST([CYGPATH_W])
  8172. # Define the identity of the package.
  8173. dnl Distinguish between old-style and new-style calls.
  8174. m4_ifval([$2],
  8175. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8176. AC_SUBST([PACKAGE], [$1])dnl
  8177. AC_SUBST([VERSION], [$2])],
  8178. [_AM_SET_OPTIONS([$1])dnl
  8179. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8180. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8181. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8182. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8183. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8184. _AM_IF_OPTION([no-define],,
  8185. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8186. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8187. # Some tools Automake needs.
  8188. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8189. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8190. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8191. AM_MISSING_PROG(AUTOCONF, autoconf)
  8192. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8193. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8194. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8195. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8196. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8197. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8198. # We need awk for the "check" target. The system "awk" is bad on
  8199. # some platforms.
  8200. AC_REQUIRE([AC_PROG_AWK])dnl
  8201. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8202. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8203. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8204. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8205. [_AM_PROG_TAR([v7])])])
  8206. _AM_IF_OPTION([no-dependencies],,
  8207. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8208. [_AM_DEPENDENCIES(CC)],
  8209. [define([AC_PROG_CC],
  8210. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8211. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8212. [_AM_DEPENDENCIES(CXX)],
  8213. [define([AC_PROG_CXX],
  8214. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8215. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8216. [_AM_DEPENDENCIES(OBJC)],
  8217. [define([AC_PROG_OBJC],
  8218. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8219. ])
  8220. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8221. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8222. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8223. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8224. AC_CONFIG_COMMANDS_PRE(dnl
  8225. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8226. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8227. ])
  8228. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8229. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8230. dnl mangled by Autoconf and run in a shell conditional statement.
  8231. m4_define([_AC_COMPILER_EXEEXT],
  8232. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8233. # When config.status generates a header, we must update the stamp-h file.
  8234. # This file resides in the same directory as the config header
  8235. # that is generated. The stamp files are numbered to have different names.
  8236. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8237. # loop where config.status creates the headers, so we can generate
  8238. # our stamp files there.
  8239. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8240. [# Compute $1's index in $config_headers.
  8241. _am_arg=$1
  8242. _am_stamp_count=1
  8243. for _am_header in $config_headers :; do
  8244. case $_am_header in
  8245. $_am_arg | $_am_arg:* )
  8246. break ;;
  8247. * )
  8248. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8249. esac
  8250. done
  8251. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8252. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
  8253. # Inc.
  8254. #
  8255. # This file is free software; the Free Software Foundation
  8256. # gives unlimited permission to copy and/or distribute it,
  8257. # with or without modifications, as long as this notice is preserved.
  8258. # serial 1
  8259. # AM_PROG_INSTALL_SH
  8260. # ------------------
  8261. # Define $install_sh.
  8262. AC_DEFUN([AM_PROG_INSTALL_SH],
  8263. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8264. if test x"${install_sh}" != xset; then
  8265. case $am_aux_dir in
  8266. *\ * | *\ *)
  8267. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8268. *)
  8269. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8270. esac
  8271. fi
  8272. AC_SUBST(install_sh)])
  8273. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8274. #
  8275. # This file is free software; the Free Software Foundation
  8276. # gives unlimited permission to copy and/or distribute it,
  8277. # with or without modifications, as long as this notice is preserved.
  8278. # serial 2
  8279. # Check whether the underlying file-system supports filenames
  8280. # with a leading dot. For instance MS-DOS doesn't.
  8281. AC_DEFUN([AM_SET_LEADING_DOT],
  8282. [rm -rf .tst 2>/dev/null
  8283. mkdir .tst 2>/dev/null
  8284. if test -d .tst; then
  8285. am__leading_dot=.
  8286. else
  8287. am__leading_dot=_
  8288. fi
  8289. rmdir .tst 2>/dev/null
  8290. AC_SUBST([am__leading_dot])])
  8291. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8292. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8293. #
  8294. # This file is free software; the Free Software Foundation
  8295. # gives unlimited permission to copy and/or distribute it,
  8296. # with or without modifications, as long as this notice is preserved.
  8297. # serial 4
  8298. # AM_MAKE_INCLUDE()
  8299. # -----------------
  8300. # Check to see how make treats includes.
  8301. AC_DEFUN([AM_MAKE_INCLUDE],
  8302. [am_make=${MAKE-make}
  8303. cat > confinc << 'END'
  8304. am__doit:
  8305. @echo this is the am__doit target
  8306. .PHONY: am__doit
  8307. END
  8308. # If we don't find an include directive, just comment out the code.
  8309. AC_MSG_CHECKING([for style of include used by $am_make])
  8310. am__include="#"
  8311. am__quote=
  8312. _am_result=none
  8313. # First try GNU make style include.
  8314. echo "include confinc" > confmf
  8315. # Ignore all kinds of additional output from `make'.
  8316. case `$am_make -s -f confmf 2> /dev/null` in #(
  8317. *the\ am__doit\ target*)
  8318. am__include=include
  8319. am__quote=
  8320. _am_result=GNU
  8321. ;;
  8322. esac
  8323. # Now try BSD make style include.
  8324. if test "$am__include" = "#"; then
  8325. echo '.include "confinc"' > confmf
  8326. case `$am_make -s -f confmf 2> /dev/null` in #(
  8327. *the\ am__doit\ target*)
  8328. am__include=.include
  8329. am__quote="\""
  8330. _am_result=BSD
  8331. ;;
  8332. esac
  8333. fi
  8334. AC_SUBST([am__include])
  8335. AC_SUBST([am__quote])
  8336. AC_MSG_RESULT([$_am_result])
  8337. rm -f confinc confmf
  8338. ])
  8339. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8340. # Free Software Foundation, Inc.
  8341. #
  8342. # This file is free software; the Free Software Foundation
  8343. # gives unlimited permission to copy and/or distribute it,
  8344. # with or without modifications, as long as this notice is preserved.
  8345. # serial 6
  8346. # AM_PROG_CC_C_O
  8347. # --------------
  8348. # Like AC_PROG_CC_C_O, but changed for automake.
  8349. AC_DEFUN([AM_PROG_CC_C_O],
  8350. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8351. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8352. AC_REQUIRE_AUX_FILE([compile])dnl
  8353. # FIXME: we rely on the cache variable name because
  8354. # there is no other way.
  8355. set dummy $CC
  8356. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8357. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8358. if test "$am_t" != yes; then
  8359. # Losing compiler, so override with the script.
  8360. # FIXME: It is wrong to rewrite CC.
  8361. # But if we don't then we get into trouble of one sort or another.
  8362. # A longer-term fix would be to have automake use am__CC in this case,
  8363. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8364. CC="$am_aux_dir/compile $CC"
  8365. fi
  8366. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8367. dnl setting of CC.
  8368. m4_define([AC_PROG_CC],
  8369. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8370. ])
  8371. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8372. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8373. # Free Software Foundation, Inc.
  8374. #
  8375. # This file is free software; the Free Software Foundation
  8376. # gives unlimited permission to copy and/or distribute it,
  8377. # with or without modifications, as long as this notice is preserved.
  8378. # serial 6
  8379. # AM_MISSING_PROG(NAME, PROGRAM)
  8380. # ------------------------------
  8381. AC_DEFUN([AM_MISSING_PROG],
  8382. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8383. $1=${$1-"${am_missing_run}$2"}
  8384. AC_SUBST($1)])
  8385. # AM_MISSING_HAS_RUN
  8386. # ------------------
  8387. # Define MISSING if not defined so far and test if it supports --run.
  8388. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8389. AC_DEFUN([AM_MISSING_HAS_RUN],
  8390. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8391. AC_REQUIRE_AUX_FILE([missing])dnl
  8392. if test x"${MISSING+set}" != xset; then
  8393. case $am_aux_dir in
  8394. *\ * | *\ *)
  8395. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8396. *)
  8397. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8398. esac
  8399. fi
  8400. # Use eval to expand $SHELL
  8401. if eval "$MISSING --run true"; then
  8402. am_missing_run="$MISSING --run "
  8403. else
  8404. am_missing_run=
  8405. AC_MSG_WARN([`missing' script is too old or missing])
  8406. fi
  8407. ])
  8408. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
  8409. # Inc.
  8410. #
  8411. # This file is free software; the Free Software Foundation
  8412. # gives unlimited permission to copy and/or distribute it,
  8413. # with or without modifications, as long as this notice is preserved.
  8414. # serial 1
  8415. # AM_PROG_MKDIR_P
  8416. # ---------------
  8417. # Check for `mkdir -p'.
  8418. AC_DEFUN([AM_PROG_MKDIR_P],
  8419. [AC_PREREQ([2.60])dnl
  8420. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8421. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8422. dnl while keeping a definition of mkdir_p for backward compatibility.
  8423. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8424. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8425. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8426. dnl adjustment using top_builddir (which is defined more often than
  8427. dnl MKDIR_P).
  8428. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8429. case $mkdir_p in
  8430. [[\\/$]]* | ?:[[\\/]]*) ;;
  8431. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8432. esac
  8433. ])
  8434. # Helper functions for option handling. -*- Autoconf -*-
  8435. # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
  8436. # Foundation, Inc.
  8437. #
  8438. # This file is free software; the Free Software Foundation
  8439. # gives unlimited permission to copy and/or distribute it,
  8440. # with or without modifications, as long as this notice is preserved.
  8441. # serial 5
  8442. # _AM_MANGLE_OPTION(NAME)
  8443. # -----------------------
  8444. AC_DEFUN([_AM_MANGLE_OPTION],
  8445. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8446. # _AM_SET_OPTION(NAME)
  8447. # --------------------
  8448. # Set option NAME. Presently that only means defining a flag for this option.
  8449. AC_DEFUN([_AM_SET_OPTION],
  8450. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8451. # _AM_SET_OPTIONS(OPTIONS)
  8452. # ------------------------
  8453. # OPTIONS is a space-separated list of Automake options.
  8454. AC_DEFUN([_AM_SET_OPTIONS],
  8455. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8456. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8457. # -------------------------------------------
  8458. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8459. AC_DEFUN([_AM_IF_OPTION],
  8460. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8461. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8462. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8463. # Free Software Foundation, Inc.
  8464. #
  8465. # This file is free software; the Free Software Foundation
  8466. # gives unlimited permission to copy and/or distribute it,
  8467. # with or without modifications, as long as this notice is preserved.
  8468. # serial 5
  8469. # AM_SANITY_CHECK
  8470. # ---------------
  8471. AC_DEFUN([AM_SANITY_CHECK],
  8472. [AC_MSG_CHECKING([whether build environment is sane])
  8473. # Just in case
  8474. sleep 1
  8475. echo timestamp > conftest.file
  8476. # Reject unsafe characters in $srcdir or the absolute working directory
  8477. # name. Accept space and tab only in the latter.
  8478. am_lf='
  8479. '
  8480. case `pwd` in
  8481. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8482. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8483. esac
  8484. case $srcdir in
  8485. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8486. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8487. esac
  8488. # Do `set' in a subshell so we don't clobber the current shell's
  8489. # arguments. Must try -L first in case configure is actually a
  8490. # symlink; some systems play weird games with the mod time of symlinks
  8491. # (eg FreeBSD returns the mod time of the symlink's containing
  8492. # directory).
  8493. if (
  8494. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8495. if test "$[*]" = "X"; then
  8496. # -L didn't work.
  8497. set X `ls -t "$srcdir/configure" conftest.file`
  8498. fi
  8499. rm -f conftest.file
  8500. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8501. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8502. # If neither matched, then we have a broken ls. This can happen
  8503. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8504. # broken ls alias from the environment. This has actually
  8505. # happened. Such a system could not be considered "sane".
  8506. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8507. alias in your environment])
  8508. fi
  8509. test "$[2]" = conftest.file
  8510. )
  8511. then
  8512. # Ok.
  8513. :
  8514. else
  8515. AC_MSG_ERROR([newly created file is older than distributed files!
  8516. Check your system clock])
  8517. fi
  8518. AC_MSG_RESULT(yes)])
  8519. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  8520. #
  8521. # This file is free software; the Free Software Foundation
  8522. # gives unlimited permission to copy and/or distribute it,
  8523. # with or without modifications, as long as this notice is preserved.
  8524. # serial 1
  8525. # AM_PROG_INSTALL_STRIP
  8526. # ---------------------
  8527. # One issue with vendor `install' (even GNU) is that you can't
  8528. # specify the program used to strip binaries. This is especially
  8529. # annoying in cross-compiling environments, where the build's strip
  8530. # is unlikely to handle the host's binaries.
  8531. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8532. # always use install-sh in `make install-strip', and initialize
  8533. # STRIPPROG with the value of the STRIP variable (set by the user).
  8534. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8535. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8536. # Installed binaries are usually stripped using `strip' when the user
  8537. # run `make install-strip'. However `strip' might not be the right
  8538. # tool to use in cross-compilation environments, therefore Automake
  8539. # will honor the `STRIP' environment variable to overrule this program.
  8540. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8541. if test "$cross_compiling" != no; then
  8542. AC_CHECK_TOOL([STRIP], [strip], :)
  8543. fi
  8544. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8545. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8546. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
  8547. #
  8548. # This file is free software; the Free Software Foundation
  8549. # gives unlimited permission to copy and/or distribute it,
  8550. # with or without modifications, as long as this notice is preserved.
  8551. # serial 3
  8552. # _AM_SUBST_NOTMAKE(VARIABLE)
  8553. # ---------------------------
  8554. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8555. # This macro is traced by Automake.
  8556. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8557. # AM_SUBST_NOTMAKE(VARIABLE)
  8558. # --------------------------
  8559. # Public sister of _AM_SUBST_NOTMAKE.
  8560. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8561. # Check how to create a tarball. -*- Autoconf -*-
  8562. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
  8563. #
  8564. # This file is free software; the Free Software Foundation
  8565. # gives unlimited permission to copy and/or distribute it,
  8566. # with or without modifications, as long as this notice is preserved.
  8567. # serial 2
  8568. # _AM_PROG_TAR(FORMAT)
  8569. # --------------------
  8570. # Check how to create a tarball in format FORMAT.
  8571. # FORMAT should be one of `v7', `ustar', or `pax'.
  8572. #
  8573. # Substitute a variable $(am__tar) that is a command
  8574. # writing to stdout a FORMAT-tarball containing the directory
  8575. # $tardir.
  8576. # tardir=directory && $(am__tar) > result.tar
  8577. #
  8578. # Substitute a variable $(am__untar) that extract such
  8579. # a tarball read from stdin.
  8580. # $(am__untar) < result.tar
  8581. AC_DEFUN([_AM_PROG_TAR],
  8582. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8583. # in the wild :-( We should find a proper way to deprecate it ...
  8584. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8585. m4_if([$1], [v7],
  8586. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8587. [m4_case([$1], [ustar],, [pax],,
  8588. [m4_fatal([Unknown tar format])])
  8589. AC_MSG_CHECKING([how to create a $1 tar archive])
  8590. # Loop over all known methods to create a tar archive until one works.
  8591. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8592. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8593. # Do not fold the above two line into one, because Tru64 sh and
  8594. # Solaris sh will not grok spaces in the rhs of `-'.
  8595. for _am_tool in $_am_tools
  8596. do
  8597. case $_am_tool in
  8598. gnutar)
  8599. for _am_tar in tar gnutar gtar;
  8600. do
  8601. AM_RUN_LOG([$_am_tar --version]) && break
  8602. done
  8603. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8604. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8605. am__untar="$_am_tar -xf -"
  8606. ;;
  8607. plaintar)
  8608. # Must skip GNU tar: if it does not support --format= it doesn't create
  8609. # ustar tarball either.
  8610. (tar --version) >/dev/null 2>&1 && continue
  8611. am__tar='tar chf - "$$tardir"'
  8612. am__tar_='tar chf - "$tardir"'
  8613. am__untar='tar xf -'
  8614. ;;
  8615. pax)
  8616. am__tar='pax -L -x $1 -w "$$tardir"'
  8617. am__tar_='pax -L -x $1 -w "$tardir"'
  8618. am__untar='pax -r'
  8619. ;;
  8620. cpio)
  8621. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8622. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8623. am__untar='cpio -i -H $1 -d'
  8624. ;;
  8625. none)
  8626. am__tar=false
  8627. am__tar_=false
  8628. am__untar=false
  8629. ;;
  8630. esac
  8631. # If the value was cached, stop now. We just wanted to have am__tar
  8632. # and am__untar set.
  8633. test -n "${am_cv_prog_tar_$1}" && break
  8634. # tar/untar a dummy directory, and stop if the command works
  8635. rm -rf conftest.dir
  8636. mkdir conftest.dir
  8637. echo GrepMe > conftest.dir/file
  8638. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8639. rm -rf conftest.dir
  8640. if test -s conftest.tar; then
  8641. AM_RUN_LOG([$am__untar <conftest.tar])
  8642. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8643. fi
  8644. done
  8645. rm -rf conftest.dir
  8646. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8647. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8648. AC_SUBST([am__tar])
  8649. AC_SUBST([am__untar])
  8650. ]) # _AM_PROG_TAR