101-autotools.patch 973 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014
  1. --- a/libcharset/configure.ac
  2. +++ b/libcharset/configure.ac
  3. @@ -16,17 +16,17 @@ dnl along with the GNU CHARSET Library;
  4. dnl write to the Free Software Foundation, Inc., 51 Franklin Street,
  5. dnl Fifth Floor, Boston, MA 02110-1301, USA.
  6. -AC_PREREQ(2.13)
  7. +AC_PREREQ(2.61)
  8. +AC_INIT([libcharset],[1.4] )
  9. +AC_CONFIG_SRCDIR([lib/localcharset.c])
  10. -PACKAGE=libcharset
  11. -VERSION=1.4
  12. -
  13. -AC_INIT(lib/localcharset.c)
  14. AC_CONFIG_AUX_DIR(build-aux)
  15. AC_CONFIG_HEADER(config.h)
  16. AC_PROG_MAKE_SET
  17. -AC_SUBST(PACKAGE)
  18. -AC_SUBST(VERSION)
  19. +dnl AC_SUBST(PACKAGE)
  20. +dnl AC_SUBST(VERSION)
  21. +
  22. +AC_CONFIG_MACRO_DIR([m4])
  23. dnl checks for basic programs
  24. --- a/configure.ac
  25. +++ b/configure.ac
  26. @@ -24,6 +24,8 @@ AM_INIT_AUTOMAKE(libiconv, 1.11)
  27. AC_CONFIG_HEADERS(config.h lib/config.h)
  28. AC_PROG_MAKE_SET
  29. +AC_CONFIG_MACRO_DIR([m4])
  30. +
  31. dnl checks for basic programs
  32. AC_PROG_CC
  33. --- a/libcharset/m4/libtool.m4
  34. +++ b/libcharset/m4/libtool.m4
  35. @@ -1,107 +1,186 @@
  36. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  37. -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
  38. -## Free Software Foundation, Inc.
  39. -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  40. -##
  41. -## This file is free software; the Free Software Foundation gives
  42. -## unlimited permission to copy and/or distribute it, with or without
  43. -## modifications, as long as this notice is preserved.
  44. -
  45. -# serial 48 AC_PROG_LIBTOOL
  46. -
  47. -
  48. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  49. -# -----------------------------------------------------------
  50. -# If this macro is not defined by Autoconf, define it here.
  51. -m4_ifdef([AC_PROVIDE_IFELSE],
  52. - [],
  53. - [m4_define([AC_PROVIDE_IFELSE],
  54. - [m4_ifdef([AC_PROVIDE_$1],
  55. - [$2], [$3])])])
  56. +#
  57. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  58. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  59. +# Written by Gordon Matzigkeit, 1996
  60. +#
  61. +# This file is free software; the Free Software Foundation gives
  62. +# unlimited permission to copy and/or distribute it, with or without
  63. +# modifications, as long as this notice is preserved.
  64. +
  65. +m4_define([_LT_COPYING], [dnl
  66. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  67. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  68. +# Written by Gordon Matzigkeit, 1996
  69. +#
  70. +# This file is part of GNU Libtool.
  71. +#
  72. +# GNU Libtool is free software; you can redistribute it and/or
  73. +# modify it under the terms of the GNU General Public License as
  74. +# published by the Free Software Foundation; either version 2 of
  75. +# the License, or (at your option) any later version.
  76. +#
  77. +# As a special exception to the GNU General Public License,
  78. +# if you distribute this file as part of a program or library that
  79. +# is built using GNU Libtool, you may include this file under the
  80. +# same distribution terms that you use for the rest of that program.
  81. +#
  82. +# GNU Libtool is distributed in the hope that it will be useful,
  83. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  84. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  85. +# GNU General Public License for more details.
  86. +#
  87. +# You should have received a copy of the GNU General Public License
  88. +# along with GNU Libtool; see the file COPYING. If not, a copy
  89. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  90. +# obtained by writing to the Free Software Foundation, Inc.,
  91. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  92. +])
  93. +# serial 56 LT_INIT
  94. -# AC_PROG_LIBTOOL
  95. -# ---------------
  96. -AC_DEFUN([AC_PROG_LIBTOOL],
  97. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  98. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  99. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  100. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  101. - [AC_LIBTOOL_CXX],
  102. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  103. - ])])
  104. -dnl And a similar setup for Fortran 77 support
  105. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  106. - [AC_LIBTOOL_F77],
  107. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  108. -])])
  109. -
  110. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  111. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  112. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  113. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  114. - [AC_LIBTOOL_GCJ],
  115. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  116. - [AC_LIBTOOL_GCJ],
  117. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  118. - [AC_LIBTOOL_GCJ],
  119. - [ifdef([AC_PROG_GCJ],
  120. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  121. - ifdef([A][M_PROG_GCJ],
  122. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  123. - ifdef([LT_AC_PROG_GCJ],
  124. - [define([LT_AC_PROG_GCJ],
  125. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  126. -])])# AC_PROG_LIBTOOL
  127. +# LT_PREREQ(VERSION)
  128. +# ------------------
  129. +# Complain and exit if this libtool version is less that VERSION.
  130. +m4_defun([LT_PREREQ],
  131. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  132. + [m4_default([$3],
  133. + [m4_fatal([Libtool version $1 or higher is required],
  134. + 63)])],
  135. + [$2])])
  136. -# _AC_PROG_LIBTOOL
  137. -# ----------------
  138. -AC_DEFUN([_AC_PROG_LIBTOOL],
  139. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  140. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  141. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  142. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  143. +
  144. +# _LT_CHECK_BUILDDIR
  145. +# ------------------
  146. +# Complain if the absolute build directory name contains unusual characters
  147. +m4_defun([_LT_CHECK_BUILDDIR],
  148. +[case `pwd` in
  149. + *\ * | *\ *)
  150. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  151. +esac
  152. +])
  153. +
  154. +
  155. +# LT_INIT([OPTIONS])
  156. +# ------------------
  157. +AC_DEFUN([LT_INIT],
  158. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  159. +AC_BEFORE([$0], [LT_LANG])dnl
  160. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  161. +AC_BEFORE([$0], [LTDL_INIT])dnl
  162. +m4_require([_LT_CHECK_BUILDDIR])dnl
  163. +
  164. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  165. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  166. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  167. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  168. +dnl unless we require an AC_DEFUNed macro:
  169. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  170. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  171. +AC_REQUIRE([LTVERSION_VERSION])dnl
  172. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  173. +m4_require([_LT_PROG_LTMAIN])dnl
  174. +
  175. +dnl Parse OPTIONS
  176. +_LT_SET_OPTIONS([$0], [$1])
  177. # This can be used to rebuild libtool when needed
  178. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  179. +LIBTOOL_DEPS="$ltmain"
  180. # Always use our own libtool.
  181. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  182. +LIBTOOL='$(SHELL) $(top_builddir)'
  183. +LIBTOOL="$LIBTOOL/$host_alias-libtool"
  184. AC_SUBST(LIBTOOL)dnl
  185. -# Prevent multiple expansion
  186. -define([AC_PROG_LIBTOOL], [])
  187. -])# _AC_PROG_LIBTOOL
  188. +_LT_SETUP
  189. +# Only expand once:
  190. +m4_define([LT_INIT])
  191. +])# LT_INIT
  192. +
  193. +# Old names:
  194. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  195. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  196. +dnl aclocal-1.4 backwards compatibility:
  197. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  198. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  199. -# AC_LIBTOOL_SETUP
  200. -# ----------------
  201. -AC_DEFUN([AC_LIBTOOL_SETUP],
  202. -[AC_PREREQ(2.50)dnl
  203. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  204. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  205. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  206. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  207. +
  208. +# _LT_CC_BASENAME(CC)
  209. +# -------------------
  210. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  211. +m4_defun([_LT_CC_BASENAME],
  212. +[for cc_temp in $1""; do
  213. + case $cc_temp in
  214. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  215. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  216. + \-*) ;;
  217. + *) break;;
  218. + esac
  219. +done
  220. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  221. +])
  222. +
  223. +
  224. +# _LT_FILEUTILS_DEFAULTS
  225. +# ----------------------
  226. +# It is okay to use these file commands and assume they have been set
  227. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  228. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  229. +[: ${CP="cp -f"}
  230. +: ${MV="mv -f"}
  231. +: ${RM="rm -f"}
  232. +])# _LT_FILEUTILS_DEFAULTS
  233. +
  234. +
  235. +# _LT_SETUP
  236. +# ---------
  237. +m4_defun([_LT_SETUP],
  238. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  239. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  240. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  241. +_LT_DECL([], [host], [0])dnl
  242. +_LT_DECL([], [host_os], [0])dnl
  243. +dnl
  244. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  245. +_LT_DECL([], [build], [0])dnl
  246. +_LT_DECL([], [build_os], [0])dnl
  247. +dnl
  248. AC_REQUIRE([AC_PROG_CC])dnl
  249. -AC_REQUIRE([AC_PROG_LD])dnl
  250. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  251. -AC_REQUIRE([AC_PROG_NM])dnl
  252. -
  253. +AC_REQUIRE([LT_PATH_LD])dnl
  254. +AC_REQUIRE([LT_PATH_NM])dnl
  255. +dnl
  256. AC_REQUIRE([AC_PROG_LN_S])dnl
  257. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  258. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  259. -AC_REQUIRE([AC_OBJEXT])dnl
  260. -AC_REQUIRE([AC_EXEEXT])dnl
  261. +test -z "$LN_S" && LN_S="ln -s"
  262. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  263. dnl
  264. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  265. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  266. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  267. +dnl
  268. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  269. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  270. +m4_require([_LT_CMD_RELOAD])dnl
  271. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  272. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  273. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  274. +
  275. +_LT_CONFIG_LIBTOOL_INIT([
  276. +# See if we are running on zsh, and set the options which allow our
  277. +# commands through without removal of \ escapes INIT.
  278. +if test -n "\${ZSH_VERSION+set}" ; then
  279. + setopt NO_GLOB_SUBST
  280. +fi
  281. +])
  282. +if test -n "${ZSH_VERSION+set}" ; then
  283. + setopt NO_GLOB_SUBST
  284. +fi
  285. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  286. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  287. -AC_LIBTOOL_OBJDIR
  288. +_LT_CHECK_OBJDIR
  289. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  290. -_LT_AC_PROG_ECHO_BACKSLASH
  291. +m4_require([_LT_TAG_COMPILER])dnl
  292. +_LT_PROG_ECHO_BACKSLASH
  293. case $host_os in
  294. aix3*)
  295. @@ -117,6307 +196,6803 @@ esac
  296. # Sed substitution that helps us do robust quoting. It backslashifies
  297. # metacharacters that are still active within double-quoted strings.
  298. -Xsed='sed -e 1s/^X//'
  299. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  300. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  301. # Same as above, but do not quote variable references.
  302. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  303. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  304. # Sed substitution to delay expansion of an escaped shell variable in a
  305. # double_quote_subst'ed string.
  306. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  307. +# Sed substitution to delay expansion of an escaped single quote.
  308. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  309. +
  310. # Sed substitution to avoid accidental globbing in evaled expressions
  311. no_glob_subst='s/\*/\\\*/g'
  312. -# Constants:
  313. -rm="rm -f"
  314. -
  315. # Global variables:
  316. -default_ofile=libtool
  317. +ofile=${host_alias}-libtool
  318. can_build_shared=yes
  319. # All known linkers require a `.a' archive for static linking (except MSVC,
  320. # which needs '.lib').
  321. libext=a
  322. -ltmain="$ac_aux_dir/ltmain.sh"
  323. -ofile="$default_ofile"
  324. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  325. -AC_CHECK_TOOL(AR, ar, false)
  326. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  327. -AC_CHECK_TOOL(STRIP, strip, :)
  328. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  329. old_CC="$CC"
  330. old_CFLAGS="$CFLAGS"
  331. # Set sane defaults for various variables
  332. -test -z "$AR" && AR=ar
  333. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  334. -test -z "$AS" && AS=as
  335. test -z "$CC" && CC=cc
  336. test -z "$LTCC" && LTCC=$CC
  337. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  338. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  339. test -z "$LD" && LD=ld
  340. -test -z "$LN_S" && LN_S="ln -s"
  341. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  342. -test -z "$NM" && NM=nm
  343. -test -z "$SED" && SED=sed
  344. -test -z "$OBJDUMP" && OBJDUMP=objdump
  345. -test -z "$RANLIB" && RANLIB=:
  346. -test -z "$STRIP" && STRIP=:
  347. test -z "$ac_objext" && ac_objext=o
  348. -# Determine commands to create old-style static archives.
  349. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  350. -old_postinstall_cmds='chmod 644 $oldlib'
  351. -old_postuninstall_cmds=
  352. -
  353. -if test -n "$RANLIB"; then
  354. - case $host_os in
  355. - openbsd*)
  356. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  357. - ;;
  358. - *)
  359. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  360. - ;;
  361. - esac
  362. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  363. -fi
  364. -
  365. _LT_CC_BASENAME([$compiler])
  366. # Only perform the check for file, if the check method requires it
  367. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  368. case $deplibs_check_method in
  369. file_magic*)
  370. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  371. - AC_PATH_MAGIC
  372. + _LT_PATH_MAGIC
  373. fi
  374. ;;
  375. esac
  376. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  377. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  378. -enable_win32_dll=yes, enable_win32_dll=no)
  379. -
  380. -AC_ARG_ENABLE([libtool-lock],
  381. - [AC_HELP_STRING([--disable-libtool-lock],
  382. - [avoid locking (might break parallel builds)])])
  383. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  384. +# Use C for the default configuration in the libtool script
  385. +LT_SUPPORTED_TAG([CC])
  386. +_LT_LANG_C_CONFIG
  387. +_LT_LANG_DEFAULT_CONFIG
  388. +_LT_CONFIG_COMMANDS
  389. +])# _LT_SETUP
  390. -AC_ARG_WITH([pic],
  391. - [AC_HELP_STRING([--with-pic],
  392. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  393. - [pic_mode="$withval"],
  394. - [pic_mode=default])
  395. -test -z "$pic_mode" && pic_mode=default
  396. -# Use C for the default configuration in the libtool script
  397. -tagname=
  398. -AC_LIBTOOL_LANG_C_CONFIG
  399. -_LT_AC_TAGCONFIG
  400. -])# AC_LIBTOOL_SETUP
  401. +# _LT_PROG_LTMAIN
  402. +# ---------------
  403. +# Note that this code is called both from `configure', and `config.status'
  404. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  405. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  406. +# so we pass a copy along to make sure it has a sensible value anyway.
  407. +m4_defun([_LT_PROG_LTMAIN],
  408. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  409. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  410. +ltmain="$ac_aux_dir/ltmain.sh"
  411. +])# _LT_PROG_LTMAIN
  412. -# _LT_AC_SYS_COMPILER
  413. -# -------------------
  414. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  415. -[AC_REQUIRE([AC_PROG_CC])dnl
  416. +## ------------------------------------- ##
  417. +## Accumulate code for creating libtool. ##
  418. +## ------------------------------------- ##
  419. +
  420. +# So that we can recreate a full libtool script including additional
  421. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  422. +# in macros and then make a single call at the end using the `libtool'
  423. +# label.
  424. +
  425. +
  426. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  427. +# ----------------------------------------
  428. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  429. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  430. +[m4_ifval([$1],
  431. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  432. + [$1
  433. +])])])
  434. +
  435. +# Initialize.
  436. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  437. +
  438. +
  439. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  440. +# ------------------------------
  441. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  442. +m4_define([_LT_CONFIG_LIBTOOL],
  443. +[m4_ifval([$1],
  444. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  445. + [$1
  446. +])])])
  447. +
  448. +# Initialize.
  449. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  450. +
  451. +
  452. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  453. +# -----------------------------------------------------
  454. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  455. +[_LT_CONFIG_LIBTOOL([$1])
  456. +_LT_CONFIG_LIBTOOL_INIT([$2])
  457. +])
  458. -# If no C compiler was specified, use CC.
  459. -LTCC=${LTCC-"$CC"}
  460. -# If no C compiler flags were specified, use CFLAGS.
  461. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  462. +# _LT_FORMAT_COMMENT([COMMENT])
  463. +# -----------------------------
  464. +# Add leading comment marks to the start of each line, and a trailing
  465. +# full-stop to the whole comment if one is not present already.
  466. +m4_define([_LT_FORMAT_COMMENT],
  467. +[m4_ifval([$1], [
  468. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  469. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  470. +)])
  471. -# Allow CC to be a program name with arguments.
  472. -compiler=$CC
  473. -])# _LT_AC_SYS_COMPILER
  474. -# _LT_CC_BASENAME(CC)
  475. -# -------------------
  476. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  477. -AC_DEFUN([_LT_CC_BASENAME],
  478. -[for cc_temp in $1""; do
  479. - case $cc_temp in
  480. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  481. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  482. - \-*) ;;
  483. - *) break;;
  484. - esac
  485. -done
  486. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  487. +## ------------------------ ##
  488. +## FIXME: Eliminate VARNAME ##
  489. +## ------------------------ ##
  490. +
  491. +
  492. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  493. +# -------------------------------------------------------------------
  494. +# CONFIGNAME is the name given to the value in the libtool script.
  495. +# VARNAME is the (base) name used in the configure script.
  496. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  497. +# VARNAME. Any other value will be used directly.
  498. +m4_define([_LT_DECL],
  499. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  500. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  501. + [m4_ifval([$1], [$1], [$2])])
  502. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  503. + m4_ifval([$4],
  504. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  505. + lt_dict_add_subkey([lt_decl_dict], [$2],
  506. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  507. ])
  508. -# _LT_COMPILER_BOILERPLATE
  509. -# ------------------------
  510. -# Check for compiler boilerplate output or warnings with
  511. -# the simple compiler test code.
  512. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  513. -[ac_outfile=conftest.$ac_objext
  514. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  515. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  516. -_lt_compiler_boilerplate=`cat conftest.err`
  517. -$rm conftest*
  518. -])# _LT_COMPILER_BOILERPLATE
  519. -
  520. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  521. +# --------------------------------------------------------
  522. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  523. +
  524. +
  525. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  526. +# ------------------------------------------------
  527. +m4_define([lt_decl_tag_varnames],
  528. +[_lt_decl_filter([tagged?], [yes], $@)])
  529. +
  530. +
  531. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  532. +# ---------------------------------------------------------
  533. +m4_define([_lt_decl_filter],
  534. +[m4_case([$#],
  535. + [0], [m4_fatal([$0: too few arguments: $#])],
  536. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  537. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  538. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  539. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  540. +])
  541. -# _LT_LINKER_BOILERPLATE
  542. -# ----------------------
  543. -# Check for linker boilerplate output or warnings with
  544. -# the simple link test code.
  545. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  546. -[ac_outfile=conftest.$ac_objext
  547. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  548. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  549. -_lt_linker_boilerplate=`cat conftest.err`
  550. -$rm conftest*
  551. -])# _LT_LINKER_BOILERPLATE
  552. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  553. +# --------------------------------------------------
  554. +m4_define([lt_decl_quote_varnames],
  555. +[_lt_decl_filter([value], [1], $@)])
  556. +
  557. +
  558. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  559. +# ---------------------------------------------------
  560. +m4_define([lt_decl_dquote_varnames],
  561. +[_lt_decl_filter([value], [2], $@)])
  562. +
  563. +
  564. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  565. +# ---------------------------------------------------
  566. +m4_define([lt_decl_varnames_tagged],
  567. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  568. + m4_quote(m4_if([$2], [],
  569. + m4_quote(lt_decl_tag_varnames),
  570. + m4_quote(m4_shift($@)))),
  571. + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
  572. +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
  573. +
  574. +
  575. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  576. +# ------------------------------------------------
  577. +m4_define([lt_decl_all_varnames],
  578. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  579. + m4_if([$2], [],
  580. + m4_quote(lt_decl_varnames),
  581. + m4_quote(m4_shift($@))))[]dnl
  582. +])
  583. +m4_define([_lt_decl_all_varnames],
  584. +[lt_join($@, lt_decl_varnames_tagged([$1],
  585. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  586. +])
  587. -# _LT_AC_SYS_LIBPATH_AIX
  588. -# ----------------------
  589. -# Links a minimal program and checks the executable
  590. -# for the system default hardcoded library path. In most cases,
  591. -# this is /usr/lib:/lib, but when the MPI compilers are used
  592. -# the location of the communication and MPI libs are included too.
  593. -# If we don't find anything, use the default library path according
  594. -# to the aix ld manual.
  595. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  596. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  597. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  598. -}'`
  599. -# Check for a 64-bit object if we didn't find anything.
  600. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  601. -}'`; fi],[])
  602. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  603. -])# _LT_AC_SYS_LIBPATH_AIX
  604. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  605. +# ------------------------------------
  606. +# Quote a variable value, and forward it to `config.status' so that its
  607. +# declaration there will have the same value as in `configure'. VARNAME
  608. +# must have a single quote delimited value for this to work.
  609. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  610. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  611. -# _LT_AC_SHELL_INIT(ARG)
  612. -# ----------------------
  613. -AC_DEFUN([_LT_AC_SHELL_INIT],
  614. -[ifdef([AC_DIVERSION_NOTICE],
  615. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  616. - [AC_DIVERT_PUSH(NOTICE)])
  617. -$1
  618. -AC_DIVERT_POP
  619. -])# _LT_AC_SHELL_INIT
  620. +# _LT_CONFIG_STATUS_DECLARATIONS
  621. +# ------------------------------
  622. +# We delimit libtool config variables with single quotes, so when
  623. +# we write them to config.status, we have to be sure to quote all
  624. +# embedded single quotes properly. In configure, this macro expands
  625. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  626. +#
  627. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  628. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  629. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  630. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  631. -# _LT_AC_PROG_ECHO_BACKSLASH
  632. -# --------------------------
  633. -# Add some code to the start of the generated configure script which
  634. -# will find an echo command which doesn't interpret backslashes.
  635. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  636. -[_LT_AC_SHELL_INIT([
  637. -# Check that we are running under the correct shell.
  638. -SHELL=${CONFIG_SHELL-/bin/sh}
  639. -case X$ECHO in
  640. -X*--fallback-echo)
  641. - # Remove one level of quotation (which was required for Make).
  642. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  643. - ;;
  644. -esac
  645. +# _LT_LIBTOOL_TAGS
  646. +# ----------------
  647. +# Output comment and list of tags supported by the script
  648. +m4_defun([_LT_LIBTOOL_TAGS],
  649. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  650. +available_tags="_LT_TAGS"dnl
  651. +])
  652. -echo=${ECHO-echo}
  653. -if test "X[$]1" = X--no-reexec; then
  654. - # Discard the --no-reexec flag, and continue.
  655. - shift
  656. -elif test "X[$]1" = X--fallback-echo; then
  657. - # Avoid inline document here, it may be left over
  658. - :
  659. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  660. - # Yippee, $echo works!
  661. - :
  662. -else
  663. - # Restart under the correct shell.
  664. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  665. -fi
  666. -if test "X[$]1" = X--fallback-echo; then
  667. - # used as fallback echo
  668. - shift
  669. - cat <<EOF
  670. -[$]*
  671. -EOF
  672. - exit 0
  673. -fi
  674. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  675. +# -----------------------------------
  676. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  677. +# expand to a commented shell variable setting:
  678. +#
  679. +# # Some comment about what VAR is for.
  680. +# visible_name=$lt_internal_name
  681. +m4_define([_LT_LIBTOOL_DECLARE],
  682. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  683. + [description])))[]dnl
  684. +m4_pushdef([_libtool_name],
  685. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  686. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  687. + [0], [_libtool_name=[$]$1],
  688. + [1], [_libtool_name=$lt_[]$1],
  689. + [2], [_libtool_name=$lt_[]$1],
  690. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  691. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  692. +])
  693. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  694. -# if CDPATH is set.
  695. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  696. -if test -z "$ECHO"; then
  697. -if test "X${echo_test_string+set}" != Xset; then
  698. -# find a string as large as possible, as long as the shell can cope with it
  699. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  700. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  701. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  702. - echo_test_string=`eval $cmd` &&
  703. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  704. - then
  705. - break
  706. - fi
  707. - done
  708. -fi
  709. +# _LT_LIBTOOL_CONFIG_VARS
  710. +# -----------------------
  711. +# Produce commented declarations of non-tagged libtool config variables
  712. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  713. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  714. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  715. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  716. +[m4_foreach([_lt_var],
  717. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  718. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  719. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  720. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  721. - test "X$echo_testing_string" = "X$echo_test_string"; then
  722. - :
  723. -else
  724. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  725. - # backslashes. This makes it impossible to quote backslashes using
  726. - # echo "$something" | sed 's/\\/\\\\/g'
  727. - #
  728. - # So, first we look for a working echo in the user's PATH.
  729. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  730. - for dir in $PATH /usr/ucb; do
  731. - IFS="$lt_save_ifs"
  732. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  733. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  734. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  735. - test "X$echo_testing_string" = "X$echo_test_string"; then
  736. - echo="$dir/echo"
  737. - break
  738. - fi
  739. - done
  740. - IFS="$lt_save_ifs"
  741. +# _LT_LIBTOOL_TAG_VARS(TAG)
  742. +# -------------------------
  743. +m4_define([_LT_LIBTOOL_TAG_VARS],
  744. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  745. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  746. - if test "X$echo" = Xecho; then
  747. - # We didn't find a better echo, so look for alternatives.
  748. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  749. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  750. - test "X$echo_testing_string" = "X$echo_test_string"; then
  751. - # This shell has a builtin print -r that does the trick.
  752. - echo='print -r'
  753. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  754. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  755. - # If we have ksh, try running configure again with it.
  756. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  757. - export ORIGINAL_CONFIG_SHELL
  758. - CONFIG_SHELL=/bin/ksh
  759. - export CONFIG_SHELL
  760. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  761. - else
  762. - # Try using printf.
  763. - echo='printf %s\n'
  764. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  765. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  766. - test "X$echo_testing_string" = "X$echo_test_string"; then
  767. - # Cool, printf works
  768. - :
  769. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  770. - test "X$echo_testing_string" = 'X\t' &&
  771. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  772. - test "X$echo_testing_string" = "X$echo_test_string"; then
  773. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  774. - export CONFIG_SHELL
  775. - SHELL="$CONFIG_SHELL"
  776. - export SHELL
  777. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  778. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  779. - test "X$echo_testing_string" = 'X\t' &&
  780. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  781. - test "X$echo_testing_string" = "X$echo_test_string"; then
  782. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  783. - else
  784. - # maybe with a smaller string...
  785. - prev=:
  786. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  787. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  788. - then
  789. - break
  790. - fi
  791. - prev="$cmd"
  792. - done
  793. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  794. +# ------------------------------
  795. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  796. - if test "$prev" != 'sed 50q "[$]0"'; then
  797. - echo_test_string=`eval $prev`
  798. - export echo_test_string
  799. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  800. - else
  801. - # Oops. We lost completely, so just stick with echo.
  802. - echo=echo
  803. - fi
  804. - fi
  805. - fi
  806. - fi
  807. -fi
  808. -fi
  809. -# Copy echo and quote the copy suitably for passing to libtool from
  810. -# the Makefile, instead of quoting the original, which is used later.
  811. -ECHO=$echo
  812. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  813. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  814. -fi
  815. +# _LT_CONFIG_COMMANDS
  816. +# -------------------
  817. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  818. +# variables for single and double quote escaping we saved from calls
  819. +# to _LT_DECL, we can put quote escaped variables declarations
  820. +# into `config.status', and then the shell code to quote escape them in
  821. +# for loops in `config.status'. Finally, any additional code accumulated
  822. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  823. +m4_defun([_LT_CONFIG_COMMANDS],
  824. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  825. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  826. + dnl instead of duplicating it all over again into config.status,
  827. + dnl then we will have config.status run $CONFIG_LT later, so it
  828. + dnl needs to know what name is stored there:
  829. + [AC_CONFIG_COMMANDS([libtool],
  830. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  831. + dnl If the libtool generation code is destined for config.status,
  832. + dnl expand the accumulated commands and init code now:
  833. + [AC_CONFIG_COMMANDS([libtool],
  834. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  835. +])#_LT_CONFIG_COMMANDS
  836. -AC_SUBST(ECHO)
  837. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  838. +# Initialize.
  839. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  840. +[
  841. -# _LT_AC_LOCK
  842. -# -----------
  843. -AC_DEFUN([_LT_AC_LOCK],
  844. -[AC_ARG_ENABLE([libtool-lock],
  845. - [AC_HELP_STRING([--disable-libtool-lock],
  846. - [avoid locking (might break parallel builds)])])
  847. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  848. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  849. +# if CDPATH is set.
  850. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  851. -# Some flags need to be propagated to the compiler or linker for good
  852. -# libtool support.
  853. -case $host in
  854. -ia64-*-hpux*)
  855. - # Find out which ABI we are using.
  856. - echo 'int i;' > conftest.$ac_ext
  857. - if AC_TRY_EVAL(ac_compile); then
  858. - case `/usr/bin/file conftest.$ac_objext` in
  859. - *ELF-32*)
  860. - HPUX_IA64_MODE="32"
  861. - ;;
  862. - *ELF-64*)
  863. - HPUX_IA64_MODE="64"
  864. - ;;
  865. - esac
  866. - fi
  867. - rm -rf conftest*
  868. - ;;
  869. -*-*-irix6*)
  870. - # Find out which ABI we are using.
  871. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  872. - if AC_TRY_EVAL(ac_compile); then
  873. - if test "$lt_cv_prog_gnu_ld" = yes; then
  874. - case `/usr/bin/file conftest.$ac_objext` in
  875. - *32-bit*)
  876. - LD="${LD-ld} -melf32bsmip"
  877. - ;;
  878. - *N32*)
  879. - LD="${LD-ld} -melf32bmipn32"
  880. +sed_quote_subst='$sed_quote_subst'
  881. +double_quote_subst='$double_quote_subst'
  882. +delay_variable_subst='$delay_variable_subst'
  883. +_LT_CONFIG_STATUS_DECLARATIONS
  884. +LTCC='$LTCC'
  885. +LTCFLAGS='$LTCFLAGS'
  886. +compiler='$compiler_DEFAULT'
  887. +
  888. +# Quote evaled strings.
  889. +for var in lt_decl_all_varnames([[ \
  890. +]], lt_decl_quote_varnames); do
  891. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  892. + *[[\\\\\\\`\\"\\\$]]*)
  893. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  894. ;;
  895. - *64-bit*)
  896. - LD="${LD-ld} -melf64bmip"
  897. + *)
  898. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  899. ;;
  900. esac
  901. - else
  902. - case `/usr/bin/file conftest.$ac_objext` in
  903. - *32-bit*)
  904. - LD="${LD-ld} -32"
  905. - ;;
  906. - *N32*)
  907. - LD="${LD-ld} -n32"
  908. +done
  909. +
  910. +# Double-quote double-evaled strings.
  911. +for var in lt_decl_all_varnames([[ \
  912. +]], lt_decl_dquote_varnames); do
  913. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  914. + *[[\\\\\\\`\\"\\\$]]*)
  915. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  916. ;;
  917. - *64-bit*)
  918. - LD="${LD-ld} -64"
  919. + *)
  920. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  921. ;;
  922. esac
  923. - fi
  924. - fi
  925. - rm -rf conftest*
  926. +done
  927. +
  928. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  929. +case \$lt_ECHO in
  930. +*'\\\[$]0 --fallback-echo"')dnl "
  931. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  932. ;;
  933. +esac
  934. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  935. - # Find out which ABI we are using.
  936. - echo 'int i;' > conftest.$ac_ext
  937. - if AC_TRY_EVAL(ac_compile); then
  938. - case `/usr/bin/file conftest.o` in
  939. - *32-bit*)
  940. - case $host in
  941. - x86_64-*linux*)
  942. - LD="${LD-ld} -m elf_i386"
  943. - ;;
  944. - ppc64-*linux*|powerpc64-*linux*)
  945. - LD="${LD-ld} -m elf32ppclinux"
  946. - ;;
  947. - s390x-*linux*)
  948. - LD="${LD-ld} -m elf_s390"
  949. - ;;
  950. - sparc64-*linux*)
  951. - LD="${LD-ld} -m elf32_sparc"
  952. - ;;
  953. - esac
  954. - ;;
  955. - *64-bit*)
  956. - case $host in
  957. - x86_64-*linux*)
  958. - LD="${LD-ld} -m elf_x86_64"
  959. - ;;
  960. - ppc*-*linux*|powerpc*-*linux*)
  961. - LD="${LD-ld} -m elf64ppc"
  962. - ;;
  963. - s390*-*linux*)
  964. - LD="${LD-ld} -m elf64_s390"
  965. - ;;
  966. - sparc*-*linux*)
  967. - LD="${LD-ld} -m elf64_sparc"
  968. - ;;
  969. - esac
  970. - ;;
  971. - esac
  972. - fi
  973. - rm -rf conftest*
  974. - ;;
  975. +_LT_OUTPUT_LIBTOOL_INIT
  976. +])
  977. -*-*-sco3.2v5*)
  978. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  979. - SAVE_CFLAGS="$CFLAGS"
  980. - CFLAGS="$CFLAGS -belf"
  981. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  982. - [AC_LANG_PUSH(C)
  983. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  984. - AC_LANG_POP])
  985. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  986. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  987. - CFLAGS="$SAVE_CFLAGS"
  988. - fi
  989. - ;;
  990. -sparc*-*solaris*)
  991. - # Find out which ABI we are using.
  992. - echo 'int i;' > conftest.$ac_ext
  993. - if AC_TRY_EVAL(ac_compile); then
  994. - case `/usr/bin/file conftest.o` in
  995. - *64-bit*)
  996. - case $lt_cv_prog_gnu_ld in
  997. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  998. - *) LD="${LD-ld} -64" ;;
  999. - esac
  1000. - ;;
  1001. - esac
  1002. - fi
  1003. - rm -rf conftest*
  1004. - ;;
  1005. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1006. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1007. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1008. - AC_CHECK_TOOL(AS, as, false)
  1009. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1010. - ;;
  1011. - ])
  1012. -esac
  1013. +# LT_OUTPUT
  1014. +# ---------
  1015. +# This macro allows early generation of the libtool script (before
  1016. +# AC_OUTPUT is called), incase it is used in configure for compilation
  1017. +# tests.
  1018. +AC_DEFUN([LT_OUTPUT],
  1019. +[: ${CONFIG_LT=./config.lt}
  1020. +AC_MSG_NOTICE([creating $CONFIG_LT])
  1021. +cat >"$CONFIG_LT" <<_LTEOF
  1022. +#! $SHELL
  1023. +# Generated by $as_me.
  1024. +# Run this file to recreate a libtool stub with the current configuration.
  1025. +
  1026. +lt_cl_silent=false
  1027. +SHELL=\${CONFIG_SHELL-$SHELL}
  1028. +_LTEOF
  1029. +
  1030. +cat >>"$CONFIG_LT" <<\_LTEOF
  1031. +AS_SHELL_SANITIZE
  1032. +_AS_PREPARE
  1033. -need_locks="$enable_libtool_lock"
  1034. +exec AS_MESSAGE_FD>&1
  1035. +exec AS_MESSAGE_LOG_FD>>config.log
  1036. +{
  1037. + echo
  1038. + AS_BOX([Running $as_me.])
  1039. +} >&AS_MESSAGE_LOG_FD
  1040. +
  1041. +lt_cl_help="\
  1042. +\`$as_me' creates a local libtool stub from the current configuration,
  1043. +for use in further configure time tests before the real libtool is
  1044. +generated.
  1045. +
  1046. +Usage: $[0] [[OPTIONS]]
  1047. +
  1048. + -h, --help print this help, then exit
  1049. + -V, --version print version number, then exit
  1050. + -q, --quiet do not print progress messages
  1051. + -d, --debug don't remove temporary files
  1052. +
  1053. +Report bugs to <bug-libtool@gnu.org>."
  1054. +
  1055. +lt_cl_version="\
  1056. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1057. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1058. +configured by $[0], generated by m4_PACKAGE_STRING.
  1059. +
  1060. +Copyright (C) 2008 Free Software Foundation, Inc.
  1061. +This config.lt script is free software; the Free Software Foundation
  1062. +gives unlimited permision to copy, distribute and modify it."
  1063. -])# _LT_AC_LOCK
  1064. +while test $[#] != 0
  1065. +do
  1066. + case $[1] in
  1067. + --version | --v* | -V )
  1068. + echo "$lt_cl_version"; exit 0 ;;
  1069. + --help | --h* | -h )
  1070. + echo "$lt_cl_help"; exit 0 ;;
  1071. + --debug | --d* | -d )
  1072. + debug=: ;;
  1073. + --quiet | --q* | --silent | --s* | -q )
  1074. + lt_cl_silent=: ;;
  1075. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1076. +Try \`$[0] --help' for more information.]) ;;
  1077. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1078. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1079. -# ----------------------------------------------------------------
  1080. -# Check whether the given compiler option works
  1081. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1082. -[AC_REQUIRE([LT_AC_PROG_SED])
  1083. -AC_CACHE_CHECK([$1], [$2],
  1084. - [$2=no
  1085. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1086. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1087. - lt_compiler_flag="$3"
  1088. - # Insert the option either (1) after the last *FLAGS variable, or
  1089. - # (2) before a word containing "conftest.", or (3) at the end.
  1090. - # Note that $ac_compile itself does not contain backslashes and begins
  1091. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1092. - # The option is referenced via a variable to avoid confusing sed.
  1093. - lt_compile=`echo "$ac_compile" | $SED \
  1094. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1095. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1096. - -e 's:$: $lt_compiler_flag:'`
  1097. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1098. - (eval "$lt_compile" 2>conftest.err)
  1099. - ac_status=$?
  1100. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1101. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1102. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1103. - # The compiler can only warn and ignore the option if not recognized
  1104. - # So say no if there are warnings other than the usual output.
  1105. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1106. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1107. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1108. - $2=yes
  1109. - fi
  1110. - fi
  1111. - $rm conftest*
  1112. -])
  1113. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1114. +Try \`$[0] --help' for more information.]) ;;
  1115. + esac
  1116. + shift
  1117. +done
  1118. -if test x"[$]$2" = xyes; then
  1119. - ifelse([$5], , :, [$5])
  1120. -else
  1121. - ifelse([$6], , :, [$6])
  1122. +if $lt_cl_silent; then
  1123. + exec AS_MESSAGE_FD>/dev/null
  1124. fi
  1125. -])# AC_LIBTOOL_COMPILER_OPTION
  1126. -
  1127. -
  1128. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1129. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1130. -# ------------------------------------------------------------
  1131. -# Check whether the given compiler option works
  1132. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1133. -[AC_CACHE_CHECK([$1], [$2],
  1134. - [$2=no
  1135. - save_LDFLAGS="$LDFLAGS"
  1136. - LDFLAGS="$LDFLAGS $3"
  1137. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1138. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1139. - # The linker can only warn and ignore the option if not recognized
  1140. - # So say no if there are warnings
  1141. - if test -s conftest.err; then
  1142. - # Append any errors to the config.log.
  1143. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1144. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1145. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1146. - if diff conftest.exp conftest.er2 >/dev/null; then
  1147. - $2=yes
  1148. - fi
  1149. - else
  1150. - $2=yes
  1151. - fi
  1152. - fi
  1153. - $rm conftest*
  1154. - LDFLAGS="$save_LDFLAGS"
  1155. -])
  1156. +_LTEOF
  1157. -if test x"[$]$2" = xyes; then
  1158. - ifelse([$4], , :, [$4])
  1159. -else
  1160. - ifelse([$5], , :, [$5])
  1161. +cat >>"$CONFIG_LT" <<_LTEOF
  1162. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1163. +_LTEOF
  1164. +
  1165. +cat >>"$CONFIG_LT" <<\_LTEOF
  1166. +AC_MSG_NOTICE([creating $ofile])
  1167. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1168. +AS_EXIT(0)
  1169. +_LTEOF
  1170. +chmod +x "$CONFIG_LT"
  1171. +
  1172. +# configure is writing to config.log, but config.lt does its own redirection,
  1173. +# appending to config.log, which fails on DOS, as config.log is still kept
  1174. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1175. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1176. +if test "$no_create" != yes; then
  1177. + lt_cl_success=:
  1178. + test "$silent" = yes &&
  1179. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1180. + exec AS_MESSAGE_LOG_FD>/dev/null
  1181. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1182. + exec AS_MESSAGE_LOG_FD>>config.log
  1183. + $lt_cl_success || AS_EXIT(1)
  1184. fi
  1185. -])# AC_LIBTOOL_LINKER_OPTION
  1186. -
  1187. +])# LT_OUTPUT
  1188. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1189. -# --------------------------
  1190. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1191. -[# find the maximum length of command line arguments
  1192. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1193. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1194. - i=0
  1195. - teststring="ABCD"
  1196. - case $build_os in
  1197. - msdosdjgpp*)
  1198. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1199. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1200. - # during glob expansion). Even if it were fixed, the result of this
  1201. - # check would be larger than it should be.
  1202. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1203. - ;;
  1204. +# _LT_CONFIG(TAG)
  1205. +# ---------------
  1206. +# If TAG is the built-in tag, create an initial libtool script with a
  1207. +# default configuration from the untagged config vars. Otherwise add code
  1208. +# to config.status for appending the configuration named by TAG from the
  1209. +# matching tagged config vars.
  1210. +m4_defun([_LT_CONFIG],
  1211. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1212. +_LT_CONFIG_SAVE_COMMANDS([
  1213. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1214. + m4_if(_LT_TAG, [C], [
  1215. + # See if we are running on zsh, and set the options which allow our
  1216. + # commands through without removal of \ escapes.
  1217. + if test -n "${ZSH_VERSION+set}" ; then
  1218. + setopt NO_GLOB_SUBST
  1219. + fi
  1220. - gnu*)
  1221. - # Under GNU Hurd, this test is not required because there is
  1222. - # no limit to the length of command line arguments.
  1223. - # Libtool will interpret -1 as no limit whatsoever
  1224. - lt_cv_sys_max_cmd_len=-1;
  1225. - ;;
  1226. + cfgfile="${ofile}T"
  1227. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1228. + $RM "$cfgfile"
  1229. - cygwin* | mingw*)
  1230. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1231. - # about 5 minutes as the teststring grows exponentially.
  1232. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1233. - # you end up with a "frozen" computer, even though with patience
  1234. - # the test eventually succeeds (with a max line length of 256k).
  1235. - # Instead, let's just punt: use the minimum linelength reported by
  1236. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1237. - lt_cv_sys_max_cmd_len=8192;
  1238. - ;;
  1239. + cat <<_LT_EOF >> "$cfgfile"
  1240. +#! $SHELL
  1241. - amigaos*)
  1242. - # On AmigaOS with pdksh, this test takes hours, literally.
  1243. - # So we just punt and use a minimum line length of 8192.
  1244. - lt_cv_sys_max_cmd_len=8192;
  1245. - ;;
  1246. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1247. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1248. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1249. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1250. +#
  1251. +_LT_COPYING
  1252. +_LT_LIBTOOL_TAGS
  1253. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1254. - # This has been around since 386BSD, at least. Likely further.
  1255. - if test -x /sbin/sysctl; then
  1256. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1257. - elif test -x /usr/sbin/sysctl; then
  1258. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1259. - else
  1260. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1261. - fi
  1262. - # And add a safety zone
  1263. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1264. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1265. - ;;
  1266. +# ### BEGIN LIBTOOL CONFIG
  1267. +_LT_LIBTOOL_CONFIG_VARS
  1268. +_LT_LIBTOOL_TAG_VARS
  1269. +# ### END LIBTOOL CONFIG
  1270. - interix*)
  1271. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1272. - lt_cv_sys_max_cmd_len=196608
  1273. - ;;
  1274. +_LT_EOF
  1275. - osf*)
  1276. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1277. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1278. - # nice to cause kernel panics so lets avoid the loop below.
  1279. - # First set a reasonable default.
  1280. - lt_cv_sys_max_cmd_len=16384
  1281. - #
  1282. - if test -x /sbin/sysconfig; then
  1283. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1284. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1285. - esac
  1286. - fi
  1287. - ;;
  1288. - sco3.2v5*)
  1289. - lt_cv_sys_max_cmd_len=102400
  1290. - ;;
  1291. - sysv5* | sco5v6* | sysv4.2uw2*)
  1292. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1293. - if test -n "$kargmax"; then
  1294. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1295. - else
  1296. - lt_cv_sys_max_cmd_len=32768
  1297. - fi
  1298. - ;;
  1299. - *)
  1300. - # If test is not a shell built-in, we'll probably end up computing a
  1301. - # maximum length that is only half of the actual maximum length, but
  1302. - # we can't tell.
  1303. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1304. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1305. - = "XX$teststring") >/dev/null 2>&1 &&
  1306. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1307. - lt_cv_sys_max_cmd_len=$new_result &&
  1308. - test $i != 17 # 1/2 MB should be enough
  1309. - do
  1310. - i=`expr $i + 1`
  1311. - teststring=$teststring$teststring
  1312. - done
  1313. - teststring=
  1314. - # Add a significant safety factor because C++ compilers can tack on massive
  1315. - # amounts of additional arguments before passing them to the linker.
  1316. - # It appears as though 1/2 is a usable value.
  1317. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1318. + case $host_os in
  1319. + aix3*)
  1320. + cat <<\_LT_EOF >> "$cfgfile"
  1321. +# AIX sometimes has problems with the GCC collect2 program. For some
  1322. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1323. +# vanish in a puff of smoke.
  1324. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1325. + COLLECT_NAMES=
  1326. + export COLLECT_NAMES
  1327. +fi
  1328. +_LT_EOF
  1329. ;;
  1330. esac
  1331. -])
  1332. -if test -n $lt_cv_sys_max_cmd_len ; then
  1333. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1334. -else
  1335. - AC_MSG_RESULT(none)
  1336. -fi
  1337. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1338. + _LT_PROG_LTMAIN
  1339. -# _LT_AC_CHECK_DLFCN
  1340. -# ------------------
  1341. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1342. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1343. -])# _LT_AC_CHECK_DLFCN
  1344. + # We use sed instead of cat because bash on DJGPP gets confused if
  1345. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1346. + # text mode, it properly converts lines to CR/LF. This bash problem
  1347. + # is reportedly fixed, but why not run on old versions too?
  1348. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1349. + || (rm -f "$cfgfile"; exit 1)
  1350. + _LT_PROG_XSI_SHELLFNS
  1351. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1352. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1353. -# ---------------------------------------------------------------------
  1354. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1355. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1356. -if test "$cross_compiling" = yes; then :
  1357. - [$4]
  1358. -else
  1359. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1360. - lt_status=$lt_dlunknown
  1361. - cat > conftest.$ac_ext <<EOF
  1362. -[#line __oline__ "configure"
  1363. -#include "confdefs.h"
  1364. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1365. + || (rm -f "$cfgfile"; exit 1)
  1366. -#if HAVE_DLFCN_H
  1367. -#include <dlfcn.h>
  1368. -#endif
  1369. + mv -f "$cfgfile" "$ofile" ||
  1370. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1371. + chmod +x "$ofile"
  1372. +],
  1373. +[cat <<_LT_EOF >> "$ofile"
  1374. -#include <stdio.h>
  1375. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1376. +dnl in a comment (ie after a #).
  1377. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1378. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1379. +# ### END LIBTOOL TAG CONFIG: $1
  1380. +_LT_EOF
  1381. +])dnl /m4_if
  1382. +],
  1383. +[m4_if([$1], [], [
  1384. + PACKAGE='$PACKAGE'
  1385. + VERSION='$VERSION'
  1386. + TIMESTAMP='$TIMESTAMP'
  1387. + RM='$RM'
  1388. + ofile='$ofile'], [])
  1389. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1390. +])# _LT_CONFIG
  1391. +
  1392. +
  1393. +# LT_SUPPORTED_TAG(TAG)
  1394. +# ---------------------
  1395. +# Trace this macro to discover what tags are supported by the libtool
  1396. +# --tag option, using:
  1397. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1398. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1399. +
  1400. +
  1401. +# C support is built-in for now
  1402. +m4_define([_LT_LANG_C_enabled], [])
  1403. +m4_define([_LT_TAGS], [])
  1404. -#ifdef RTLD_GLOBAL
  1405. -# define LT_DLGLOBAL RTLD_GLOBAL
  1406. -#else
  1407. -# ifdef DL_GLOBAL
  1408. -# define LT_DLGLOBAL DL_GLOBAL
  1409. -# else
  1410. -# define LT_DLGLOBAL 0
  1411. -# endif
  1412. -#endif
  1413. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1414. - find out it does not work in some platform. */
  1415. -#ifndef LT_DLLAZY_OR_NOW
  1416. -# ifdef RTLD_LAZY
  1417. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1418. -# else
  1419. -# ifdef DL_LAZY
  1420. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1421. -# else
  1422. -# ifdef RTLD_NOW
  1423. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1424. -# else
  1425. -# ifdef DL_NOW
  1426. -# define LT_DLLAZY_OR_NOW DL_NOW
  1427. -# else
  1428. -# define LT_DLLAZY_OR_NOW 0
  1429. -# endif
  1430. -# endif
  1431. -# endif
  1432. -# endif
  1433. -#endif
  1434. +# LT_LANG(LANG)
  1435. +# -------------
  1436. +# Enable libtool support for the given language if not already enabled.
  1437. +AC_DEFUN([LT_LANG],
  1438. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1439. +m4_case([$1],
  1440. + [C], [_LT_LANG(C)],
  1441. + [C++], [_LT_LANG(CXX)],
  1442. + [Java], [_LT_LANG(GCJ)],
  1443. + [Fortran 77], [_LT_LANG(F77)],
  1444. + [Fortran], [_LT_LANG(FC)],
  1445. + [Windows Resource], [_LT_LANG(RC)],
  1446. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1447. + [_LT_LANG($1)],
  1448. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1449. +])# LT_LANG
  1450. -#ifdef __cplusplus
  1451. -extern "C" void exit (int);
  1452. -#endif
  1453. -void fnord() { int i=42;}
  1454. -int main ()
  1455. -{
  1456. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1457. - int status = $lt_dlunknown;
  1458. -
  1459. - if (self)
  1460. - {
  1461. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1462. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1463. - /* dlclose (self); */
  1464. - }
  1465. - else
  1466. - puts (dlerror ());
  1467. +# _LT_LANG(LANGNAME)
  1468. +# ------------------
  1469. +m4_defun([_LT_LANG],
  1470. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1471. + [LT_SUPPORTED_TAG([$1])dnl
  1472. + m4_append([_LT_TAGS], [$1 ])dnl
  1473. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1474. + _LT_LANG_$1_CONFIG($1)])dnl
  1475. +])# _LT_LANG
  1476. - exit (status);
  1477. -}]
  1478. -EOF
  1479. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1480. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1481. - lt_status=$?
  1482. - case x$lt_status in
  1483. - x$lt_dlno_uscore) $1 ;;
  1484. - x$lt_dlneed_uscore) $2 ;;
  1485. - x$lt_dlunknown|x*) $3 ;;
  1486. - esac
  1487. - else :
  1488. - # compilation failed
  1489. - $3
  1490. - fi
  1491. -fi
  1492. -rm -fr conftest*
  1493. -])# _LT_AC_TRY_DLOPEN_SELF
  1494. +# _LT_LANG_DEFAULT_CONFIG
  1495. +# -----------------------
  1496. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1497. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1498. + [LT_LANG(CXX)],
  1499. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1500. +
  1501. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1502. + [LT_LANG(F77)],
  1503. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1504. +
  1505. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1506. + [LT_LANG(FC)],
  1507. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1508. +
  1509. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1510. +dnl pulling things in needlessly.
  1511. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1512. + [LT_LANG(GCJ)],
  1513. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1514. + [LT_LANG(GCJ)],
  1515. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1516. + [LT_LANG(GCJ)],
  1517. + [m4_ifdef([AC_PROG_GCJ],
  1518. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1519. + m4_ifdef([A][M_PROG_GCJ],
  1520. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1521. + m4_ifdef([LT_PROG_GCJ],
  1522. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1523. +
  1524. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1525. + [LT_LANG(RC)],
  1526. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1527. +])# _LT_LANG_DEFAULT_CONFIG
  1528. +
  1529. +# Obsolete macros:
  1530. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1531. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1532. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1533. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1534. +dnl aclocal-1.4 backwards compatibility:
  1535. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1536. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1537. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1538. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1539. -# AC_LIBTOOL_DLOPEN_SELF
  1540. -# ----------------------
  1541. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1542. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1543. -if test "x$enable_dlopen" != xyes; then
  1544. - enable_dlopen=unknown
  1545. - enable_dlopen_self=unknown
  1546. - enable_dlopen_self_static=unknown
  1547. -else
  1548. - lt_cv_dlopen=no
  1549. - lt_cv_dlopen_libs=
  1550. - case $host_os in
  1551. - beos*)
  1552. - lt_cv_dlopen="load_add_on"
  1553. - lt_cv_dlopen_libs=
  1554. - lt_cv_dlopen_self=yes
  1555. - ;;
  1556. +# _LT_TAG_COMPILER
  1557. +# ----------------
  1558. +m4_defun([_LT_TAG_COMPILER],
  1559. +[AC_REQUIRE([AC_PROG_CC])dnl
  1560. - mingw* | pw32*)
  1561. - lt_cv_dlopen="LoadLibrary"
  1562. - lt_cv_dlopen_libs=
  1563. - ;;
  1564. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1565. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1566. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1567. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1568. - cygwin*)
  1569. - lt_cv_dlopen="dlopen"
  1570. - lt_cv_dlopen_libs=
  1571. - ;;
  1572. +# If no C compiler was specified, use CC.
  1573. +LTCC=${LTCC-"$CC"}
  1574. - darwin*)
  1575. - # if libdl is installed we need to link against it
  1576. - AC_CHECK_LIB([dl], [dlopen],
  1577. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1578. - lt_cv_dlopen="dyld"
  1579. - lt_cv_dlopen_libs=
  1580. - lt_cv_dlopen_self=yes
  1581. - ])
  1582. - ;;
  1583. +# If no C compiler flags were specified, use CFLAGS.
  1584. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1585. - *)
  1586. - AC_CHECK_FUNC([shl_load],
  1587. - [lt_cv_dlopen="shl_load"],
  1588. - [AC_CHECK_LIB([dld], [shl_load],
  1589. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1590. - [AC_CHECK_FUNC([dlopen],
  1591. - [lt_cv_dlopen="dlopen"],
  1592. - [AC_CHECK_LIB([dl], [dlopen],
  1593. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1594. - [AC_CHECK_LIB([svld], [dlopen],
  1595. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1596. - [AC_CHECK_LIB([dld], [dld_link],
  1597. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1598. - ])
  1599. - ])
  1600. - ])
  1601. - ])
  1602. - ])
  1603. - ;;
  1604. - esac
  1605. +# Allow CC to be a program name with arguments.
  1606. +compiler=$CC
  1607. +])# _LT_TAG_COMPILER
  1608. - if test "x$lt_cv_dlopen" != xno; then
  1609. - enable_dlopen=yes
  1610. - else
  1611. - enable_dlopen=no
  1612. - fi
  1613. - case $lt_cv_dlopen in
  1614. - dlopen)
  1615. - save_CPPFLAGS="$CPPFLAGS"
  1616. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1617. +# _LT_COMPILER_BOILERPLATE
  1618. +# ------------------------
  1619. +# Check for compiler boilerplate output or warnings with
  1620. +# the simple compiler test code.
  1621. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1622. +[m4_require([_LT_DECL_SED])dnl
  1623. +ac_outfile=conftest.$ac_objext
  1624. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1625. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1626. +_lt_compiler_boilerplate=`cat conftest.err`
  1627. +$RM conftest*
  1628. +])# _LT_COMPILER_BOILERPLATE
  1629. - save_LDFLAGS="$LDFLAGS"
  1630. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1631. - save_LIBS="$LIBS"
  1632. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1633. +# _LT_LINKER_BOILERPLATE
  1634. +# ----------------------
  1635. +# Check for linker boilerplate output or warnings with
  1636. +# the simple link test code.
  1637. +m4_defun([_LT_LINKER_BOILERPLATE],
  1638. +[m4_require([_LT_DECL_SED])dnl
  1639. +ac_outfile=conftest.$ac_objext
  1640. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1641. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1642. +_lt_linker_boilerplate=`cat conftest.err`
  1643. +$RM -r conftest*
  1644. +])# _LT_LINKER_BOILERPLATE
  1645. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1646. - lt_cv_dlopen_self, [dnl
  1647. - _LT_AC_TRY_DLOPEN_SELF(
  1648. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1649. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1650. +# _LT_REQUIRED_DARWIN_CHECKS
  1651. +# -------------------------
  1652. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1653. + case $host_os in
  1654. + rhapsody* | darwin*)
  1655. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1656. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1657. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1658. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1659. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1660. + _LT_DECL([], [DSYMUTIL], [1],
  1661. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1662. + _LT_DECL([], [NMEDIT], [1],
  1663. + [Tool to change global to local symbols on Mac OS X])
  1664. + _LT_DECL([], [LIPO], [1],
  1665. + [Tool to manipulate fat objects and archives on Mac OS X])
  1666. + _LT_DECL([], [OTOOL], [1],
  1667. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1668. + _LT_DECL([], [OTOOL64], [1],
  1669. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1670. +
  1671. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1672. + [lt_cv_apple_cc_single_mod=no
  1673. + if test -z "${LT_MULTI_MODULE}"; then
  1674. + # By default we will add the -single_module flag. You can override
  1675. + # by either setting the environment variable LT_MULTI_MODULE
  1676. + # non-empty at configure time, or by adding -multi_module to the
  1677. + # link flags.
  1678. + rm -rf libconftest.dylib*
  1679. + echo "int foo(void){return 1;}" > conftest.c
  1680. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1681. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1682. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1683. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1684. + _lt_result=$?
  1685. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1686. + lt_cv_apple_cc_single_mod=yes
  1687. + else
  1688. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1689. + fi
  1690. + rm -rf libconftest.dylib*
  1691. + rm -f conftest.*
  1692. + fi])
  1693. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1694. + [lt_cv_ld_exported_symbols_list],
  1695. + [lt_cv_ld_exported_symbols_list=no
  1696. + save_LDFLAGS=$LDFLAGS
  1697. + echo "_main" > conftest.sym
  1698. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1699. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1700. + [lt_cv_ld_exported_symbols_list=yes],
  1701. + [lt_cv_ld_exported_symbols_list=no])
  1702. + LDFLAGS="$save_LDFLAGS"
  1703. ])
  1704. -
  1705. - if test "x$lt_cv_dlopen_self" = xyes; then
  1706. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1707. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1708. - lt_cv_dlopen_self_static, [dnl
  1709. - _LT_AC_TRY_DLOPEN_SELF(
  1710. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1711. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1712. - ])
  1713. + case $host_os in
  1714. + rhapsody* | darwin1.[[012]])
  1715. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1716. + darwin1.*)
  1717. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1718. + darwin*) # darwin 5.x on
  1719. + # if running on 10.5 or later, the deployment target defaults
  1720. + # to the OS version, if on x86, and 10.4, the deployment
  1721. + # target defaults to 10.4. Don't you love it?
  1722. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1723. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1724. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1725. + 10.[[012]]*)
  1726. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1727. + 10.*)
  1728. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1729. + esac
  1730. + ;;
  1731. + esac
  1732. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1733. + _lt_dar_single_mod='$single_module'
  1734. + fi
  1735. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1736. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1737. + else
  1738. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1739. + fi
  1740. + if test "$DSYMUTIL" != ":"; then
  1741. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1742. + else
  1743. + _lt_dsymutil=
  1744. fi
  1745. -
  1746. - CPPFLAGS="$save_CPPFLAGS"
  1747. - LDFLAGS="$save_LDFLAGS"
  1748. - LIBS="$save_LIBS"
  1749. ;;
  1750. esac
  1751. +])
  1752. - case $lt_cv_dlopen_self in
  1753. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1754. - *) enable_dlopen_self=unknown ;;
  1755. - esac
  1756. - case $lt_cv_dlopen_self_static in
  1757. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1758. - *) enable_dlopen_self_static=unknown ;;
  1759. - esac
  1760. -fi
  1761. -])# AC_LIBTOOL_DLOPEN_SELF
  1762. +# _LT_DARWIN_LINKER_FEATURES
  1763. +# --------------------------
  1764. +# Checks for linker and compiler features on darwin
  1765. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1766. +[
  1767. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1768. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1769. + _LT_TAGVAR(hardcode_direct, $1)=no
  1770. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1771. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1772. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1773. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1774. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1775. + if test "$GCC" = "yes"; then
  1776. + output_verbose_link_cmd=echo
  1777. + _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}"
  1778. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1779. + _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}"
  1780. + _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}"
  1781. + m4_if([$1], [CXX],
  1782. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1783. + _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}"
  1784. + _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}"
  1785. + fi
  1786. +],[])
  1787. + else
  1788. + _LT_TAGVAR(ld_shlibs, $1)=no
  1789. + fi
  1790. +])
  1791. +# _LT_SYS_MODULE_PATH_AIX
  1792. +# -----------------------
  1793. +# Links a minimal program and checks the executable
  1794. +# for the system default hardcoded library path. In most cases,
  1795. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1796. +# the location of the communication and MPI libs are included too.
  1797. +# If we don't find anything, use the default library path according
  1798. +# to the aix ld manual.
  1799. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1800. +[m4_require([_LT_DECL_SED])dnl
  1801. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1802. +lt_aix_libpath_sed='
  1803. + /Import File Strings/,/^$/ {
  1804. + /^0/ {
  1805. + s/^0 *\(.*\)$/\1/
  1806. + p
  1807. + }
  1808. + }'
  1809. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1810. +# Check for a 64-bit object if we didn't find anything.
  1811. +if test -z "$aix_libpath"; then
  1812. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1813. +fi],[])
  1814. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1815. +])# _LT_SYS_MODULE_PATH_AIX
  1816. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1817. -# ---------------------------------
  1818. -# Check to see if options -c and -o are simultaneously supported by compiler
  1819. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1820. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1821. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1822. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1823. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1824. - $rm -r conftest 2>/dev/null
  1825. - mkdir conftest
  1826. - cd conftest
  1827. - mkdir out
  1828. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1829. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1830. - # Insert the option either (1) after the last *FLAGS variable, or
  1831. - # (2) before a word containing "conftest.", or (3) at the end.
  1832. - # Note that $ac_compile itself does not contain backslashes and begins
  1833. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1834. - lt_compile=`echo "$ac_compile" | $SED \
  1835. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1836. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1837. - -e 's:$: $lt_compiler_flag:'`
  1838. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1839. - (eval "$lt_compile" 2>out/conftest.err)
  1840. - ac_status=$?
  1841. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1842. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1843. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1844. - then
  1845. - # The compiler can only warn and ignore the option if not recognized
  1846. - # So say no if there are warnings
  1847. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1848. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1849. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1850. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1851. - fi
  1852. - fi
  1853. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1854. - $rm conftest*
  1855. - # SGI C++ compiler will create directory out/ii_files/ for
  1856. - # template instantiation
  1857. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1858. - $rm out/* && rmdir out
  1859. - cd ..
  1860. - rmdir conftest
  1861. - $rm conftest*
  1862. -])
  1863. -])# AC_LIBTOOL_PROG_CC_C_O
  1864. +# _LT_SHELL_INIT(ARG)
  1865. +# -------------------
  1866. +m4_define([_LT_SHELL_INIT],
  1867. +[ifdef([AC_DIVERSION_NOTICE],
  1868. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1869. + [AC_DIVERT_PUSH(NOTICE)])
  1870. +$1
  1871. +AC_DIVERT_POP
  1872. +])# _LT_SHELL_INIT
  1873. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1874. -# -----------------------------------------
  1875. -# Check to see if we can do hard links to lock some files if needed
  1876. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1877. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1878. +# _LT_PROG_ECHO_BACKSLASH
  1879. +# -----------------------
  1880. +# Add some code to the start of the generated configure script which
  1881. +# will find an echo command which doesn't interpret backslashes.
  1882. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1883. +[_LT_SHELL_INIT([
  1884. +# Check that we are running under the correct shell.
  1885. +SHELL=${CONFIG_SHELL-/bin/sh}
  1886. -hard_links="nottested"
  1887. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1888. - # do not overwrite the value of need_locks provided by the user
  1889. - AC_MSG_CHECKING([if we can lock with hard links])
  1890. - hard_links=yes
  1891. - $rm conftest*
  1892. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1893. - touch conftest.a
  1894. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1895. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1896. - AC_MSG_RESULT([$hard_links])
  1897. - if test "$hard_links" = no; then
  1898. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1899. - need_locks=warn
  1900. - fi
  1901. +case X$lt_ECHO in
  1902. +X*--fallback-echo)
  1903. + # Remove one level of quotation (which was required for Make).
  1904. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1905. + ;;
  1906. +esac
  1907. +
  1908. +ECHO=${lt_ECHO-echo}
  1909. +if test "X[$]1" = X--no-reexec; then
  1910. + # Discard the --no-reexec flag, and continue.
  1911. + shift
  1912. +elif test "X[$]1" = X--fallback-echo; then
  1913. + # Avoid inline document here, it may be left over
  1914. + :
  1915. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1916. + # Yippee, $ECHO works!
  1917. + :
  1918. else
  1919. - need_locks=no
  1920. + # Restart under the correct shell.
  1921. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1922. fi
  1923. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1924. -
  1925. -# AC_LIBTOOL_OBJDIR
  1926. -# -----------------
  1927. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1928. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1929. -[rm -f .libs 2>/dev/null
  1930. -mkdir .libs 2>/dev/null
  1931. -if test -d .libs; then
  1932. - lt_cv_objdir=.libs
  1933. -else
  1934. - # MS-DOS does not allow filenames that begin with a dot.
  1935. - lt_cv_objdir=_libs
  1936. +if test "X[$]1" = X--fallback-echo; then
  1937. + # used as fallback echo
  1938. + shift
  1939. + cat <<_LT_EOF
  1940. +[$]*
  1941. +_LT_EOF
  1942. + exit 0
  1943. fi
  1944. -rmdir .libs 2>/dev/null])
  1945. -objdir=$lt_cv_objdir
  1946. -])# AC_LIBTOOL_OBJDIR
  1947. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1948. +# if CDPATH is set.
  1949. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1950. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1951. -# ----------------------------------------------
  1952. -# Check hardcoding attributes.
  1953. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1954. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1955. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1956. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1957. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1958. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1959. -
  1960. - # We can hardcode non-existant directories.
  1961. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1962. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1963. - # have to relink, otherwise we might link with an installed library
  1964. - # when we should be linking with a yet-to-be-installed one
  1965. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1966. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1967. - # Linking always hardcodes the temporary library directory.
  1968. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1969. - else
  1970. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1971. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1972. +if test -z "$lt_ECHO"; then
  1973. + if test "X${echo_test_string+set}" != Xset; then
  1974. + # find a string as large as possible, as long as the shell can cope with it
  1975. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1976. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1977. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1978. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1979. + then
  1980. + break
  1981. + fi
  1982. + done
  1983. fi
  1984. -else
  1985. - # We cannot hardcode anything, or else we can only hardcode existing
  1986. - # directories.
  1987. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1988. -fi
  1989. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1990. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1991. - # Fast installation is not supported
  1992. - enable_fast_install=no
  1993. -elif test "$shlibpath_overrides_runpath" = yes ||
  1994. - test "$enable_shared" = no; then
  1995. - # Fast installation is not necessary
  1996. - enable_fast_install=needless
  1997. -fi
  1998. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1999. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2000. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2001. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2002. + :
  2003. + else
  2004. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  2005. + # backslashes. This makes it impossible to quote backslashes using
  2006. + # echo "$something" | sed 's/\\/\\\\/g'
  2007. + #
  2008. + # So, first we look for a working echo in the user's PATH.
  2009. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2010. + for dir in $PATH /usr/ucb; do
  2011. + IFS="$lt_save_ifs"
  2012. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  2013. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  2014. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  2015. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2016. + ECHO="$dir/echo"
  2017. + break
  2018. + fi
  2019. + done
  2020. + IFS="$lt_save_ifs"
  2021. -# AC_LIBTOOL_SYS_LIB_STRIP
  2022. -# ------------------------
  2023. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2024. -[striplib=
  2025. -old_striplib=
  2026. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2027. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2028. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2029. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2030. - AC_MSG_RESULT([yes])
  2031. -else
  2032. -# FIXME - insert some real tests, host_os isn't really good enough
  2033. - case $host_os in
  2034. - darwin*)
  2035. - if test -n "$STRIP" ; then
  2036. - striplib="$STRIP -x"
  2037. - AC_MSG_RESULT([yes])
  2038. - else
  2039. - AC_MSG_RESULT([no])
  2040. -fi
  2041. - ;;
  2042. - *)
  2043. - AC_MSG_RESULT([no])
  2044. - ;;
  2045. - esac
  2046. -fi
  2047. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2048. + if test "X$ECHO" = Xecho; then
  2049. + # We didn't find a better echo, so look for alternatives.
  2050. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  2051. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  2052. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2053. + # This shell has a builtin print -r that does the trick.
  2054. + ECHO='print -r'
  2055. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  2056. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  2057. + # If we have ksh, try running configure again with it.
  2058. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  2059. + export ORIGINAL_CONFIG_SHELL
  2060. + CONFIG_SHELL=/bin/ksh
  2061. + export CONFIG_SHELL
  2062. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  2063. + else
  2064. + # Try using printf.
  2065. + ECHO='printf %s\n'
  2066. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  2067. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  2068. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2069. + # Cool, printf works
  2070. + :
  2071. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2072. + test "X$echo_testing_string" = 'X\t' &&
  2073. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2074. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2075. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  2076. + export CONFIG_SHELL
  2077. + SHELL="$CONFIG_SHELL"
  2078. + export SHELL
  2079. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2080. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  2081. + test "X$echo_testing_string" = 'X\t' &&
  2082. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  2083. + test "X$echo_testing_string" = "X$echo_test_string"; then
  2084. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  2085. + else
  2086. + # maybe with a smaller string...
  2087. + prev=:
  2088. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  2089. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  2090. + then
  2091. + break
  2092. + fi
  2093. + prev="$cmd"
  2094. + done
  2095. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2096. -# -----------------------------
  2097. -# PORTME Fill in your ld.so characteristics
  2098. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2099. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2100. -library_names_spec=
  2101. -libname_spec='lib$name'
  2102. -soname_spec=
  2103. -shrext_cmds=".so"
  2104. -postinstall_cmds=
  2105. -postuninstall_cmds=
  2106. -finish_cmds=
  2107. -finish_eval=
  2108. -shlibpath_var=
  2109. -shlibpath_overrides_runpath=unknown
  2110. -version_type=none
  2111. -dynamic_linker="$host_os ld.so"
  2112. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2113. -if test "$GCC" = yes; then
  2114. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2115. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2116. - # if the path contains ";" then we assume it to be the separator
  2117. - # otherwise default to the standard path separator (i.e. ":") - it is
  2118. - # assumed that no part of a normal pathname contains ";" but that should
  2119. - # okay in the real world where ";" in dirpaths is itself problematic.
  2120. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2121. - else
  2122. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2123. + if test "$prev" != 'sed 50q "[$]0"'; then
  2124. + echo_test_string=`eval $prev`
  2125. + export echo_test_string
  2126. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2127. + else
  2128. + # Oops. We lost completely, so just stick with echo.
  2129. + ECHO=echo
  2130. + fi
  2131. + fi
  2132. + fi
  2133. + fi
  2134. fi
  2135. -else
  2136. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2137. fi
  2138. -need_lib_prefix=unknown
  2139. -hardcode_into_libs=no
  2140. -# when you set need_version to no, make sure it does not cause -set_version
  2141. -# flags to be left without arguments
  2142. -need_version=unknown
  2143. +# Copy echo and quote the copy suitably for passing to libtool from
  2144. +# the Makefile, instead of quoting the original, which is used later.
  2145. +lt_ECHO=$ECHO
  2146. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2147. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2148. +fi
  2149. -case $host_os in
  2150. -aix3*)
  2151. - version_type=linux
  2152. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2153. - shlibpath_var=LIBPATH
  2154. +AC_SUBST(lt_ECHO)
  2155. +])
  2156. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2157. +_LT_DECL([], [ECHO], [1],
  2158. + [An echo program that does not interpret backslashes])
  2159. +])# _LT_PROG_ECHO_BACKSLASH
  2160. - # AIX 3 has no versioning support, so we append a major version to the name.
  2161. - soname_spec='${libname}${release}${shared_ext}$major'
  2162. - ;;
  2163. -aix4* | aix5*)
  2164. - version_type=linux
  2165. - need_lib_prefix=no
  2166. - need_version=no
  2167. - hardcode_into_libs=yes
  2168. - if test "$host_cpu" = ia64; then
  2169. - # AIX 5 supports IA64
  2170. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2171. - shlibpath_var=LD_LIBRARY_PATH
  2172. - else
  2173. - # With GCC up to 2.95.x, collect2 would create an import file
  2174. - # for dependence libraries. The import file would start with
  2175. - # the line `#! .'. This would cause the generated library to
  2176. - # depend on `.', always an invalid library. This was fixed in
  2177. - # development snapshots of GCC prior to 3.0.
  2178. - case $host_os in
  2179. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2180. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2181. - echo ' yes '
  2182. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2183. - :
  2184. - else
  2185. - can_build_shared=no
  2186. - fi
  2187. - ;;
  2188. +# _LT_ENABLE_LOCK
  2189. +# ---------------
  2190. +m4_defun([_LT_ENABLE_LOCK],
  2191. +[AC_ARG_ENABLE([libtool-lock],
  2192. + [AS_HELP_STRING([--disable-libtool-lock],
  2193. + [avoid locking (might break parallel builds)])])
  2194. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2195. +
  2196. +# Some flags need to be propagated to the compiler or linker for good
  2197. +# libtool support.
  2198. +case $host in
  2199. +ia64-*-hpux*)
  2200. + # Find out which ABI we are using.
  2201. + echo 'int i;' > conftest.$ac_ext
  2202. + if AC_TRY_EVAL(ac_compile); then
  2203. + case `/usr/bin/file conftest.$ac_objext` in
  2204. + *ELF-32*)
  2205. + HPUX_IA64_MODE="32"
  2206. + ;;
  2207. + *ELF-64*)
  2208. + HPUX_IA64_MODE="64"
  2209. + ;;
  2210. esac
  2211. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2212. - # soname into executable. Probably we can add versioning support to
  2213. - # collect2, so additional links can be useful in future.
  2214. - if test "$aix_use_runtimelinking" = yes; then
  2215. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2216. - # instead of lib<name>.a to let people know that these are not
  2217. - # typical AIX shared libraries.
  2218. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2219. + fi
  2220. + rm -rf conftest*
  2221. + ;;
  2222. +*-*-irix6*)
  2223. + # Find out which ABI we are using.
  2224. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2225. + if AC_TRY_EVAL(ac_compile); then
  2226. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2227. + case `/usr/bin/file conftest.$ac_objext` in
  2228. + *32-bit*)
  2229. + LD="${LD-ld} -melf32bsmip"
  2230. + ;;
  2231. + *N32*)
  2232. + LD="${LD-ld} -melf32bmipn32"
  2233. + ;;
  2234. + *64-bit*)
  2235. + LD="${LD-ld} -melf64bmip"
  2236. + ;;
  2237. + esac
  2238. else
  2239. - # We preserve .a as extension for shared libraries through AIX4.2
  2240. - # and later when we are not doing run time linking.
  2241. - library_names_spec='${libname}${release}.a $libname.a'
  2242. - soname_spec='${libname}${release}${shared_ext}$major'
  2243. + case `/usr/bin/file conftest.$ac_objext` in
  2244. + *32-bit*)
  2245. + LD="${LD-ld} -32"
  2246. + ;;
  2247. + *N32*)
  2248. + LD="${LD-ld} -n32"
  2249. + ;;
  2250. + *64-bit*)
  2251. + LD="${LD-ld} -64"
  2252. + ;;
  2253. + esac
  2254. fi
  2255. - shlibpath_var=LIBPATH
  2256. fi
  2257. + rm -rf conftest*
  2258. ;;
  2259. -amigaos*)
  2260. - library_names_spec='$libname.ixlibrary $libname.a'
  2261. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2262. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  2263. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2264. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2265. + # Find out which ABI we are using.
  2266. + echo 'int i;' > conftest.$ac_ext
  2267. + if AC_TRY_EVAL(ac_compile); then
  2268. + case `/usr/bin/file conftest.o` in
  2269. + *32-bit*)
  2270. + case $host in
  2271. + x86_64-*kfreebsd*-gnu)
  2272. + LD="${LD-ld} -m elf_i386_fbsd"
  2273. + ;;
  2274. + x86_64-*linux*)
  2275. + LD="${LD-ld} -m elf_i386"
  2276. + ;;
  2277. + ppc64-*linux*|powerpc64-*linux*)
  2278. + LD="${LD-ld} -m elf32ppclinux"
  2279. + ;;
  2280. + s390x-*linux*)
  2281. + LD="${LD-ld} -m elf_s390"
  2282. + ;;
  2283. + sparc64-*linux*)
  2284. + LD="${LD-ld} -m elf32_sparc"
  2285. + ;;
  2286. + esac
  2287. + ;;
  2288. + *64-bit*)
  2289. + case $host in
  2290. + x86_64-*kfreebsd*-gnu)
  2291. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2292. + ;;
  2293. + x86_64-*linux*)
  2294. + LD="${LD-ld} -m elf_x86_64"
  2295. + ;;
  2296. + ppc*-*linux*|powerpc*-*linux*)
  2297. + LD="${LD-ld} -m elf64ppc"
  2298. + ;;
  2299. + s390*-*linux*|s390*-*tpf*)
  2300. + LD="${LD-ld} -m elf64_s390"
  2301. + ;;
  2302. + sparc*-*linux*)
  2303. + LD="${LD-ld} -m elf64_sparc"
  2304. + ;;
  2305. + esac
  2306. + ;;
  2307. + esac
  2308. + fi
  2309. + rm -rf conftest*
  2310. ;;
  2311. -beos*)
  2312. - library_names_spec='${libname}${shared_ext}'
  2313. - dynamic_linker="$host_os ld.so"
  2314. - shlibpath_var=LIBRARY_PATH
  2315. +*-*-sco3.2v5*)
  2316. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2317. + SAVE_CFLAGS="$CFLAGS"
  2318. + CFLAGS="$CFLAGS -belf"
  2319. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2320. + [AC_LANG_PUSH(C)
  2321. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2322. + AC_LANG_POP])
  2323. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2324. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2325. + CFLAGS="$SAVE_CFLAGS"
  2326. + fi
  2327. ;;
  2328. -
  2329. -bsdi[[45]]*)
  2330. - version_type=linux
  2331. - need_version=no
  2332. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2333. - soname_spec='${libname}${release}${shared_ext}$major'
  2334. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2335. - shlibpath_var=LD_LIBRARY_PATH
  2336. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2337. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2338. - # the default ld.so.conf also contains /usr/contrib/lib and
  2339. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2340. - # libtool to hard-code these into programs
  2341. +sparc*-*solaris*)
  2342. + # Find out which ABI we are using.
  2343. + echo 'int i;' > conftest.$ac_ext
  2344. + if AC_TRY_EVAL(ac_compile); then
  2345. + case `/usr/bin/file conftest.o` in
  2346. + *64-bit*)
  2347. + case $lt_cv_prog_gnu_ld in
  2348. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2349. + *)
  2350. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2351. + LD="${LD-ld} -64"
  2352. + fi
  2353. + ;;
  2354. + esac
  2355. + ;;
  2356. + esac
  2357. + fi
  2358. + rm -rf conftest*
  2359. ;;
  2360. +esac
  2361. -cygwin* | mingw* | pw32*)
  2362. - version_type=windows
  2363. - shrext_cmds=".dll"
  2364. - need_version=no
  2365. - need_lib_prefix=no
  2366. +need_locks="$enable_libtool_lock"
  2367. +])# _LT_ENABLE_LOCK
  2368. - case $GCC,$host_os in
  2369. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2370. - library_names_spec='$libname.dll.a'
  2371. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2372. - postinstall_cmds='base_file=`basename \${file}`~
  2373. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2374. - dldir=$destdir/`dirname \$dlpath`~
  2375. - test -d \$dldir || mkdir -p \$dldir~
  2376. - $install_prog $dir/$dlname \$dldir/$dlname~
  2377. - chmod a+x \$dldir/$dlname'
  2378. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2379. - dlpath=$dir/\$dldll~
  2380. - $rm \$dlpath'
  2381. - shlibpath_overrides_runpath=yes
  2382. - case $host_os in
  2383. - cygwin*)
  2384. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2385. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2386. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2387. - ;;
  2388. - mingw*)
  2389. - # MinGW DLLs use traditional 'lib' prefix
  2390. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2391. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2392. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2393. - # It is most probably a Windows format PATH printed by
  2394. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2395. - # path with ; separators, and with drive letters. We can handle the
  2396. - # drive letters (cygwin fileutils understands them), so leave them,
  2397. - # especially as we might pass files found there to a mingw objdump,
  2398. - # which wouldn't understand a cygwinified path. Ahh.
  2399. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2400. - else
  2401. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2402. - fi
  2403. - ;;
  2404. - pw32*)
  2405. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2406. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2407. - ;;
  2408. - esac
  2409. - ;;
  2410. +# _LT_CMD_OLD_ARCHIVE
  2411. +# -------------------
  2412. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2413. +[AC_CHECK_TOOL(AR, ar, false)
  2414. +test -z "$AR" && AR=ar
  2415. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2416. +_LT_DECL([], [AR], [1], [The archiver])
  2417. +_LT_DECL([], [AR_FLAGS], [1])
  2418. +
  2419. +AC_CHECK_TOOL(STRIP, strip, :)
  2420. +test -z "$STRIP" && STRIP=:
  2421. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2422. +
  2423. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2424. +test -z "$RANLIB" && RANLIB=:
  2425. +_LT_DECL([], [RANLIB], [1],
  2426. + [Commands used to install an old-style archive])
  2427. +
  2428. +# Determine commands to create old-style static archives.
  2429. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2430. +old_postinstall_cmds='chmod 644 $oldlib'
  2431. +old_postuninstall_cmds=
  2432. +if test -n "$RANLIB"; then
  2433. + case $host_os in
  2434. + openbsd*)
  2435. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2436. + ;;
  2437. *)
  2438. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2439. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2440. ;;
  2441. esac
  2442. - dynamic_linker='Win32 ld.exe'
  2443. - # FIXME: first we should search . and the directory the executable is in
  2444. - shlibpath_var=PATH
  2445. - ;;
  2446. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2447. +fi
  2448. +_LT_DECL([], [old_postinstall_cmds], [2])
  2449. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2450. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2451. + [Commands used to build an old-style archive])
  2452. +])# _LT_CMD_OLD_ARCHIVE
  2453. -darwin* | rhapsody*)
  2454. - dynamic_linker="$host_os dyld"
  2455. - version_type=darwin
  2456. - need_lib_prefix=no
  2457. - need_version=no
  2458. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2459. - soname_spec='${libname}${release}${major}$shared_ext'
  2460. - shlibpath_overrides_runpath=yes
  2461. - shlibpath_var=DYLD_LIBRARY_PATH
  2462. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2463. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2464. - if test "$GCC" = yes; then
  2465. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2466. - else
  2467. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2468. - fi
  2469. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2470. - ;;
  2471. -dgux*)
  2472. - version_type=linux
  2473. - need_lib_prefix=no
  2474. - need_version=no
  2475. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2476. - soname_spec='${libname}${release}${shared_ext}$major'
  2477. - shlibpath_var=LD_LIBRARY_PATH
  2478. - ;;
  2479. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2480. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2481. +# ----------------------------------------------------------------
  2482. +# Check whether the given compiler option works
  2483. +AC_DEFUN([_LT_COMPILER_OPTION],
  2484. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2485. +m4_require([_LT_DECL_SED])dnl
  2486. +AC_CACHE_CHECK([$1], [$2],
  2487. + [$2=no
  2488. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2489. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2490. + lt_compiler_flag="$3"
  2491. + # Insert the option either (1) after the last *FLAGS variable, or
  2492. + # (2) before a word containing "conftest.", or (3) at the end.
  2493. + # Note that $ac_compile itself does not contain backslashes and begins
  2494. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2495. + # The option is referenced via a variable to avoid confusing sed.
  2496. + lt_compile=`echo "$ac_compile" | $SED \
  2497. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2498. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2499. + -e 's:$: $lt_compiler_flag:'`
  2500. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2501. + (eval "$lt_compile" 2>conftest.err)
  2502. + ac_status=$?
  2503. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2504. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2505. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2506. + # The compiler can only warn and ignore the option if not recognized
  2507. + # So say no if there are warnings other than the usual output.
  2508. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2509. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2510. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2511. + $2=yes
  2512. + fi
  2513. + fi
  2514. + $RM conftest*
  2515. +])
  2516. -freebsd1*)
  2517. - dynamic_linker=no
  2518. - ;;
  2519. +if test x"[$]$2" = xyes; then
  2520. + m4_if([$5], , :, [$5])
  2521. +else
  2522. + m4_if([$6], , :, [$6])
  2523. +fi
  2524. +])# _LT_COMPILER_OPTION
  2525. -kfreebsd*-gnu)
  2526. - version_type=linux
  2527. - need_lib_prefix=no
  2528. - need_version=no
  2529. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2530. - soname_spec='${libname}${release}${shared_ext}$major'
  2531. - shlibpath_var=LD_LIBRARY_PATH
  2532. - shlibpath_overrides_runpath=no
  2533. - hardcode_into_libs=yes
  2534. - dynamic_linker='GNU ld.so'
  2535. - ;;
  2536. +# Old name:
  2537. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2538. +dnl aclocal-1.4 backwards compatibility:
  2539. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2540. -freebsd* | dragonfly*)
  2541. - # DragonFly does not have aout. When/if they implement a new
  2542. - # versioning mechanism, adjust this.
  2543. - if test -x /usr/bin/objformat; then
  2544. - objformat=`/usr/bin/objformat`
  2545. - else
  2546. - case $host_os in
  2547. - freebsd[[123]]*) objformat=aout ;;
  2548. - *) objformat=elf ;;
  2549. - esac
  2550. - fi
  2551. - version_type=freebsd-$objformat
  2552. - case $version_type in
  2553. - freebsd-elf*)
  2554. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2555. - need_version=no
  2556. - need_lib_prefix=no
  2557. - ;;
  2558. - freebsd-*)
  2559. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2560. - need_version=yes
  2561. - ;;
  2562. - esac
  2563. - shlibpath_var=LD_LIBRARY_PATH
  2564. - case $host_os in
  2565. - freebsd2*)
  2566. - shlibpath_overrides_runpath=yes
  2567. - ;;
  2568. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2569. - shlibpath_overrides_runpath=yes
  2570. - hardcode_into_libs=yes
  2571. +
  2572. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2573. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2574. +# ----------------------------------------------------
  2575. +# Check whether the given linker option works
  2576. +AC_DEFUN([_LT_LINKER_OPTION],
  2577. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2578. +m4_require([_LT_DECL_SED])dnl
  2579. +AC_CACHE_CHECK([$1], [$2],
  2580. + [$2=no
  2581. + save_LDFLAGS="$LDFLAGS"
  2582. + LDFLAGS="$LDFLAGS $3"
  2583. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2584. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2585. + # The linker can only warn and ignore the option if not recognized
  2586. + # So say no if there are warnings
  2587. + if test -s conftest.err; then
  2588. + # Append any errors to the config.log.
  2589. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2590. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2591. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2592. + if diff conftest.exp conftest.er2 >/dev/null; then
  2593. + $2=yes
  2594. + fi
  2595. + else
  2596. + $2=yes
  2597. + fi
  2598. + fi
  2599. + $RM -r conftest*
  2600. + LDFLAGS="$save_LDFLAGS"
  2601. +])
  2602. +
  2603. +if test x"[$]$2" = xyes; then
  2604. + m4_if([$4], , :, [$4])
  2605. +else
  2606. + m4_if([$5], , :, [$5])
  2607. +fi
  2608. +])# _LT_LINKER_OPTION
  2609. +
  2610. +# Old name:
  2611. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2612. +dnl aclocal-1.4 backwards compatibility:
  2613. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2614. +
  2615. +
  2616. +# LT_CMD_MAX_LEN
  2617. +#---------------
  2618. +AC_DEFUN([LT_CMD_MAX_LEN],
  2619. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2620. +# find the maximum length of command line arguments
  2621. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2622. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2623. + i=0
  2624. + teststring="ABCD"
  2625. +
  2626. + case $build_os in
  2627. + msdosdjgpp*)
  2628. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2629. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2630. + # during glob expansion). Even if it were fixed, the result of this
  2631. + # check would be larger than it should be.
  2632. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2633. ;;
  2634. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2635. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2636. - shlibpath_overrides_runpath=no
  2637. - hardcode_into_libs=yes
  2638. +
  2639. + gnu*)
  2640. + # Under GNU Hurd, this test is not required because there is
  2641. + # no limit to the length of command line arguments.
  2642. + # Libtool will interpret -1 as no limit whatsoever
  2643. + lt_cv_sys_max_cmd_len=-1;
  2644. ;;
  2645. - freebsd*) # from 4.6 on
  2646. - shlibpath_overrides_runpath=yes
  2647. - hardcode_into_libs=yes
  2648. +
  2649. + cygwin* | mingw*)
  2650. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2651. + # about 5 minutes as the teststring grows exponentially.
  2652. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2653. + # you end up with a "frozen" computer, even though with patience
  2654. + # the test eventually succeeds (with a max line length of 256k).
  2655. + # Instead, let's just punt: use the minimum linelength reported by
  2656. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2657. + lt_cv_sys_max_cmd_len=8192;
  2658. ;;
  2659. - esac
  2660. - ;;
  2661. -gnu*)
  2662. - version_type=linux
  2663. - need_lib_prefix=no
  2664. - need_version=no
  2665. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2666. - soname_spec='${libname}${release}${shared_ext}$major'
  2667. - shlibpath_var=LD_LIBRARY_PATH
  2668. - hardcode_into_libs=yes
  2669. - ;;
  2670. + amigaos*)
  2671. + # On AmigaOS with pdksh, this test takes hours, literally.
  2672. + # So we just punt and use a minimum line length of 8192.
  2673. + lt_cv_sys_max_cmd_len=8192;
  2674. + ;;
  2675. -hpux9* | hpux10* | hpux11*)
  2676. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2677. - # link against other versions.
  2678. - version_type=sunos
  2679. - need_lib_prefix=no
  2680. - need_version=no
  2681. - case $host_cpu in
  2682. - ia64*)
  2683. - shrext_cmds='.so'
  2684. - hardcode_into_libs=yes
  2685. - dynamic_linker="$host_os dld.so"
  2686. - shlibpath_var=LD_LIBRARY_PATH
  2687. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2688. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2689. - soname_spec='${libname}${release}${shared_ext}$major'
  2690. - if test "X$HPUX_IA64_MODE" = X32; then
  2691. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2692. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2693. + # This has been around since 386BSD, at least. Likely further.
  2694. + if test -x /sbin/sysctl; then
  2695. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2696. + elif test -x /usr/sbin/sysctl; then
  2697. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2698. else
  2699. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2700. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2701. fi
  2702. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2703. - ;;
  2704. - hppa*64*)
  2705. - shrext_cmds='.sl'
  2706. - hardcode_into_libs=yes
  2707. - dynamic_linker="$host_os dld.sl"
  2708. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2709. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2710. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2711. - soname_spec='${libname}${release}${shared_ext}$major'
  2712. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2713. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2714. - ;;
  2715. - *)
  2716. - shrext_cmds='.sl'
  2717. - dynamic_linker="$host_os dld.sl"
  2718. - shlibpath_var=SHLIB_PATH
  2719. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2720. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2721. - soname_spec='${libname}${release}${shared_ext}$major'
  2722. + # And add a safety zone
  2723. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2724. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2725. ;;
  2726. - esac
  2727. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2728. - postinstall_cmds='chmod 555 $lib'
  2729. - ;;
  2730. -interix3*)
  2731. - version_type=linux
  2732. - need_lib_prefix=no
  2733. - need_version=no
  2734. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2735. - soname_spec='${libname}${release}${shared_ext}$major'
  2736. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2737. - shlibpath_var=LD_LIBRARY_PATH
  2738. - shlibpath_overrides_runpath=no
  2739. - hardcode_into_libs=yes
  2740. - ;;
  2741. + interix*)
  2742. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2743. + lt_cv_sys_max_cmd_len=196608
  2744. + ;;
  2745. -irix5* | irix6* | nonstopux*)
  2746. - case $host_os in
  2747. - nonstopux*) version_type=nonstopux ;;
  2748. - *)
  2749. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2750. - version_type=linux
  2751. - else
  2752. - version_type=irix
  2753. - fi ;;
  2754. - esac
  2755. - need_lib_prefix=no
  2756. - need_version=no
  2757. - soname_spec='${libname}${release}${shared_ext}$major'
  2758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2759. - case $host_os in
  2760. - irix5* | nonstopux*)
  2761. - libsuff= shlibsuff=
  2762. + osf*)
  2763. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2764. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2765. + # nice to cause kernel panics so lets avoid the loop below.
  2766. + # First set a reasonable default.
  2767. + lt_cv_sys_max_cmd_len=16384
  2768. + #
  2769. + if test -x /sbin/sysconfig; then
  2770. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2771. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2772. + esac
  2773. + fi
  2774. + ;;
  2775. + sco3.2v5*)
  2776. + lt_cv_sys_max_cmd_len=102400
  2777. + ;;
  2778. + sysv5* | sco5v6* | sysv4.2uw2*)
  2779. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2780. + if test -n "$kargmax"; then
  2781. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2782. + else
  2783. + lt_cv_sys_max_cmd_len=32768
  2784. + fi
  2785. ;;
  2786. *)
  2787. - case $LD in # libtool.m4 will add one of these switches to LD
  2788. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2789. - libsuff= shlibsuff= libmagic=32-bit;;
  2790. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2791. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2792. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2793. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2794. - *) libsuff= shlibsuff= libmagic=never-match;;
  2795. - esac
  2796. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2797. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2798. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2799. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2800. + else
  2801. + # Make teststring a little bigger before we do anything with it.
  2802. + # a 1K string should be a reasonable start.
  2803. + for i in 1 2 3 4 5 6 7 8 ; do
  2804. + teststring=$teststring$teststring
  2805. + done
  2806. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2807. + # If test is not a shell built-in, we'll probably end up computing a
  2808. + # maximum length that is only half of the actual maximum length, but
  2809. + # we can't tell.
  2810. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2811. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2812. + test $i != 17 # 1/2 MB should be enough
  2813. + do
  2814. + i=`expr $i + 1`
  2815. + teststring=$teststring$teststring
  2816. + done
  2817. + # Only check the string length outside the loop.
  2818. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2819. + teststring=
  2820. + # Add a significant safety factor because C++ compilers can tack on
  2821. + # massive amounts of additional arguments before passing them to the
  2822. + # linker. It appears as though 1/2 is a usable value.
  2823. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2824. + fi
  2825. ;;
  2826. esac
  2827. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2828. - shlibpath_overrides_runpath=no
  2829. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2830. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2831. - hardcode_into_libs=yes
  2832. - ;;
  2833. +])
  2834. +if test -n $lt_cv_sys_max_cmd_len ; then
  2835. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2836. +else
  2837. + AC_MSG_RESULT(none)
  2838. +fi
  2839. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2840. +_LT_DECL([], [max_cmd_len], [0],
  2841. + [What is the maximum length of a command?])
  2842. +])# LT_CMD_MAX_LEN
  2843. -# No shared lib support for Linux oldld, aout, or coff.
  2844. -linux*oldld* | linux*aout* | linux*coff*)
  2845. - dynamic_linker=no
  2846. - ;;
  2847. +# Old name:
  2848. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2849. +dnl aclocal-1.4 backwards compatibility:
  2850. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2851. -# This must be Linux ELF.
  2852. -linux*)
  2853. - version_type=linux
  2854. - need_lib_prefix=no
  2855. - need_version=no
  2856. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2857. - soname_spec='${libname}${release}${shared_ext}$major'
  2858. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2859. - shlibpath_var=LD_LIBRARY_PATH
  2860. - shlibpath_overrides_runpath=no
  2861. - # This implies no fast_install, which is unacceptable.
  2862. - # Some rework will be needed to allow for fast_install
  2863. - # before this can be enabled.
  2864. - hardcode_into_libs=yes
  2865. - # Append ld.so.conf contents to the search path
  2866. - if test -f /etc/ld.so.conf; then
  2867. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2868. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2869. - fi
  2870. +# _LT_HEADER_DLFCN
  2871. +# ----------------
  2872. +m4_defun([_LT_HEADER_DLFCN],
  2873. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2874. +])# _LT_HEADER_DLFCN
  2875. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2876. - # powerpc, because MkLinux only supported shared libraries with the
  2877. - # GNU dynamic linker. Since this was broken with cross compilers,
  2878. - # most powerpc-linux boxes support dynamic linking these days and
  2879. - # people can always --disable-shared, the test was removed, and we
  2880. - # assume the GNU/Linux dynamic linker is in use.
  2881. - dynamic_linker='GNU/Linux ld.so'
  2882. - ;;
  2883. -knetbsd*-gnu)
  2884. - version_type=linux
  2885. - need_lib_prefix=no
  2886. - need_version=no
  2887. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2888. - soname_spec='${libname}${release}${shared_ext}$major'
  2889. - shlibpath_var=LD_LIBRARY_PATH
  2890. - shlibpath_overrides_runpath=no
  2891. - hardcode_into_libs=yes
  2892. - dynamic_linker='GNU ld.so'
  2893. - ;;
  2894. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2895. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2896. +# ----------------------------------------------------------------
  2897. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2898. +[m4_require([_LT_HEADER_DLFCN])dnl
  2899. +if test "$cross_compiling" = yes; then :
  2900. + [$4]
  2901. +else
  2902. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2903. + lt_status=$lt_dlunknown
  2904. + cat > conftest.$ac_ext <<_LT_EOF
  2905. +[#line __oline__ "configure"
  2906. +#include "confdefs.h"
  2907. -netbsd*)
  2908. - version_type=sunos
  2909. - need_lib_prefix=no
  2910. - need_version=no
  2911. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2912. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2913. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2914. - dynamic_linker='NetBSD (a.out) ld.so'
  2915. - else
  2916. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2917. - soname_spec='${libname}${release}${shared_ext}$major'
  2918. - dynamic_linker='NetBSD ld.elf_so'
  2919. - fi
  2920. - shlibpath_var=LD_LIBRARY_PATH
  2921. - shlibpath_overrides_runpath=yes
  2922. - hardcode_into_libs=yes
  2923. - ;;
  2924. +#if HAVE_DLFCN_H
  2925. +#include <dlfcn.h>
  2926. +#endif
  2927. -newsos6)
  2928. - version_type=linux
  2929. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2930. - shlibpath_var=LD_LIBRARY_PATH
  2931. - shlibpath_overrides_runpath=yes
  2932. - ;;
  2933. +#include <stdio.h>
  2934. -nto-qnx*)
  2935. - version_type=linux
  2936. - need_lib_prefix=no
  2937. - need_version=no
  2938. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2939. - soname_spec='${libname}${release}${shared_ext}$major'
  2940. - shlibpath_var=LD_LIBRARY_PATH
  2941. - shlibpath_overrides_runpath=yes
  2942. - ;;
  2943. +#ifdef RTLD_GLOBAL
  2944. +# define LT_DLGLOBAL RTLD_GLOBAL
  2945. +#else
  2946. +# ifdef DL_GLOBAL
  2947. +# define LT_DLGLOBAL DL_GLOBAL
  2948. +# else
  2949. +# define LT_DLGLOBAL 0
  2950. +# endif
  2951. +#endif
  2952. -openbsd*)
  2953. - version_type=sunos
  2954. - sys_lib_dlsearch_path_spec="/usr/lib"
  2955. - need_lib_prefix=no
  2956. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2957. - case $host_os in
  2958. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2959. - *) need_version=no ;;
  2960. - esac
  2961. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2962. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2963. - shlibpath_var=LD_LIBRARY_PATH
  2964. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2965. - case $host_os in
  2966. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2967. - shlibpath_overrides_runpath=no
  2968. - ;;
  2969. - *)
  2970. - shlibpath_overrides_runpath=yes
  2971. - ;;
  2972. - esac
  2973. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2974. + find out it does not work in some platform. */
  2975. +#ifndef LT_DLLAZY_OR_NOW
  2976. +# ifdef RTLD_LAZY
  2977. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2978. +# else
  2979. +# ifdef DL_LAZY
  2980. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2981. +# else
  2982. +# ifdef RTLD_NOW
  2983. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2984. +# else
  2985. +# ifdef DL_NOW
  2986. +# define LT_DLLAZY_OR_NOW DL_NOW
  2987. +# else
  2988. +# define LT_DLLAZY_OR_NOW 0
  2989. +# endif
  2990. +# endif
  2991. +# endif
  2992. +# endif
  2993. +#endif
  2994. +
  2995. +#ifdef __cplusplus
  2996. +extern "C" void exit (int);
  2997. +#endif
  2998. +
  2999. +void fnord() { int i=42;}
  3000. +int main ()
  3001. +{
  3002. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  3003. + int status = $lt_dlunknown;
  3004. +
  3005. + if (self)
  3006. + {
  3007. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  3008. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  3009. + /* dlclose (self); */
  3010. + }
  3011. else
  3012. - shlibpath_overrides_runpath=yes
  3013. + puts (dlerror ());
  3014. +
  3015. + exit (status);
  3016. +}]
  3017. +_LT_EOF
  3018. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  3019. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  3020. + lt_status=$?
  3021. + case x$lt_status in
  3022. + x$lt_dlno_uscore) $1 ;;
  3023. + x$lt_dlneed_uscore) $2 ;;
  3024. + x$lt_dlunknown|x*) $3 ;;
  3025. + esac
  3026. + else :
  3027. + # compilation failed
  3028. + $3
  3029. fi
  3030. - ;;
  3031. +fi
  3032. +rm -fr conftest*
  3033. +])# _LT_TRY_DLOPEN_SELF
  3034. -os2*)
  3035. - libname_spec='$name'
  3036. - shrext_cmds=".dll"
  3037. - need_lib_prefix=no
  3038. - library_names_spec='$libname${shared_ext} $libname.a'
  3039. - dynamic_linker='OS/2 ld.exe'
  3040. - shlibpath_var=LIBPATH
  3041. - ;;
  3042. -osf3* | osf4* | osf5*)
  3043. - version_type=osf
  3044. - need_lib_prefix=no
  3045. - need_version=no
  3046. - soname_spec='${libname}${release}${shared_ext}$major'
  3047. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3048. - shlibpath_var=LD_LIBRARY_PATH
  3049. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3050. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3051. - ;;
  3052. +# LT_SYS_DLOPEN_SELF
  3053. +# ------------------
  3054. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3055. +[m4_require([_LT_HEADER_DLFCN])dnl
  3056. +if test "x$enable_dlopen" != xyes; then
  3057. + enable_dlopen=unknown
  3058. + enable_dlopen_self=unknown
  3059. + enable_dlopen_self_static=unknown
  3060. +else
  3061. + lt_cv_dlopen=no
  3062. + lt_cv_dlopen_libs=
  3063. -solaris*)
  3064. - version_type=linux
  3065. - need_lib_prefix=no
  3066. - need_version=no
  3067. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3068. - soname_spec='${libname}${release}${shared_ext}$major'
  3069. - shlibpath_var=LD_LIBRARY_PATH
  3070. - shlibpath_overrides_runpath=yes
  3071. - hardcode_into_libs=yes
  3072. - # ldd complains unless libraries are executable
  3073. - postinstall_cmds='chmod +x $lib'
  3074. - ;;
  3075. + case $host_os in
  3076. + beos*)
  3077. + lt_cv_dlopen="load_add_on"
  3078. + lt_cv_dlopen_libs=
  3079. + lt_cv_dlopen_self=yes
  3080. + ;;
  3081. -sunos4*)
  3082. - version_type=sunos
  3083. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3084. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3085. - shlibpath_var=LD_LIBRARY_PATH
  3086. - shlibpath_overrides_runpath=yes
  3087. - if test "$with_gnu_ld" = yes; then
  3088. - need_lib_prefix=no
  3089. - fi
  3090. - need_version=yes
  3091. - ;;
  3092. + mingw* | pw32*)
  3093. + lt_cv_dlopen="LoadLibrary"
  3094. + lt_cv_dlopen_libs=
  3095. + ;;
  3096. -sysv4 | sysv4.3*)
  3097. - version_type=linux
  3098. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3099. - soname_spec='${libname}${release}${shared_ext}$major'
  3100. - shlibpath_var=LD_LIBRARY_PATH
  3101. - case $host_vendor in
  3102. - sni)
  3103. - shlibpath_overrides_runpath=no
  3104. - need_lib_prefix=no
  3105. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3106. - runpath_var=LD_RUN_PATH
  3107. - ;;
  3108. - siemens)
  3109. - need_lib_prefix=no
  3110. - ;;
  3111. - motorola)
  3112. - need_lib_prefix=no
  3113. - need_version=no
  3114. - shlibpath_overrides_runpath=no
  3115. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3116. - ;;
  3117. - esac
  3118. - ;;
  3119. + cygwin*)
  3120. + lt_cv_dlopen="dlopen"
  3121. + lt_cv_dlopen_libs=
  3122. + ;;
  3123. -sysv4*MP*)
  3124. - if test -d /usr/nec ;then
  3125. - version_type=linux
  3126. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3127. - soname_spec='$libname${shared_ext}.$major'
  3128. - shlibpath_var=LD_LIBRARY_PATH
  3129. - fi
  3130. - ;;
  3131. + darwin*)
  3132. + # if libdl is installed we need to link against it
  3133. + AC_CHECK_LIB([dl], [dlopen],
  3134. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3135. + lt_cv_dlopen="dyld"
  3136. + lt_cv_dlopen_libs=
  3137. + lt_cv_dlopen_self=yes
  3138. + ])
  3139. + ;;
  3140. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3141. - version_type=freebsd-elf
  3142. - need_lib_prefix=no
  3143. - need_version=no
  3144. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  3145. - soname_spec='${libname}${release}${shared_ext}$major'
  3146. - shlibpath_var=LD_LIBRARY_PATH
  3147. - hardcode_into_libs=yes
  3148. - if test "$with_gnu_ld" = yes; then
  3149. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  3150. - shlibpath_overrides_runpath=no
  3151. + *)
  3152. + AC_CHECK_FUNC([shl_load],
  3153. + [lt_cv_dlopen="shl_load"],
  3154. + [AC_CHECK_LIB([dld], [shl_load],
  3155. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3156. + [AC_CHECK_FUNC([dlopen],
  3157. + [lt_cv_dlopen="dlopen"],
  3158. + [AC_CHECK_LIB([dl], [dlopen],
  3159. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3160. + [AC_CHECK_LIB([svld], [dlopen],
  3161. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3162. + [AC_CHECK_LIB([dld], [dld_link],
  3163. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3164. + ])
  3165. + ])
  3166. + ])
  3167. + ])
  3168. + ])
  3169. + ;;
  3170. + esac
  3171. +
  3172. + if test "x$lt_cv_dlopen" != xno; then
  3173. + enable_dlopen=yes
  3174. else
  3175. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  3176. - shlibpath_overrides_runpath=yes
  3177. - case $host_os in
  3178. - sco3.2v5*)
  3179. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  3180. - ;;
  3181. - esac
  3182. + enable_dlopen=no
  3183. fi
  3184. - sys_lib_dlsearch_path_spec='/usr/lib'
  3185. - ;;
  3186. -
  3187. -uts4*)
  3188. - version_type=linux
  3189. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3190. - soname_spec='${libname}${release}${shared_ext}$major'
  3191. - shlibpath_var=LD_LIBRARY_PATH
  3192. - ;;
  3193. -
  3194. -*)
  3195. - dynamic_linker=no
  3196. - ;;
  3197. -esac
  3198. -AC_MSG_RESULT([$dynamic_linker])
  3199. -test "$dynamic_linker" = no && can_build_shared=no
  3200. -
  3201. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3202. -if test "$GCC" = yes; then
  3203. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3204. -fi
  3205. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3206. -
  3207. -# _LT_AC_TAGCONFIG
  3208. -# ----------------
  3209. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3210. -[AC_ARG_WITH([tags],
  3211. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3212. - [include additional configurations @<:@automatic@:>@])],
  3213. - [tagnames="$withval"])
  3214. -
  3215. -if test -f "$ltmain" && test -n "$tagnames"; then
  3216. - if test ! -f "${ofile}"; then
  3217. - AC_MSG_WARN([output file `$ofile' does not exist])
  3218. - fi
  3219. + case $lt_cv_dlopen in
  3220. + dlopen)
  3221. + save_CPPFLAGS="$CPPFLAGS"
  3222. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3223. - if test -z "$LTCC"; then
  3224. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3225. - if test -z "$LTCC"; then
  3226. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3227. - else
  3228. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3229. - fi
  3230. - fi
  3231. - if test -z "$LTCFLAGS"; then
  3232. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  3233. - fi
  3234. + save_LDFLAGS="$LDFLAGS"
  3235. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3236. - # Extract list of available tagged configurations in $ofile.
  3237. - # Note that this assumes the entire list is on one line.
  3238. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3239. + save_LIBS="$LIBS"
  3240. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3241. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3242. - for tagname in $tagnames; do
  3243. - IFS="$lt_save_ifs"
  3244. - # Check whether tagname contains only valid characters
  3245. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3246. - "") ;;
  3247. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3248. - ;;
  3249. - esac
  3250. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3251. + lt_cv_dlopen_self, [dnl
  3252. + _LT_TRY_DLOPEN_SELF(
  3253. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3254. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3255. + ])
  3256. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3257. - then
  3258. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3259. + if test "x$lt_cv_dlopen_self" = xyes; then
  3260. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3261. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3262. + lt_cv_dlopen_self_static, [dnl
  3263. + _LT_TRY_DLOPEN_SELF(
  3264. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3265. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3266. + ])
  3267. fi
  3268. - # Update the list of available tags.
  3269. - if test -n "$tagname"; then
  3270. - echo appending configuration tag \"$tagname\" to $ofile
  3271. -
  3272. - case $tagname in
  3273. - CXX)
  3274. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3275. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3276. - (test "X$CXX" != "Xg++"))) ; then
  3277. - AC_LIBTOOL_LANG_CXX_CONFIG
  3278. - else
  3279. - tagname=""
  3280. - fi
  3281. - ;;
  3282. -
  3283. - F77)
  3284. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3285. - AC_LIBTOOL_LANG_F77_CONFIG
  3286. - else
  3287. - tagname=""
  3288. - fi
  3289. - ;;
  3290. -
  3291. - GCJ)
  3292. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3293. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3294. - else
  3295. - tagname=""
  3296. - fi
  3297. - ;;
  3298. -
  3299. - RC)
  3300. - AC_LIBTOOL_LANG_RC_CONFIG
  3301. - ;;
  3302. -
  3303. - *)
  3304. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3305. - ;;
  3306. - esac
  3307. + CPPFLAGS="$save_CPPFLAGS"
  3308. + LDFLAGS="$save_LDFLAGS"
  3309. + LIBS="$save_LIBS"
  3310. + ;;
  3311. + esac
  3312. - # Append the new tag name to the list of available tags.
  3313. - if test -n "$tagname" ; then
  3314. - available_tags="$available_tags $tagname"
  3315. - fi
  3316. - fi
  3317. - done
  3318. - IFS="$lt_save_ifs"
  3319. + case $lt_cv_dlopen_self in
  3320. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3321. + *) enable_dlopen_self=unknown ;;
  3322. + esac
  3323. - # Now substitute the updated list of available tags.
  3324. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3325. - mv "${ofile}T" "$ofile"
  3326. - chmod +x "$ofile"
  3327. - else
  3328. - rm -f "${ofile}T"
  3329. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3330. - fi
  3331. + case $lt_cv_dlopen_self_static in
  3332. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3333. + *) enable_dlopen_self_static=unknown ;;
  3334. + esac
  3335. fi
  3336. -])# _LT_AC_TAGCONFIG
  3337. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3338. + [Whether dlopen is supported])
  3339. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3340. + [Whether dlopen of programs is supported])
  3341. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3342. + [Whether dlopen of statically linked programs is supported])
  3343. +])# LT_SYS_DLOPEN_SELF
  3344. +
  3345. +# Old name:
  3346. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3347. +dnl aclocal-1.4 backwards compatibility:
  3348. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3349. -# AC_LIBTOOL_DLOPEN
  3350. -# -----------------
  3351. -# enable checks for dlopen support
  3352. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3353. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3354. -])# AC_LIBTOOL_DLOPEN
  3355. +# _LT_COMPILER_C_O([TAGNAME])
  3356. +# ---------------------------
  3357. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3358. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3359. +m4_defun([_LT_COMPILER_C_O],
  3360. +[m4_require([_LT_DECL_SED])dnl
  3361. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3362. +m4_require([_LT_TAG_COMPILER])dnl
  3363. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3364. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3365. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3366. + $RM -r conftest 2>/dev/null
  3367. + mkdir conftest
  3368. + cd conftest
  3369. + mkdir out
  3370. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3371. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3372. + # Insert the option either (1) after the last *FLAGS variable, or
  3373. + # (2) before a word containing "conftest.", or (3) at the end.
  3374. + # Note that $ac_compile itself does not contain backslashes and begins
  3375. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3376. + lt_compile=`echo "$ac_compile" | $SED \
  3377. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3378. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3379. + -e 's:$: $lt_compiler_flag:'`
  3380. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3381. + (eval "$lt_compile" 2>out/conftest.err)
  3382. + ac_status=$?
  3383. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3384. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3385. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3386. + then
  3387. + # The compiler can only warn and ignore the option if not recognized
  3388. + # So say no if there are warnings
  3389. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3390. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3391. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3392. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3393. + fi
  3394. + fi
  3395. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3396. + $RM conftest*
  3397. + # SGI C++ compiler will create directory out/ii_files/ for
  3398. + # template instantiation
  3399. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3400. + $RM out/* && rmdir out
  3401. + cd ..
  3402. + $RM -r conftest
  3403. + $RM conftest*
  3404. +])
  3405. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3406. + [Does compiler simultaneously support -c and -o options?])
  3407. +])# _LT_COMPILER_C_O
  3408. -# AC_LIBTOOL_WIN32_DLL
  3409. -# --------------------
  3410. -# declare package support for building win32 DLLs
  3411. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3412. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3413. -])# AC_LIBTOOL_WIN32_DLL
  3414. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3415. +# ----------------------------------
  3416. +# Check to see if we can do hard links to lock some files if needed
  3417. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3418. +[m4_require([_LT_ENABLE_LOCK])dnl
  3419. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3420. +_LT_COMPILER_C_O([$1])
  3421. -# AC_ENABLE_SHARED([DEFAULT])
  3422. -# ---------------------------
  3423. -# implement the --enable-shared flag
  3424. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3425. -AC_DEFUN([AC_ENABLE_SHARED],
  3426. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3427. -AC_ARG_ENABLE([shared],
  3428. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3429. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3430. - [p=${PACKAGE-default}
  3431. - case $enableval in
  3432. - yes) enable_shared=yes ;;
  3433. - no) enable_shared=no ;;
  3434. - *)
  3435. - enable_shared=no
  3436. - # Look at the argument we got. We use all the common list separators.
  3437. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3438. - for pkg in $enableval; do
  3439. - IFS="$lt_save_ifs"
  3440. - if test "X$pkg" = "X$p"; then
  3441. - enable_shared=yes
  3442. - fi
  3443. - done
  3444. - IFS="$lt_save_ifs"
  3445. - ;;
  3446. - esac],
  3447. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3448. -])# AC_ENABLE_SHARED
  3449. -
  3450. -
  3451. -# AC_DISABLE_SHARED
  3452. -# -----------------
  3453. -# set the default shared flag to --disable-shared
  3454. -AC_DEFUN([AC_DISABLE_SHARED],
  3455. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3456. -AC_ENABLE_SHARED(no)
  3457. -])# AC_DISABLE_SHARED
  3458. -
  3459. -
  3460. -# AC_ENABLE_STATIC([DEFAULT])
  3461. -# ---------------------------
  3462. -# implement the --enable-static flag
  3463. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3464. -AC_DEFUN([AC_ENABLE_STATIC],
  3465. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3466. -AC_ARG_ENABLE([static],
  3467. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3468. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3469. - [p=${PACKAGE-default}
  3470. - case $enableval in
  3471. - yes) enable_static=yes ;;
  3472. - no) enable_static=no ;;
  3473. - *)
  3474. - enable_static=no
  3475. - # Look at the argument we got. We use all the common list separators.
  3476. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3477. - for pkg in $enableval; do
  3478. - IFS="$lt_save_ifs"
  3479. - if test "X$pkg" = "X$p"; then
  3480. - enable_static=yes
  3481. - fi
  3482. - done
  3483. - IFS="$lt_save_ifs"
  3484. - ;;
  3485. - esac],
  3486. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3487. -])# AC_ENABLE_STATIC
  3488. -
  3489. -
  3490. -# AC_DISABLE_STATIC
  3491. -# -----------------
  3492. -# set the default static flag to --disable-static
  3493. -AC_DEFUN([AC_DISABLE_STATIC],
  3494. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3495. -AC_ENABLE_STATIC(no)
  3496. -])# AC_DISABLE_STATIC
  3497. -
  3498. -
  3499. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3500. -# ---------------------------------
  3501. -# implement the --enable-fast-install flag
  3502. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3503. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3504. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3505. -AC_ARG_ENABLE([fast-install],
  3506. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3507. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3508. - [p=${PACKAGE-default}
  3509. - case $enableval in
  3510. - yes) enable_fast_install=yes ;;
  3511. - no) enable_fast_install=no ;;
  3512. - *)
  3513. - enable_fast_install=no
  3514. - # Look at the argument we got. We use all the common list separators.
  3515. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3516. - for pkg in $enableval; do
  3517. - IFS="$lt_save_ifs"
  3518. - if test "X$pkg" = "X$p"; then
  3519. - enable_fast_install=yes
  3520. - fi
  3521. - done
  3522. - IFS="$lt_save_ifs"
  3523. - ;;
  3524. - esac],
  3525. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3526. -])# AC_ENABLE_FAST_INSTALL
  3527. -
  3528. -
  3529. -# AC_DISABLE_FAST_INSTALL
  3530. -# -----------------------
  3531. -# set the default to --disable-fast-install
  3532. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3533. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3534. -AC_ENABLE_FAST_INSTALL(no)
  3535. -])# AC_DISABLE_FAST_INSTALL
  3536. -
  3537. -
  3538. -# AC_LIBTOOL_PICMODE([MODE])
  3539. -# --------------------------
  3540. -# implement the --with-pic flag
  3541. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3542. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3543. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3544. -pic_mode=ifelse($#,1,$1,default)
  3545. -])# AC_LIBTOOL_PICMODE
  3546. -
  3547. -
  3548. -# AC_PROG_EGREP
  3549. -# -------------
  3550. -# This is predefined starting with Autoconf 2.54, so this conditional
  3551. -# definition can be removed once we require Autoconf 2.54 or later.
  3552. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3553. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3554. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3555. - then ac_cv_prog_egrep='grep -E'
  3556. - else ac_cv_prog_egrep='egrep'
  3557. - fi])
  3558. - EGREP=$ac_cv_prog_egrep
  3559. - AC_SUBST([EGREP])
  3560. -])])
  3561. -
  3562. -
  3563. -# AC_PATH_TOOL_PREFIX
  3564. -# -------------------
  3565. -# find a file program which can recognise shared library
  3566. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3567. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3568. -AC_MSG_CHECKING([for $1])
  3569. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3570. -[case $MAGIC_CMD in
  3571. -[[\\/*] | ?:[\\/]*])
  3572. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3573. - ;;
  3574. -*)
  3575. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3576. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3577. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3578. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3579. -dnl not every word. This closes a longstanding sh security hole.
  3580. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3581. - for ac_dir in $ac_dummy; do
  3582. - IFS="$lt_save_ifs"
  3583. - test -z "$ac_dir" && ac_dir=.
  3584. - if test -f $ac_dir/$1; then
  3585. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3586. - if test -n "$file_magic_test_file"; then
  3587. - case $deplibs_check_method in
  3588. - "file_magic "*)
  3589. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3590. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3591. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3592. - $EGREP "$file_magic_regex" > /dev/null; then
  3593. - :
  3594. - else
  3595. - cat <<EOF 1>&2
  3596. +hard_links="nottested"
  3597. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3598. + # do not overwrite the value of need_locks provided by the user
  3599. + AC_MSG_CHECKING([if we can lock with hard links])
  3600. + hard_links=yes
  3601. + $RM conftest*
  3602. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3603. + touch conftest.a
  3604. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3605. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3606. + AC_MSG_RESULT([$hard_links])
  3607. + if test "$hard_links" = no; then
  3608. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3609. + need_locks=warn
  3610. + fi
  3611. +else
  3612. + need_locks=no
  3613. +fi
  3614. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3615. +])# _LT_COMPILER_FILE_LOCKS
  3616. -*** Warning: the command libtool uses to detect shared libraries,
  3617. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3618. -*** The result is that libtool may fail to recognize shared libraries
  3619. -*** as such. This will affect the creation of libtool libraries that
  3620. -*** depend on shared libraries, but programs linked with such libtool
  3621. -*** libraries will work regardless of this problem. Nevertheless, you
  3622. -*** may want to report the problem to your system manager and/or to
  3623. -*** bug-libtool@gnu.org
  3624. -EOF
  3625. - fi ;;
  3626. - esac
  3627. - fi
  3628. - break
  3629. - fi
  3630. - done
  3631. - IFS="$lt_save_ifs"
  3632. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3633. - ;;
  3634. -esac])
  3635. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3636. -if test -n "$MAGIC_CMD"; then
  3637. - AC_MSG_RESULT($MAGIC_CMD)
  3638. +# _LT_CHECK_OBJDIR
  3639. +# ----------------
  3640. +m4_defun([_LT_CHECK_OBJDIR],
  3641. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3642. +[rm -f .libs 2>/dev/null
  3643. +mkdir .libs 2>/dev/null
  3644. +if test -d .libs; then
  3645. + lt_cv_objdir=.libs
  3646. else
  3647. - AC_MSG_RESULT(no)
  3648. + # MS-DOS does not allow filenames that begin with a dot.
  3649. + lt_cv_objdir=_libs
  3650. fi
  3651. -])# AC_PATH_TOOL_PREFIX
  3652. +rmdir .libs 2>/dev/null])
  3653. +objdir=$lt_cv_objdir
  3654. +_LT_DECL([], [objdir], [0],
  3655. + [The name of the directory that contains temporary libtool files])dnl
  3656. +m4_pattern_allow([LT_OBJDIR])dnl
  3657. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3658. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3659. +])# _LT_CHECK_OBJDIR
  3660. -# AC_PATH_MAGIC
  3661. -# -------------
  3662. -# find a file program which can recognise a shared library
  3663. -AC_DEFUN([AC_PATH_MAGIC],
  3664. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3665. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3666. - if test -n "$ac_tool_prefix"; then
  3667. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3668. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3669. +# --------------------------------------
  3670. +# Check hardcoding attributes.
  3671. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3672. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3673. +_LT_TAGVAR(hardcode_action, $1)=
  3674. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3675. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3676. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3677. +
  3678. + # We can hardcode non-existent directories.
  3679. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3680. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3681. + # have to relink, otherwise we might link with an installed library
  3682. + # when we should be linking with a yet-to-be-installed one
  3683. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3684. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3685. + # Linking always hardcodes the temporary library directory.
  3686. + _LT_TAGVAR(hardcode_action, $1)=relink
  3687. else
  3688. - MAGIC_CMD=:
  3689. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3690. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3691. fi
  3692. +else
  3693. + # We cannot hardcode anything, or else we can only hardcode existing
  3694. + # directories.
  3695. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3696. +fi
  3697. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3698. +
  3699. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3700. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3701. + # Fast installation is not supported
  3702. + enable_fast_install=no
  3703. +elif test "$shlibpath_overrides_runpath" = yes ||
  3704. + test "$enable_shared" = no; then
  3705. + # Fast installation is not necessary
  3706. + enable_fast_install=needless
  3707. fi
  3708. -])# AC_PATH_MAGIC
  3709. +_LT_TAGDECL([], [hardcode_action], [0],
  3710. + [How to hardcode a shared library path into an executable])
  3711. +])# _LT_LINKER_HARDCODE_LIBPATH
  3712. -# AC_PROG_LD
  3713. -# ----------
  3714. -# find the pathname to the GNU or non-GNU linker
  3715. -AC_DEFUN([AC_PROG_LD],
  3716. -[AC_ARG_WITH([gnu-ld],
  3717. - [AC_HELP_STRING([--with-gnu-ld],
  3718. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3719. - [test "$withval" = no || with_gnu_ld=yes],
  3720. - [with_gnu_ld=no])
  3721. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3722. -AC_REQUIRE([AC_PROG_CC])dnl
  3723. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3724. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3725. -ac_prog=ld
  3726. -if test "$GCC" = yes; then
  3727. - # Check if gcc -print-prog-name=ld gives a path.
  3728. - AC_MSG_CHECKING([for ld used by $CC])
  3729. - case $host in
  3730. - *-*-mingw*)
  3731. - # gcc leaves a trailing carriage return which upsets mingw
  3732. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3733. - *)
  3734. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3735. - esac
  3736. - case $ac_prog in
  3737. - # Accept absolute paths.
  3738. - [[\\/]]* | ?:[[\\/]]*)
  3739. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3740. - # Canonicalize the pathname of ld
  3741. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3742. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3743. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3744. - done
  3745. - test -z "$LD" && LD="$ac_prog"
  3746. - ;;
  3747. - "")
  3748. - # If it fails, then pretend we aren't using GCC.
  3749. - ac_prog=ld
  3750. +# _LT_CMD_STRIPLIB
  3751. +# ----------------
  3752. +m4_defun([_LT_CMD_STRIPLIB],
  3753. +[m4_require([_LT_DECL_EGREP])
  3754. +striplib=
  3755. +old_striplib=
  3756. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3757. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3758. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3759. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3760. + AC_MSG_RESULT([yes])
  3761. +else
  3762. +# FIXME - insert some real tests, host_os isn't really good enough
  3763. + case $host_os in
  3764. + darwin*)
  3765. + if test -n "$STRIP" ; then
  3766. + striplib="$STRIP -x"
  3767. + old_striplib="$STRIP -S"
  3768. + AC_MSG_RESULT([yes])
  3769. + else
  3770. + AC_MSG_RESULT([no])
  3771. + fi
  3772. ;;
  3773. *)
  3774. - # If it is relative, then search for the first ld in PATH.
  3775. - with_gnu_ld=unknown
  3776. + AC_MSG_RESULT([no])
  3777. ;;
  3778. esac
  3779. -elif test "$with_gnu_ld" = yes; then
  3780. - AC_MSG_CHECKING([for GNU ld])
  3781. -else
  3782. - AC_MSG_CHECKING([for non-GNU ld])
  3783. fi
  3784. -AC_CACHE_VAL(lt_cv_path_LD,
  3785. -[if test -z "$LD"; then
  3786. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3787. - for ac_dir in $PATH; do
  3788. - IFS="$lt_save_ifs"
  3789. - test -z "$ac_dir" && ac_dir=.
  3790. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3791. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3792. - # Check to see if the program is GNU ld. I'd rather use --version,
  3793. - # but apparently some variants of GNU ld only accept -v.
  3794. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3795. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3796. - *GNU* | *'with BFD'*)
  3797. - test "$with_gnu_ld" != no && break
  3798. - ;;
  3799. - *)
  3800. - test "$with_gnu_ld" != yes && break
  3801. - ;;
  3802. - esac
  3803. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3804. +_LT_DECL([], [striplib], [1])
  3805. +])# _LT_CMD_STRIPLIB
  3806. +
  3807. +
  3808. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3809. +# -----------------------------
  3810. +# PORTME Fill in your ld.so characteristics
  3811. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3812. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3813. +m4_require([_LT_DECL_EGREP])dnl
  3814. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3815. +m4_require([_LT_DECL_SED])dnl
  3816. +AC_MSG_CHECKING([dynamic linker characteristics])
  3817. +m4_if([$1],
  3818. + [], [
  3819. +if test "$GCC" = yes; then
  3820. + case $host_os in
  3821. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3822. + *) lt_awk_arg="/^libraries:/" ;;
  3823. + esac
  3824. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3825. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3826. + # if the path contains ";" then we assume it to be the separator
  3827. + # otherwise default to the standard path separator (i.e. ":") - it is
  3828. + # assumed that no part of a normal pathname contains ";" but that should
  3829. + # okay in the real world where ";" in dirpaths is itself problematic.
  3830. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3831. + else
  3832. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3833. + fi
  3834. + # Ok, now we have the path, separated by spaces, we can step through it
  3835. + # and add multilib dir if necessary.
  3836. + lt_tmp_lt_search_path_spec=
  3837. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3838. + for lt_sys_path in $lt_search_path_spec; do
  3839. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3840. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3841. + else
  3842. + test -d "$lt_sys_path" && \
  3843. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3844. fi
  3845. done
  3846. - IFS="$lt_save_ifs"
  3847. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3848. +BEGIN {RS=" "; FS="/|\n";} {
  3849. + lt_foo="";
  3850. + lt_count=0;
  3851. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3852. + if ($lt_i != "" && $lt_i != ".") {
  3853. + if ($lt_i == "..") {
  3854. + lt_count++;
  3855. + } else {
  3856. + if (lt_count == 0) {
  3857. + lt_foo="/" $lt_i lt_foo;
  3858. + } else {
  3859. + lt_count--;
  3860. + }
  3861. + }
  3862. + }
  3863. + }
  3864. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3865. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3866. +}'`
  3867. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3868. else
  3869. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3870. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3871. fi])
  3872. -LD="$lt_cv_path_LD"
  3873. -if test -n "$LD"; then
  3874. - AC_MSG_RESULT($LD)
  3875. -else
  3876. - AC_MSG_RESULT(no)
  3877. -fi
  3878. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3879. -AC_PROG_LD_GNU
  3880. -])# AC_PROG_LD
  3881. +library_names_spec=
  3882. +libname_spec='lib$name'
  3883. +soname_spec=
  3884. +shrext_cmds=".so"
  3885. +postinstall_cmds=
  3886. +postuninstall_cmds=
  3887. +finish_cmds=
  3888. +finish_eval=
  3889. +shlibpath_var=
  3890. +shlibpath_overrides_runpath=unknown
  3891. +version_type=none
  3892. +dynamic_linker="$host_os ld.so"
  3893. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3894. +need_lib_prefix=unknown
  3895. +hardcode_into_libs=no
  3896. +
  3897. +# when you set need_version to no, make sure it does not cause -set_version
  3898. +# flags to be left without arguments
  3899. +need_version=unknown
  3900. +case $host_os in
  3901. +aix3*)
  3902. + version_type=linux
  3903. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3904. + shlibpath_var=LIBPATH
  3905. -# AC_PROG_LD_GNU
  3906. -# --------------
  3907. -AC_DEFUN([AC_PROG_LD_GNU],
  3908. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3909. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3910. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3911. -case `$LD -v 2>&1 </dev/null` in
  3912. -*GNU* | *'with BFD'*)
  3913. - lt_cv_prog_gnu_ld=yes
  3914. + # AIX 3 has no versioning support, so we append a major version to the name.
  3915. + soname_spec='${libname}${release}${shared_ext}$major'
  3916. ;;
  3917. -*)
  3918. - lt_cv_prog_gnu_ld=no
  3919. - ;;
  3920. -esac])
  3921. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3922. -])# AC_PROG_LD_GNU
  3923. -
  3924. -# AC_PROG_LD_RELOAD_FLAG
  3925. -# ----------------------
  3926. -# find reload flag for linker
  3927. -# -- PORTME Some linkers may need a different reload flag.
  3928. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3929. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3930. - lt_cv_ld_reload_flag,
  3931. - [lt_cv_ld_reload_flag='-r'])
  3932. -reload_flag=$lt_cv_ld_reload_flag
  3933. -case $reload_flag in
  3934. -"" | " "*) ;;
  3935. -*) reload_flag=" $reload_flag" ;;
  3936. -esac
  3937. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3938. -case $host_os in
  3939. - darwin*)
  3940. - if test "$GCC" = yes; then
  3941. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3942. +aix[[4-9]]*)
  3943. + version_type=linux
  3944. + need_lib_prefix=no
  3945. + need_version=no
  3946. + hardcode_into_libs=yes
  3947. + if test "$host_cpu" = ia64; then
  3948. + # AIX 5 supports IA64
  3949. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3950. + shlibpath_var=LD_LIBRARY_PATH
  3951. + else
  3952. + # With GCC up to 2.95.x, collect2 would create an import file
  3953. + # for dependence libraries. The import file would start with
  3954. + # the line `#! .'. This would cause the generated library to
  3955. + # depend on `.', always an invalid library. This was fixed in
  3956. + # development snapshots of GCC prior to 3.0.
  3957. + case $host_os in
  3958. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3959. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3960. + echo ' yes '
  3961. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3962. + :
  3963. + else
  3964. + can_build_shared=no
  3965. + fi
  3966. + ;;
  3967. + esac
  3968. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3969. + # soname into executable. Probably we can add versioning support to
  3970. + # collect2, so additional links can be useful in future.
  3971. + if test "$aix_use_runtimelinking" = yes; then
  3972. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3973. + # instead of lib<name>.a to let people know that these are not
  3974. + # typical AIX shared libraries.
  3975. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3976. else
  3977. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3978. + # We preserve .a as extension for shared libraries through AIX4.2
  3979. + # and later when we are not doing run time linking.
  3980. + library_names_spec='${libname}${release}.a $libname.a'
  3981. + soname_spec='${libname}${release}${shared_ext}$major'
  3982. fi
  3983. - ;;
  3984. -esac
  3985. -])# AC_PROG_LD_RELOAD_FLAG
  3986. -
  3987. -
  3988. -# AC_DEPLIBS_CHECK_METHOD
  3989. -# -----------------------
  3990. -# how to check for library dependencies
  3991. -# -- PORTME fill in with the dynamic library characteristics
  3992. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3993. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3994. -lt_cv_deplibs_check_method,
  3995. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3996. -lt_cv_file_magic_test_file=
  3997. -lt_cv_deplibs_check_method='unknown'
  3998. -# Need to set the preceding variable on all platforms that support
  3999. -# interlibrary dependencies.
  4000. -# 'none' -- dependencies not supported.
  4001. -# `unknown' -- same as none, but documents that we really don't know.
  4002. -# 'pass_all' -- all dependencies passed with no checks.
  4003. -# 'test_compile' -- check by making test program.
  4004. -# 'file_magic [[regex]]' -- check by looking for files in library path
  4005. -# which responds to the $file_magic_cmd with a given extended regex.
  4006. -# If you have `file' or equivalent on your system and you're not sure
  4007. -# whether `pass_all' will *always* work, you probably want this one.
  4008. + shlibpath_var=LIBPATH
  4009. + fi
  4010. + ;;
  4011. -case $host_os in
  4012. -aix4* | aix5*)
  4013. - lt_cv_deplibs_check_method=pass_all
  4014. +amigaos*)
  4015. + case $host_cpu in
  4016. + powerpc)
  4017. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  4018. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  4019. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4020. + ;;
  4021. + m68k)
  4022. + library_names_spec='$libname.ixlibrary $libname.a'
  4023. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  4024. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  4025. + ;;
  4026. + esac
  4027. ;;
  4028. beos*)
  4029. - lt_cv_deplibs_check_method=pass_all
  4030. + library_names_spec='${libname}${shared_ext}'
  4031. + dynamic_linker="$host_os ld.so"
  4032. + shlibpath_var=LIBRARY_PATH
  4033. ;;
  4034. bsdi[[45]]*)
  4035. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  4036. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  4037. - lt_cv_file_magic_test_file=/shlib/libc.so
  4038. - ;;
  4039. -
  4040. -cygwin*)
  4041. - # func_win32_libid is a shell function defined in ltmain.sh
  4042. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4043. - lt_cv_file_magic_cmd='func_win32_libid'
  4044. + version_type=linux
  4045. + need_version=no
  4046. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4047. + soname_spec='${libname}${release}${shared_ext}$major'
  4048. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  4049. + shlibpath_var=LD_LIBRARY_PATH
  4050. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  4051. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  4052. + # the default ld.so.conf also contains /usr/contrib/lib and
  4053. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  4054. + # libtool to hard-code these into programs
  4055. ;;
  4056. -mingw* | pw32*)
  4057. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4058. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4059. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4060. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4061. - ;;
  4062. +cygwin* | mingw* | pw32*)
  4063. + version_type=windows
  4064. + shrext_cmds=".dll"
  4065. + need_version=no
  4066. + need_lib_prefix=no
  4067. -darwin* | rhapsody*)
  4068. - lt_cv_deplibs_check_method=pass_all
  4069. - ;;
  4070. + case $GCC,$host_os in
  4071. + yes,cygwin* | yes,mingw* | yes,pw32*)
  4072. + library_names_spec='$libname.dll.a'
  4073. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  4074. + postinstall_cmds='base_file=`basename \${file}`~
  4075. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  4076. + dldir=$destdir/`dirname \$dlpath`~
  4077. + test -d \$dldir || mkdir -p \$dldir~
  4078. + $install_prog $dir/$dlname \$dldir/$dlname~
  4079. + chmod a+x \$dldir/$dlname~
  4080. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  4081. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  4082. + fi'
  4083. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  4084. + dlpath=$dir/\$dldll~
  4085. + $RM \$dlpath'
  4086. + shlibpath_overrides_runpath=yes
  4087. -freebsd* | kfreebsd*-gnu | dragonfly*)
  4088. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4089. - case $host_cpu in
  4090. - i*86 )
  4091. - # Not sure whether the presence of OpenBSD here was a mistake.
  4092. - # Let's accept both of them until this is cleared up.
  4093. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4094. - lt_cv_file_magic_cmd=/usr/bin/file
  4095. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4096. + case $host_os in
  4097. + cygwin*)
  4098. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  4099. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4100. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  4101. + ;;
  4102. + mingw*)
  4103. + # MinGW DLLs use traditional 'lib' prefix
  4104. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4105. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  4106. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  4107. + # It is most probably a Windows format PATH printed by
  4108. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  4109. + # path with ; separators, and with drive letters. We can handle the
  4110. + # drive letters (cygwin fileutils understands them), so leave them,
  4111. + # especially as we might pass files found there to a mingw objdump,
  4112. + # which wouldn't understand a cygwinified path. Ahh.
  4113. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  4114. + else
  4115. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  4116. + fi
  4117. + ;;
  4118. + pw32*)
  4119. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4120. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4121. ;;
  4122. esac
  4123. - else
  4124. - lt_cv_deplibs_check_method=pass_all
  4125. - fi
  4126. - ;;
  4127. -
  4128. -gnu*)
  4129. - lt_cv_deplibs_check_method=pass_all
  4130. - ;;
  4131. -
  4132. -hpux10.20* | hpux11*)
  4133. - lt_cv_file_magic_cmd=/usr/bin/file
  4134. - case $host_cpu in
  4135. - ia64*)
  4136. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4137. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4138. - ;;
  4139. - hppa*64*)
  4140. - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  4141. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4142. ;;
  4143. +
  4144. *)
  4145. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4146. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4147. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4148. ;;
  4149. esac
  4150. + dynamic_linker='Win32 ld.exe'
  4151. + # FIXME: first we should search . and the directory the executable is in
  4152. + shlibpath_var=PATH
  4153. ;;
  4154. -interix3*)
  4155. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4156. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  4157. - ;;
  4158. -
  4159. -irix5* | irix6* | nonstopux*)
  4160. - case $LD in
  4161. - *-32|*"-32 ") libmagic=32-bit;;
  4162. - *-n32|*"-n32 ") libmagic=N32;;
  4163. - *-64|*"-64 ") libmagic=64-bit;;
  4164. - *) libmagic=never-match;;
  4165. - esac
  4166. - lt_cv_deplibs_check_method=pass_all
  4167. - ;;
  4168. -
  4169. -# This must be Linux ELF.
  4170. -linux*)
  4171. - lt_cv_deplibs_check_method=pass_all
  4172. - ;;
  4173. -
  4174. -netbsd*)
  4175. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4176. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4177. - else
  4178. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4179. - fi
  4180. +darwin* | rhapsody*)
  4181. + dynamic_linker="$host_os dyld"
  4182. + version_type=darwin
  4183. + need_lib_prefix=no
  4184. + need_version=no
  4185. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4186. + soname_spec='${libname}${release}${major}$shared_ext'
  4187. + shlibpath_overrides_runpath=yes
  4188. + shlibpath_var=DYLD_LIBRARY_PATH
  4189. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4190. +m4_if([$1], [],[
  4191. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4192. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4193. ;;
  4194. -newos6*)
  4195. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4196. - lt_cv_file_magic_cmd=/usr/bin/file
  4197. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4198. +dgux*)
  4199. + version_type=linux
  4200. + need_lib_prefix=no
  4201. + need_version=no
  4202. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4203. + soname_spec='${libname}${release}${shared_ext}$major'
  4204. + shlibpath_var=LD_LIBRARY_PATH
  4205. ;;
  4206. -nto-qnx*)
  4207. - lt_cv_deplibs_check_method=unknown
  4208. +freebsd1*)
  4209. + dynamic_linker=no
  4210. ;;
  4211. -openbsd*)
  4212. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4213. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4214. +freebsd* | dragonfly*)
  4215. + # DragonFly does not have aout. When/if they implement a new
  4216. + # versioning mechanism, adjust this.
  4217. + if test -x /usr/bin/objformat; then
  4218. + objformat=`/usr/bin/objformat`
  4219. else
  4220. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4221. + case $host_os in
  4222. + freebsd[[123]]*) objformat=aout ;;
  4223. + *) objformat=elf ;;
  4224. + esac
  4225. fi
  4226. - ;;
  4227. -
  4228. -osf3* | osf4* | osf5*)
  4229. - lt_cv_deplibs_check_method=pass_all
  4230. - ;;
  4231. -
  4232. -solaris*)
  4233. - lt_cv_deplibs_check_method=pass_all
  4234. - ;;
  4235. -
  4236. -sysv4 | sysv4.3*)
  4237. - case $host_vendor in
  4238. - motorola)
  4239. - 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]]'
  4240. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4241. - ;;
  4242. - ncr)
  4243. - lt_cv_deplibs_check_method=pass_all
  4244. - ;;
  4245. - sequent)
  4246. - lt_cv_file_magic_cmd='/bin/file'
  4247. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4248. + version_type=freebsd-$objformat
  4249. + case $version_type in
  4250. + freebsd-elf*)
  4251. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4252. + need_version=no
  4253. + need_lib_prefix=no
  4254. + ;;
  4255. + freebsd-*)
  4256. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4257. + need_version=yes
  4258. + ;;
  4259. + esac
  4260. + shlibpath_var=LD_LIBRARY_PATH
  4261. + case $host_os in
  4262. + freebsd2*)
  4263. + shlibpath_overrides_runpath=yes
  4264. ;;
  4265. - sni)
  4266. - lt_cv_file_magic_cmd='/bin/file'
  4267. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4268. - lt_cv_file_magic_test_file=/lib/libc.so
  4269. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4270. + shlibpath_overrides_runpath=yes
  4271. + hardcode_into_libs=yes
  4272. ;;
  4273. - siemens)
  4274. - lt_cv_deplibs_check_method=pass_all
  4275. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4276. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4277. + shlibpath_overrides_runpath=no
  4278. + hardcode_into_libs=yes
  4279. ;;
  4280. - pc)
  4281. - lt_cv_deplibs_check_method=pass_all
  4282. + *) # from 4.6 on, and DragonFly
  4283. + shlibpath_overrides_runpath=yes
  4284. + hardcode_into_libs=yes
  4285. ;;
  4286. esac
  4287. ;;
  4288. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4289. - lt_cv_deplibs_check_method=pass_all
  4290. +gnu*)
  4291. + version_type=linux
  4292. + need_lib_prefix=no
  4293. + need_version=no
  4294. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4295. + soname_spec='${libname}${release}${shared_ext}$major'
  4296. + shlibpath_var=LD_LIBRARY_PATH
  4297. + hardcode_into_libs=yes
  4298. ;;
  4299. -esac
  4300. -])
  4301. -file_magic_cmd=$lt_cv_file_magic_cmd
  4302. -deplibs_check_method=$lt_cv_deplibs_check_method
  4303. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4304. -])# AC_DEPLIBS_CHECK_METHOD
  4305. -
  4306. -# AC_PROG_NM
  4307. -# ----------
  4308. -# find the pathname to a BSD-compatible name lister
  4309. -AC_DEFUN([AC_PROG_NM],
  4310. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4311. -[if test -n "$NM"; then
  4312. - # Let the user override the test.
  4313. - lt_cv_path_NM="$NM"
  4314. -else
  4315. - lt_nm_to_check="${ac_tool_prefix}nm"
  4316. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4317. - lt_nm_to_check="$lt_nm_to_check nm"
  4318. - fi
  4319. - for lt_tmp_nm in $lt_nm_to_check; do
  4320. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4321. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4322. - IFS="$lt_save_ifs"
  4323. - test -z "$ac_dir" && ac_dir=.
  4324. - tmp_nm="$ac_dir/$lt_tmp_nm"
  4325. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4326. - # Check to see if the nm accepts a BSD-compat flag.
  4327. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4328. - # nm: unknown option "B" ignored
  4329. - # Tru64's nm complains that /dev/null is an invalid object file
  4330. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4331. - */dev/null* | *'Invalid file or object type'*)
  4332. - lt_cv_path_NM="$tmp_nm -B"
  4333. - break
  4334. - ;;
  4335. - *)
  4336. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4337. - */dev/null*)
  4338. - lt_cv_path_NM="$tmp_nm -p"
  4339. - break
  4340. - ;;
  4341. - *)
  4342. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4343. - continue # so that we can try to find one that supports BSD flags
  4344. - ;;
  4345. - esac
  4346. - ;;
  4347. - esac
  4348. - fi
  4349. - done
  4350. - IFS="$lt_save_ifs"
  4351. - done
  4352. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4353. -fi])
  4354. -NM="$lt_cv_path_NM"
  4355. -])# AC_PROG_NM
  4356. -
  4357. -
  4358. -# AC_CHECK_LIBM
  4359. -# -------------
  4360. -# check for math library
  4361. -AC_DEFUN([AC_CHECK_LIBM],
  4362. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4363. -LIBM=
  4364. -case $host in
  4365. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4366. - # These system don't have libm, or don't need it
  4367. - ;;
  4368. -*-ncr-sysv4.3*)
  4369. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4370. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4371. - ;;
  4372. -*)
  4373. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4374. +hpux9* | hpux10* | hpux11*)
  4375. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4376. + # link against other versions.
  4377. + version_type=sunos
  4378. + need_lib_prefix=no
  4379. + need_version=no
  4380. + case $host_cpu in
  4381. + ia64*)
  4382. + shrext_cmds='.so'
  4383. + hardcode_into_libs=yes
  4384. + dynamic_linker="$host_os dld.so"
  4385. + shlibpath_var=LD_LIBRARY_PATH
  4386. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4387. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4388. + soname_spec='${libname}${release}${shared_ext}$major'
  4389. + if test "X$HPUX_IA64_MODE" = X32; then
  4390. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4391. + else
  4392. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4393. + fi
  4394. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4395. + ;;
  4396. + hppa*64*)
  4397. + shrext_cmds='.sl'
  4398. + hardcode_into_libs=yes
  4399. + dynamic_linker="$host_os dld.sl"
  4400. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4401. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4402. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4403. + soname_spec='${libname}${release}${shared_ext}$major'
  4404. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4405. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4406. + ;;
  4407. + *)
  4408. + shrext_cmds='.sl'
  4409. + dynamic_linker="$host_os dld.sl"
  4410. + shlibpath_var=SHLIB_PATH
  4411. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4412. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4413. + soname_spec='${libname}${release}${shared_ext}$major'
  4414. + ;;
  4415. + esac
  4416. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4417. + postinstall_cmds='chmod 555 $lib'
  4418. ;;
  4419. -esac
  4420. -])# AC_CHECK_LIBM
  4421. +interix[[3-9]]*)
  4422. + version_type=linux
  4423. + need_lib_prefix=no
  4424. + need_version=no
  4425. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4426. + soname_spec='${libname}${release}${shared_ext}$major'
  4427. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4428. + shlibpath_var=LD_LIBRARY_PATH
  4429. + shlibpath_overrides_runpath=no
  4430. + hardcode_into_libs=yes
  4431. + ;;
  4432. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4433. -# -----------------------------------
  4434. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4435. -# LTDLINCL to the include flags for the libltdl header and adds
  4436. -# --enable-ltdl-convenience to the configure arguments. Note that
  4437. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4438. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  4439. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  4440. -# (note the single quotes!). If your package is not flat and you're not
  4441. -# using automake, define top_builddir and top_srcdir appropriately in
  4442. -# the Makefiles.
  4443. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4444. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4445. - case $enable_ltdl_convenience in
  4446. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4447. - "") enable_ltdl_convenience=yes
  4448. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4449. +irix5* | irix6* | nonstopux*)
  4450. + case $host_os in
  4451. + nonstopux*) version_type=nonstopux ;;
  4452. + *)
  4453. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4454. + version_type=linux
  4455. + else
  4456. + version_type=irix
  4457. + fi ;;
  4458. esac
  4459. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4460. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4461. - # For backwards non-gettext consistent compatibility...
  4462. - INCLTDL="$LTDLINCL"
  4463. -])# AC_LIBLTDL_CONVENIENCE
  4464. -
  4465. -
  4466. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4467. -# -----------------------------------
  4468. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4469. -# LTDLINCL to the include flags for the libltdl header and adds
  4470. -# --enable-ltdl-install to the configure arguments. Note that
  4471. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  4472. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  4473. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  4474. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4475. -# flat and you're not using automake, define top_builddir and top_srcdir
  4476. -# appropriately in the Makefiles.
  4477. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4478. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4479. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4480. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4481. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4482. - [if test x"$enable_ltdl_install" = xno; then
  4483. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4484. - else
  4485. - enable_ltdl_install=yes
  4486. - fi
  4487. - ])
  4488. - if test x"$enable_ltdl_install" = x"yes"; then
  4489. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4490. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4491. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4492. - else
  4493. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4494. - LIBLTDL="-lltdl"
  4495. - LTDLINCL=
  4496. - fi
  4497. - # For backwards non-gettext consistent compatibility...
  4498. - INCLTDL="$LTDLINCL"
  4499. -])# AC_LIBLTDL_INSTALLABLE
  4500. + need_lib_prefix=no
  4501. + need_version=no
  4502. + soname_spec='${libname}${release}${shared_ext}$major'
  4503. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4504. + case $host_os in
  4505. + irix5* | nonstopux*)
  4506. + libsuff= shlibsuff=
  4507. + ;;
  4508. + *)
  4509. + case $LD in # libtool.m4 will add one of these switches to LD
  4510. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4511. + libsuff= shlibsuff= libmagic=32-bit;;
  4512. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4513. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4514. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4515. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4516. + *) libsuff= shlibsuff= libmagic=never-match;;
  4517. + esac
  4518. + ;;
  4519. + esac
  4520. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4521. + shlibpath_overrides_runpath=no
  4522. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4523. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4524. + hardcode_into_libs=yes
  4525. + ;;
  4526. +# No shared lib support for Linux oldld, aout, or coff.
  4527. +linux*oldld* | linux*aout* | linux*coff*)
  4528. + dynamic_linker=no
  4529. + ;;
  4530. -# AC_LIBTOOL_CXX
  4531. -# --------------
  4532. -# enable support for C++ libraries
  4533. -AC_DEFUN([AC_LIBTOOL_CXX],
  4534. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4535. -])# AC_LIBTOOL_CXX
  4536. +# This must be Linux ELF.
  4537. +linux* | k*bsd*-gnu)
  4538. + version_type=linux
  4539. + need_lib_prefix=no
  4540. + need_version=no
  4541. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4542. + soname_spec='${libname}${release}${shared_ext}$major'
  4543. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4544. + shlibpath_var=LD_LIBRARY_PATH
  4545. + shlibpath_overrides_runpath=no
  4546. + # Some binutils ld are patched to set DT_RUNPATH
  4547. + save_LDFLAGS=$LDFLAGS
  4548. + save_libdir=$libdir
  4549. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4550. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4551. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4552. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4553. + [shlibpath_overrides_runpath=yes])])
  4554. + LDFLAGS=$save_LDFLAGS
  4555. + libdir=$save_libdir
  4556. + # This implies no fast_install, which is unacceptable.
  4557. + # Some rework will be needed to allow for fast_install
  4558. + # before this can be enabled.
  4559. + hardcode_into_libs=yes
  4560. -# _LT_AC_LANG_CXX
  4561. -# ---------------
  4562. -AC_DEFUN([_LT_AC_LANG_CXX],
  4563. -[AC_REQUIRE([AC_PROG_CXX])
  4564. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4565. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4566. -])# _LT_AC_LANG_CXX
  4567. + # Append ld.so.conf contents to the search path
  4568. + if test -f /etc/ld.so.conf; then
  4569. + 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;/^$/d' | tr '\n' ' '`
  4570. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4571. + fi
  4572. -# _LT_AC_PROG_CXXCPP
  4573. -# ------------------
  4574. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4575. -[
  4576. -AC_REQUIRE([AC_PROG_CXX])
  4577. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4578. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4579. - (test "X$CXX" != "Xg++"))) ; then
  4580. - AC_PROG_CXXCPP
  4581. -fi
  4582. -])# _LT_AC_PROG_CXXCPP
  4583. -
  4584. -# AC_LIBTOOL_F77
  4585. -# --------------
  4586. -# enable support for Fortran 77 libraries
  4587. -AC_DEFUN([AC_LIBTOOL_F77],
  4588. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4589. -])# AC_LIBTOOL_F77
  4590. -
  4591. -
  4592. -# _LT_AC_LANG_F77
  4593. -# ---------------
  4594. -AC_DEFUN([_LT_AC_LANG_F77],
  4595. -[AC_REQUIRE([AC_PROG_F77])
  4596. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4597. -])# _LT_AC_LANG_F77
  4598. -
  4599. -
  4600. -# AC_LIBTOOL_GCJ
  4601. -# --------------
  4602. -# enable support for GCJ libraries
  4603. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4604. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4605. -])# AC_LIBTOOL_GCJ
  4606. -
  4607. -
  4608. -# _LT_AC_LANG_GCJ
  4609. -# ---------------
  4610. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4611. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4612. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4613. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4614. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4615. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4616. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4617. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4618. -])# _LT_AC_LANG_GCJ
  4619. -
  4620. -
  4621. -# AC_LIBTOOL_RC
  4622. -# -------------
  4623. -# enable support for Windows resource files
  4624. -AC_DEFUN([AC_LIBTOOL_RC],
  4625. -[AC_REQUIRE([LT_AC_PROG_RC])
  4626. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4627. -])# AC_LIBTOOL_RC
  4628. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4629. + # powerpc, because MkLinux only supported shared libraries with the
  4630. + # GNU dynamic linker. Since this was broken with cross compilers,
  4631. + # most powerpc-linux boxes support dynamic linking these days and
  4632. + # people can always --disable-shared, the test was removed, and we
  4633. + # assume the GNU/Linux dynamic linker is in use.
  4634. + dynamic_linker='GNU/Linux ld.so'
  4635. + ;;
  4636. +netbsd*)
  4637. + version_type=sunos
  4638. + need_lib_prefix=no
  4639. + need_version=no
  4640. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4641. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4642. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4643. + dynamic_linker='NetBSD (a.out) ld.so'
  4644. + else
  4645. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4646. + soname_spec='${libname}${release}${shared_ext}$major'
  4647. + dynamic_linker='NetBSD ld.elf_so'
  4648. + fi
  4649. + shlibpath_var=LD_LIBRARY_PATH
  4650. + shlibpath_overrides_runpath=yes
  4651. + hardcode_into_libs=yes
  4652. + ;;
  4653. -# AC_LIBTOOL_LANG_C_CONFIG
  4654. -# ------------------------
  4655. -# Ensure that the configuration vars for the C compiler are
  4656. -# suitably defined. Those variables are subsequently used by
  4657. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4658. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4659. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4660. -[lt_save_CC="$CC"
  4661. -AC_LANG_PUSH(C)
  4662. +newsos6)
  4663. + version_type=linux
  4664. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4665. + shlibpath_var=LD_LIBRARY_PATH
  4666. + shlibpath_overrides_runpath=yes
  4667. + ;;
  4668. -# Source file extension for C test sources.
  4669. -ac_ext=c
  4670. +*nto* | *qnx*)
  4671. + version_type=qnx
  4672. + need_lib_prefix=no
  4673. + need_version=no
  4674. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4675. + soname_spec='${libname}${release}${shared_ext}$major'
  4676. + shlibpath_var=LD_LIBRARY_PATH
  4677. + shlibpath_overrides_runpath=no
  4678. + hardcode_into_libs=yes
  4679. + dynamic_linker='ldqnx.so'
  4680. + ;;
  4681. -# Object file extension for compiled C test sources.
  4682. -objext=o
  4683. -_LT_AC_TAGVAR(objext, $1)=$objext
  4684. +openbsd*)
  4685. + version_type=sunos
  4686. + sys_lib_dlsearch_path_spec="/usr/lib"
  4687. + need_lib_prefix=no
  4688. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4689. + case $host_os in
  4690. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4691. + *) need_version=no ;;
  4692. + esac
  4693. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4694. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4695. + shlibpath_var=LD_LIBRARY_PATH
  4696. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4697. + case $host_os in
  4698. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4699. + shlibpath_overrides_runpath=no
  4700. + ;;
  4701. + *)
  4702. + shlibpath_overrides_runpath=yes
  4703. + ;;
  4704. + esac
  4705. + else
  4706. + shlibpath_overrides_runpath=yes
  4707. + fi
  4708. + ;;
  4709. -# Code to be used in simple compile tests
  4710. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4711. +os2*)
  4712. + libname_spec='$name'
  4713. + shrext_cmds=".dll"
  4714. + need_lib_prefix=no
  4715. + library_names_spec='$libname${shared_ext} $libname.a'
  4716. + dynamic_linker='OS/2 ld.exe'
  4717. + shlibpath_var=LIBPATH
  4718. + ;;
  4719. -# Code to be used in simple link tests
  4720. -lt_simple_link_test_code='int main(){return(0);}\n'
  4721. +osf3* | osf4* | osf5*)
  4722. + version_type=osf
  4723. + need_lib_prefix=no
  4724. + need_version=no
  4725. + soname_spec='${libname}${release}${shared_ext}$major'
  4726. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4727. + shlibpath_var=LD_LIBRARY_PATH
  4728. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4729. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4730. + ;;
  4731. -_LT_AC_SYS_COMPILER
  4732. +rdos*)
  4733. + dynamic_linker=no
  4734. + ;;
  4735. -# save warnings/boilerplate of simple test code
  4736. -_LT_COMPILER_BOILERPLATE
  4737. -_LT_LINKER_BOILERPLATE
  4738. +solaris*)
  4739. + version_type=linux
  4740. + need_lib_prefix=no
  4741. + need_version=no
  4742. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4743. + soname_spec='${libname}${release}${shared_ext}$major'
  4744. + shlibpath_var=LD_LIBRARY_PATH
  4745. + shlibpath_overrides_runpath=yes
  4746. + hardcode_into_libs=yes
  4747. + # ldd complains unless libraries are executable
  4748. + postinstall_cmds='chmod +x $lib'
  4749. + ;;
  4750. -## CAVEAT EMPTOR:
  4751. -## There is no encapsulation within the following macros, do not change
  4752. -## the running order or otherwise move them around unless you know exactly
  4753. -## what you are doing...
  4754. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4755. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4756. -AC_LIBTOOL_PROG_CC_C_O($1)
  4757. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4758. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4759. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4760. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4761. -AC_LIBTOOL_SYS_LIB_STRIP
  4762. -AC_LIBTOOL_DLOPEN_SELF
  4763. -
  4764. -# Report which library types will actually be built
  4765. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4766. -AC_MSG_RESULT([$can_build_shared])
  4767. +sunos4*)
  4768. + version_type=sunos
  4769. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4770. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4771. + shlibpath_var=LD_LIBRARY_PATH
  4772. + shlibpath_overrides_runpath=yes
  4773. + if test "$with_gnu_ld" = yes; then
  4774. + need_lib_prefix=no
  4775. + fi
  4776. + need_version=yes
  4777. + ;;
  4778. -AC_MSG_CHECKING([whether to build shared libraries])
  4779. -test "$can_build_shared" = "no" && enable_shared=no
  4780. +sysv4 | sysv4.3*)
  4781. + version_type=linux
  4782. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4783. + soname_spec='${libname}${release}${shared_ext}$major'
  4784. + shlibpath_var=LD_LIBRARY_PATH
  4785. + case $host_vendor in
  4786. + sni)
  4787. + shlibpath_overrides_runpath=no
  4788. + need_lib_prefix=no
  4789. + runpath_var=LD_RUN_PATH
  4790. + ;;
  4791. + siemens)
  4792. + need_lib_prefix=no
  4793. + ;;
  4794. + motorola)
  4795. + need_lib_prefix=no
  4796. + need_version=no
  4797. + shlibpath_overrides_runpath=no
  4798. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4799. + ;;
  4800. + esac
  4801. + ;;
  4802. -# On AIX, shared libraries and static libraries use the same namespace, and
  4803. -# are all built from PIC.
  4804. -case $host_os in
  4805. -aix3*)
  4806. - test "$enable_shared" = yes && enable_static=no
  4807. - if test -n "$RANLIB"; then
  4808. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4809. - postinstall_cmds='$RANLIB $lib'
  4810. +sysv4*MP*)
  4811. + if test -d /usr/nec ;then
  4812. + version_type=linux
  4813. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4814. + soname_spec='$libname${shared_ext}.$major'
  4815. + shlibpath_var=LD_LIBRARY_PATH
  4816. fi
  4817. ;;
  4818. -aix4* | aix5*)
  4819. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4820. - test "$enable_shared" = yes && enable_static=no
  4821. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4822. + version_type=freebsd-elf
  4823. + need_lib_prefix=no
  4824. + need_version=no
  4825. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4826. + soname_spec='${libname}${release}${shared_ext}$major'
  4827. + shlibpath_var=LD_LIBRARY_PATH
  4828. + shlibpath_overrides_runpath=yes
  4829. + hardcode_into_libs=yes
  4830. + if test "$with_gnu_ld" = yes; then
  4831. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4832. + else
  4833. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4834. + case $host_os in
  4835. + sco3.2v5*)
  4836. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4837. + ;;
  4838. + esac
  4839. fi
  4840. - ;;
  4841. -esac
  4842. -AC_MSG_RESULT([$enable_shared])
  4843. -
  4844. -AC_MSG_CHECKING([whether to build static libraries])
  4845. -# Make sure either enable_shared or enable_static is yes.
  4846. -test "$enable_shared" = yes || enable_static=yes
  4847. -AC_MSG_RESULT([$enable_static])
  4848. -
  4849. -AC_LIBTOOL_CONFIG($1)
  4850. -
  4851. -AC_LANG_POP
  4852. -CC="$lt_save_CC"
  4853. -])# AC_LIBTOOL_LANG_C_CONFIG
  4854. -
  4855. -
  4856. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4857. -# --------------------------
  4858. -# Ensure that the configuration vars for the C compiler are
  4859. -# suitably defined. Those variables are subsequently used by
  4860. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4861. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4862. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4863. -[AC_LANG_PUSH(C++)
  4864. -AC_REQUIRE([AC_PROG_CXX])
  4865. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4866. -
  4867. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4868. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4869. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4870. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4871. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4872. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4873. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4874. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4875. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4876. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4877. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4878. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4879. -_LT_AC_TAGVAR(module_cmds, $1)=
  4880. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4881. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4882. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4883. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4884. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4885. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4886. -
  4887. -# Dependencies to place before and after the object being linked:
  4888. -_LT_AC_TAGVAR(predep_objects, $1)=
  4889. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4890. -_LT_AC_TAGVAR(predeps, $1)=
  4891. -_LT_AC_TAGVAR(postdeps, $1)=
  4892. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4893. -
  4894. -# Source file extension for C++ test sources.
  4895. -ac_ext=cpp
  4896. -
  4897. -# Object file extension for compiled C++ test sources.
  4898. -objext=o
  4899. -_LT_AC_TAGVAR(objext, $1)=$objext
  4900. -
  4901. -# Code to be used in simple compile tests
  4902. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4903. + sys_lib_dlsearch_path_spec='/usr/lib'
  4904. + ;;
  4905. -# Code to be used in simple link tests
  4906. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  4907. +tpf*)
  4908. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4909. + version_type=linux
  4910. + need_lib_prefix=no
  4911. + need_version=no
  4912. + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4913. + shlibpath_var=LD_LIBRARY_PATH
  4914. + shlibpath_overrides_runpath=no
  4915. + hardcode_into_libs=yes
  4916. + ;;
  4917. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4918. -_LT_AC_SYS_COMPILER
  4919. +uts4*)
  4920. + version_type=linux
  4921. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4922. + soname_spec='${libname}${release}${shared_ext}$major'
  4923. + shlibpath_var=LD_LIBRARY_PATH
  4924. + ;;
  4925. -# save warnings/boilerplate of simple test code
  4926. -_LT_COMPILER_BOILERPLATE
  4927. -_LT_LINKER_BOILERPLATE
  4928. +*)
  4929. + dynamic_linker=no
  4930. + ;;
  4931. +esac
  4932. +AC_MSG_RESULT([$dynamic_linker])
  4933. +test "$dynamic_linker" = no && can_build_shared=no
  4934. -# Allow CC to be a program name with arguments.
  4935. -lt_save_CC=$CC
  4936. -lt_save_LD=$LD
  4937. -lt_save_GCC=$GCC
  4938. -GCC=$GXX
  4939. -lt_save_with_gnu_ld=$with_gnu_ld
  4940. -lt_save_path_LD=$lt_cv_path_LD
  4941. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4942. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4943. -else
  4944. - $as_unset lt_cv_prog_gnu_ld
  4945. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4946. +if test "$GCC" = yes; then
  4947. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4948. fi
  4949. -if test -n "${lt_cv_path_LDCXX+set}"; then
  4950. - lt_cv_path_LD=$lt_cv_path_LDCXX
  4951. -else
  4952. - $as_unset lt_cv_path_LD
  4953. +
  4954. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4955. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4956. fi
  4957. -test -z "${LDCXX+set}" || LD=$LDCXX
  4958. -CC=${CXX-"c++"}
  4959. -compiler=$CC
  4960. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4961. -_LT_CC_BASENAME([$compiler])
  4962. -
  4963. -# We don't want -fno-exception wen compiling C++ code, so set the
  4964. -# no_builtin_flag separately
  4965. -if test "$GXX" = yes; then
  4966. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4967. -else
  4968. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4969. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4970. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4971. fi
  4972. -if test "$GXX" = yes; then
  4973. - # Set up default GNU C++ configuration
  4974. -
  4975. - AC_PROG_LD
  4976. -
  4977. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4978. - # archiving commands below assume that GNU ld is being used.
  4979. - if test "$with_gnu_ld" = yes; then
  4980. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4981. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4982. -
  4983. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4984. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4985. -
  4986. - # If archive_cmds runs LD, not CC, wlarc should be empty
  4987. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4988. - # investigate it a little bit more. (MM)
  4989. - wlarc='${wl}'
  4990. -
  4991. - # ancient GNU ld didn't support --whole-archive et. al.
  4992. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4993. - grep 'no-whole-archive' > /dev/null; then
  4994. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4995. - else
  4996. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4997. - fi
  4998. - else
  4999. - with_gnu_ld=no
  5000. - wlarc=
  5001. -
  5002. - # A generic and very simple default shared library creation
  5003. - # command for GNU C++ for the case where it uses the native
  5004. - # linker, instead of GNU ld. If possible, this setting should
  5005. - # overridden to take advantage of the native linker features on
  5006. - # the platform it is being used on.
  5007. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5008. - fi
  5009. -
  5010. - # Commands to make compiler produce verbose output that lists
  5011. - # what "hidden" libraries, object files and flags are used when
  5012. - # linking a shared library.
  5013. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5014. -
  5015. -else
  5016. - GXX=no
  5017. - with_gnu_ld=no
  5018. - wlarc=
  5019. -fi
  5020. +_LT_DECL([], [variables_saved_for_relink], [1],
  5021. + [Variables whose values should be saved in libtool wrapper scripts and
  5022. + restored at link time])
  5023. +_LT_DECL([], [need_lib_prefix], [0],
  5024. + [Do we need the "lib" prefix for modules?])
  5025. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  5026. +_LT_DECL([], [version_type], [0], [Library versioning type])
  5027. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  5028. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  5029. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  5030. + [Is shlibpath searched before the hard-coded library search path?])
  5031. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  5032. +_LT_DECL([], [library_names_spec], [1],
  5033. + [[List of archive names. First name is the real one, the rest are links.
  5034. + The last name is the one that the linker finds with -lNAME]])
  5035. +_LT_DECL([], [soname_spec], [1],
  5036. + [[The coded name of the library, if different from the real name]])
  5037. +_LT_DECL([], [postinstall_cmds], [2],
  5038. + [Command to use after installation of a shared archive])
  5039. +_LT_DECL([], [postuninstall_cmds], [2],
  5040. + [Command to use after uninstallation of a shared archive])
  5041. +_LT_DECL([], [finish_cmds], [2],
  5042. + [Commands used to finish a libtool library installation in a directory])
  5043. +_LT_DECL([], [finish_eval], [1],
  5044. + [[As "finish_cmds", except a single script fragment to be evaled but
  5045. + not shown]])
  5046. +_LT_DECL([], [hardcode_into_libs], [0],
  5047. + [Whether we should hardcode library paths into libraries])
  5048. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  5049. + [Compile-time system search path for libraries])
  5050. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  5051. + [Run-time system search path for libraries])
  5052. +])# _LT_SYS_DYNAMIC_LINKER
  5053. -# PORTME: fill in a description of your system's C++ link characteristics
  5054. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5055. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5056. -case $host_os in
  5057. - aix3*)
  5058. - # FIXME: insert proper C++ library support
  5059. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5060. - ;;
  5061. - aix4* | aix5*)
  5062. - if test "$host_cpu" = ia64; then
  5063. - # On IA64, the linker does run time linking by default, so we don't
  5064. - # have to do anything special.
  5065. - aix_use_runtimelinking=no
  5066. - exp_sym_flag='-Bexport'
  5067. - no_entry_flag=""
  5068. - else
  5069. - aix_use_runtimelinking=no
  5070. - # Test if we are trying to use run time linking or normal
  5071. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5072. - # need to do runtime linking.
  5073. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5074. - for ld_flag in $LDFLAGS; do
  5075. - case $ld_flag in
  5076. - *-brtl*)
  5077. - aix_use_runtimelinking=yes
  5078. - break
  5079. - ;;
  5080. - esac
  5081. - done
  5082. - ;;
  5083. - esac
  5084. -
  5085. - exp_sym_flag='-bexport'
  5086. - no_entry_flag='-bnoentry'
  5087. - fi
  5088. +# _LT_PATH_TOOL_PREFIX(TOOL)
  5089. +# --------------------------
  5090. +# find a file program which can recognize shared library
  5091. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  5092. +[m4_require([_LT_DECL_EGREP])dnl
  5093. +AC_MSG_CHECKING([for $1])
  5094. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  5095. +[case $MAGIC_CMD in
  5096. +[[\\/*] | ?:[\\/]*])
  5097. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5098. + ;;
  5099. +*)
  5100. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  5101. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5102. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  5103. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  5104. +dnl not every word. This closes a longstanding sh security hole.
  5105. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  5106. + for ac_dir in $ac_dummy; do
  5107. + IFS="$lt_save_ifs"
  5108. + test -z "$ac_dir" && ac_dir=.
  5109. + if test -f $ac_dir/$1; then
  5110. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  5111. + if test -n "$file_magic_test_file"; then
  5112. + case $deplibs_check_method in
  5113. + "file_magic "*)
  5114. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  5115. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5116. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5117. + $EGREP "$file_magic_regex" > /dev/null; then
  5118. + :
  5119. + else
  5120. + cat <<_LT_EOF 1>&2
  5121. - # When large executables or shared objects are built, AIX ld can
  5122. - # have problems creating the table of contents. If linking a library
  5123. - # or program results in "error TOC overflow" add -mminimal-toc to
  5124. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5125. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5126. -
  5127. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5128. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5129. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5130. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5131. +*** Warning: the command libtool uses to detect shared libraries,
  5132. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  5133. +*** The result is that libtool may fail to recognize shared libraries
  5134. +*** as such. This will affect the creation of libtool libraries that
  5135. +*** depend on shared libraries, but programs linked with such libtool
  5136. +*** libraries will work regardless of this problem. Nevertheless, you
  5137. +*** may want to report the problem to your system manager and/or to
  5138. +*** bug-libtool@gnu.org
  5139. - if test "$GXX" = yes; then
  5140. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5141. - # We only want to do this on AIX 4.2 and lower, the check
  5142. - # below for broken collect2 doesn't work under 4.3+
  5143. - collect2name=`${CC} -print-prog-name=collect2`
  5144. - if test -f "$collect2name" && \
  5145. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5146. - then
  5147. - # We have reworked collect2
  5148. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5149. - else
  5150. - # We have old collect2
  5151. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5152. - # It fails to find uninstalled libraries when the uninstalled
  5153. - # path is not listed in the libpath. Setting hardcode_minus_L
  5154. - # to unsupported forces relinking
  5155. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5156. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5157. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5158. - fi
  5159. - ;;
  5160. - esac
  5161. - shared_flag='-shared'
  5162. - if test "$aix_use_runtimelinking" = yes; then
  5163. - shared_flag="$shared_flag "'${wl}-G'
  5164. - fi
  5165. - else
  5166. - # not using gcc
  5167. - if test "$host_cpu" = ia64; then
  5168. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5169. - # chokes on -Wl,-G. The following line is correct:
  5170. - shared_flag='-G'
  5171. - else
  5172. - if test "$aix_use_runtimelinking" = yes; then
  5173. - shared_flag='${wl}-G'
  5174. - else
  5175. - shared_flag='${wl}-bM:SRE'
  5176. - fi
  5177. +_LT_EOF
  5178. + fi ;;
  5179. + esac
  5180. fi
  5181. + break
  5182. fi
  5183. + done
  5184. + IFS="$lt_save_ifs"
  5185. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  5186. + ;;
  5187. +esac])
  5188. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5189. +if test -n "$MAGIC_CMD"; then
  5190. + AC_MSG_RESULT($MAGIC_CMD)
  5191. +else
  5192. + AC_MSG_RESULT(no)
  5193. +fi
  5194. +_LT_DECL([], [MAGIC_CMD], [0],
  5195. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  5196. +])# _LT_PATH_TOOL_PREFIX
  5197. - # It seems that -bexpall does not export symbols beginning with
  5198. - # underscore (_), so it is better to generate a list of symbols to export.
  5199. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5200. - if test "$aix_use_runtimelinking" = yes; then
  5201. - # Warning - without using the other runtime loading flags (-brtl),
  5202. - # -berok will link without error, but may produce a broken library.
  5203. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5204. - # Determine the default libpath from the value encoded in an empty executable.
  5205. - _LT_AC_SYS_LIBPATH_AIX
  5206. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5207. +# Old name:
  5208. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  5209. +dnl aclocal-1.4 backwards compatibility:
  5210. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  5211. - _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5212. - else
  5213. - if test "$host_cpu" = ia64; then
  5214. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5215. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5216. - _LT_AC_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"
  5217. - else
  5218. - # Determine the default libpath from the value encoded in an empty executable.
  5219. - _LT_AC_SYS_LIBPATH_AIX
  5220. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5221. - # Warning - without using the other run time loading flags,
  5222. - # -berok will link without error, but may produce a broken library.
  5223. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5224. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5225. - # Exported symbols can be pulled into shared objects from archives
  5226. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5227. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5228. - # This is similar to how AIX traditionally builds its shared libraries.
  5229. - _LT_AC_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'
  5230. - fi
  5231. - fi
  5232. - ;;
  5233. - beos*)
  5234. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  5235. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5236. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5237. - # support --undefined. This deserves some investigation. FIXME
  5238. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5239. - else
  5240. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5241. - fi
  5242. - ;;
  5243. +# _LT_PATH_MAGIC
  5244. +# --------------
  5245. +# find a file program which can recognize a shared library
  5246. +m4_defun([_LT_PATH_MAGIC],
  5247. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5248. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5249. + if test -n "$ac_tool_prefix"; then
  5250. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5251. + else
  5252. + MAGIC_CMD=:
  5253. + fi
  5254. +fi
  5255. +])# _LT_PATH_MAGIC
  5256. - chorus*)
  5257. - case $cc_basename in
  5258. - *)
  5259. - # FIXME: insert proper C++ library support
  5260. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5261. - ;;
  5262. - esac
  5263. - ;;
  5264. - cygwin* | mingw* | pw32*)
  5265. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5266. - # as there is no search path for DLLs.
  5267. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5268. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5269. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5270. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5271. -
  5272. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5273. - _LT_AC_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'
  5274. - # If the export-symbols file already is a .def file (1st line
  5275. - # is EXPORTS), use it as is; otherwise, prepend...
  5276. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5277. - cp $export_symbols $output_objdir/$soname.def;
  5278. - else
  5279. - echo EXPORTS > $output_objdir/$soname.def;
  5280. - cat $export_symbols >> $output_objdir/$soname.def;
  5281. - fi~
  5282. - $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'
  5283. - else
  5284. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5285. - fi
  5286. - ;;
  5287. - darwin* | rhapsody*)
  5288. - case $host_os in
  5289. - rhapsody* | darwin1.[[012]])
  5290. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5291. - ;;
  5292. - *) # Darwin 1.3 on
  5293. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5294. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5295. - else
  5296. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5297. - 10.[[012]])
  5298. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5299. - ;;
  5300. - 10.*)
  5301. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5302. - ;;
  5303. - esac
  5304. - fi
  5305. - ;;
  5306. - esac
  5307. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5308. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5309. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5310. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5311. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5312. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5313. -
  5314. - if test "$GXX" = yes ; then
  5315. - lt_int_apple_cc_single_mod=no
  5316. - output_verbose_link_cmd='echo'
  5317. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5318. - lt_int_apple_cc_single_mod=yes
  5319. - fi
  5320. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5321. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5322. - else
  5323. - _LT_AC_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'
  5324. - fi
  5325. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5326. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5327. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5328. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5329. - else
  5330. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5331. - fi
  5332. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5333. - else
  5334. - case $cc_basename in
  5335. - xlc*)
  5336. - output_verbose_link_cmd='echo'
  5337. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  5338. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5339. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  5340. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5341. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5342. - ;;
  5343. - *)
  5344. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5345. - ;;
  5346. - esac
  5347. - fi
  5348. - ;;
  5349. +# LT_PATH_LD
  5350. +# ----------
  5351. +# find the pathname to the GNU or non-GNU linker
  5352. +AC_DEFUN([LT_PATH_LD],
  5353. +[AC_REQUIRE([AC_PROG_CC])dnl
  5354. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5355. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5356. +m4_require([_LT_DECL_SED])dnl
  5357. +m4_require([_LT_DECL_EGREP])dnl
  5358. - dgux*)
  5359. - case $cc_basename in
  5360. - ec++*)
  5361. - # FIXME: insert proper C++ library support
  5362. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5363. - ;;
  5364. - ghcx*)
  5365. - # Green Hills C++ Compiler
  5366. - # FIXME: insert proper C++ library support
  5367. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5368. - ;;
  5369. - *)
  5370. - # FIXME: insert proper C++ library support
  5371. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5372. - ;;
  5373. - esac
  5374. - ;;
  5375. - freebsd[[12]]*)
  5376. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5377. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5378. - ;;
  5379. - freebsd-elf*)
  5380. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5381. - ;;
  5382. - freebsd* | kfreebsd*-gnu | dragonfly*)
  5383. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5384. - # conventions
  5385. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5386. - ;;
  5387. - gnu*)
  5388. - ;;
  5389. - hpux9*)
  5390. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5391. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5392. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5393. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5394. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5395. - # but as the default
  5396. - # location of the library.
  5397. -
  5398. - case $cc_basename in
  5399. - CC*)
  5400. - # FIXME: insert proper C++ library support
  5401. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5402. - ;;
  5403. - aCC*)
  5404. - _LT_AC_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'
  5405. - # Commands to make compiler produce verbose output that lists
  5406. - # what "hidden" libraries, object files and flags are used when
  5407. - # linking a shared library.
  5408. - #
  5409. - # There doesn't appear to be a way to prevent this compiler from
  5410. - # explicitly linking system object files so we need to strip them
  5411. - # from the output so that they don't get included in the library
  5412. - # dependencies.
  5413. - 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; echo $list'
  5414. - ;;
  5415. - *)
  5416. - if test "$GXX" = yes; then
  5417. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  5418. - else
  5419. - # FIXME: insert proper C++ library support
  5420. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5421. - fi
  5422. - ;;
  5423. - esac
  5424. - ;;
  5425. - hpux10*|hpux11*)
  5426. - if test $with_gnu_ld = no; then
  5427. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5428. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5429. +AC_ARG_WITH([gnu-ld],
  5430. + [AS_HELP_STRING([--with-gnu-ld],
  5431. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5432. + [test "$withval" = no || with_gnu_ld=yes],
  5433. + [with_gnu_ld=no])dnl
  5434. - case $host_cpu in
  5435. - hppa*64*|ia64*)
  5436. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5437. - ;;
  5438. - *)
  5439. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5440. - ;;
  5441. - esac
  5442. - fi
  5443. - case $host_cpu in
  5444. - hppa*64*|ia64*)
  5445. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5446. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5447. - ;;
  5448. - *)
  5449. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5450. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5451. - # but as the default
  5452. - # location of the library.
  5453. +ac_prog=ld
  5454. +if test "$GCC" = yes; then
  5455. + # Check if gcc -print-prog-name=ld gives a path.
  5456. + AC_MSG_CHECKING([for ld used by $CC])
  5457. + case $host in
  5458. + *-*-mingw*)
  5459. + # gcc leaves a trailing carriage return which upsets mingw
  5460. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5461. + *)
  5462. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5463. + esac
  5464. + case $ac_prog in
  5465. + # Accept absolute paths.
  5466. + [[\\/]]* | ?:[[\\/]]*)
  5467. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5468. + # Canonicalize the pathname of ld
  5469. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5470. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5471. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5472. + done
  5473. + test -z "$LD" && LD="$ac_prog"
  5474. ;;
  5475. - esac
  5476. -
  5477. - case $cc_basename in
  5478. - CC*)
  5479. - # FIXME: insert proper C++ library support
  5480. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5481. - ;;
  5482. - aCC*)
  5483. - case $host_cpu in
  5484. - hppa*64*)
  5485. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5486. - ;;
  5487. - ia64*)
  5488. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5489. - ;;
  5490. - *)
  5491. - _LT_AC_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'
  5492. - ;;
  5493. - esac
  5494. - # Commands to make compiler produce verbose output that lists
  5495. - # what "hidden" libraries, object files and flags are used when
  5496. - # linking a shared library.
  5497. - #
  5498. - # There doesn't appear to be a way to prevent this compiler from
  5499. - # explicitly linking system object files so we need to strip them
  5500. - # from the output so that they don't get included in the library
  5501. - # dependencies.
  5502. - 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; echo $list'
  5503. - ;;
  5504. - *)
  5505. - if test "$GXX" = yes; then
  5506. - if test $with_gnu_ld = no; then
  5507. - case $host_cpu in
  5508. - hppa*64*)
  5509. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5510. - ;;
  5511. - ia64*)
  5512. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5513. - ;;
  5514. - *)
  5515. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5516. - ;;
  5517. - esac
  5518. - fi
  5519. - else
  5520. - # FIXME: insert proper C++ library support
  5521. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5522. - fi
  5523. - ;;
  5524. - esac
  5525. - ;;
  5526. - interix3*)
  5527. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5528. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5529. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5530. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5531. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5532. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  5533. - # default) and relocated if they conflict, which is a slow very memory
  5534. - # consuming and fragmenting process. To avoid this, we pick a random,
  5535. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5536. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5537. - _LT_AC_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'
  5538. - _LT_AC_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'
  5539. - ;;
  5540. - irix5* | irix6*)
  5541. - case $cc_basename in
  5542. - CC*)
  5543. - # SGI C++
  5544. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5545. -
  5546. - # Archives containing C++ object files must be created using
  5547. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5548. - # necessary to make sure instantiated templates are included
  5549. - # in the archive.
  5550. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5551. - ;;
  5552. - *)
  5553. - if test "$GXX" = yes; then
  5554. - if test "$with_gnu_ld" = no; then
  5555. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5556. - else
  5557. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  5558. - fi
  5559. - fi
  5560. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5561. - ;;
  5562. - esac
  5563. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5564. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5565. + "")
  5566. + # If it fails, then pretend we aren't using GCC.
  5567. + ac_prog=ld
  5568. ;;
  5569. - linux*)
  5570. - case $cc_basename in
  5571. - KCC*)
  5572. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5573. -
  5574. - # KCC will only create a shared library if the output file
  5575. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5576. - # to its proper name (with version) after linking.
  5577. - _LT_AC_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'
  5578. - _LT_AC_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'
  5579. - # Commands to make compiler produce verbose output that lists
  5580. - # what "hidden" libraries, object files and flags are used when
  5581. - # linking a shared library.
  5582. - #
  5583. - # There doesn't appear to be a way to prevent this compiler from
  5584. - # explicitly linking system object files so we need to strip them
  5585. - # from the output so that they don't get included in the library
  5586. - # dependencies.
  5587. - 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; echo $list'
  5588. -
  5589. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5590. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5591. -
  5592. - # Archives containing C++ object files must be created using
  5593. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5594. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5595. - ;;
  5596. - icpc*)
  5597. - # Intel C++
  5598. - with_gnu_ld=yes
  5599. - # version 8.0 and above of icpc choke on multiply defined symbols
  5600. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5601. - # earlier do not add the objects themselves.
  5602. - case `$CC -V 2>&1` in
  5603. - *"Version 7."*)
  5604. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5605. - _LT_AC_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'
  5606. - ;;
  5607. - *) # Version 8.0 or newer
  5608. - tmp_idyn=
  5609. - case $host_cpu in
  5610. - ia64*) tmp_idyn=' -i_dynamic';;
  5611. - esac
  5612. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5613. - _LT_AC_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'
  5614. - ;;
  5615. - esac
  5616. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5617. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5618. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5619. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5620. - ;;
  5621. - pgCC*)
  5622. - # Portland Group C++ compiler
  5623. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5624. - _LT_AC_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'
  5625. -
  5626. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5627. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5628. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5629. - ;;
  5630. - cxx*)
  5631. - # Compaq C++
  5632. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5633. - _LT_AC_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'
  5634. -
  5635. - runpath_var=LD_RUN_PATH
  5636. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5637. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5638. -
  5639. - # Commands to make compiler produce verbose output that lists
  5640. - # what "hidden" libraries, object files and flags are used when
  5641. - # linking a shared library.
  5642. - #
  5643. - # There doesn't appear to be a way to prevent this compiler from
  5644. - # explicitly linking system object files so we need to strip them
  5645. - # from the output so that they don't get included in the library
  5646. - # dependencies.
  5647. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  5648. - ;;
  5649. - *)
  5650. - case `$CC -V 2>&1 | sed 5q` in
  5651. - *Sun\ C*)
  5652. - # Sun C++ 5.9
  5653. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5654. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5655. - _LT_AC_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'
  5656. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5657. - _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  5658. -
  5659. - # Not sure whether something based on
  5660. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5661. - # would be better.
  5662. - output_verbose_link_cmd='echo'
  5663. -
  5664. - # Archives containing C++ object files must be created using
  5665. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5666. - # necessary to make sure instantiated templates are included
  5667. - # in the archive.
  5668. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5669. - ;;
  5670. - esac
  5671. - ;;
  5672. - esac
  5673. + *)
  5674. + # If it is relative, then search for the first ld in PATH.
  5675. + with_gnu_ld=unknown
  5676. ;;
  5677. - lynxos*)
  5678. - # FIXME: insert proper C++ library support
  5679. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5680. - ;;
  5681. - m88k*)
  5682. - # FIXME: insert proper C++ library support
  5683. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5684. - ;;
  5685. - mvs*)
  5686. - case $cc_basename in
  5687. - cxx*)
  5688. - # FIXME: insert proper C++ library support
  5689. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5690. + esac
  5691. +elif test "$with_gnu_ld" = yes; then
  5692. + AC_MSG_CHECKING([for GNU ld])
  5693. +else
  5694. + AC_MSG_CHECKING([for non-GNU ld])
  5695. +fi
  5696. +AC_CACHE_VAL(lt_cv_path_LD,
  5697. +[if test -z "$LD"; then
  5698. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5699. + for ac_dir in $PATH; do
  5700. + IFS="$lt_save_ifs"
  5701. + test -z "$ac_dir" && ac_dir=.
  5702. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5703. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5704. + # Check to see if the program is GNU ld. I'd rather use --version,
  5705. + # but apparently some variants of GNU ld only accept -v.
  5706. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5707. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5708. + *GNU* | *'with BFD'*)
  5709. + test "$with_gnu_ld" != no && break
  5710. ;;
  5711. *)
  5712. - # FIXME: insert proper C++ library support
  5713. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5714. + test "$with_gnu_ld" != yes && break
  5715. ;;
  5716. - esac
  5717. - ;;
  5718. - netbsd*)
  5719. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5720. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5721. - wlarc=
  5722. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5723. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5724. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5725. - fi
  5726. - # Workaround some broken pre-1.5 toolchains
  5727. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5728. - ;;
  5729. - openbsd2*)
  5730. - # C++ shared libraries are fairly broken
  5731. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5732. - ;;
  5733. - openbsd*)
  5734. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5735. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5737. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5738. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5739. - _LT_AC_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'
  5740. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5741. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5742. + esac
  5743. fi
  5744. - output_verbose_link_cmd='echo'
  5745. - ;;
  5746. - osf3*)
  5747. - case $cc_basename in
  5748. - KCC*)
  5749. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5750. -
  5751. - # KCC will only create a shared library if the output file
  5752. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5753. - # to its proper name (with version) after linking.
  5754. - _LT_AC_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'
  5755. -
  5756. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5757. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5758. -
  5759. - # Archives containing C++ object files must be created using
  5760. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5761. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5762. -
  5763. - ;;
  5764. - RCC*)
  5765. - # Rational C++ 2.4.1
  5766. - # FIXME: insert proper C++ library support
  5767. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5768. - ;;
  5769. - cxx*)
  5770. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5771. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5772. -
  5773. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5774. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5775. -
  5776. - # Commands to make compiler produce verbose output that lists
  5777. - # what "hidden" libraries, object files and flags are used when
  5778. - # linking a shared library.
  5779. - #
  5780. - # There doesn't appear to be a way to prevent this compiler from
  5781. - # explicitly linking system object files so we need to strip them
  5782. - # from the output so that they don't get included in the library
  5783. - # dependencies.
  5784. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  5785. - ;;
  5786. - *)
  5787. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5788. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5789. - _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5790. -
  5791. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5792. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5793. -
  5794. - # Commands to make compiler produce verbose output that lists
  5795. - # what "hidden" libraries, object files and flags are used when
  5796. - # linking a shared library.
  5797. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5798. + done
  5799. + IFS="$lt_save_ifs"
  5800. +else
  5801. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5802. +fi])
  5803. +LD="$lt_cv_path_LD"
  5804. +if test -n "$LD"; then
  5805. + AC_MSG_RESULT($LD)
  5806. +else
  5807. + AC_MSG_RESULT(no)
  5808. +fi
  5809. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5810. +_LT_PATH_LD_GNU
  5811. +AC_SUBST([LD])
  5812. - else
  5813. - # FIXME: insert proper C++ library support
  5814. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5815. - fi
  5816. - ;;
  5817. - esac
  5818. - ;;
  5819. - osf4* | osf5*)
  5820. - case $cc_basename in
  5821. - KCC*)
  5822. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5823. -
  5824. - # KCC will only create a shared library if the output file
  5825. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5826. - # to its proper name (with version) after linking.
  5827. - _LT_AC_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'
  5828. -
  5829. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5830. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5831. -
  5832. - # Archives containing C++ object files must be created using
  5833. - # the KAI C++ compiler.
  5834. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5835. - ;;
  5836. - RCC*)
  5837. - # Rational C++ 2.4.1
  5838. - # FIXME: insert proper C++ library support
  5839. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5840. - ;;
  5841. - cxx*)
  5842. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5843. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  5844. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5845. - echo "-hidden">> $lib.exp~
  5846. - $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~
  5847. - $rm $lib.exp'
  5848. -
  5849. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5850. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5851. -
  5852. - # Commands to make compiler produce verbose output that lists
  5853. - # what "hidden" libraries, object files and flags are used when
  5854. - # linking a shared library.
  5855. - #
  5856. - # There doesn't appear to be a way to prevent this compiler from
  5857. - # explicitly linking system object files so we need to strip them
  5858. - # from the output so that they don't get included in the library
  5859. - # dependencies.
  5860. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  5861. - ;;
  5862. - *)
  5863. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5864. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5865. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5866. -
  5867. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5868. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5869. -
  5870. - # Commands to make compiler produce verbose output that lists
  5871. - # what "hidden" libraries, object files and flags are used when
  5872. - # linking a shared library.
  5873. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5874. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5875. +])# LT_PATH_LD
  5876. - else
  5877. - # FIXME: insert proper C++ library support
  5878. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5879. - fi
  5880. - ;;
  5881. - esac
  5882. - ;;
  5883. - psos*)
  5884. - # FIXME: insert proper C++ library support
  5885. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5886. - ;;
  5887. - sunos4*)
  5888. - case $cc_basename in
  5889. - CC*)
  5890. - # Sun C++ 4.x
  5891. - # FIXME: insert proper C++ library support
  5892. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5893. - ;;
  5894. - lcc*)
  5895. - # Lucid
  5896. - # FIXME: insert proper C++ library support
  5897. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5898. - ;;
  5899. - *)
  5900. - # FIXME: insert proper C++ library support
  5901. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5902. - ;;
  5903. - esac
  5904. +# Old names:
  5905. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5906. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5907. +dnl aclocal-1.4 backwards compatibility:
  5908. +dnl AC_DEFUN([AM_PROG_LD], [])
  5909. +dnl AC_DEFUN([AC_PROG_LD], [])
  5910. +
  5911. +
  5912. +# _LT_PATH_LD_GNU
  5913. +#- --------------
  5914. +m4_defun([_LT_PATH_LD_GNU],
  5915. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5916. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5917. +case `$LD -v 2>&1 </dev/null` in
  5918. +*GNU* | *'with BFD'*)
  5919. + lt_cv_prog_gnu_ld=yes
  5920. + ;;
  5921. +*)
  5922. + lt_cv_prog_gnu_ld=no
  5923. + ;;
  5924. +esac])
  5925. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5926. +])# _LT_PATH_LD_GNU
  5927. +
  5928. +
  5929. +# _LT_CMD_RELOAD
  5930. +# --------------
  5931. +# find reload flag for linker
  5932. +# -- PORTME Some linkers may need a different reload flag.
  5933. +m4_defun([_LT_CMD_RELOAD],
  5934. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5935. + lt_cv_ld_reload_flag,
  5936. + [lt_cv_ld_reload_flag='-r'])
  5937. +reload_flag=$lt_cv_ld_reload_flag
  5938. +case $reload_flag in
  5939. +"" | " "*) ;;
  5940. +*) reload_flag=" $reload_flag" ;;
  5941. +esac
  5942. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5943. +case $host_os in
  5944. + darwin*)
  5945. + if test "$GCC" = yes; then
  5946. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5947. + else
  5948. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5949. + fi
  5950. ;;
  5951. - solaris*)
  5952. - case $cc_basename in
  5953. - CC*)
  5954. - # Sun C++ 4.2, 5.x and Centerline C++
  5955. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  5956. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5957. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5958. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5959. - $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'
  5960. -
  5961. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5962. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5963. - case $host_os in
  5964. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5965. - *)
  5966. - # The C++ compiler is used as linker so we must use $wl
  5967. - # flag to pass the commands to the underlying system
  5968. - # linker. We must also pass each convience library through
  5969. - # to the system linker between allextract/defaultextract.
  5970. - # The C++ compiler will combine linker options so we
  5971. - # cannot just pass the convience library names through
  5972. - # without $wl.
  5973. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  5974. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  5975. - ;;
  5976. - esac
  5977. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5978. +esac
  5979. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5980. +_LT_DECL([], [reload_cmds], [2])dnl
  5981. +])# _LT_CMD_RELOAD
  5982. - output_verbose_link_cmd='echo'
  5983. - # Archives containing C++ object files must be created using
  5984. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5985. - # necessary to make sure instantiated templates are included
  5986. - # in the archive.
  5987. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5988. - ;;
  5989. - gcx*)
  5990. - # Green Hills C++ Compiler
  5991. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5992. +# _LT_CHECK_MAGIC_METHOD
  5993. +# ----------------------
  5994. +# how to check for library dependencies
  5995. +# -- PORTME fill in with the dynamic library characteristics
  5996. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5997. +[m4_require([_LT_DECL_EGREP])
  5998. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5999. +lt_cv_deplibs_check_method,
  6000. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  6001. +lt_cv_file_magic_test_file=
  6002. +lt_cv_deplibs_check_method='unknown'
  6003. +# Need to set the preceding variable on all platforms that support
  6004. +# interlibrary dependencies.
  6005. +# 'none' -- dependencies not supported.
  6006. +# `unknown' -- same as none, but documents that we really don't know.
  6007. +# 'pass_all' -- all dependencies passed with no checks.
  6008. +# 'test_compile' -- check by making test program.
  6009. +# 'file_magic [[regex]]' -- check by looking for files in library path
  6010. +# which responds to the $file_magic_cmd with a given extended regex.
  6011. +# If you have `file' or equivalent on your system and you're not sure
  6012. +# whether `pass_all' will *always* work, you probably want this one.
  6013. - # The C++ compiler must be used to create the archive.
  6014. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6015. - ;;
  6016. - *)
  6017. - # GNU C++ compiler with Solaris linker
  6018. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6019. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6020. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6021. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6022. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6023. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6024. +case $host_os in
  6025. +aix[[4-9]]*)
  6026. + lt_cv_deplibs_check_method=pass_all
  6027. + ;;
  6028. - # Commands to make compiler produce verbose output that lists
  6029. - # what "hidden" libraries, object files and flags are used when
  6030. - # linking a shared library.
  6031. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6032. - else
  6033. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6034. - # platform.
  6035. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6036. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6037. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6038. +beos*)
  6039. + lt_cv_deplibs_check_method=pass_all
  6040. + ;;
  6041. - # Commands to make compiler produce verbose output that lists
  6042. - # what "hidden" libraries, object files and flags are used when
  6043. - # linking a shared library.
  6044. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6045. - fi
  6046. +bsdi[[45]]*)
  6047. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  6048. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  6049. + lt_cv_file_magic_test_file=/shlib/libc.so
  6050. + ;;
  6051. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6052. - fi
  6053. - ;;
  6054. - esac
  6055. - ;;
  6056. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6057. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6058. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6059. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6060. - runpath_var='LD_RUN_PATH'
  6061. -
  6062. - case $cc_basename in
  6063. - CC*)
  6064. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6065. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6066. - ;;
  6067. - *)
  6068. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6069. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6070. - ;;
  6071. - esac
  6072. - ;;
  6073. - sysv5* | sco3.2v5* | sco5v6*)
  6074. - # Note: We can NOT use -z defs as we might desire, because we do not
  6075. - # link with -lc, and that would cause any symbols used from libc to
  6076. - # always be unresolved, which means just about no library would
  6077. - # ever link correctly. If we're not using GNU ld we use -z text
  6078. - # though, which does catch some bad symbols but isn't as heavy-handed
  6079. - # as -z defs.
  6080. - # For security reasons, it is highly recommended that you always
  6081. - # use absolute paths for naming shared libraries, and exclude the
  6082. - # DT_RUNPATH tag from executables and libraries. But doing so
  6083. - # requires that you compile everything twice, which is a pain.
  6084. - # So that behaviour is only enabled if SCOABSPATH is set to a
  6085. - # non-empty value in the environment. Most likely only useful for
  6086. - # creating official distributions of packages.
  6087. - # This is a hack until libtool officially supports absolute path
  6088. - # names for shared libraries.
  6089. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6090. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6091. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6092. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6093. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  6094. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6095. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6096. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6097. - runpath_var='LD_RUN_PATH'
  6098. -
  6099. - case $cc_basename in
  6100. - CC*)
  6101. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6102. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6103. - ;;
  6104. - *)
  6105. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6106. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6107. - ;;
  6108. - esac
  6109. - ;;
  6110. - tandem*)
  6111. - case $cc_basename in
  6112. - NCC*)
  6113. - # NonStop-UX NCC 3.20
  6114. - # FIXME: insert proper C++ library support
  6115. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6116. - ;;
  6117. - *)
  6118. - # FIXME: insert proper C++ library support
  6119. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6120. - ;;
  6121. +cygwin*)
  6122. + # func_win32_libid is a shell function defined in ltmain.sh
  6123. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6124. + lt_cv_file_magic_cmd='func_win32_libid'
  6125. + ;;
  6126. +
  6127. +mingw* | pw32*)
  6128. + # Base MSYS/MinGW do not provide the 'file' command needed by
  6129. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6130. + # unless we find 'file', for example because we are cross-compiling.
  6131. + if ( file / ) >/dev/null 2>&1; then
  6132. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6133. + lt_cv_file_magic_cmd='func_win32_libid'
  6134. + else
  6135. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6136. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  6137. + fi
  6138. + ;;
  6139. +
  6140. +darwin* | rhapsody*)
  6141. + lt_cv_deplibs_check_method=pass_all
  6142. + ;;
  6143. +
  6144. +freebsd* | dragonfly*)
  6145. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6146. + case $host_cpu in
  6147. + i*86 )
  6148. + # Not sure whether the presence of OpenBSD here was a mistake.
  6149. + # Let's accept both of them until this is cleared up.
  6150. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  6151. + lt_cv_file_magic_cmd=/usr/bin/file
  6152. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6153. + ;;
  6154. esac
  6155. + else
  6156. + lt_cv_deplibs_check_method=pass_all
  6157. + fi
  6158. + ;;
  6159. +
  6160. +gnu*)
  6161. + lt_cv_deplibs_check_method=pass_all
  6162. + ;;
  6163. +
  6164. +hpux10.20* | hpux11*)
  6165. + lt_cv_file_magic_cmd=/usr/bin/file
  6166. + case $host_cpu in
  6167. + ia64*)
  6168. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  6169. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6170. ;;
  6171. - vxworks*)
  6172. - # FIXME: insert proper C++ library support
  6173. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6174. + hppa*64*)
  6175. + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  6176. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6177. ;;
  6178. *)
  6179. - # FIXME: insert proper C++ library support
  6180. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6181. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  6182. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6183. ;;
  6184. -esac
  6185. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6186. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6187. + esac
  6188. + ;;
  6189. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6190. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6191. +interix[[3-9]]*)
  6192. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6193. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  6194. + ;;
  6195. -## CAVEAT EMPTOR:
  6196. -## There is no encapsulation within the following macros, do not change
  6197. -## the running order or otherwise move them around unless you know exactly
  6198. -## what you are doing...
  6199. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6200. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6201. -AC_LIBTOOL_PROG_CC_C_O($1)
  6202. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6203. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6204. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6205. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6206. +irix5* | irix6* | nonstopux*)
  6207. + case $LD in
  6208. + *-32|*"-32 ") libmagic=32-bit;;
  6209. + *-n32|*"-n32 ") libmagic=N32;;
  6210. + *-64|*"-64 ") libmagic=64-bit;;
  6211. + *) libmagic=never-match;;
  6212. + esac
  6213. + lt_cv_deplibs_check_method=pass_all
  6214. + ;;
  6215. -AC_LIBTOOL_CONFIG($1)
  6216. +# This must be Linux ELF.
  6217. +linux* | k*bsd*-gnu)
  6218. + lt_cv_deplibs_check_method=pass_all
  6219. + ;;
  6220. -AC_LANG_POP
  6221. -CC=$lt_save_CC
  6222. -LDCXX=$LD
  6223. -LD=$lt_save_LD
  6224. -GCC=$lt_save_GCC
  6225. -with_gnu_ldcxx=$with_gnu_ld
  6226. -with_gnu_ld=$lt_save_with_gnu_ld
  6227. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6228. -lt_cv_path_LD=$lt_save_path_LD
  6229. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6230. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6231. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6232. +netbsd*)
  6233. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6234. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6235. + else
  6236. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  6237. + fi
  6238. + ;;
  6239. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6240. -# ------------------------------------
  6241. -# Figure out "hidden" library dependencies from verbose
  6242. -# compiler output when linking a shared library.
  6243. -# Parse the compiler output and extract the necessary
  6244. -# objects, libraries and library flags.
  6245. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6246. -dnl we can't use the lt_simple_compile_test_code here,
  6247. -dnl because it contains code intended for an executable,
  6248. -dnl not a library. It's possible we should let each
  6249. -dnl tag define a new lt_????_link_test_code variable,
  6250. -dnl but it's only used here...
  6251. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6252. -int a;
  6253. -void foo (void) { a = 0; }
  6254. -EOF
  6255. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6256. -class Foo
  6257. -{
  6258. -public:
  6259. - Foo (void) { a = 0; }
  6260. -private:
  6261. - int a;
  6262. -};
  6263. -EOF
  6264. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6265. - subroutine foo
  6266. - implicit none
  6267. - integer*4 a
  6268. - a=0
  6269. - return
  6270. - end
  6271. -EOF
  6272. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6273. -public class foo {
  6274. - private int a;
  6275. - public void bar (void) {
  6276. - a = 0;
  6277. - }
  6278. -};
  6279. -EOF
  6280. -])
  6281. -dnl Parse the compiler output and extract the necessary
  6282. -dnl objects, libraries and library flags.
  6283. -if AC_TRY_EVAL(ac_compile); then
  6284. - # Parse the compiler output and extract the necessary
  6285. - # objects, libraries and library flags.
  6286. +newos6*)
  6287. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  6288. + lt_cv_file_magic_cmd=/usr/bin/file
  6289. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6290. + ;;
  6291. - # Sentinel used to keep track of whether or not we are before
  6292. - # the conftest object file.
  6293. - pre_test_object_deps_done=no
  6294. +*nto* | *qnx*)
  6295. + lt_cv_deplibs_check_method=pass_all
  6296. + ;;
  6297. - # The `*' in the case matches for architectures that use `case' in
  6298. - # $output_verbose_cmd can trigger glob expansion during the loop
  6299. - # eval without this substitution.
  6300. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  6301. +openbsd*)
  6302. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6303. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6304. + else
  6305. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6306. + fi
  6307. + ;;
  6308. - for p in `eval $output_verbose_link_cmd`; do
  6309. - case $p in
  6310. +osf3* | osf4* | osf5*)
  6311. + lt_cv_deplibs_check_method=pass_all
  6312. + ;;
  6313. - -L* | -R* | -l*)
  6314. - # Some compilers place space between "-{L,R}" and the path.
  6315. - # Remove the space.
  6316. - if test $p = "-L" \
  6317. - || test $p = "-R"; then
  6318. - prev=$p
  6319. - continue
  6320. - else
  6321. - prev=
  6322. - fi
  6323. +rdos*)
  6324. + lt_cv_deplibs_check_method=pass_all
  6325. + ;;
  6326. +
  6327. +solaris*)
  6328. + lt_cv_deplibs_check_method=pass_all
  6329. + ;;
  6330. +
  6331. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6332. + lt_cv_deplibs_check_method=pass_all
  6333. + ;;
  6334. +
  6335. +sysv4 | sysv4.3*)
  6336. + case $host_vendor in
  6337. + motorola)
  6338. + 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]]'
  6339. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6340. + ;;
  6341. + ncr)
  6342. + lt_cv_deplibs_check_method=pass_all
  6343. + ;;
  6344. + sequent)
  6345. + lt_cv_file_magic_cmd='/bin/file'
  6346. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6347. + ;;
  6348. + sni)
  6349. + lt_cv_file_magic_cmd='/bin/file'
  6350. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6351. + lt_cv_file_magic_test_file=/lib/libc.so
  6352. + ;;
  6353. + siemens)
  6354. + lt_cv_deplibs_check_method=pass_all
  6355. + ;;
  6356. + pc)
  6357. + lt_cv_deplibs_check_method=pass_all
  6358. + ;;
  6359. + esac
  6360. + ;;
  6361. +
  6362. +tpf*)
  6363. + lt_cv_deplibs_check_method=pass_all
  6364. + ;;
  6365. +esac
  6366. +])
  6367. +file_magic_cmd=$lt_cv_file_magic_cmd
  6368. +deplibs_check_method=$lt_cv_deplibs_check_method
  6369. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6370. +
  6371. +_LT_DECL([], [deplibs_check_method], [1],
  6372. + [Method to check whether dependent libraries are shared objects])
  6373. +_LT_DECL([], [file_magic_cmd], [1],
  6374. + [Command to use when deplibs_check_method == "file_magic"])
  6375. +])# _LT_CHECK_MAGIC_METHOD
  6376. +
  6377. +
  6378. +# LT_PATH_NM
  6379. +# ----------
  6380. +# find the pathname to a BSD- or MS-compatible name lister
  6381. +AC_DEFUN([LT_PATH_NM],
  6382. +[AC_REQUIRE([AC_PROG_CC])dnl
  6383. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6384. +[if test -n "$NM"; then
  6385. + # Let the user override the test.
  6386. + lt_cv_path_NM="$NM"
  6387. +else
  6388. + lt_nm_to_check="${ac_tool_prefix}nm"
  6389. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6390. + lt_nm_to_check="$lt_nm_to_check nm"
  6391. + fi
  6392. + for lt_tmp_nm in $lt_nm_to_check; do
  6393. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6394. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6395. + IFS="$lt_save_ifs"
  6396. + test -z "$ac_dir" && ac_dir=.
  6397. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6398. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6399. + # Check to see if the nm accepts a BSD-compat flag.
  6400. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6401. + # nm: unknown option "B" ignored
  6402. + # Tru64's nm complains that /dev/null is an invalid object file
  6403. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6404. + */dev/null* | *'Invalid file or object type'*)
  6405. + lt_cv_path_NM="$tmp_nm -B"
  6406. + break
  6407. + ;;
  6408. + *)
  6409. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6410. + */dev/null*)
  6411. + lt_cv_path_NM="$tmp_nm -p"
  6412. + break
  6413. + ;;
  6414. + *)
  6415. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6416. + continue # so that we can try to find one that supports BSD flags
  6417. + ;;
  6418. + esac
  6419. + ;;
  6420. + esac
  6421. + fi
  6422. + done
  6423. + IFS="$lt_save_ifs"
  6424. + done
  6425. + : ${lt_cv_path_NM=no}
  6426. +fi])
  6427. +if test "$lt_cv_path_NM" != "no"; then
  6428. + NM="$lt_cv_path_NM"
  6429. +else
  6430. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6431. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6432. + AC_SUBST([DUMPBIN])
  6433. + if test "$DUMPBIN" != ":"; then
  6434. + NM="$DUMPBIN"
  6435. + fi
  6436. +fi
  6437. +test -z "$NM" && NM=nm
  6438. +AC_SUBST([NM])
  6439. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6440. +
  6441. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6442. + [lt_cv_nm_interface="BSD nm"
  6443. + echo "int some_variable = 0;" > conftest.$ac_ext
  6444. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6445. + (eval "$ac_compile" 2>conftest.err)
  6446. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6447. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6448. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6449. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6450. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6451. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6452. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6453. + lt_cv_nm_interface="MS dumpbin"
  6454. + fi
  6455. + rm -f conftest*])
  6456. +])# LT_PATH_NM
  6457. +
  6458. +# Old names:
  6459. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6460. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6461. +dnl aclocal-1.4 backwards compatibility:
  6462. +dnl AC_DEFUN([AM_PROG_NM], [])
  6463. +dnl AC_DEFUN([AC_PROG_NM], [])
  6464. +
  6465. +
  6466. +# LT_LIB_M
  6467. +# --------
  6468. +# check for math library
  6469. +AC_DEFUN([LT_LIB_M],
  6470. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6471. +LIBM=
  6472. +case $host in
  6473. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6474. + # These system don't have libm, or don't need it
  6475. + ;;
  6476. +*-ncr-sysv4.3*)
  6477. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6478. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6479. + ;;
  6480. +*)
  6481. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6482. + ;;
  6483. +esac
  6484. +AC_SUBST([LIBM])
  6485. +])# LT_LIB_M
  6486. +
  6487. +# Old name:
  6488. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6489. +dnl aclocal-1.4 backwards compatibility:
  6490. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6491. +
  6492. +
  6493. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6494. +# -------------------------------
  6495. +m4_defun([_LT_COMPILER_NO_RTTI],
  6496. +[m4_require([_LT_TAG_COMPILER])dnl
  6497. +
  6498. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6499. +
  6500. +if test "$GCC" = yes; then
  6501. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6502. +
  6503. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6504. + lt_cv_prog_compiler_rtti_exceptions,
  6505. + [-fno-rtti -fno-exceptions], [],
  6506. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6507. +fi
  6508. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6509. + [Compiler flag to turn off builtin functions])
  6510. +])# _LT_COMPILER_NO_RTTI
  6511. +
  6512. +
  6513. +# _LT_CMD_GLOBAL_SYMBOLS
  6514. +# ----------------------
  6515. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6516. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6517. +AC_REQUIRE([AC_PROG_CC])dnl
  6518. +AC_REQUIRE([LT_PATH_NM])dnl
  6519. +AC_REQUIRE([LT_PATH_LD])dnl
  6520. +m4_require([_LT_DECL_SED])dnl
  6521. +m4_require([_LT_DECL_EGREP])dnl
  6522. +m4_require([_LT_TAG_COMPILER])dnl
  6523. +
  6524. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6525. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6526. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6527. +[
  6528. +# These are sane defaults that work on at least a few old systems.
  6529. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6530. +
  6531. +# Character class describing NM global symbol codes.
  6532. +symcode='[[BCDEGRST]]'
  6533. +
  6534. +# Regexp to match symbols that can be accessed directly from C.
  6535. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6536. +
  6537. +# Define system-specific variables.
  6538. +case $host_os in
  6539. +aix*)
  6540. + symcode='[[BCDT]]'
  6541. + ;;
  6542. +cygwin* | mingw* | pw32*)
  6543. + symcode='[[ABCDGISTW]]'
  6544. + ;;
  6545. +hpux*)
  6546. + if test "$host_cpu" = ia64; then
  6547. + symcode='[[ABCDEGRST]]'
  6548. + fi
  6549. + ;;
  6550. +irix* | nonstopux*)
  6551. + symcode='[[BCDEGRST]]'
  6552. + ;;
  6553. +osf*)
  6554. + symcode='[[BCDEGQRST]]'
  6555. + ;;
  6556. +solaris*)
  6557. + symcode='[[BDRT]]'
  6558. + ;;
  6559. +sco3.2v5*)
  6560. + symcode='[[DT]]'
  6561. + ;;
  6562. +sysv4.2uw2*)
  6563. + symcode='[[DT]]'
  6564. + ;;
  6565. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6566. + symcode='[[ABDT]]'
  6567. + ;;
  6568. +sysv4)
  6569. + symcode='[[DFNSTU]]'
  6570. + ;;
  6571. +esac
  6572. +
  6573. +# If we're using GNU nm, then use its standard symbol codes.
  6574. +case `$NM -V 2>&1` in
  6575. +*GNU* | *'with BFD'*)
  6576. + symcode='[[ABCDGIRSTW]]' ;;
  6577. +esac
  6578. +
  6579. +# Transform an extracted symbol line into a proper C declaration.
  6580. +# Some systems (esp. on ia64) link data and code symbols differently,
  6581. +# so use this general approach.
  6582. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6583. +
  6584. +# Transform an extracted symbol line into symbol name and symbol address
  6585. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6586. +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'"
  6587. +
  6588. +# Handle CRLF in mingw tool chain
  6589. +opt_cr=
  6590. +case $build_os in
  6591. +mingw*)
  6592. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6593. + ;;
  6594. +esac
  6595. +
  6596. +# Try without a prefix underscore, then with it.
  6597. +for ac_symprfx in "" "_"; do
  6598. +
  6599. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6600. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6601. +
  6602. + # Write the raw and C identifiers.
  6603. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6604. + # Fake it for dumpbin and say T for any non-static function
  6605. + # and D for any global variable.
  6606. + # Also find C++ and __fastcall symbols from MSVC++,
  6607. + # which start with @ or ?.
  6608. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6609. +" {last_section=section; section=\$ 3};"\
  6610. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6611. +" \$ 0!~/External *\|/{next};"\
  6612. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6613. +" {if(hide[section]) next};"\
  6614. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6615. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6616. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6617. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6618. +" ' prfx=^$ac_symprfx]"
  6619. + else
  6620. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6621. + fi
  6622. +
  6623. + # Check to see that the pipe works correctly.
  6624. + pipe_works=no
  6625. +
  6626. + rm -f conftest*
  6627. + cat > conftest.$ac_ext <<_LT_EOF
  6628. +#ifdef __cplusplus
  6629. +extern "C" {
  6630. +#endif
  6631. +char nm_test_var;
  6632. +void nm_test_func(void);
  6633. +void nm_test_func(void){}
  6634. +#ifdef __cplusplus
  6635. +}
  6636. +#endif
  6637. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6638. +_LT_EOF
  6639. +
  6640. + if AC_TRY_EVAL(ac_compile); then
  6641. + # Now try to grab the symbols.
  6642. + nlist=conftest.nm
  6643. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6644. + # Try sorting and uniquifying the output.
  6645. + if sort "$nlist" | uniq > "$nlist"T; then
  6646. + mv -f "$nlist"T "$nlist"
  6647. + else
  6648. + rm -f "$nlist"T
  6649. + fi
  6650. +
  6651. + # Make sure that we snagged all the symbols we need.
  6652. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6653. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6654. + cat <<_LT_EOF > conftest.$ac_ext
  6655. +#ifdef __cplusplus
  6656. +extern "C" {
  6657. +#endif
  6658. +
  6659. +_LT_EOF
  6660. + # Now generate the symbol file.
  6661. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6662. +
  6663. + cat <<_LT_EOF >> conftest.$ac_ext
  6664. +
  6665. +/* The mapping between symbol names and symbols. */
  6666. +const struct {
  6667. + const char *name;
  6668. + void *address;
  6669. +}
  6670. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6671. +{
  6672. + { "@PROGRAM@", (void *) 0 },
  6673. +_LT_EOF
  6674. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6675. + cat <<\_LT_EOF >> conftest.$ac_ext
  6676. + {0, (void *) 0}
  6677. +};
  6678. +
  6679. +/* This works around a problem in FreeBSD linker */
  6680. +#ifdef FREEBSD_WORKAROUND
  6681. +static const void *lt_preloaded_setup() {
  6682. + return lt__PROGRAM__LTX_preloaded_symbols;
  6683. +}
  6684. +#endif
  6685. +
  6686. +#ifdef __cplusplus
  6687. +}
  6688. +#endif
  6689. +_LT_EOF
  6690. + # Now try linking the two files.
  6691. + mv conftest.$ac_objext conftstm.$ac_objext
  6692. + lt_save_LIBS="$LIBS"
  6693. + lt_save_CFLAGS="$CFLAGS"
  6694. + LIBS="conftstm.$ac_objext"
  6695. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6696. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6697. + pipe_works=yes
  6698. + fi
  6699. + LIBS="$lt_save_LIBS"
  6700. + CFLAGS="$lt_save_CFLAGS"
  6701. + else
  6702. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6703. + fi
  6704. + else
  6705. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6706. + fi
  6707. + else
  6708. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6709. + fi
  6710. + else
  6711. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6712. + cat conftest.$ac_ext >&5
  6713. + fi
  6714. + rm -rf conftest* conftst*
  6715. - if test "$pre_test_object_deps_done" = no; then
  6716. - case $p in
  6717. - -L* | -R*)
  6718. - # Internal compiler library paths should come after those
  6719. - # provided the user. The postdeps already come after the
  6720. - # user supplied libs so there is no need to process them.
  6721. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6722. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6723. - else
  6724. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6725. - fi
  6726. - ;;
  6727. - # The "-l" case would never come before the object being
  6728. - # linked, so don't bother handling this case.
  6729. - esac
  6730. - else
  6731. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6732. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6733. - else
  6734. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6735. - fi
  6736. - fi
  6737. - ;;
  6738. + # Do not use the global_symbol_pipe unless it works.
  6739. + if test "$pipe_works" = yes; then
  6740. + break
  6741. + else
  6742. + lt_cv_sys_global_symbol_pipe=
  6743. + fi
  6744. +done
  6745. +])
  6746. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6747. + lt_cv_sys_global_symbol_to_cdecl=
  6748. +fi
  6749. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6750. + AC_MSG_RESULT(failed)
  6751. +else
  6752. + AC_MSG_RESULT(ok)
  6753. +fi
  6754. - *.$objext)
  6755. - # This assumes that the test object file only shows up
  6756. - # once in the compiler output.
  6757. - if test "$p" = "conftest.$objext"; then
  6758. - pre_test_object_deps_done=yes
  6759. - continue
  6760. - fi
  6761. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6762. + [Take the output of nm and produce a listing of raw symbols and C names])
  6763. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6764. + [Transform the output of nm in a proper C declaration])
  6765. +_LT_DECL([global_symbol_to_c_name_address],
  6766. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6767. + [Transform the output of nm in a C name address pair])
  6768. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6769. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6770. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6771. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6772. - if test "$pre_test_object_deps_done" = no; then
  6773. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6774. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6775. - else
  6776. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6777. - fi
  6778. - else
  6779. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6780. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6781. - else
  6782. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6783. - fi
  6784. - fi
  6785. - ;;
  6786. - *) ;; # Ignore the rest.
  6787. +# _LT_COMPILER_PIC([TAGNAME])
  6788. +# ---------------------------
  6789. +m4_defun([_LT_COMPILER_PIC],
  6790. +[m4_require([_LT_TAG_COMPILER])dnl
  6791. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6792. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6793. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6794. +
  6795. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6796. +m4_if([$1], [CXX], [
  6797. + # C++ specific cases for pic, static, wl, etc.
  6798. + if test "$GXX" = yes; then
  6799. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6800. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6801. + case $host_os in
  6802. + aix*)
  6803. + # All AIX code is PIC.
  6804. + if test "$host_cpu" = ia64; then
  6805. + # AIX 5 now supports IA64 processor
  6806. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6807. + fi
  6808. + ;;
  6809. +
  6810. + amigaos*)
  6811. + case $host_cpu in
  6812. + powerpc)
  6813. + # see comment about AmigaOS4 .so support
  6814. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6815. + ;;
  6816. + m68k)
  6817. + # FIXME: we need at least 68020 code to build shared libraries, but
  6818. + # adding the `-m68020' flag to GCC prevents building anything better,
  6819. + # like `-m68040'.
  6820. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6821. + ;;
  6822. + esac
  6823. + ;;
  6824. +
  6825. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6826. + # PIC is the default for these OSes.
  6827. + ;;
  6828. + mingw* | cygwin* | os2* | pw32*)
  6829. + # This hack is so that the source file can tell whether it is being
  6830. + # built for inclusion in a dll (and should export symbols for example).
  6831. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6832. + # (--disable-auto-import) libraries
  6833. + m4_if([$1], [GCJ], [],
  6834. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6835. + ;;
  6836. + darwin* | rhapsody*)
  6837. + # PIC is the default on this platform
  6838. + # Common symbols not allowed in MH_DYLIB files
  6839. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6840. + ;;
  6841. + *djgpp*)
  6842. + # DJGPP does not support shared libraries at all
  6843. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6844. + ;;
  6845. + interix[[3-9]]*)
  6846. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6847. + # Instead, we relocate shared libraries at runtime.
  6848. + ;;
  6849. + sysv4*MP*)
  6850. + if test -d /usr/nec; then
  6851. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6852. + fi
  6853. + ;;
  6854. + hpux*)
  6855. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6856. + # not for PA HP-UX.
  6857. + case $host_cpu in
  6858. + hppa*64*|ia64*)
  6859. + ;;
  6860. + *)
  6861. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6862. + ;;
  6863. + esac
  6864. + ;;
  6865. + *qnx* | *nto*)
  6866. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6867. + # it will coredump.
  6868. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6869. + ;;
  6870. + *)
  6871. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6872. + ;;
  6873. + esac
  6874. + else
  6875. + case $host_os in
  6876. + aix[[4-9]]*)
  6877. + # All AIX code is PIC.
  6878. + if test "$host_cpu" = ia64; then
  6879. + # AIX 5 now supports IA64 processor
  6880. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6881. + else
  6882. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6883. + fi
  6884. + ;;
  6885. + chorus*)
  6886. + case $cc_basename in
  6887. + cxch68*)
  6888. + # Green Hills C++ Compiler
  6889. + # _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"
  6890. + ;;
  6891. + esac
  6892. + ;;
  6893. + dgux*)
  6894. + case $cc_basename in
  6895. + ec++*)
  6896. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6897. + ;;
  6898. + ghcx*)
  6899. + # Green Hills C++ Compiler
  6900. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6901. + ;;
  6902. + *)
  6903. + ;;
  6904. + esac
  6905. + ;;
  6906. + freebsd* | dragonfly*)
  6907. + # FreeBSD uses GNU C++
  6908. + ;;
  6909. + hpux9* | hpux10* | hpux11*)
  6910. + case $cc_basename in
  6911. + CC*)
  6912. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6913. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6914. + if test "$host_cpu" != ia64; then
  6915. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6916. + fi
  6917. + ;;
  6918. + aCC*)
  6919. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6920. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6921. + case $host_cpu in
  6922. + hppa*64*|ia64*)
  6923. + # +Z the default
  6924. + ;;
  6925. + *)
  6926. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6927. + ;;
  6928. + esac
  6929. + ;;
  6930. + *)
  6931. + ;;
  6932. + esac
  6933. + ;;
  6934. + interix*)
  6935. + # This is c89, which is MS Visual C++ (no shared libs)
  6936. + # Anyone wants to do a port?
  6937. + ;;
  6938. + irix5* | irix6* | nonstopux*)
  6939. + case $cc_basename in
  6940. + CC*)
  6941. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6942. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6943. + # CC pic flag -KPIC is the default.
  6944. + ;;
  6945. + *)
  6946. + ;;
  6947. + esac
  6948. + ;;
  6949. + linux* | k*bsd*-gnu)
  6950. + case $cc_basename in
  6951. + KCC*)
  6952. + # KAI C++ Compiler
  6953. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6954. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6955. + ;;
  6956. + icpc* | ecpc* )
  6957. + # Intel C++
  6958. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6959. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6960. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6961. + ;;
  6962. + pgCC* | pgcpp*)
  6963. + # Portland Group C++ compiler
  6964. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6965. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6966. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6967. + ;;
  6968. + cxx*)
  6969. + # Compaq C++
  6970. + # Make sure the PIC flag is empty. It appears that all Alpha
  6971. + # Linux and Compaq Tru64 Unix objects are PIC.
  6972. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6973. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6974. + ;;
  6975. + xlc* | xlC*)
  6976. + # IBM XL 8.0 on PPC
  6977. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6978. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6979. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6980. + ;;
  6981. + *)
  6982. + case `$CC -V 2>&1 | sed 5q` in
  6983. + *Sun\ C*)
  6984. + # Sun C++ 5.9
  6985. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6986. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6987. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6988. + ;;
  6989. + esac
  6990. + ;;
  6991. + esac
  6992. + ;;
  6993. + lynxos*)
  6994. + ;;
  6995. + m88k*)
  6996. + ;;
  6997. + mvs*)
  6998. + case $cc_basename in
  6999. + cxx*)
  7000. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7001. + ;;
  7002. + *)
  7003. + ;;
  7004. + esac
  7005. + ;;
  7006. + netbsd*)
  7007. + ;;
  7008. + *qnx* | *nto*)
  7009. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7010. + # it will coredump.
  7011. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7012. + ;;
  7013. + osf3* | osf4* | osf5*)
  7014. + case $cc_basename in
  7015. + KCC*)
  7016. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7017. + ;;
  7018. + RCC*)
  7019. + # Rational C++ 2.4.1
  7020. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7021. + ;;
  7022. + cxx*)
  7023. + # Digital/Compaq C++
  7024. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7025. + # Make sure the PIC flag is empty. It appears that all Alpha
  7026. + # Linux and Compaq Tru64 Unix objects are PIC.
  7027. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7028. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7029. + ;;
  7030. + *)
  7031. + ;;
  7032. + esac
  7033. + ;;
  7034. + psos*)
  7035. + ;;
  7036. + solaris*)
  7037. + case $cc_basename in
  7038. + CC*)
  7039. + # Sun C++ 4.2, 5.x and Centerline C++
  7040. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7041. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7042. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7043. + ;;
  7044. + gcx*)
  7045. + # Green Hills C++ Compiler
  7046. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7047. + ;;
  7048. + *)
  7049. + ;;
  7050. + esac
  7051. + ;;
  7052. + sunos4*)
  7053. + case $cc_basename in
  7054. + CC*)
  7055. + # Sun C++ 4.x
  7056. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7057. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7058. + ;;
  7059. + lcc*)
  7060. + # Lucid
  7061. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7062. + ;;
  7063. + *)
  7064. + ;;
  7065. + esac
  7066. + ;;
  7067. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7068. + case $cc_basename in
  7069. + CC*)
  7070. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7071. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7072. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7073. + ;;
  7074. + esac
  7075. + ;;
  7076. + tandem*)
  7077. + case $cc_basename in
  7078. + NCC*)
  7079. + # NonStop-UX NCC 3.20
  7080. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7081. + ;;
  7082. + *)
  7083. + ;;
  7084. + esac
  7085. + ;;
  7086. + vxworks*)
  7087. + ;;
  7088. + *)
  7089. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7090. + ;;
  7091. esac
  7092. - done
  7093. -
  7094. - # Clean up.
  7095. - rm -f a.out a.exe
  7096. -else
  7097. - echo "libtool.m4: error: problem compiling $1 test program"
  7098. -fi
  7099. -
  7100. -$rm -f confest.$objext
  7101. -
  7102. -# PORTME: override above test on systems where it is broken
  7103. -ifelse([$1],[CXX],
  7104. -[case $host_os in
  7105. -interix3*)
  7106. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  7107. - # hack all around it, let's just trust "g++" to DTRT.
  7108. - _LT_AC_TAGVAR(predep_objects,$1)=
  7109. - _LT_AC_TAGVAR(postdep_objects,$1)=
  7110. - _LT_AC_TAGVAR(postdeps,$1)=
  7111. - ;;
  7112. -
  7113. -linux*)
  7114. - case `$CC -V 2>&1 | sed 5q` in
  7115. - *Sun\ C*)
  7116. - # Sun C++ 5.9
  7117. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  7118. - ;;
  7119. - esac
  7120. - ;;
  7121. -
  7122. -solaris*)
  7123. - case $cc_basename in
  7124. - CC*)
  7125. - # Adding this requires a known-good setup of shared libraries for
  7126. - # Sun compiler versions before 5.6, else PIC objects from an old
  7127. - # archive will be linked into the output, leading to subtle bugs.
  7128. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  7129. - ;;
  7130. - esac
  7131. - ;;
  7132. -esac
  7133. -])
  7134. -
  7135. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  7136. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  7137. -esac
  7138. -])# AC_LIBTOOL_POSTDEP_PREDEP
  7139. -
  7140. -# AC_LIBTOOL_LANG_F77_CONFIG
  7141. -# --------------------------
  7142. -# Ensure that the configuration vars for the C compiler are
  7143. -# suitably defined. Those variables are subsequently used by
  7144. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  7145. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  7146. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  7147. -[AC_REQUIRE([AC_PROG_F77])
  7148. -AC_LANG_PUSH(Fortran 77)
  7149. -
  7150. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7151. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  7152. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  7153. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  7154. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  7155. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  7156. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7157. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7158. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7159. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  7160. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  7161. -_LT_AC_TAGVAR(module_cmds, $1)=
  7162. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  7163. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  7164. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7165. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  7166. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7167. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7168. -
  7169. -# Source file extension for f77 test sources.
  7170. -ac_ext=f
  7171. -
  7172. -# Object file extension for compiled f77 test sources.
  7173. -objext=o
  7174. -_LT_AC_TAGVAR(objext, $1)=$objext
  7175. -
  7176. -# Code to be used in simple compile tests
  7177. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  7178. -
  7179. -# Code to be used in simple link tests
  7180. -lt_simple_link_test_code=" program t\n end\n"
  7181. -
  7182. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7183. -_LT_AC_SYS_COMPILER
  7184. -
  7185. -# save warnings/boilerplate of simple test code
  7186. -_LT_COMPILER_BOILERPLATE
  7187. -_LT_LINKER_BOILERPLATE
  7188. -
  7189. -# Allow CC to be a program name with arguments.
  7190. -lt_save_CC="$CC"
  7191. -CC=${F77-"f77"}
  7192. -compiler=$CC
  7193. -_LT_AC_TAGVAR(compiler, $1)=$CC
  7194. -_LT_CC_BASENAME([$compiler])
  7195. -
  7196. -AC_MSG_CHECKING([if libtool supports shared libraries])
  7197. -AC_MSG_RESULT([$can_build_shared])
  7198. -
  7199. -AC_MSG_CHECKING([whether to build shared libraries])
  7200. -test "$can_build_shared" = "no" && enable_shared=no
  7201. -
  7202. -# On AIX, shared libraries and static libraries use the same namespace, and
  7203. -# are all built from PIC.
  7204. -case $host_os in
  7205. -aix3*)
  7206. - test "$enable_shared" = yes && enable_static=no
  7207. - if test -n "$RANLIB"; then
  7208. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7209. - postinstall_cmds='$RANLIB $lib'
  7210. fi
  7211. - ;;
  7212. -aix4* | aix5*)
  7213. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7214. - test "$enable_shared" = yes && enable_static=no
  7215. - fi
  7216. - ;;
  7217. -esac
  7218. -AC_MSG_RESULT([$enable_shared])
  7219. -
  7220. -AC_MSG_CHECKING([whether to build static libraries])
  7221. -# Make sure either enable_shared or enable_static is yes.
  7222. -test "$enable_shared" = yes || enable_static=yes
  7223. -AC_MSG_RESULT([$enable_static])
  7224. -
  7225. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  7226. -_LT_AC_TAGVAR(LD, $1)="$LD"
  7227. -
  7228. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  7229. -AC_LIBTOOL_PROG_CC_C_O($1)
  7230. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  7231. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  7232. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  7233. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  7234. -
  7235. -AC_LIBTOOL_CONFIG($1)
  7236. -
  7237. -AC_LANG_POP
  7238. -CC="$lt_save_CC"
  7239. -])# AC_LIBTOOL_LANG_F77_CONFIG
  7240. -
  7241. -
  7242. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  7243. -# --------------------------
  7244. -# Ensure that the configuration vars for the C compiler are
  7245. -# suitably defined. Those variables are subsequently used by
  7246. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  7247. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  7248. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  7249. -[AC_LANG_SAVE
  7250. -
  7251. -# Source file extension for Java test sources.
  7252. -ac_ext=java
  7253. +],
  7254. +[
  7255. + if test "$GCC" = yes; then
  7256. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7257. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7258. -# Object file extension for compiled Java test sources.
  7259. -objext=o
  7260. -_LT_AC_TAGVAR(objext, $1)=$objext
  7261. + case $host_os in
  7262. + aix*)
  7263. + # All AIX code is PIC.
  7264. + if test "$host_cpu" = ia64; then
  7265. + # AIX 5 now supports IA64 processor
  7266. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7267. + fi
  7268. + ;;
  7269. -# Code to be used in simple compile tests
  7270. -lt_simple_compile_test_code="class foo {}\n"
  7271. + amigaos*)
  7272. + case $host_cpu in
  7273. + powerpc)
  7274. + # see comment about AmigaOS4 .so support
  7275. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7276. + ;;
  7277. + m68k)
  7278. + # FIXME: we need at least 68020 code to build shared libraries, but
  7279. + # adding the `-m68020' flag to GCC prevents building anything better,
  7280. + # like `-m68040'.
  7281. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7282. + ;;
  7283. + esac
  7284. + ;;
  7285. -# Code to be used in simple link tests
  7286. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  7287. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7288. + # PIC is the default for these OSes.
  7289. + ;;
  7290. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7291. -_LT_AC_SYS_COMPILER
  7292. + mingw* | cygwin* | pw32* | os2*)
  7293. + # This hack is so that the source file can tell whether it is being
  7294. + # built for inclusion in a dll (and should export symbols for example).
  7295. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7296. + # (--disable-auto-import) libraries
  7297. + m4_if([$1], [GCJ], [],
  7298. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7299. + ;;
  7300. -# save warnings/boilerplate of simple test code
  7301. -_LT_COMPILER_BOILERPLATE
  7302. -_LT_LINKER_BOILERPLATE
  7303. + darwin* | rhapsody*)
  7304. + # PIC is the default on this platform
  7305. + # Common symbols not allowed in MH_DYLIB files
  7306. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7307. + ;;
  7308. -# Allow CC to be a program name with arguments.
  7309. -lt_save_CC="$CC"
  7310. -CC=${GCJ-"gcj"}
  7311. -compiler=$CC
  7312. -_LT_AC_TAGVAR(compiler, $1)=$CC
  7313. -_LT_CC_BASENAME([$compiler])
  7314. + hpux*)
  7315. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7316. + # not for PA HP-UX.
  7317. + case $host_cpu in
  7318. + hppa*64*|ia64*)
  7319. + # +Z the default
  7320. + ;;
  7321. + *)
  7322. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7323. + ;;
  7324. + esac
  7325. + ;;
  7326. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  7327. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7328. + interix[[3-9]]*)
  7329. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7330. + # Instead, we relocate shared libraries at runtime.
  7331. + ;;
  7332. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7333. + msdosdjgpp*)
  7334. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7335. + # on systems that don't support them.
  7336. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7337. + enable_shared=no
  7338. + ;;
  7339. -## CAVEAT EMPTOR:
  7340. -## There is no encapsulation within the following macros, do not change
  7341. -## the running order or otherwise move them around unless you know exactly
  7342. -## what you are doing...
  7343. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  7344. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  7345. -AC_LIBTOOL_PROG_CC_C_O($1)
  7346. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  7347. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  7348. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  7349. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  7350. + *nto* | *qnx*)
  7351. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7352. + # it will coredump.
  7353. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7354. + ;;
  7355. -AC_LIBTOOL_CONFIG($1)
  7356. + sysv4*MP*)
  7357. + if test -d /usr/nec; then
  7358. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7359. + fi
  7360. + ;;
  7361. -AC_LANG_RESTORE
  7362. -CC="$lt_save_CC"
  7363. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  7364. + *)
  7365. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7366. + ;;
  7367. + esac
  7368. + else
  7369. + # PORTME Check for flag to pass linker flags through the system compiler.
  7370. + case $host_os in
  7371. + aix*)
  7372. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7373. + if test "$host_cpu" = ia64; then
  7374. + # AIX 5 now supports IA64 processor
  7375. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7376. + else
  7377. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7378. + fi
  7379. + ;;
  7380. + mingw* | cygwin* | pw32* | os2*)
  7381. + # This hack is so that the source file can tell whether it is being
  7382. + # built for inclusion in a dll (and should export symbols for example).
  7383. + m4_if([$1], [GCJ], [],
  7384. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7385. + ;;
  7386. -# AC_LIBTOOL_LANG_RC_CONFIG
  7387. -# -------------------------
  7388. -# Ensure that the configuration vars for the Windows resource compiler are
  7389. -# suitably defined. Those variables are subsequently used by
  7390. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  7391. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  7392. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  7393. -[AC_LANG_SAVE
  7394. + hpux9* | hpux10* | hpux11*)
  7395. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7396. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7397. + # not for PA HP-UX.
  7398. + case $host_cpu in
  7399. + hppa*64*|ia64*)
  7400. + # +Z the default
  7401. + ;;
  7402. + *)
  7403. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7404. + ;;
  7405. + esac
  7406. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7407. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7408. + ;;
  7409. -# Source file extension for RC test sources.
  7410. -ac_ext=rc
  7411. + irix5* | irix6* | nonstopux*)
  7412. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7413. + # PIC (with -KPIC) is the default.
  7414. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7415. + ;;
  7416. -# Object file extension for compiled RC test sources.
  7417. -objext=o
  7418. -_LT_AC_TAGVAR(objext, $1)=$objext
  7419. + linux* | k*bsd*-gnu)
  7420. + case $cc_basename in
  7421. + icc* | ecc* | ifort*)
  7422. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7423. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7424. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7425. + ;;
  7426. + pgcc* | pgf77* | pgf90* | pgf95*)
  7427. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7428. + # which looks to be a dead project)
  7429. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7430. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7431. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7432. + ;;
  7433. + ccc*)
  7434. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7435. + # All Alpha code is PIC.
  7436. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7437. + ;;
  7438. + xl*)
  7439. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7440. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7441. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7442. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7443. + ;;
  7444. + *)
  7445. + case `$CC -V 2>&1 | sed 5q` in
  7446. + *Sun\ C*)
  7447. + # Sun C 5.9
  7448. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7449. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7450. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7451. + ;;
  7452. + *Sun\ F*)
  7453. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7454. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7455. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7456. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7457. + ;;
  7458. + esac
  7459. + ;;
  7460. + esac
  7461. + ;;
  7462. -# Code to be used in simple compile tests
  7463. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  7464. + newsos6)
  7465. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7466. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7467. + ;;
  7468. -# Code to be used in simple link tests
  7469. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  7470. + *nto* | *qnx*)
  7471. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7472. + # it will coredump.
  7473. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7474. + ;;
  7475. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7476. -_LT_AC_SYS_COMPILER
  7477. + osf3* | osf4* | osf5*)
  7478. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7479. + # All OSF/1 code is PIC.
  7480. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7481. + ;;
  7482. -# save warnings/boilerplate of simple test code
  7483. -_LT_COMPILER_BOILERPLATE
  7484. -_LT_LINKER_BOILERPLATE
  7485. + rdos*)
  7486. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7487. + ;;
  7488. -# Allow CC to be a program name with arguments.
  7489. -lt_save_CC="$CC"
  7490. -CC=${RC-"windres"}
  7491. -compiler=$CC
  7492. -_LT_AC_TAGVAR(compiler, $1)=$CC
  7493. -_LT_CC_BASENAME([$compiler])
  7494. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7495. + solaris*)
  7496. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7497. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7498. + case $cc_basename in
  7499. + f77* | f90* | f95*)
  7500. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7501. + *)
  7502. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7503. + esac
  7504. + ;;
  7505. -AC_LIBTOOL_CONFIG($1)
  7506. + sunos4*)
  7507. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7508. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7509. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7510. + ;;
  7511. -AC_LANG_RESTORE
  7512. -CC="$lt_save_CC"
  7513. -])# AC_LIBTOOL_LANG_RC_CONFIG
  7514. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7515. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7516. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7517. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7518. + ;;
  7519. +
  7520. + sysv4*MP*)
  7521. + if test -d /usr/nec ;then
  7522. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7523. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7524. + fi
  7525. + ;;
  7526. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7527. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7528. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7529. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7530. + ;;
  7531. -# AC_LIBTOOL_CONFIG([TAGNAME])
  7532. -# ----------------------------
  7533. -# If TAGNAME is not passed, then create an initial libtool script
  7534. -# with a default configuration from the untagged config vars. Otherwise
  7535. -# add code to config.status for appending the configuration named by
  7536. -# TAGNAME from the matching tagged config vars.
  7537. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  7538. -[# The else clause should only fire when bootstrapping the
  7539. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  7540. -# with your package, and you will get complaints that there are
  7541. -# no rules to generate ltmain.sh.
  7542. -if test -f "$ltmain"; then
  7543. - # See if we are running on zsh, and set the options which allow our commands through
  7544. - # without removal of \ escapes.
  7545. - if test -n "${ZSH_VERSION+set}" ; then
  7546. - setopt NO_GLOB_SUBST
  7547. - fi
  7548. - # Now quote all the things that may contain metacharacters while being
  7549. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  7550. - # variables and quote the copies for generation of the libtool script.
  7551. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  7552. - SED SHELL STRIP \
  7553. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  7554. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  7555. - deplibs_check_method reload_flag reload_cmds need_locks \
  7556. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  7557. - lt_cv_sys_global_symbol_to_c_name_address \
  7558. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  7559. - old_postinstall_cmds old_postuninstall_cmds \
  7560. - _LT_AC_TAGVAR(compiler, $1) \
  7561. - _LT_AC_TAGVAR(CC, $1) \
  7562. - _LT_AC_TAGVAR(LD, $1) \
  7563. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  7564. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  7565. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  7566. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  7567. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  7568. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  7569. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  7570. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  7571. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  7572. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  7573. - _LT_AC_TAGVAR(predep_objects, $1) \
  7574. - _LT_AC_TAGVAR(postdep_objects, $1) \
  7575. - _LT_AC_TAGVAR(predeps, $1) \
  7576. - _LT_AC_TAGVAR(postdeps, $1) \
  7577. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  7578. - _LT_AC_TAGVAR(archive_cmds, $1) \
  7579. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  7580. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  7581. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  7582. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  7583. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  7584. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  7585. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  7586. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  7587. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  7588. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  7589. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  7590. - _LT_AC_TAGVAR(module_cmds, $1) \
  7591. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  7592. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  7593. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  7594. - _LT_AC_TAGVAR(include_expsyms, $1); do
  7595. -
  7596. - case $var in
  7597. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  7598. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  7599. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  7600. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  7601. - _LT_AC_TAGVAR(module_cmds, $1) | \
  7602. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  7603. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  7604. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  7605. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  7606. - postinstall_cmds | postuninstall_cmds | \
  7607. - old_postinstall_cmds | old_postuninstall_cmds | \
  7608. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  7609. - # Double-quote double-evaled strings.
  7610. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  7611. + unicos*)
  7612. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7613. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7614. + ;;
  7615. +
  7616. + uts4*)
  7617. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7618. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7619. ;;
  7620. +
  7621. *)
  7622. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  7623. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7624. ;;
  7625. esac
  7626. - done
  7627. -
  7628. - case $lt_echo in
  7629. - *'\[$]0 --fallback-echo"')
  7630. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7631. + fi
  7632. +])
  7633. +case $host_os in
  7634. + # For platforms which do not support PIC, -DPIC is meaningless:
  7635. + *djgpp*)
  7636. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7637. ;;
  7638. - esac
  7639. -
  7640. -ifelse([$1], [],
  7641. - [cfgfile="${ofile}T"
  7642. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7643. - $rm -f "$cfgfile"
  7644. - AC_MSG_NOTICE([creating $ofile])],
  7645. - [cfgfile="$ofile"])
  7646. -
  7647. - cat <<__EOF__ >> "$cfgfile"
  7648. -ifelse([$1], [],
  7649. -[#! $SHELL
  7650. + *)
  7651. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7652. + ;;
  7653. +esac
  7654. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7655. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7656. + [How to pass a linker flag through the compiler])
  7657. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7658. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7659. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7660. #
  7661. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7662. -# Free Software Foundation, Inc.
  7663. -#
  7664. -# This file is part of GNU Libtool:
  7665. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7666. -#
  7667. -# This program is free software; you can redistribute it and/or modify
  7668. -# it under the terms of the GNU General Public License as published by
  7669. -# the Free Software Foundation; either version 2 of the License, or
  7670. -# (at your option) any later version.
  7671. +# Check to make sure the PIC flag actually works.
  7672. #
  7673. -# This program is distributed in the hope that it will be useful, but
  7674. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7675. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7676. -# General Public License for more details.
  7677. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7678. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7679. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7680. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7681. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7682. + "" | " "*) ;;
  7683. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7684. + esac],
  7685. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7686. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7687. +fi
  7688. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7689. + [Additional compiler flags for building library objects])
  7690. +
  7691. #
  7692. -# You should have received a copy of the GNU General Public License
  7693. -# along with this program; if not, write to the Free Software
  7694. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  7695. +# Check to make sure the static flag actually works.
  7696. #
  7697. -# As a special exception to the GNU General Public License, if you
  7698. -# distribute this file as part of a program that contains a
  7699. -# configuration script generated by Autoconf, you may include it under
  7700. -# the same distribution terms that you use for the rest of that program.
  7701. -
  7702. -# A sed program that does not truncate output.
  7703. -SED=$lt_SED
  7704. -
  7705. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7706. -Xsed="$SED -e 1s/^X//"
  7707. -
  7708. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7709. -# if CDPATH is set.
  7710. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7711. -
  7712. -# The names of the tagged configurations supported by this script.
  7713. -available_tags=
  7714. -
  7715. -# ### BEGIN LIBTOOL CONFIG],
  7716. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7717. -
  7718. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7719. -
  7720. -# Shell to use when invoking shell scripts.
  7721. -SHELL=$lt_SHELL
  7722. -
  7723. -# Whether or not to build shared libraries.
  7724. -build_libtool_libs=$enable_shared
  7725. -
  7726. -# Whether or not to build static libraries.
  7727. -build_old_libs=$enable_static
  7728. -
  7729. -# Whether or not to add -lc for building shared libraries.
  7730. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7731. -
  7732. -# Whether or not to disallow shared libs when runtime libs are static
  7733. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7734. -
  7735. -# Whether or not to optimize for fast installation.
  7736. -fast_install=$enable_fast_install
  7737. -
  7738. -# The host system.
  7739. -host_alias=$host_alias
  7740. -host=$host
  7741. -host_os=$host_os
  7742. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7743. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7744. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7745. + $lt_tmp_static_flag,
  7746. + [],
  7747. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7748. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7749. + [Compiler flag to prevent dynamic linking])
  7750. +])# _LT_COMPILER_PIC
  7751. -# The build system.
  7752. -build_alias=$build_alias
  7753. -build=$build
  7754. -build_os=$build_os
  7755. -# An echo program that does not interpret backslashes.
  7756. -echo=$lt_echo
  7757. +# _LT_LINKER_SHLIBS([TAGNAME])
  7758. +# ----------------------------
  7759. +# See if the linker supports building shared libraries.
  7760. +m4_defun([_LT_LINKER_SHLIBS],
  7761. +[AC_REQUIRE([LT_PATH_LD])dnl
  7762. +AC_REQUIRE([LT_PATH_NM])dnl
  7763. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7764. +m4_require([_LT_DECL_EGREP])dnl
  7765. +m4_require([_LT_DECL_SED])dnl
  7766. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7767. +m4_require([_LT_TAG_COMPILER])dnl
  7768. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7769. +m4_if([$1], [CXX], [
  7770. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7771. + case $host_os in
  7772. + aix[[4-9]]*)
  7773. + # If we're using GNU nm, then we don't want the "-C" option.
  7774. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7775. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7776. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7777. + else
  7778. + _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'
  7779. + fi
  7780. + ;;
  7781. + pw32*)
  7782. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7783. + ;;
  7784. + cygwin* | mingw*)
  7785. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  7786. + ;;
  7787. + *)
  7788. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7789. + ;;
  7790. + esac
  7791. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7792. +], [
  7793. + runpath_var=
  7794. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7795. + _LT_TAGVAR(always_export_symbols, $1)=no
  7796. + _LT_TAGVAR(archive_cmds, $1)=
  7797. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7798. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7799. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7800. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7801. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7802. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7803. + _LT_TAGVAR(hardcode_direct, $1)=no
  7804. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7805. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7806. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7807. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7808. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7809. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7810. + _LT_TAGVAR(inherit_rpath, $1)=no
  7811. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7812. + _LT_TAGVAR(module_cmds, $1)=
  7813. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7814. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7815. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7816. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7817. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7818. + # include_expsyms should be a list of space-separated symbols to be *always*
  7819. + # included in the symbol list
  7820. + _LT_TAGVAR(include_expsyms, $1)=
  7821. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7822. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7823. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7824. + # as well as any symbol that contains `d'.
  7825. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7826. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7827. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7828. + # the symbol is explicitly referenced. Since portable code cannot
  7829. + # rely on this symbol name, it's probably fine to never include it in
  7830. + # preloaded symbol tables.
  7831. + # Exclude shared library initialization/finalization symbols.
  7832. +dnl Note also adjust exclude_expsyms for C++ above.
  7833. + extract_expsyms_cmds=
  7834. -# The archiver.
  7835. -AR=$lt_AR
  7836. -AR_FLAGS=$lt_AR_FLAGS
  7837. + case $host_os in
  7838. + cygwin* | mingw* | pw32*)
  7839. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7840. + # When not using gcc, we currently assume that we are using
  7841. + # Microsoft Visual C++.
  7842. + if test "$GCC" != yes; then
  7843. + with_gnu_ld=no
  7844. + fi
  7845. + ;;
  7846. + interix*)
  7847. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7848. + with_gnu_ld=yes
  7849. + ;;
  7850. + openbsd*)
  7851. + with_gnu_ld=no
  7852. + ;;
  7853. + esac
  7854. -# A C compiler.
  7855. -LTCC=$lt_LTCC
  7856. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7857. + if test "$with_gnu_ld" = yes; then
  7858. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7859. + wlarc='${wl}'
  7860. -# LTCC compiler flags.
  7861. -LTCFLAGS=$lt_LTCFLAGS
  7862. + # Set some defaults for GNU ld with shared library support. These
  7863. + # are reset later if shared libraries are not supported. Putting them
  7864. + # here allows them to be overridden if necessary.
  7865. + runpath_var=LD_RUN_PATH
  7866. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7867. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7868. + # ancient GNU ld didn't support --whole-archive et. al.
  7869. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7870. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7871. + else
  7872. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7873. + fi
  7874. + supports_anon_versioning=no
  7875. + case `$LD -v 2>&1` in
  7876. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7877. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7878. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7879. + *\ 2.11.*) ;; # other 2.11 versions
  7880. + *) supports_anon_versioning=yes ;;
  7881. + esac
  7882. -# A language-specific compiler.
  7883. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7884. + # See if GNU ld supports shared libraries.
  7885. + case $host_os in
  7886. + aix[[3-9]]*)
  7887. + # On AIX/PPC, the GNU linker is very broken
  7888. + if test "$host_cpu" != ia64; then
  7889. + _LT_TAGVAR(ld_shlibs, $1)=no
  7890. + cat <<_LT_EOF 1>&2
  7891. -# Is the compiler the GNU C compiler?
  7892. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7893. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7894. +*** to be unable to reliably create shared libraries on AIX.
  7895. +*** Therefore, libtool is disabling shared libraries support. If you
  7896. +*** really care for shared libraries, you may want to modify your PATH
  7897. +*** so that a non-GNU linker is found, and then restart.
  7898. -# An ERE matcher.
  7899. -EGREP=$lt_EGREP
  7900. +_LT_EOF
  7901. + fi
  7902. + ;;
  7903. -# The linker used to build libraries.
  7904. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7905. + amigaos*)
  7906. + case $host_cpu in
  7907. + powerpc)
  7908. + # see comment about AmigaOS4 .so support
  7909. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7910. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7911. + ;;
  7912. + m68k)
  7913. + _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)'
  7914. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7915. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7916. + ;;
  7917. + esac
  7918. + ;;
  7919. -# Whether we need hard or soft links.
  7920. -LN_S=$lt_LN_S
  7921. + beos*)
  7922. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7923. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7924. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7925. + # support --undefined. This deserves some investigation. FIXME
  7926. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7927. + else
  7928. + _LT_TAGVAR(ld_shlibs, $1)=no
  7929. + fi
  7930. + ;;
  7931. -# A BSD-compatible nm program.
  7932. -NM=$lt_NM
  7933. + cygwin* | mingw* | pw32*)
  7934. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7935. + # as there is no search path for DLLs.
  7936. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7937. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7938. + _LT_TAGVAR(always_export_symbols, $1)=no
  7939. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7940. + _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'
  7941. -# A symbol stripping program
  7942. -STRIP=$lt_STRIP
  7943. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7944. + _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'
  7945. + # If the export-symbols file already is a .def file (1st line
  7946. + # is EXPORTS), use it as is; otherwise, prepend...
  7947. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7948. + cp $export_symbols $output_objdir/$soname.def;
  7949. + else
  7950. + echo EXPORTS > $output_objdir/$soname.def;
  7951. + cat $export_symbols >> $output_objdir/$soname.def;
  7952. + fi~
  7953. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7954. + else
  7955. + _LT_TAGVAR(ld_shlibs, $1)=no
  7956. + fi
  7957. + ;;
  7958. -# Used to examine libraries when file_magic_cmd begins "file"
  7959. -MAGIC_CMD=$MAGIC_CMD
  7960. + interix[[3-9]]*)
  7961. + _LT_TAGVAR(hardcode_direct, $1)=no
  7962. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7963. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7964. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7965. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7966. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7967. + # default) and relocated if they conflict, which is a slow very memory
  7968. + # consuming and fragmenting process. To avoid this, we pick a random,
  7969. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7970. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7971. + _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'
  7972. + _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'
  7973. + ;;
  7974. -# Used on cygwin: DLL creation program.
  7975. -DLLTOOL="$DLLTOOL"
  7976. + gnu* | linux* | tpf* | k*bsd*-gnu)
  7977. + tmp_diet=no
  7978. + if test "$host_os" = linux-dietlibc; then
  7979. + case $cc_basename in
  7980. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7981. + esac
  7982. + fi
  7983. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7984. + && test "$tmp_diet" = no
  7985. + then
  7986. + tmp_addflag=
  7987. + tmp_sharedflag='-shared'
  7988. + case $cc_basename,$host_cpu in
  7989. + pgcc*) # Portland Group C compiler
  7990. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7991. + tmp_addflag=' $pic_flag'
  7992. + ;;
  7993. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7994. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7995. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7996. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7997. + tmp_addflag=' -i_dynamic' ;;
  7998. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7999. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  8000. + ifc* | ifort*) # Intel Fortran compiler
  8001. + tmp_addflag=' -nofor_main' ;;
  8002. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8003. + tmp_sharedflag='-qmkshrobj'
  8004. + tmp_addflag= ;;
  8005. + esac
  8006. + case `$CC -V 2>&1 | sed 5q` in
  8007. + *Sun\ C*) # Sun C 5.9
  8008. + _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8009. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8010. + tmp_sharedflag='-G' ;;
  8011. + *Sun\ F*) # Sun Fortran 8.3
  8012. + tmp_sharedflag='-G' ;;
  8013. + esac
  8014. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8015. -# Used on cygwin: object dumper.
  8016. -OBJDUMP="$OBJDUMP"
  8017. + if test "x$supports_anon_versioning" = xyes; then
  8018. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8019. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8020. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8021. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8022. + fi
  8023. -# Used on cygwin: assembler.
  8024. -AS="$AS"
  8025. + case $cc_basename in
  8026. + xlf*)
  8027. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8028. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  8029. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8030. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8031. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8032. + if test "x$supports_anon_versioning" = xyes; then
  8033. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8034. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8035. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8036. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8037. + fi
  8038. + ;;
  8039. + esac
  8040. + else
  8041. + _LT_TAGVAR(ld_shlibs, $1)=no
  8042. + fi
  8043. + ;;
  8044. -# The name of the directory that contains temporary libtool files.
  8045. -objdir=$objdir
  8046. + netbsd*)
  8047. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8048. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8049. + wlarc=
  8050. + else
  8051. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8052. + _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'
  8053. + fi
  8054. + ;;
  8055. -# How to create reloadable object files.
  8056. -reload_flag=$lt_reload_flag
  8057. -reload_cmds=$lt_reload_cmds
  8058. + solaris*)
  8059. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8060. + _LT_TAGVAR(ld_shlibs, $1)=no
  8061. + cat <<_LT_EOF 1>&2
  8062. -# How to pass a linker flag through the compiler.
  8063. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  8064. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8065. +*** create shared libraries on Solaris systems. Therefore, libtool
  8066. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8067. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8068. +*** your PATH or compiler configuration so that the native linker is
  8069. +*** used, and then restart.
  8070. -# Object file suffix (normally "o").
  8071. -objext="$ac_objext"
  8072. +_LT_EOF
  8073. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8074. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8075. + _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'
  8076. + else
  8077. + _LT_TAGVAR(ld_shlibs, $1)=no
  8078. + fi
  8079. + ;;
  8080. -# Old archive suffix (normally "a").
  8081. -libext="$libext"
  8082. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8083. + case `$LD -v 2>&1` in
  8084. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8085. + _LT_TAGVAR(ld_shlibs, $1)=no
  8086. + cat <<_LT_EOF 1>&2
  8087. -# Shared library suffix (normally ".so").
  8088. -shrext_cmds='$shrext_cmds'
  8089. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8090. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8091. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8092. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8093. +*** your PATH or compiler configuration so that the native linker is
  8094. +*** used, and then restart.
  8095. -# Executable file suffix (normally "").
  8096. -exeext="$exeext"
  8097. +_LT_EOF
  8098. + ;;
  8099. + *)
  8100. + # For security reasons, it is highly recommended that you always
  8101. + # use absolute paths for naming shared libraries, and exclude the
  8102. + # DT_RUNPATH tag from executables and libraries. But doing so
  8103. + # requires that you compile everything twice, which is a pain.
  8104. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8105. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8106. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8107. + _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'
  8108. + else
  8109. + _LT_TAGVAR(ld_shlibs, $1)=no
  8110. + fi
  8111. + ;;
  8112. + esac
  8113. + ;;
  8114. -# Additional compiler flags for building library objects.
  8115. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  8116. -pic_mode=$pic_mode
  8117. + sunos4*)
  8118. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8119. + wlarc=
  8120. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8121. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8122. + ;;
  8123. -# What is the maximum length of a command?
  8124. -max_cmd_len=$lt_cv_sys_max_cmd_len
  8125. + *)
  8126. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8127. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8128. + _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'
  8129. + else
  8130. + _LT_TAGVAR(ld_shlibs, $1)=no
  8131. + fi
  8132. + ;;
  8133. + esac
  8134. -# Does compiler simultaneously support -c and -o options?
  8135. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  8136. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8137. + runpath_var=
  8138. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8139. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8140. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8141. + fi
  8142. + else
  8143. + # PORTME fill in a description of your system's linker (not GNU ld)
  8144. + case $host_os in
  8145. + aix3*)
  8146. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8147. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8148. + _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'
  8149. + # Note: this linker hardcodes the directories in LIBPATH if there
  8150. + # are no directories specified by -L.
  8151. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8152. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8153. + # Neither direct hardcoding nor static linking is supported with a
  8154. + # broken collect2.
  8155. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8156. + fi
  8157. + ;;
  8158. -# Must we lock files when doing compilation?
  8159. -need_locks=$lt_need_locks
  8160. + aix[[4-9]]*)
  8161. + if test "$host_cpu" = ia64; then
  8162. + # On IA64, the linker does run time linking by default, so we don't
  8163. + # have to do anything special.
  8164. + aix_use_runtimelinking=no
  8165. + exp_sym_flag='-Bexport'
  8166. + no_entry_flag=""
  8167. + else
  8168. + # If we're using GNU nm, then we don't want the "-C" option.
  8169. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8170. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8171. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8172. + else
  8173. + _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'
  8174. + fi
  8175. + aix_use_runtimelinking=no
  8176. -# Do we need the lib prefix for modules?
  8177. -need_lib_prefix=$need_lib_prefix
  8178. + # Test if we are trying to use run time linking or normal
  8179. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8180. + # need to do runtime linking.
  8181. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8182. + for ld_flag in $LDFLAGS; do
  8183. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8184. + aix_use_runtimelinking=yes
  8185. + break
  8186. + fi
  8187. + done
  8188. + ;;
  8189. + esac
  8190. -# Do we need a version for libraries?
  8191. -need_version=$need_version
  8192. + exp_sym_flag='-bexport'
  8193. + no_entry_flag='-bnoentry'
  8194. + fi
  8195. -# Whether dlopen is supported.
  8196. -dlopen_support=$enable_dlopen
  8197. + # When large executables or shared objects are built, AIX ld can
  8198. + # have problems creating the table of contents. If linking a library
  8199. + # or program results in "error TOC overflow" add -mminimal-toc to
  8200. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8201. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8202. -# Whether dlopen of programs is supported.
  8203. -dlopen_self=$enable_dlopen_self
  8204. + _LT_TAGVAR(archive_cmds, $1)=''
  8205. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8206. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8207. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8208. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8209. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8210. -# Whether dlopen of statically linked programs is supported.
  8211. -dlopen_self_static=$enable_dlopen_self_static
  8212. + if test "$GCC" = yes; then
  8213. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8214. + # We only want to do this on AIX 4.2 and lower, the check
  8215. + # below for broken collect2 doesn't work under 4.3+
  8216. + collect2name=`${CC} -print-prog-name=collect2`
  8217. + if test -f "$collect2name" &&
  8218. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8219. + then
  8220. + # We have reworked collect2
  8221. + :
  8222. + else
  8223. + # We have old collect2
  8224. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8225. + # It fails to find uninstalled libraries when the uninstalled
  8226. + # path is not listed in the libpath. Setting hardcode_minus_L
  8227. + # to unsupported forces relinking
  8228. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8229. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8230. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8231. + fi
  8232. + ;;
  8233. + esac
  8234. + shared_flag='-shared'
  8235. + if test "$aix_use_runtimelinking" = yes; then
  8236. + shared_flag="$shared_flag "'${wl}-G'
  8237. + fi
  8238. + else
  8239. + # not using gcc
  8240. + if test "$host_cpu" = ia64; then
  8241. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8242. + # chokes on -Wl,-G. The following line is correct:
  8243. + shared_flag='-G'
  8244. + else
  8245. + if test "$aix_use_runtimelinking" = yes; then
  8246. + shared_flag='${wl}-G'
  8247. + else
  8248. + shared_flag='${wl}-bM:SRE'
  8249. + fi
  8250. + fi
  8251. + fi
  8252. -# Compiler flag to prevent dynamic linking.
  8253. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  8254. + # It seems that -bexpall does not export symbols beginning with
  8255. + # underscore (_), so it is better to generate a list of symbols to export.
  8256. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8257. + if test "$aix_use_runtimelinking" = yes; then
  8258. + # Warning - without using the other runtime loading flags (-brtl),
  8259. + # -berok will link without error, but may produce a broken library.
  8260. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8261. + # Determine the default libpath from the value encoded in an
  8262. + # empty executable.
  8263. + _LT_SYS_MODULE_PATH_AIX
  8264. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8265. + _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8266. + else
  8267. + if test "$host_cpu" = ia64; then
  8268. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8269. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8270. + _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"
  8271. + else
  8272. + # Determine the default libpath from the value encoded in an
  8273. + # empty executable.
  8274. + _LT_SYS_MODULE_PATH_AIX
  8275. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8276. + # Warning - without using the other run time loading flags,
  8277. + # -berok will link without error, but may produce a broken library.
  8278. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8279. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8280. + # Exported symbols can be pulled into shared objects from archives
  8281. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8282. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8283. + # This is similar to how AIX traditionally builds its shared libraries.
  8284. + _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'
  8285. + fi
  8286. + fi
  8287. + ;;
  8288. -# Compiler flag to turn off builtin functions.
  8289. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  8290. + amigaos*)
  8291. + case $host_cpu in
  8292. + powerpc)
  8293. + # see comment about AmigaOS4 .so support
  8294. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8295. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8296. + ;;
  8297. + m68k)
  8298. + _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)'
  8299. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8300. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8301. + ;;
  8302. + esac
  8303. + ;;
  8304. -# Compiler flag to allow reflexive dlopens.
  8305. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  8306. + bsdi[[45]]*)
  8307. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8308. + ;;
  8309. -# Compiler flag to generate shared objects directly from archives.
  8310. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  8311. + cygwin* | mingw* | pw32*)
  8312. + # When not using gcc, we currently assume that we are using
  8313. + # Microsoft Visual C++.
  8314. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8315. + # no search path for DLLs.
  8316. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8317. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8318. + # Tell ltmain to make .lib files, not .a files.
  8319. + libext=lib
  8320. + # Tell ltmain to make .dll files, not .so files.
  8321. + shrext_cmds=".dll"
  8322. + # FIXME: Setting linknames here is a bad hack.
  8323. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8324. + # The linker will automatically build a .lib file if we build a DLL.
  8325. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8326. + # FIXME: Should let the user specify the lib program.
  8327. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8328. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8329. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8330. + ;;
  8331. -# Compiler flag to generate thread-safe objects.
  8332. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  8333. + darwin* | rhapsody*)
  8334. + _LT_DARWIN_LINKER_FEATURES($1)
  8335. + ;;
  8336. -# Library versioning type.
  8337. -version_type=$version_type
  8338. + dgux*)
  8339. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8340. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8341. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8342. + ;;
  8343. -# Format of library name prefix.
  8344. -libname_spec=$lt_libname_spec
  8345. + freebsd1*)
  8346. + _LT_TAGVAR(ld_shlibs, $1)=no
  8347. + ;;
  8348. -# List of archive names. First name is the real one, the rest are links.
  8349. -# The last name is the one that the linker finds with -lNAME.
  8350. -library_names_spec=$lt_library_names_spec
  8351. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8352. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8353. + # does not break anything, and helps significantly (at the cost of a little
  8354. + # extra space).
  8355. + freebsd2.2*)
  8356. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8357. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8358. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8359. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8360. + ;;
  8361. -# The coded name of the library, if different from the real name.
  8362. -soname_spec=$lt_soname_spec
  8363. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8364. + freebsd2*)
  8365. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8366. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8367. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8368. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8369. + ;;
  8370. -# Commands used to build and install an old-style archive.
  8371. -RANLIB=$lt_RANLIB
  8372. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  8373. -old_postinstall_cmds=$lt_old_postinstall_cmds
  8374. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8375. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8376. + freebsd* | dragonfly*)
  8377. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8378. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8379. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8380. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8381. + ;;
  8382. -# Create an old-style archive from a shared archive.
  8383. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  8384. + hpux9*)
  8385. + if test "$GCC" = yes; then
  8386. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8387. + else
  8388. + _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'
  8389. + fi
  8390. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8391. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8392. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8393. -# Create a temporary old-style archive to link instead of a shared archive.
  8394. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  8395. + # hardcode_minus_L: Not really in the search PATH,
  8396. + # but as the default location of the library.
  8397. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8398. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8399. + ;;
  8400. -# Commands used to build and install a shared archive.
  8401. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  8402. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  8403. -postinstall_cmds=$lt_postinstall_cmds
  8404. -postuninstall_cmds=$lt_postuninstall_cmds
  8405. + hpux10*)
  8406. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8407. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8408. + else
  8409. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8410. + fi
  8411. + if test "$with_gnu_ld" = no; then
  8412. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8413. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8414. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8415. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8416. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8417. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8418. + # hardcode_minus_L: Not really in the search PATH,
  8419. + # but as the default location of the library.
  8420. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8421. + fi
  8422. + ;;
  8423. -# Commands used to build a loadable module (assumed same as above if empty)
  8424. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  8425. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  8426. + hpux11*)
  8427. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8428. + case $host_cpu in
  8429. + hppa*64*)
  8430. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8431. + ;;
  8432. + ia64*)
  8433. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8434. + ;;
  8435. + *)
  8436. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8437. + ;;
  8438. + esac
  8439. + else
  8440. + case $host_cpu in
  8441. + hppa*64*)
  8442. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8443. + ;;
  8444. + ia64*)
  8445. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8446. + ;;
  8447. + *)
  8448. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8449. + ;;
  8450. + esac
  8451. + fi
  8452. + if test "$with_gnu_ld" = no; then
  8453. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8454. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8455. -# Commands to strip libraries.
  8456. -old_striplib=$lt_old_striplib
  8457. -striplib=$lt_striplib
  8458. + case $host_cpu in
  8459. + hppa*64*|ia64*)
  8460. + _LT_TAGVAR(hardcode_direct, $1)=no
  8461. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8462. + ;;
  8463. + *)
  8464. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8465. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8466. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8467. -# Dependencies to place before the objects being linked to create a
  8468. -# shared library.
  8469. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  8470. + # hardcode_minus_L: Not really in the search PATH,
  8471. + # but as the default location of the library.
  8472. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8473. + ;;
  8474. + esac
  8475. + fi
  8476. + ;;
  8477. -# Dependencies to place after the objects being linked to create a
  8478. -# shared library.
  8479. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  8480. + irix5* | irix6* | nonstopux*)
  8481. + if test "$GCC" = yes; then
  8482. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8483. + # Try to use the -exported_symbol ld option, if it does not
  8484. + # work, assume that -exports_file does not work either and
  8485. + # implicitly export all symbols.
  8486. + save_LDFLAGS="$LDFLAGS"
  8487. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8488. + AC_LINK_IFELSE(int foo(void) {},
  8489. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8490. + )
  8491. + LDFLAGS="$save_LDFLAGS"
  8492. + else
  8493. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8494. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8495. + fi
  8496. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8497. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8498. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8499. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8500. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8501. + ;;
  8502. -# Dependencies to place before the objects being linked to create a
  8503. -# shared library.
  8504. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  8505. + netbsd*)
  8506. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8507. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8508. + else
  8509. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8510. + fi
  8511. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8512. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8513. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8514. + ;;
  8515. -# Dependencies to place after the objects being linked to create a
  8516. -# shared library.
  8517. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  8518. + newsos6)
  8519. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8520. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8521. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8522. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8523. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8524. + ;;
  8525. -# The library search path used internally by the compiler when linking
  8526. -# a shared library.
  8527. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  8528. + *nto* | *qnx*)
  8529. + ;;
  8530. -# Method to check whether dependent libraries are shared objects.
  8531. -deplibs_check_method=$lt_deplibs_check_method
  8532. + openbsd*)
  8533. + if test -f /usr/libexec/ld.so; then
  8534. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8535. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8536. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8537. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8538. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8539. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8540. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8541. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8542. + else
  8543. + case $host_os in
  8544. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8545. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8546. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8547. + ;;
  8548. + *)
  8549. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8550. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8551. + ;;
  8552. + esac
  8553. + fi
  8554. + else
  8555. + _LT_TAGVAR(ld_shlibs, $1)=no
  8556. + fi
  8557. + ;;
  8558. -# Command to use when deplibs_check_method == file_magic.
  8559. -file_magic_cmd=$lt_file_magic_cmd
  8560. + os2*)
  8561. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8562. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8563. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8564. + _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'
  8565. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8566. + ;;
  8567. -# Flag that allows shared libraries with undefined symbols to be built.
  8568. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8569. + osf3*)
  8570. + if test "$GCC" = yes; then
  8571. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8572. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8573. + else
  8574. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8575. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8576. + fi
  8577. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8578. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8579. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8580. + ;;
  8581. -# Flag that forces no undefined symbols.
  8582. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  8583. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8584. + if test "$GCC" = yes; then
  8585. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8586. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8587. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8588. + else
  8589. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8590. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8591. + _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~
  8592. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8593. -# Commands used to finish a libtool library installation in a directory.
  8594. -finish_cmds=$lt_finish_cmds
  8595. + # Both c and cxx compiler support -rpath directly
  8596. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8597. + fi
  8598. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8599. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8600. + ;;
  8601. -# Same as above, but a single script fragment to be evaled but not shown.
  8602. -finish_eval=$lt_finish_eval
  8603. + solaris*)
  8604. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8605. + if test "$GCC" = yes; then
  8606. + wlarc='${wl}'
  8607. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8608. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8609. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8610. + else
  8611. + case `$CC -V 2>&1` in
  8612. + *"Compilers 5.0"*)
  8613. + wlarc=''
  8614. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8615. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8616. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8617. + ;;
  8618. + *)
  8619. + wlarc='${wl}'
  8620. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8621. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8622. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8623. + ;;
  8624. + esac
  8625. + fi
  8626. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8627. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8628. + case $host_os in
  8629. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8630. + *)
  8631. + # The compiler driver will combine and reorder linker options,
  8632. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8633. + # but is careful enough not to reorder.
  8634. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8635. + if test "$GCC" = yes; then
  8636. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8637. + else
  8638. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8639. + fi
  8640. + ;;
  8641. + esac
  8642. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8643. + ;;
  8644. -# Take the output of nm and produce a listing of raw symbols and C names.
  8645. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  8646. + sunos4*)
  8647. + if test "x$host_vendor" = xsequent; then
  8648. + # Use $CC to link under sequent, because it throws in some extra .o
  8649. + # files that make .init and .fini sections work.
  8650. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8651. + else
  8652. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8653. + fi
  8654. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8655. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8656. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8657. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8658. + ;;
  8659. -# Transform the output of nm in a proper C declaration
  8660. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8661. + sysv4)
  8662. + case $host_vendor in
  8663. + sni)
  8664. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8665. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8666. + ;;
  8667. + siemens)
  8668. + ## LD is ld it makes a PLAMLIB
  8669. + ## CC just makes a GrossModule.
  8670. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8671. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8672. + _LT_TAGVAR(hardcode_direct, $1)=no
  8673. + ;;
  8674. + motorola)
  8675. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8676. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8677. + ;;
  8678. + esac
  8679. + runpath_var='LD_RUN_PATH'
  8680. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8681. + ;;
  8682. -# Transform the output of nm in a C name address pair
  8683. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8684. + sysv4.3*)
  8685. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8686. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8687. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8688. + ;;
  8689. -# This is the shared library runtime path variable.
  8690. -runpath_var=$runpath_var
  8691. + sysv4*MP*)
  8692. + if test -d /usr/nec; then
  8693. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8694. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8695. + runpath_var=LD_RUN_PATH
  8696. + hardcode_runpath_var=yes
  8697. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8698. + fi
  8699. + ;;
  8700. -# This is the shared library path variable.
  8701. -shlibpath_var=$shlibpath_var
  8702. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8703. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8704. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8705. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8706. + runpath_var='LD_RUN_PATH'
  8707. -# Is shlibpath searched before the hard-coded library search path?
  8708. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8709. + if test "$GCC" = yes; then
  8710. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8711. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8712. + else
  8713. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8714. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. + fi
  8716. + ;;
  8717. -# How to hardcode a shared library path into an executable.
  8718. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8719. + sysv5* | sco3.2v5* | sco5v6*)
  8720. + # Note: We can NOT use -z defs as we might desire, because we do not
  8721. + # link with -lc, and that would cause any symbols used from libc to
  8722. + # always be unresolved, which means just about no library would
  8723. + # ever link correctly. If we're not using GNU ld we use -z text
  8724. + # though, which does catch some bad symbols but isn't as heavy-handed
  8725. + # as -z defs.
  8726. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8727. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8728. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8729. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8730. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8731. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8732. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8733. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8734. + runpath_var='LD_RUN_PATH'
  8735. -# Whether we should hardcode library paths into libraries.
  8736. -hardcode_into_libs=$hardcode_into_libs
  8737. + if test "$GCC" = yes; then
  8738. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8739. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8740. + else
  8741. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8742. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8743. + fi
  8744. + ;;
  8745. -# Flag to hardcode \$libdir into a binary during linking.
  8746. -# This must work even if \$libdir does not exist.
  8747. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8748. + uts4*)
  8749. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8750. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8751. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8752. + ;;
  8753. -# If ld is used when linking, flag to hardcode \$libdir into
  8754. -# a binary during linking. This must work even if \$libdir does
  8755. -# not exist.
  8756. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8757. + *)
  8758. + _LT_TAGVAR(ld_shlibs, $1)=no
  8759. + ;;
  8760. + esac
  8761. -# Whether we need a single -rpath flag with a separated argument.
  8762. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8763. + if test x$host_vendor = xsni; then
  8764. + case $host in
  8765. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8766. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8767. + ;;
  8768. + esac
  8769. + fi
  8770. + fi
  8771. +])
  8772. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8773. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8774. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8775. -# resulting binary.
  8776. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8777. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8778. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8779. -# resulting binary.
  8780. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8781. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8782. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8783. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8784. + [The commands to extract the exported symbol list from a shared archive])
  8785. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8786. -# the resulting binary.
  8787. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8788. +#
  8789. +# Do we need to explicitly link libc?
  8790. +#
  8791. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8792. +x|xyes)
  8793. + # Assume -lc should be added
  8794. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8795. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8796. -# and all subsequent libraries and executables linked against it.
  8797. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8798. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8799. + case $_LT_TAGVAR(archive_cmds, $1) in
  8800. + *'~'*)
  8801. + # FIXME: we may have to deal with multi-command sequences.
  8802. + ;;
  8803. + '$CC '*)
  8804. + # Test whether the compiler implicitly links with -lc since on some
  8805. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8806. + # to ld, don't add -lc before -lgcc.
  8807. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8808. + $RM conftest*
  8809. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8810. -# Variables whose values should be saved in libtool wrapper scripts and
  8811. -# restored at relink time.
  8812. -variables_saved_for_relink="$variables_saved_for_relink"
  8813. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8814. + soname=conftest
  8815. + lib=conftest
  8816. + libobjs=conftest.$ac_objext
  8817. + deplibs=
  8818. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8819. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8820. + compiler_flags=-v
  8821. + linker_flags=-v
  8822. + verstring=
  8823. + output_objdir=.
  8824. + libname=conftest
  8825. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8826. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8827. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8828. + then
  8829. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8830. + else
  8831. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8832. + fi
  8833. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8834. + else
  8835. + cat conftest.err 1>&5
  8836. + fi
  8837. + $RM conftest*
  8838. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8839. + ;;
  8840. + esac
  8841. + fi
  8842. + ;;
  8843. +esac
  8844. -# Whether libtool must link a program against all its dependency libraries.
  8845. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8846. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8847. + [Whether or not to add -lc for building shared libraries])
  8848. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8849. + [enable_shared_with_static_runtimes], [0],
  8850. + [Whether or not to disallow shared libs when runtime libs are static])
  8851. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8852. + [Compiler flag to allow reflexive dlopens])
  8853. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8854. + [Compiler flag to generate shared objects directly from archives])
  8855. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8856. + [Whether the compiler copes with passing no objects directly])
  8857. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8858. + [Create an old-style archive from a shared archive])
  8859. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8860. + [Create a temporary old-style archive to link instead of a shared archive])
  8861. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8862. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8863. +_LT_TAGDECL([], [module_cmds], [2],
  8864. + [Commands used to build a loadable module if different from building
  8865. + a shared archive.])
  8866. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8867. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8868. + [Whether we are building with GNU ld or not])
  8869. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8870. + [Flag that allows shared libraries with undefined symbols to be built])
  8871. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8872. + [Flag that enforces no undefined symbols])
  8873. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8874. + [Flag to hardcode $libdir into a binary during linking.
  8875. + This must work even if $libdir does not exist])
  8876. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8877. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8878. + during linking. This must work even if $libdir does not exist]])
  8879. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  8880. + [Whether we need a single "-rpath" flag with a separated argument])
  8881. +_LT_TAGDECL([], [hardcode_direct], [0],
  8882. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8883. + DIR into the resulting binary])
  8884. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  8885. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8886. + DIR into the resulting binary and the resulting library dependency is
  8887. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  8888. + library is relocated])
  8889. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  8890. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  8891. + into the resulting binary])
  8892. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  8893. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  8894. + into the resulting binary])
  8895. +_LT_TAGDECL([], [hardcode_automatic], [0],
  8896. + [Set to "yes" if building a shared library automatically hardcodes DIR
  8897. + into the library and all subsequent libraries and executables linked
  8898. + against it])
  8899. +_LT_TAGDECL([], [inherit_rpath], [0],
  8900. + [Set to yes if linker adds runtime paths of dependent libraries
  8901. + to runtime path list])
  8902. +_LT_TAGDECL([], [link_all_deplibs], [0],
  8903. + [Whether libtool must link a program against all its dependency libraries])
  8904. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  8905. + [Fix the shell variable $srcfile for the compiler])
  8906. +_LT_TAGDECL([], [always_export_symbols], [0],
  8907. + [Set to "yes" if exported symbols are required])
  8908. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  8909. + [The commands to list exported symbols])
  8910. +_LT_TAGDECL([], [exclude_expsyms], [1],
  8911. + [Symbols that should not be listed in the preloaded symbols])
  8912. +_LT_TAGDECL([], [include_expsyms], [1],
  8913. + [Symbols that must always be exported])
  8914. +_LT_TAGDECL([], [prelink_cmds], [2],
  8915. + [Commands necessary for linking programs (against libraries) with templates])
  8916. +_LT_TAGDECL([], [file_list_spec], [1],
  8917. + [Specify filename containing input files])
  8918. +dnl FIXME: Not yet implemented
  8919. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  8920. +dnl [Compiler flag to generate thread safe objects])
  8921. +])# _LT_LINKER_SHLIBS
  8922. -# Compile-time system search path for libraries
  8923. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8924. -# Run-time system search path for libraries
  8925. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8926. +# _LT_LANG_C_CONFIG([TAG])
  8927. +# ------------------------
  8928. +# Ensure that the configuration variables for a C compiler are suitably
  8929. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8930. +# the compiler configuration to `libtool'.
  8931. +m4_defun([_LT_LANG_C_CONFIG],
  8932. +[m4_require([_LT_DECL_EGREP])dnl
  8933. +lt_save_CC="$CC"
  8934. +AC_LANG_PUSH(C)
  8935. -# Fix the shell variable \$srcfile for the compiler.
  8936. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8937. +# Source file extension for C test sources.
  8938. +ac_ext=c
  8939. -# Set to yes if exported symbols are required.
  8940. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8941. +# Object file extension for compiled C test sources.
  8942. +objext=o
  8943. +_LT_TAGVAR(objext, $1)=$objext
  8944. -# The commands to list exported symbols.
  8945. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8946. +# Code to be used in simple compile tests
  8947. +lt_simple_compile_test_code="int some_variable = 0;"
  8948. -# The commands to extract the exported symbol list from a shared archive.
  8949. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8950. +# Code to be used in simple link tests
  8951. +lt_simple_link_test_code='int main(){return(0);}'
  8952. -# Symbols that should not be listed in the preloaded symbols.
  8953. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8954. +_LT_TAG_COMPILER
  8955. +# Save the default compiler, since it gets overwritten when the other
  8956. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8957. +compiler_DEFAULT=$CC
  8958. -# Symbols that must always be exported.
  8959. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8960. +# save warnings/boilerplate of simple test code
  8961. +_LT_COMPILER_BOILERPLATE
  8962. +_LT_LINKER_BOILERPLATE
  8963. -ifelse([$1],[],
  8964. -[# ### END LIBTOOL CONFIG],
  8965. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8966. +## CAVEAT EMPTOR:
  8967. +## There is no encapsulation within the following macros, do not change
  8968. +## the running order or otherwise move them around unless you know exactly
  8969. +## what you are doing...
  8970. +if test -n "$compiler"; then
  8971. + _LT_COMPILER_NO_RTTI($1)
  8972. + _LT_COMPILER_PIC($1)
  8973. + _LT_COMPILER_C_O($1)
  8974. + _LT_COMPILER_FILE_LOCKS($1)
  8975. + _LT_LINKER_SHLIBS($1)
  8976. + _LT_SYS_DYNAMIC_LINKER($1)
  8977. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8978. + LT_SYS_DLOPEN_SELF
  8979. + _LT_CMD_STRIPLIB
  8980. +
  8981. + # Report which library types will actually be built
  8982. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8983. + AC_MSG_RESULT([$can_build_shared])
  8984. -__EOF__
  8985. + AC_MSG_CHECKING([whether to build shared libraries])
  8986. + test "$can_build_shared" = "no" && enable_shared=no
  8987. -ifelse([$1],[], [
  8988. + # On AIX, shared libraries and static libraries use the same namespace, and
  8989. + # are all built from PIC.
  8990. case $host_os in
  8991. aix3*)
  8992. - cat <<\EOF >> "$cfgfile"
  8993. + test "$enable_shared" = yes && enable_static=no
  8994. + if test -n "$RANLIB"; then
  8995. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8996. + postinstall_cmds='$RANLIB $lib'
  8997. + fi
  8998. + ;;
  8999. -# AIX sometimes has problems with the GCC collect2 program. For some
  9000. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  9001. -# vanish in a puff of smoke.
  9002. -if test "X${COLLECT_NAMES+set}" != Xset; then
  9003. - COLLECT_NAMES=
  9004. - export COLLECT_NAMES
  9005. -fi
  9006. -EOF
  9007. + aix[[4-9]]*)
  9008. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9009. + test "$enable_shared" = yes && enable_static=no
  9010. + fi
  9011. ;;
  9012. esac
  9013. + AC_MSG_RESULT([$enable_shared])
  9014. - # We use sed instead of cat because bash on DJGPP gets confused if
  9015. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9016. - # text mode, it properly converts lines to CR/LF. This bash problem
  9017. - # is reportedly fixed, but why not run on old versions too?
  9018. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  9019. + AC_MSG_CHECKING([whether to build static libraries])
  9020. + # Make sure either enable_shared or enable_static is yes.
  9021. + test "$enable_shared" = yes || enable_static=yes
  9022. + AC_MSG_RESULT([$enable_static])
  9023. - mv -f "$cfgfile" "$ofile" || \
  9024. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  9025. - chmod +x "$ofile"
  9026. -])
  9027. -else
  9028. - # If there is no Makefile yet, we rely on a make rule to execute
  9029. - # `config.status --recheck' to rerun these tests and create the
  9030. - # libtool script then.
  9031. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  9032. - if test -f "$ltmain_in"; then
  9033. - test -f Makefile && make "$ltmain"
  9034. - fi
  9035. + _LT_CONFIG($1)
  9036. fi
  9037. -])# AC_LIBTOOL_CONFIG
  9038. -
  9039. -
  9040. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  9041. -# -------------------------------------------
  9042. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  9043. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  9044. -
  9045. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9046. +AC_LANG_POP
  9047. +CC="$lt_save_CC"
  9048. +])# _LT_LANG_C_CONFIG
  9049. -if test "$GCC" = yes; then
  9050. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9051. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  9052. - lt_cv_prog_compiler_rtti_exceptions,
  9053. - [-fno-rtti -fno-exceptions], [],
  9054. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  9055. +# _LT_PROG_CXX
  9056. +# ------------
  9057. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9058. +# compiler, we have our own version here.
  9059. +m4_defun([_LT_PROG_CXX],
  9060. +[
  9061. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9062. +AC_PROG_CXX
  9063. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9064. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9065. + (test "X$CXX" != "Xg++"))) ; then
  9066. + AC_PROG_CXXCPP
  9067. +else
  9068. + _lt_caught_CXX_error=yes
  9069. fi
  9070. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  9071. +popdef([AC_MSG_ERROR])
  9072. +])# _LT_PROG_CXX
  9073. +dnl aclocal-1.4 backwards compatibility:
  9074. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9075. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9076. -# ---------------------------------
  9077. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  9078. -[AC_REQUIRE([AC_CANONICAL_HOST])
  9079. -AC_REQUIRE([AC_PROG_NM])
  9080. -AC_REQUIRE([AC_OBJEXT])
  9081. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  9082. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  9083. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  9084. -[
  9085. -# These are sane defaults that work on at least a few old systems.
  9086. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  9087. -
  9088. -# Character class describing NM global symbol codes.
  9089. -symcode='[[BCDEGRST]]'
  9090. -# Regexp to match symbols that can be accessed directly from C.
  9091. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  9092. +# _LT_LANG_CXX_CONFIG([TAG])
  9093. +# --------------------------
  9094. +# Ensure that the configuration variables for a C++ compiler are suitably
  9095. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9096. +# the compiler configuration to `libtool'.
  9097. +m4_defun([_LT_LANG_CXX_CONFIG],
  9098. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9099. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9100. +m4_require([_LT_DECL_EGREP])dnl
  9101. +
  9102. +AC_LANG_PUSH(C++)
  9103. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9104. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9105. +_LT_TAGVAR(always_export_symbols, $1)=no
  9106. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9107. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9108. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9109. +_LT_TAGVAR(hardcode_direct, $1)=no
  9110. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9111. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9112. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9113. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9114. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9115. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9116. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9117. +_LT_TAGVAR(inherit_rpath, $1)=no
  9118. +_LT_TAGVAR(module_cmds, $1)=
  9119. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9120. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9121. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9122. +_LT_TAGVAR(no_undefined_flag, $1)=
  9123. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9124. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9125. -# Transform an extracted symbol line into a proper C declaration
  9126. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  9127. +# Source file extension for C++ test sources.
  9128. +ac_ext=cpp
  9129. -# Transform an extracted symbol line into symbol name and symbol address
  9130. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  9131. +# Object file extension for compiled C++ test sources.
  9132. +objext=o
  9133. +_LT_TAGVAR(objext, $1)=$objext
  9134. -# Define system-specific variables.
  9135. -case $host_os in
  9136. -aix*)
  9137. - symcode='[[BCDT]]'
  9138. - ;;
  9139. -cygwin* | mingw* | pw32*)
  9140. - symcode='[[ABCDGISTW]]'
  9141. - ;;
  9142. -hpux*) # Its linker distinguishes data from code symbols
  9143. - if test "$host_cpu" = ia64; then
  9144. - symcode='[[ABCDEGRST]]'
  9145. +# No sense in running all these tests if we already determined that
  9146. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9147. +# are currently assumed to apply to all compilers on this platform,
  9148. +# and will be corrupted by setting them based on a non-working compiler.
  9149. +if test "$_lt_caught_CXX_error" != yes; then
  9150. + # Code to be used in simple compile tests
  9151. + lt_simple_compile_test_code="int some_variable = 0;"
  9152. +
  9153. + # Code to be used in simple link tests
  9154. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9155. +
  9156. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9157. + _LT_TAG_COMPILER
  9158. +
  9159. + # save warnings/boilerplate of simple test code
  9160. + _LT_COMPILER_BOILERPLATE
  9161. + _LT_LINKER_BOILERPLATE
  9162. +
  9163. + # Allow CC to be a program name with arguments.
  9164. + lt_save_CC=$CC
  9165. + lt_save_LD=$LD
  9166. + lt_save_GCC=$GCC
  9167. + GCC=$GXX
  9168. + lt_save_with_gnu_ld=$with_gnu_ld
  9169. + lt_save_path_LD=$lt_cv_path_LD
  9170. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9171. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9172. + else
  9173. + $as_unset lt_cv_prog_gnu_ld
  9174. fi
  9175. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  9176. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  9177. - ;;
  9178. -linux*)
  9179. - if test "$host_cpu" = ia64; then
  9180. - symcode='[[ABCDGIRSTW]]'
  9181. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  9182. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  9183. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9184. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9185. + else
  9186. + $as_unset lt_cv_path_LD
  9187. fi
  9188. - ;;
  9189. -irix* | nonstopux*)
  9190. - symcode='[[BCDEGRST]]'
  9191. - ;;
  9192. -osf*)
  9193. - symcode='[[BCDEGQRST]]'
  9194. - ;;
  9195. -solaris*)
  9196. - symcode='[[BDRT]]'
  9197. - ;;
  9198. -sco3.2v5*)
  9199. - symcode='[[DT]]'
  9200. - ;;
  9201. -sysv4.2uw2*)
  9202. - symcode='[[DT]]'
  9203. - ;;
  9204. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  9205. - symcode='[[ABDT]]'
  9206. - ;;
  9207. -sysv4)
  9208. - symcode='[[DFNSTU]]'
  9209. - ;;
  9210. -esac
  9211. -
  9212. -# Handle CRLF in mingw tool chain
  9213. -opt_cr=
  9214. -case $build_os in
  9215. -mingw*)
  9216. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  9217. - ;;
  9218. -esac
  9219. -
  9220. -# If we're using GNU nm, then use its standard symbol codes.
  9221. -case `$NM -V 2>&1` in
  9222. -*GNU* | *'with BFD'*)
  9223. - symcode='[[ABCDGIRSTW]]' ;;
  9224. -esac
  9225. -
  9226. -# Try without a prefix undercore, then with it.
  9227. -for ac_symprfx in "" "_"; do
  9228. -
  9229. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  9230. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  9231. -
  9232. - # Write the raw and C identifiers.
  9233. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  9234. -
  9235. - # Check to see that the pipe works correctly.
  9236. - pipe_works=no
  9237. -
  9238. - rm -f conftest*
  9239. - cat > conftest.$ac_ext <<EOF
  9240. -#ifdef __cplusplus
  9241. -extern "C" {
  9242. -#endif
  9243. -char nm_test_var;
  9244. -void nm_test_func(){}
  9245. -#ifdef __cplusplus
  9246. -}
  9247. -#endif
  9248. -int main(){nm_test_var='a';nm_test_func();return(0);}
  9249. -EOF
  9250. -
  9251. - if AC_TRY_EVAL(ac_compile); then
  9252. - # Now try to grab the symbols.
  9253. - nlist=conftest.nm
  9254. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  9255. - # Try sorting and uniquifying the output.
  9256. - if sort "$nlist" | uniq > "$nlist"T; then
  9257. - mv -f "$nlist"T "$nlist"
  9258. - else
  9259. - rm -f "$nlist"T
  9260. - fi
  9261. -
  9262. - # Make sure that we snagged all the symbols we need.
  9263. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  9264. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  9265. - cat <<EOF > conftest.$ac_ext
  9266. -#ifdef __cplusplus
  9267. -extern "C" {
  9268. -#endif
  9269. -
  9270. -EOF
  9271. - # Now generate the symbol file.
  9272. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  9273. -
  9274. - cat <<EOF >> conftest.$ac_ext
  9275. -#if defined (__STDC__) && __STDC__
  9276. -# define lt_ptr_t void *
  9277. -#else
  9278. -# define lt_ptr_t char *
  9279. -# define const
  9280. -#endif
  9281. -
  9282. -/* The mapping between symbol names and symbols. */
  9283. -const struct {
  9284. - const char *name;
  9285. - lt_ptr_t address;
  9286. -}
  9287. -lt_preloaded_symbols[[]] =
  9288. -{
  9289. -EOF
  9290. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  9291. - cat <<\EOF >> conftest.$ac_ext
  9292. - {0, (lt_ptr_t) 0}
  9293. -};
  9294. + test -z "${LDCXX+set}" || LD=$LDCXX
  9295. + CC=${CXX-"c++"}
  9296. + compiler=$CC
  9297. + _LT_TAGVAR(compiler, $1)=$CC
  9298. + _LT_CC_BASENAME([$compiler])
  9299. -#ifdef __cplusplus
  9300. -}
  9301. -#endif
  9302. -EOF
  9303. - # Now try linking the two files.
  9304. - mv conftest.$ac_objext conftstm.$ac_objext
  9305. - lt_save_LIBS="$LIBS"
  9306. - lt_save_CFLAGS="$CFLAGS"
  9307. - LIBS="conftstm.$ac_objext"
  9308. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  9309. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  9310. - pipe_works=yes
  9311. - fi
  9312. - LIBS="$lt_save_LIBS"
  9313. - CFLAGS="$lt_save_CFLAGS"
  9314. - else
  9315. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  9316. - fi
  9317. - else
  9318. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  9319. - fi
  9320. + if test -n "$compiler"; then
  9321. + # We don't want -fno-exception when compiling C++ code, so set the
  9322. + # no_builtin_flag separately
  9323. + if test "$GXX" = yes; then
  9324. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9325. else
  9326. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  9327. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9328. fi
  9329. - else
  9330. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  9331. - cat conftest.$ac_ext >&5
  9332. - fi
  9333. - rm -f conftest* conftst*
  9334. -
  9335. - # Do not use the global_symbol_pipe unless it works.
  9336. - if test "$pipe_works" = yes; then
  9337. - break
  9338. - else
  9339. - lt_cv_sys_global_symbol_pipe=
  9340. - fi
  9341. -done
  9342. -])
  9343. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  9344. - lt_cv_sys_global_symbol_to_cdecl=
  9345. -fi
  9346. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  9347. - AC_MSG_RESULT(failed)
  9348. -else
  9349. - AC_MSG_RESULT(ok)
  9350. -fi
  9351. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  9352. + if test "$GXX" = yes; then
  9353. + # Set up default GNU C++ configuration
  9354. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  9355. -# ---------------------------------------
  9356. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  9357. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  9358. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9359. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  9360. + LT_PATH_LD
  9361. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  9362. - ifelse([$1],[CXX],[
  9363. - # C++ specific cases for pic, static, wl, etc.
  9364. - if test "$GXX" = yes; then
  9365. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9366. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9367. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9368. + # archiving commands below assume that GNU ld is being used.
  9369. + if test "$with_gnu_ld" = yes; then
  9370. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9371. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9372. +
  9373. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9374. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9375. +
  9376. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9377. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9378. + # investigate it a little bit more. (MM)
  9379. + wlarc='${wl}'
  9380. +
  9381. + # ancient GNU ld didn't support --whole-archive et. al.
  9382. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9383. + $GREP 'no-whole-archive' > /dev/null; then
  9384. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9385. + else
  9386. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9387. + fi
  9388. + else
  9389. + with_gnu_ld=no
  9390. + wlarc=
  9391. - case $host_os in
  9392. - aix*)
  9393. - # All AIX code is PIC.
  9394. - if test "$host_cpu" = ia64; then
  9395. - # AIX 5 now supports IA64 processor
  9396. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9397. - fi
  9398. - ;;
  9399. - amigaos*)
  9400. - # FIXME: we need at least 68020 code to build shared libraries, but
  9401. - # adding the `-m68020' flag to GCC prevents building anything better,
  9402. - # like `-m68040'.
  9403. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9404. - ;;
  9405. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9406. - # PIC is the default for these OSes.
  9407. - ;;
  9408. - mingw* | cygwin* | os2* | pw32*)
  9409. - # This hack is so that the source file can tell whether it is being
  9410. - # built for inclusion in a dll (and should export symbols for example).
  9411. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  9412. - # (--disable-auto-import) libraries
  9413. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9414. - ;;
  9415. - darwin* | rhapsody*)
  9416. - # PIC is the default on this platform
  9417. - # Common symbols not allowed in MH_DYLIB files
  9418. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9419. - ;;
  9420. - *djgpp*)
  9421. - # DJGPP does not support shared libraries at all
  9422. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9423. - ;;
  9424. - interix3*)
  9425. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  9426. - # Instead, we relocate shared libraries at runtime.
  9427. - ;;
  9428. - sysv4*MP*)
  9429. - if test -d /usr/nec; then
  9430. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9431. + # A generic and very simple default shared library creation
  9432. + # command for GNU C++ for the case where it uses the native
  9433. + # linker, instead of GNU ld. If possible, this setting should
  9434. + # overridden to take advantage of the native linker features on
  9435. + # the platform it is being used on.
  9436. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9437. fi
  9438. - ;;
  9439. - hpux*)
  9440. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9441. - # not for PA HP-UX.
  9442. - case $host_cpu in
  9443. - hppa*64*|ia64*)
  9444. - ;;
  9445. - *)
  9446. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9447. - ;;
  9448. - esac
  9449. - ;;
  9450. - *)
  9451. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9452. - ;;
  9453. - esac
  9454. - else
  9455. +
  9456. + # Commands to make compiler produce verbose output that lists
  9457. + # what "hidden" libraries, object files and flags are used when
  9458. + # linking a shared library.
  9459. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9460. +
  9461. + else
  9462. + GXX=no
  9463. + with_gnu_ld=no
  9464. + wlarc=
  9465. + fi
  9466. +
  9467. + # PORTME: fill in a description of your system's C++ link characteristics
  9468. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9469. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9470. case $host_os in
  9471. - aix4* | aix5*)
  9472. - # All AIX code is PIC.
  9473. - if test "$host_cpu" = ia64; then
  9474. - # AIX 5 now supports IA64 processor
  9475. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9476. + aix3*)
  9477. + # FIXME: insert proper C++ library support
  9478. + _LT_TAGVAR(ld_shlibs, $1)=no
  9479. + ;;
  9480. + aix[[4-9]]*)
  9481. + if test "$host_cpu" = ia64; then
  9482. + # On IA64, the linker does run time linking by default, so we don't
  9483. + # have to do anything special.
  9484. + aix_use_runtimelinking=no
  9485. + exp_sym_flag='-Bexport'
  9486. + no_entry_flag=""
  9487. + else
  9488. + aix_use_runtimelinking=no
  9489. +
  9490. + # Test if we are trying to use run time linking or normal
  9491. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9492. + # need to do runtime linking.
  9493. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9494. + for ld_flag in $LDFLAGS; do
  9495. + case $ld_flag in
  9496. + *-brtl*)
  9497. + aix_use_runtimelinking=yes
  9498. + break
  9499. + ;;
  9500. + esac
  9501. + done
  9502. + ;;
  9503. + esac
  9504. +
  9505. + exp_sym_flag='-bexport'
  9506. + no_entry_flag='-bnoentry'
  9507. + fi
  9508. +
  9509. + # When large executables or shared objects are built, AIX ld can
  9510. + # have problems creating the table of contents. If linking a library
  9511. + # or program results in "error TOC overflow" add -mminimal-toc to
  9512. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9513. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9514. +
  9515. + _LT_TAGVAR(archive_cmds, $1)=''
  9516. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9517. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9518. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9519. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9520. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9521. +
  9522. + if test "$GXX" = yes; then
  9523. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9524. + # We only want to do this on AIX 4.2 and lower, the check
  9525. + # below for broken collect2 doesn't work under 4.3+
  9526. + collect2name=`${CC} -print-prog-name=collect2`
  9527. + if test -f "$collect2name" &&
  9528. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9529. + then
  9530. + # We have reworked collect2
  9531. + :
  9532. + else
  9533. + # We have old collect2
  9534. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9535. + # It fails to find uninstalled libraries when the uninstalled
  9536. + # path is not listed in the libpath. Setting hardcode_minus_L
  9537. + # to unsupported forces relinking
  9538. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9539. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9540. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9541. + fi
  9542. + esac
  9543. + shared_flag='-shared'
  9544. + if test "$aix_use_runtimelinking" = yes; then
  9545. + shared_flag="$shared_flag "'${wl}-G'
  9546. + fi
  9547. + else
  9548. + # not using gcc
  9549. + if test "$host_cpu" = ia64; then
  9550. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9551. + # chokes on -Wl,-G. The following line is correct:
  9552. + shared_flag='-G'
  9553. + else
  9554. + if test "$aix_use_runtimelinking" = yes; then
  9555. + shared_flag='${wl}-G'
  9556. + else
  9557. + shared_flag='${wl}-bM:SRE'
  9558. + fi
  9559. + fi
  9560. + fi
  9561. +
  9562. + # It seems that -bexpall does not export symbols beginning with
  9563. + # underscore (_), so it is better to generate a list of symbols to
  9564. + # export.
  9565. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9566. + if test "$aix_use_runtimelinking" = yes; then
  9567. + # Warning - without using the other runtime loading flags (-brtl),
  9568. + # -berok will link without error, but may produce a broken library.
  9569. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9570. + # Determine the default libpath from the value encoded in an empty
  9571. + # executable.
  9572. + _LT_SYS_MODULE_PATH_AIX
  9573. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9574. +
  9575. + _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9576. + else
  9577. + if test "$host_cpu" = ia64; then
  9578. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9579. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9580. + _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"
  9581. + else
  9582. + # Determine the default libpath from the value encoded in an
  9583. + # empty executable.
  9584. + _LT_SYS_MODULE_PATH_AIX
  9585. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9586. + # Warning - without using the other run time loading flags,
  9587. + # -berok will link without error, but may produce a broken library.
  9588. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9589. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9590. + # Exported symbols can be pulled into shared objects from archives
  9591. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9592. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9593. + # This is similar to how AIX traditionally builds its shared
  9594. + # libraries.
  9595. + _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'
  9596. + fi
  9597. + fi
  9598. + ;;
  9599. +
  9600. + beos*)
  9601. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9602. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9603. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9604. + # support --undefined. This deserves some investigation. FIXME
  9605. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9606. else
  9607. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9608. + _LT_TAGVAR(ld_shlibs, $1)=no
  9609. fi
  9610. ;;
  9611. +
  9612. chorus*)
  9613. - case $cc_basename in
  9614. - cxch68*)
  9615. - # Green Hills C++ Compiler
  9616. - # _LT_AC_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"
  9617. + case $cc_basename in
  9618. + *)
  9619. + # FIXME: insert proper C++ library support
  9620. + _LT_TAGVAR(ld_shlibs, $1)=no
  9621. ;;
  9622. - esac
  9623. + esac
  9624. + ;;
  9625. +
  9626. + cygwin* | mingw* | pw32*)
  9627. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9628. + # as there is no search path for DLLs.
  9629. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9630. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9631. + _LT_TAGVAR(always_export_symbols, $1)=no
  9632. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9633. +
  9634. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9635. + _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'
  9636. + # If the export-symbols file already is a .def file (1st line
  9637. + # is EXPORTS), use it as is; otherwise, prepend...
  9638. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9639. + cp $export_symbols $output_objdir/$soname.def;
  9640. + else
  9641. + echo EXPORTS > $output_objdir/$soname.def;
  9642. + cat $export_symbols >> $output_objdir/$soname.def;
  9643. + fi~
  9644. + $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'
  9645. + else
  9646. + _LT_TAGVAR(ld_shlibs, $1)=no
  9647. + fi
  9648. + ;;
  9649. + darwin* | rhapsody*)
  9650. + _LT_DARWIN_LINKER_FEATURES($1)
  9651. ;;
  9652. - darwin*)
  9653. - # PIC is the default on this platform
  9654. - # Common symbols not allowed in MH_DYLIB files
  9655. - case $cc_basename in
  9656. - xlc*)
  9657. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9658. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9659. - ;;
  9660. - esac
  9661. - ;;
  9662. +
  9663. dgux*)
  9664. - case $cc_basename in
  9665. - ec++*)
  9666. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9667. + case $cc_basename in
  9668. + ec++*)
  9669. + # FIXME: insert proper C++ library support
  9670. + _LT_TAGVAR(ld_shlibs, $1)=no
  9671. ;;
  9672. - ghcx*)
  9673. + ghcx*)
  9674. # Green Hills C++ Compiler
  9675. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9676. + # FIXME: insert proper C++ library support
  9677. + _LT_TAGVAR(ld_shlibs, $1)=no
  9678. ;;
  9679. - *)
  9680. + *)
  9681. + # FIXME: insert proper C++ library support
  9682. + _LT_TAGVAR(ld_shlibs, $1)=no
  9683. ;;
  9684. - esac
  9685. - ;;
  9686. - freebsd* | kfreebsd*-gnu | dragonfly*)
  9687. - # FreeBSD uses GNU C++
  9688. - ;;
  9689. - hpux9* | hpux10* | hpux11*)
  9690. - case $cc_basename in
  9691. - CC*)
  9692. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9693. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9694. - if test "$host_cpu" != ia64; then
  9695. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9696. - fi
  9697. + esac
  9698. + ;;
  9699. +
  9700. + freebsd[[12]]*)
  9701. + # C++ shared libraries reported to be fairly broken before
  9702. + # switch to ELF
  9703. + _LT_TAGVAR(ld_shlibs, $1)=no
  9704. + ;;
  9705. +
  9706. + freebsd-elf*)
  9707. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9708. + ;;
  9709. +
  9710. + freebsd* | dragonfly*)
  9711. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9712. + # conventions
  9713. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9714. + ;;
  9715. +
  9716. + gnu*)
  9717. + ;;
  9718. +
  9719. + hpux9*)
  9720. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9721. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9722. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9723. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9724. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9725. + # but as the default
  9726. + # location of the library.
  9727. +
  9728. + case $cc_basename in
  9729. + CC*)
  9730. + # FIXME: insert proper C++ library support
  9731. + _LT_TAGVAR(ld_shlibs, $1)=no
  9732. + ;;
  9733. + aCC*)
  9734. + _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'
  9735. + # Commands to make compiler produce verbose output that lists
  9736. + # what "hidden" libraries, object files and flags are used when
  9737. + # linking a shared library.
  9738. + #
  9739. + # There doesn't appear to be a way to prevent this compiler from
  9740. + # explicitly linking system object files so we need to strip them
  9741. + # from the output so that they don't get included in the library
  9742. + # dependencies.
  9743. + 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; $ECHO "X$list" | $Xsed'
  9744. + ;;
  9745. + *)
  9746. + if test "$GXX" = yes; then
  9747. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  9748. + else
  9749. + # FIXME: insert proper C++ library support
  9750. + _LT_TAGVAR(ld_shlibs, $1)=no
  9751. + fi
  9752. + ;;
  9753. + esac
  9754. + ;;
  9755. +
  9756. + hpux10*|hpux11*)
  9757. + if test $with_gnu_ld = no; then
  9758. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9759. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9760. +
  9761. + case $host_cpu in
  9762. + hppa*64*|ia64*)
  9763. + ;;
  9764. + *)
  9765. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9766. + ;;
  9767. + esac
  9768. + fi
  9769. + case $host_cpu in
  9770. + hppa*64*|ia64*)
  9771. + _LT_TAGVAR(hardcode_direct, $1)=no
  9772. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9773. + ;;
  9774. + *)
  9775. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9776. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9777. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9778. + # but as the default
  9779. + # location of the library.
  9780. + ;;
  9781. + esac
  9782. +
  9783. + case $cc_basename in
  9784. + CC*)
  9785. + # FIXME: insert proper C++ library support
  9786. + _LT_TAGVAR(ld_shlibs, $1)=no
  9787. ;;
  9788. - aCC*)
  9789. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9790. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9791. + aCC*)
  9792. case $host_cpu in
  9793. - hppa*64*|ia64*)
  9794. - # +Z the default
  9795. - ;;
  9796. - *)
  9797. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9798. - ;;
  9799. + hppa*64*)
  9800. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9801. + ;;
  9802. + ia64*)
  9803. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9804. + ;;
  9805. + *)
  9806. + _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'
  9807. + ;;
  9808. esac
  9809. + # Commands to make compiler produce verbose output that lists
  9810. + # what "hidden" libraries, object files and flags are used when
  9811. + # linking a shared library.
  9812. + #
  9813. + # There doesn't appear to be a way to prevent this compiler from
  9814. + # explicitly linking system object files so we need to strip them
  9815. + # from the output so that they don't get included in the library
  9816. + # dependencies.
  9817. + 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; $ECHO "X$list" | $Xsed'
  9818. ;;
  9819. - *)
  9820. + *)
  9821. + if test "$GXX" = yes; then
  9822. + if test $with_gnu_ld = no; then
  9823. + case $host_cpu in
  9824. + hppa*64*)
  9825. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9826. + ;;
  9827. + ia64*)
  9828. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9829. + ;;
  9830. + *)
  9831. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9832. + ;;
  9833. + esac
  9834. + fi
  9835. + else
  9836. + # FIXME: insert proper C++ library support
  9837. + _LT_TAGVAR(ld_shlibs, $1)=no
  9838. + fi
  9839. ;;
  9840. - esac
  9841. - ;;
  9842. - interix*)
  9843. - # This is c89, which is MS Visual C++ (no shared libs)
  9844. - # Anyone wants to do a port?
  9845. - ;;
  9846. - irix5* | irix6* | nonstopux*)
  9847. - case $cc_basename in
  9848. - CC*)
  9849. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9850. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9851. - # CC pic flag -KPIC is the default.
  9852. + esac
  9853. + ;;
  9854. +
  9855. + interix[[3-9]]*)
  9856. + _LT_TAGVAR(hardcode_direct, $1)=no
  9857. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9858. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9859. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9860. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9861. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9862. + # default) and relocated if they conflict, which is a slow very memory
  9863. + # consuming and fragmenting process. To avoid this, we pick a random,
  9864. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9865. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9866. + _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'
  9867. + _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'
  9868. + ;;
  9869. + irix5* | irix6*)
  9870. + case $cc_basename in
  9871. + CC*)
  9872. + # SGI C++
  9873. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9874. +
  9875. + # Archives containing C++ object files must be created using
  9876. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9877. + # necessary to make sure instantiated templates are included
  9878. + # in the archive.
  9879. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9880. ;;
  9881. - *)
  9882. + *)
  9883. + if test "$GXX" = yes; then
  9884. + if test "$with_gnu_ld" = no; then
  9885. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9886. + else
  9887. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  9888. + fi
  9889. + fi
  9890. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9891. ;;
  9892. - esac
  9893. - ;;
  9894. - linux*)
  9895. - case $cc_basename in
  9896. - KCC*)
  9897. - # KAI C++ Compiler
  9898. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9899. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9900. + esac
  9901. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9902. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9903. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9904. + ;;
  9905. +
  9906. + linux* | k*bsd*-gnu)
  9907. + case $cc_basename in
  9908. + KCC*)
  9909. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9910. +
  9911. + # KCC will only create a shared library if the output file
  9912. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9913. + # to its proper name (with version) after linking.
  9914. + _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'
  9915. + _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'
  9916. + # Commands to make compiler produce verbose output that lists
  9917. + # what "hidden" libraries, object files and flags are used when
  9918. + # linking a shared library.
  9919. + #
  9920. + # There doesn't appear to be a way to prevent this compiler from
  9921. + # explicitly linking system object files so we need to strip them
  9922. + # from the output so that they don't get included in the library
  9923. + # dependencies.
  9924. + 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; $ECHO "X$list" | $Xsed'
  9925. +
  9926. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9927. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9928. +
  9929. + # Archives containing C++ object files must be created using
  9930. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9931. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9932. ;;
  9933. - icpc* | ecpc*)
  9934. + icpc* | ecpc* )
  9935. # Intel C++
  9936. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9937. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9938. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9939. - ;;
  9940. - pgCC*)
  9941. - # Portland Group C++ compiler.
  9942. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9943. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9944. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9945. - ;;
  9946. - cxx*)
  9947. - # Compaq C++
  9948. - # Make sure the PIC flag is empty. It appears that all Alpha
  9949. - # Linux and Compaq Tru64 Unix objects are PIC.
  9950. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9951. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9952. + with_gnu_ld=yes
  9953. + # version 8.0 and above of icpc choke on multiply defined symbols
  9954. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9955. + # earlier do not add the objects themselves.
  9956. + case `$CC -V 2>&1` in
  9957. + *"Version 7."*)
  9958. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9959. + _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'
  9960. + ;;
  9961. + *) # Version 8.0 or newer
  9962. + tmp_idyn=
  9963. + case $host_cpu in
  9964. + ia64*) tmp_idyn=' -i_dynamic';;
  9965. + esac
  9966. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9967. + _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'
  9968. + ;;
  9969. + esac
  9970. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9971. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9972. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9973. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9974. ;;
  9975. - *)
  9976. - case `$CC -V 2>&1 | sed 5q` in
  9977. - *Sun\ C*)
  9978. - # Sun C++ 5.9
  9979. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9980. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9981. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9982. + pgCC* | pgcpp*)
  9983. + # Portland Group C++ compiler
  9984. + case `$CC -V` in
  9985. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9986. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9987. + rm -rf $tpldir~
  9988. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9989. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9990. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9991. + rm -rf $tpldir~
  9992. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9993. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9994. + $RANLIB $oldlib'
  9995. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9996. + rm -rf $tpldir~
  9997. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9998. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9999. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  10000. + rm -rf $tpldir~
  10001. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10002. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10003. + ;;
  10004. + *) # Version 6 will use weak symbols
  10005. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10006. + _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'
  10007. ;;
  10008. esac
  10009. - ;;
  10010. - esac
  10011. - ;;
  10012. - lynxos*)
  10013. - ;;
  10014. - m88k*)
  10015. - ;;
  10016. - mvs*)
  10017. - case $cc_basename in
  10018. - cxx*)
  10019. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  10020. - ;;
  10021. - *)
  10022. - ;;
  10023. - esac
  10024. - ;;
  10025. - netbsd*)
  10026. - ;;
  10027. - osf3* | osf4* | osf5*)
  10028. - case $cc_basename in
  10029. - KCC*)
  10030. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  10031. - ;;
  10032. - RCC*)
  10033. - # Rational C++ 2.4.1
  10034. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10035. - ;;
  10036. +
  10037. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10038. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10039. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10040. + ;;
  10041. cxx*)
  10042. - # Digital/Compaq C++
  10043. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10044. - # Make sure the PIC flag is empty. It appears that all Alpha
  10045. - # Linux and Compaq Tru64 Unix objects are PIC.
  10046. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10047. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10048. - ;;
  10049. - *)
  10050. - ;;
  10051. - esac
  10052. - ;;
  10053. - psos*)
  10054. - ;;
  10055. - solaris*)
  10056. - case $cc_basename in
  10057. - CC*)
  10058. - # Sun C++ 4.2, 5.x and Centerline C++
  10059. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10060. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10061. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10062. - ;;
  10063. - gcx*)
  10064. - # Green Hills C++ Compiler
  10065. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10066. - ;;
  10067. - *)
  10068. - ;;
  10069. - esac
  10070. - ;;
  10071. - sunos4*)
  10072. - case $cc_basename in
  10073. - CC*)
  10074. - # Sun C++ 4.x
  10075. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10076. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10077. - ;;
  10078. - lcc*)
  10079. - # Lucid
  10080. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10081. - ;;
  10082. - *)
  10083. + # Compaq C++
  10084. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10085. + _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'
  10086. +
  10087. + runpath_var=LD_RUN_PATH
  10088. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10089. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10090. +
  10091. + # Commands to make compiler produce verbose output that lists
  10092. + # what "hidden" libraries, object files and flags are used when
  10093. + # linking a shared library.
  10094. + #
  10095. + # There doesn't appear to be a way to prevent this compiler from
  10096. + # explicitly linking system object files so we need to strip them
  10097. + # from the output so that they don't get included in the library
  10098. + # dependencies.
  10099. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10100. ;;
  10101. - esac
  10102. - ;;
  10103. - tandem*)
  10104. - case $cc_basename in
  10105. - NCC*)
  10106. - # NonStop-UX NCC 3.20
  10107. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10108. + xl*)
  10109. + # IBM XL 8.0 on PPC, with GNU ld
  10110. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10111. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10112. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10113. + if test "x$supports_anon_versioning" = xyes; then
  10114. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  10115. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10116. + echo "local: *; };" >> $output_objdir/$libname.ver~
  10117. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10118. + fi
  10119. ;;
  10120. *)
  10121. + case `$CC -V 2>&1 | sed 5q` in
  10122. + *Sun\ C*)
  10123. + # Sun C++ 5.9
  10124. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10125. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10126. + _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'
  10127. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10128. + _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10129. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  10130. +
  10131. + # Not sure whether something based on
  10132. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10133. + # would be better.
  10134. + output_verbose_link_cmd='echo'
  10135. +
  10136. + # Archives containing C++ object files must be created using
  10137. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10138. + # necessary to make sure instantiated templates are included
  10139. + # in the archive.
  10140. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10141. + ;;
  10142. + esac
  10143. ;;
  10144. esac
  10145. ;;
  10146. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10147. - case $cc_basename in
  10148. - CC*)
  10149. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10150. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10151. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10152. +
  10153. + lynxos*)
  10154. + # FIXME: insert proper C++ library support
  10155. + _LT_TAGVAR(ld_shlibs, $1)=no
  10156. + ;;
  10157. +
  10158. + m88k*)
  10159. + # FIXME: insert proper C++ library support
  10160. + _LT_TAGVAR(ld_shlibs, $1)=no
  10161. + ;;
  10162. +
  10163. + mvs*)
  10164. + case $cc_basename in
  10165. + cxx*)
  10166. + # FIXME: insert proper C++ library support
  10167. + _LT_TAGVAR(ld_shlibs, $1)=no
  10168. + ;;
  10169. + *)
  10170. + # FIXME: insert proper C++ library support
  10171. + _LT_TAGVAR(ld_shlibs, $1)=no
  10172. ;;
  10173. esac
  10174. ;;
  10175. - vxworks*)
  10176. +
  10177. + netbsd*)
  10178. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10179. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10180. + wlarc=
  10181. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10182. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10183. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10184. + fi
  10185. + # Workaround some broken pre-1.5 toolchains
  10186. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10187. ;;
  10188. - *)
  10189. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10190. +
  10191. + *nto* | *qnx*)
  10192. + _LT_TAGVAR(ld_shlibs, $1)=yes
  10193. ;;
  10194. - esac
  10195. - fi
  10196. -],
  10197. -[
  10198. - if test "$GCC" = yes; then
  10199. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10200. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10201. - case $host_os in
  10202. - aix*)
  10203. - # All AIX code is PIC.
  10204. - if test "$host_cpu" = ia64; then
  10205. - # AIX 5 now supports IA64 processor
  10206. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10207. - fi
  10208. - ;;
  10209. + openbsd2*)
  10210. + # C++ shared libraries are fairly broken
  10211. + _LT_TAGVAR(ld_shlibs, $1)=no
  10212. + ;;
  10213. +
  10214. + openbsd*)
  10215. + if test -f /usr/libexec/ld.so; then
  10216. + _LT_TAGVAR(hardcode_direct, $1)=yes
  10217. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10218. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  10219. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10220. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10221. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10222. + _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'
  10223. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10224. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10225. + fi
  10226. + output_verbose_link_cmd=echo
  10227. + else
  10228. + _LT_TAGVAR(ld_shlibs, $1)=no
  10229. + fi
  10230. + ;;
  10231. - amigaos*)
  10232. - # FIXME: we need at least 68020 code to build shared libraries, but
  10233. - # adding the `-m68020' flag to GCC prevents building anything better,
  10234. - # like `-m68040'.
  10235. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10236. - ;;
  10237. + osf3* | osf4* | osf5*)
  10238. + case $cc_basename in
  10239. + KCC*)
  10240. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  10241. +
  10242. + # KCC will only create a shared library if the output file
  10243. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10244. + # to its proper name (with version) after linking.
  10245. + _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'
  10246. +
  10247. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10248. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10249. +
  10250. + # Archives containing C++ object files must be created using
  10251. + # the KAI C++ compiler.
  10252. + case $host in
  10253. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10254. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  10255. + esac
  10256. + ;;
  10257. + RCC*)
  10258. + # Rational C++ 2.4.1
  10259. + # FIXME: insert proper C++ library support
  10260. + _LT_TAGVAR(ld_shlibs, $1)=no
  10261. + ;;
  10262. + cxx*)
  10263. + case $host in
  10264. + osf3*)
  10265. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10266. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10267. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10268. + ;;
  10269. + *)
  10270. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10271. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10272. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10273. + echo "-hidden">> $lib.exp~
  10274. + $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10275. + $RM $lib.exp'
  10276. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10277. + ;;
  10278. + esac
  10279. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10280. - # PIC is the default for these OSes.
  10281. - ;;
  10282. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10283. - mingw* | cygwin* | pw32* | os2*)
  10284. - # This hack is so that the source file can tell whether it is being
  10285. - # built for inclusion in a dll (and should export symbols for example).
  10286. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10287. - # (--disable-auto-import) libraries
  10288. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10289. - ;;
  10290. + # Commands to make compiler produce verbose output that lists
  10291. + # what "hidden" libraries, object files and flags are used when
  10292. + # linking a shared library.
  10293. + #
  10294. + # There doesn't appear to be a way to prevent this compiler from
  10295. + # explicitly linking system object files so we need to strip them
  10296. + # from the output so that they don't get included in the library
  10297. + # dependencies.
  10298. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10299. + ;;
  10300. + *)
  10301. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10302. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10303. + case $host in
  10304. + osf3*)
  10305. + _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10306. + ;;
  10307. + *)
  10308. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10309. + ;;
  10310. + esac
  10311. +
  10312. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10313. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10314. +
  10315. + # Commands to make compiler produce verbose output that lists
  10316. + # what "hidden" libraries, object files and flags are used when
  10317. + # linking a shared library.
  10318. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10319. +
  10320. + else
  10321. + # FIXME: insert proper C++ library support
  10322. + _LT_TAGVAR(ld_shlibs, $1)=no
  10323. + fi
  10324. + ;;
  10325. + esac
  10326. + ;;
  10327. - darwin* | rhapsody*)
  10328. - # PIC is the default on this platform
  10329. - # Common symbols not allowed in MH_DYLIB files
  10330. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10331. - ;;
  10332. + psos*)
  10333. + # FIXME: insert proper C++ library support
  10334. + _LT_TAGVAR(ld_shlibs, $1)=no
  10335. + ;;
  10336. - interix3*)
  10337. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  10338. - # Instead, we relocate shared libraries at runtime.
  10339. - ;;
  10340. + sunos4*)
  10341. + case $cc_basename in
  10342. + CC*)
  10343. + # Sun C++ 4.x
  10344. + # FIXME: insert proper C++ library support
  10345. + _LT_TAGVAR(ld_shlibs, $1)=no
  10346. + ;;
  10347. + lcc*)
  10348. + # Lucid
  10349. + # FIXME: insert proper C++ library support
  10350. + _LT_TAGVAR(ld_shlibs, $1)=no
  10351. + ;;
  10352. + *)
  10353. + # FIXME: insert proper C++ library support
  10354. + _LT_TAGVAR(ld_shlibs, $1)=no
  10355. + ;;
  10356. + esac
  10357. + ;;
  10358. - msdosdjgpp*)
  10359. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10360. - # on systems that don't support them.
  10361. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10362. - enable_shared=no
  10363. - ;;
  10364. + solaris*)
  10365. + case $cc_basename in
  10366. + CC*)
  10367. + # Sun C++ 4.2, 5.x and Centerline C++
  10368. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10369. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10370. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10371. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10372. + $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'
  10373. +
  10374. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10375. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10376. + case $host_os in
  10377. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10378. + *)
  10379. + # The compiler driver will combine and reorder linker options,
  10380. + # but understands `-z linker_flag'.
  10381. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10382. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10383. + ;;
  10384. + esac
  10385. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10386. - sysv4*MP*)
  10387. - if test -d /usr/nec; then
  10388. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10389. - fi
  10390. - ;;
  10391. + output_verbose_link_cmd='echo'
  10392. - hpux*)
  10393. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10394. - # not for PA HP-UX.
  10395. - case $host_cpu in
  10396. - hppa*64*|ia64*)
  10397. - # +Z the default
  10398. - ;;
  10399. - *)
  10400. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10401. - ;;
  10402. - esac
  10403. - ;;
  10404. + # Archives containing C++ object files must be created using
  10405. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10406. + # necessary to make sure instantiated templates are included
  10407. + # in the archive.
  10408. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10409. + ;;
  10410. + gcx*)
  10411. + # Green Hills C++ Compiler
  10412. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10413. - *)
  10414. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10415. - ;;
  10416. - esac
  10417. - else
  10418. - # PORTME Check for flag to pass linker flags through the system compiler.
  10419. - case $host_os in
  10420. - aix*)
  10421. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10422. - if test "$host_cpu" = ia64; then
  10423. - # AIX 5 now supports IA64 processor
  10424. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10425. - else
  10426. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  10427. - fi
  10428. - ;;
  10429. - darwin*)
  10430. - # PIC is the default on this platform
  10431. - # Common symbols not allowed in MH_DYLIB files
  10432. - case $cc_basename in
  10433. - xlc*)
  10434. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  10435. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10436. - ;;
  10437. - esac
  10438. - ;;
  10439. + # The C++ compiler must be used to create the archive.
  10440. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10441. + ;;
  10442. + *)
  10443. + # GNU C++ compiler with Solaris linker
  10444. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10445. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10446. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10447. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10448. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10449. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10450. +
  10451. + # Commands to make compiler produce verbose output that lists
  10452. + # what "hidden" libraries, object files and flags are used when
  10453. + # linking a shared library.
  10454. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10455. + else
  10456. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10457. + # platform.
  10458. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10459. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10460. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10461. +
  10462. + # Commands to make compiler produce verbose output that lists
  10463. + # what "hidden" libraries, object files and flags are used when
  10464. + # linking a shared library.
  10465. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10466. + fi
  10467. +
  10468. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10469. + case $host_os in
  10470. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10471. + *)
  10472. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10473. + ;;
  10474. + esac
  10475. + fi
  10476. + ;;
  10477. + esac
  10478. + ;;
  10479. - mingw* | cygwin* | pw32* | os2*)
  10480. - # This hack is so that the source file can tell whether it is being
  10481. - # built for inclusion in a dll (and should export symbols for example).
  10482. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  10483. - # (--disable-auto-import) libraries
  10484. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10485. - ;;
  10486. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10487. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10488. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10489. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10490. + runpath_var='LD_RUN_PATH'
  10491. - hpux9* | hpux10* | hpux11*)
  10492. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10493. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10494. - # not for PA HP-UX.
  10495. - case $host_cpu in
  10496. - hppa*64*|ia64*)
  10497. - # +Z the default
  10498. - ;;
  10499. - *)
  10500. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  10501. - ;;
  10502. + case $cc_basename in
  10503. + CC*)
  10504. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10505. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10506. + ;;
  10507. + *)
  10508. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10509. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10510. + ;;
  10511. esac
  10512. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  10513. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  10514. ;;
  10515. - irix5* | irix6* | nonstopux*)
  10516. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10517. - # PIC (with -KPIC) is the default.
  10518. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10519. - ;;
  10520. + sysv5* | sco3.2v5* | sco5v6*)
  10521. + # Note: We can NOT use -z defs as we might desire, because we do not
  10522. + # link with -lc, and that would cause any symbols used from libc to
  10523. + # always be unresolved, which means just about no library would
  10524. + # ever link correctly. If we're not using GNU ld we use -z text
  10525. + # though, which does catch some bad symbols but isn't as heavy-handed
  10526. + # as -z defs.
  10527. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10528. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10529. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10530. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10531. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10532. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10533. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10534. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10535. + runpath_var='LD_RUN_PATH'
  10536. - newsos6)
  10537. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10538. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10539. + case $cc_basename in
  10540. + CC*)
  10541. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10542. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10543. + ;;
  10544. + *)
  10545. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10546. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10547. + ;;
  10548. + esac
  10549. ;;
  10550. - linux*)
  10551. - case $cc_basename in
  10552. - icc* | ecc*)
  10553. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10554. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10555. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10556. - ;;
  10557. - pgcc* | pgf77* | pgf90* | pgf95*)
  10558. - # Portland Group compilers (*not* the Pentium gcc compiler,
  10559. - # which looks to be a dead project)
  10560. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10561. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  10562. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10563. - ;;
  10564. - ccc*)
  10565. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10566. - # All Alpha code is PIC.
  10567. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10568. + tandem*)
  10569. + case $cc_basename in
  10570. + NCC*)
  10571. + # NonStop-UX NCC 3.20
  10572. + # FIXME: insert proper C++ library support
  10573. + _LT_TAGVAR(ld_shlibs, $1)=no
  10574. + ;;
  10575. + *)
  10576. + # FIXME: insert proper C++ library support
  10577. + _LT_TAGVAR(ld_shlibs, $1)=no
  10578. + ;;
  10579. + esac
  10580. ;;
  10581. - como)
  10582. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
  10583. +
  10584. + vxworks*)
  10585. + # FIXME: insert proper C++ library support
  10586. + _LT_TAGVAR(ld_shlibs, $1)=no
  10587. ;;
  10588. +
  10589. *)
  10590. - case `$CC -V 2>&1 | sed 5q` in
  10591. - *Sun\ C*)
  10592. - # Sun C 5.9
  10593. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10594. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10595. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10596. - ;;
  10597. - *Sun\ F*)
  10598. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  10599. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10600. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10601. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  10602. - ;;
  10603. - esac
  10604. - ;;
  10605. - esac
  10606. - ;;
  10607. + # FIXME: insert proper C++ library support
  10608. + _LT_TAGVAR(ld_shlibs, $1)=no
  10609. + ;;
  10610. + esac
  10611. - osf3* | osf4* | osf5*)
  10612. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10613. - # All OSF/1 code is PIC.
  10614. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  10615. - ;;
  10616. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10617. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10618. - solaris*)
  10619. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10620. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10621. - case $cc_basename in
  10622. - f77* | f90* | f95*)
  10623. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  10624. - *)
  10625. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  10626. - esac
  10627. - ;;
  10628. + _LT_TAGVAR(GCC, $1)="$GXX"
  10629. + _LT_TAGVAR(LD, $1)="$LD"
  10630. +
  10631. + ## CAVEAT EMPTOR:
  10632. + ## There is no encapsulation within the following macros, do not change
  10633. + ## the running order or otherwise move them around unless you know exactly
  10634. + ## what you are doing...
  10635. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10636. + _LT_COMPILER_PIC($1)
  10637. + _LT_COMPILER_C_O($1)
  10638. + _LT_COMPILER_FILE_LOCKS($1)
  10639. + _LT_LINKER_SHLIBS($1)
  10640. + _LT_SYS_DYNAMIC_LINKER($1)
  10641. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10642. +
  10643. + _LT_CONFIG($1)
  10644. + fi # test -n "$compiler"
  10645. +
  10646. + CC=$lt_save_CC
  10647. + LDCXX=$LD
  10648. + LD=$lt_save_LD
  10649. + GCC=$lt_save_GCC
  10650. + with_gnu_ld=$lt_save_with_gnu_ld
  10651. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10652. + lt_cv_path_LD=$lt_save_path_LD
  10653. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10654. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10655. +fi # test "$_lt_caught_CXX_error" != yes
  10656. +
  10657. +AC_LANG_POP
  10658. +])# _LT_LANG_CXX_CONFIG
  10659. +
  10660. +
  10661. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10662. +# ---------------------------------
  10663. +# Figure out "hidden" library dependencies from verbose
  10664. +# compiler output when linking a shared library.
  10665. +# Parse the compiler output and extract the necessary
  10666. +# objects, libraries and library flags.
  10667. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10668. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10669. +# Dependencies to place before and after the object being linked:
  10670. +_LT_TAGVAR(predep_objects, $1)=
  10671. +_LT_TAGVAR(postdep_objects, $1)=
  10672. +_LT_TAGVAR(predeps, $1)=
  10673. +_LT_TAGVAR(postdeps, $1)=
  10674. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10675. +
  10676. +dnl we can't use the lt_simple_compile_test_code here,
  10677. +dnl because it contains code intended for an executable,
  10678. +dnl not a library. It's possible we should let each
  10679. +dnl tag define a new lt_????_link_test_code variable,
  10680. +dnl but it's only used here...
  10681. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10682. +int a;
  10683. +void foo (void) { a = 0; }
  10684. +_LT_EOF
  10685. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10686. +class Foo
  10687. +{
  10688. +public:
  10689. + Foo (void) { a = 0; }
  10690. +private:
  10691. + int a;
  10692. +};
  10693. +_LT_EOF
  10694. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10695. + subroutine foo
  10696. + implicit none
  10697. + integer*4 a
  10698. + a=0
  10699. + return
  10700. + end
  10701. +_LT_EOF
  10702. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10703. + subroutine foo
  10704. + implicit none
  10705. + integer a
  10706. + a=0
  10707. + return
  10708. + end
  10709. +_LT_EOF
  10710. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10711. +public class foo {
  10712. + private int a;
  10713. + public void bar (void) {
  10714. + a = 0;
  10715. + }
  10716. +};
  10717. +_LT_EOF
  10718. +])
  10719. +dnl Parse the compiler output and extract the necessary
  10720. +dnl objects, libraries and library flags.
  10721. +if AC_TRY_EVAL(ac_compile); then
  10722. + # Parse the compiler output and extract the necessary
  10723. + # objects, libraries and library flags.
  10724. +
  10725. + # Sentinel used to keep track of whether or not we are before
  10726. + # the conftest object file.
  10727. + pre_test_object_deps_done=no
  10728. - sunos4*)
  10729. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10730. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10731. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10732. - ;;
  10733. + for p in `eval "$output_verbose_link_cmd"`; do
  10734. + case $p in
  10735. - sysv4 | sysv4.2uw2* | sysv4.3*)
  10736. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10737. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10738. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10739. - ;;
  10740. + -L* | -R* | -l*)
  10741. + # Some compilers place space between "-{L,R}" and the path.
  10742. + # Remove the space.
  10743. + if test $p = "-L" ||
  10744. + test $p = "-R"; then
  10745. + prev=$p
  10746. + continue
  10747. + else
  10748. + prev=
  10749. + fi
  10750. - sysv4*MP*)
  10751. - if test -d /usr/nec ;then
  10752. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  10753. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10754. - fi
  10755. - ;;
  10756. + if test "$pre_test_object_deps_done" = no; then
  10757. + case $p in
  10758. + -L* | -R*)
  10759. + # Internal compiler library paths should come after those
  10760. + # provided the user. The postdeps already come after the
  10761. + # user supplied libs so there is no need to process them.
  10762. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10763. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10764. + else
  10765. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10766. + fi
  10767. + ;;
  10768. + # The "-l" case would never come before the object being
  10769. + # linked, so don't bother handling this case.
  10770. + esac
  10771. + else
  10772. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10773. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10774. + else
  10775. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10776. + fi
  10777. + fi
  10778. + ;;
  10779. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  10780. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10781. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10782. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10783. - ;;
  10784. + *.$objext)
  10785. + # This assumes that the test object file only shows up
  10786. + # once in the compiler output.
  10787. + if test "$p" = "conftest.$objext"; then
  10788. + pre_test_object_deps_done=yes
  10789. + continue
  10790. + fi
  10791. - unicos*)
  10792. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10793. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10794. - ;;
  10795. + if test "$pre_test_object_deps_done" = no; then
  10796. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10797. + _LT_TAGVAR(predep_objects, $1)="$p"
  10798. + else
  10799. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10800. + fi
  10801. + else
  10802. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10803. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10804. + else
  10805. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10806. + fi
  10807. + fi
  10808. + ;;
  10809. - uts4*)
  10810. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10811. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10812. - ;;
  10813. + *) ;; # Ignore the rest.
  10814. - *)
  10815. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10816. - ;;
  10817. esac
  10818. - fi
  10819. -])
  10820. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  10821. + done
  10822. -#
  10823. -# Check to make sure the PIC flag actually works.
  10824. -#
  10825. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  10826. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  10827. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  10828. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  10829. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  10830. - "" | " "*) ;;
  10831. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  10832. - esac],
  10833. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10834. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  10835. + # Clean up.
  10836. + rm -f a.out a.exe
  10837. +else
  10838. + echo "libtool.m4: error: problem compiling $1 test program"
  10839. fi
  10840. -case $host_os in
  10841. - # For platforms which do not support PIC, -DPIC is meaningless:
  10842. - *djgpp*)
  10843. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  10844. - ;;
  10845. - *)
  10846. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  10847. - ;;
  10848. -esac
  10849. -
  10850. -#
  10851. -# Check to make sure the static flag actually works.
  10852. -#
  10853. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  10854. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  10855. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  10856. - $lt_tmp_static_flag,
  10857. - [],
  10858. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  10859. -])
  10860. +$RM -f confest.$objext
  10861. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  10862. -# ------------------------------------
  10863. -# See if the linker supports building shared libraries.
  10864. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  10865. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  10866. -ifelse([$1],[CXX],[
  10867. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10868. - case $host_os in
  10869. - aix4* | aix5*)
  10870. - # If we're using GNU nm, then we don't want the "-C" option.
  10871. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10872. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10873. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  10874. - else
  10875. - _LT_AC_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'
  10876. - fi
  10877. - ;;
  10878. - pw32*)
  10879. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  10880. - ;;
  10881. - cygwin* | mingw*)
  10882. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  10883. - ;;
  10884. - *)
  10885. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10886. +# PORTME: override above test on systems where it is broken
  10887. +m4_if([$1], [CXX],
  10888. +[case $host_os in
  10889. +interix[[3-9]]*)
  10890. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10891. + # hack all around it, let's just trust "g++" to DTRT.
  10892. + _LT_TAGVAR(predep_objects,$1)=
  10893. + _LT_TAGVAR(postdep_objects,$1)=
  10894. + _LT_TAGVAR(postdeps,$1)=
  10895. ;;
  10896. - esac
  10897. -],[
  10898. - runpath_var=
  10899. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10900. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10901. - _LT_AC_TAGVAR(archive_cmds, $1)=
  10902. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  10903. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  10904. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  10905. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  10906. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  10907. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  10908. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10909. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10910. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10911. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10912. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  10913. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10914. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  10915. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  10916. - _LT_AC_TAGVAR(module_cmds, $1)=
  10917. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  10918. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  10919. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  10920. - # include_expsyms should be a list of space-separated symbols to be *always*
  10921. - # included in the symbol list
  10922. - _LT_AC_TAGVAR(include_expsyms, $1)=
  10923. - # exclude_expsyms can be an extended regexp of symbols to exclude
  10924. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  10925. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  10926. - # as well as any symbol that contains `d'.
  10927. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  10928. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  10929. - # platforms (ab)use it in PIC code, but their linkers get confused if
  10930. - # the symbol is explicitly referenced. Since portable code cannot
  10931. - # rely on this symbol name, it's probably fine to never include it in
  10932. - # preloaded symbol tables.
  10933. - extract_expsyms_cmds=
  10934. - # Just being paranoid about ensuring that cc_basename is set.
  10935. - _LT_CC_BASENAME([$compiler])
  10936. - case $host_os in
  10937. - cygwin* | mingw* | pw32*)
  10938. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  10939. - # When not using gcc, we currently assume that we are using
  10940. - # Microsoft Visual C++.
  10941. - if test "$GCC" != yes; then
  10942. - with_gnu_ld=no
  10943. - fi
  10944. - ;;
  10945. - interix*)
  10946. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  10947. - with_gnu_ld=yes
  10948. - ;;
  10949. - openbsd*)
  10950. - with_gnu_ld=no
  10951. - ;;
  10952. - esac
  10953. -
  10954. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10955. - if test "$with_gnu_ld" = yes; then
  10956. - # If archive_cmds runs LD, not CC, wlarc should be empty
  10957. - wlarc='${wl}'
  10958. -
  10959. - # Set some defaults for GNU ld with shared library support. These
  10960. - # are reset later if shared libraries are not supported. Putting them
  10961. - # here allows them to be overridden if necessary.
  10962. - runpath_var=LD_RUN_PATH
  10963. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10964. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10965. - # ancient GNU ld didn't support --whole-archive et. al.
  10966. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  10967. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10968. - else
  10969. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  10970. - fi
  10971. - supports_anon_versioning=no
  10972. - case `$LD -v 2>/dev/null` in
  10973. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  10974. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10975. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10976. - *\ 2.11.*) ;; # other 2.11 versions
  10977. - *) supports_anon_versioning=yes ;;
  10978. - esac
  10979. -
  10980. - # See if GNU ld supports shared libraries.
  10981. - case $host_os in
  10982. - aix3* | aix4* | aix5*)
  10983. - # On AIX/PPC, the GNU linker is very broken
  10984. - if test "$host_cpu" != ia64; then
  10985. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10986. - cat <<EOF 1>&2
  10987. -
  10988. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  10989. -*** to be unable to reliably create shared libraries on AIX.
  10990. -*** Therefore, libtool is disabling shared libraries support. If you
  10991. -*** really care for shared libraries, you may want to modify your PATH
  10992. -*** so that a non-GNU linker is found, and then restart.
  10993. -
  10994. -EOF
  10995. - fi
  10996. - ;;
  10997. - amigaos*)
  10998. - _LT_AC_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)'
  10999. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11000. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11001. -
  11002. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11003. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11004. - # to version 4, is to share data among multiple programs linked
  11005. - # with the same dynamic library. Since this doesn't match the
  11006. - # behavior of shared libraries on other platforms, we can't use
  11007. - # them.
  11008. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11009. - ;;
  11010. +linux*)
  11011. + case `$CC -V 2>&1 | sed 5q` in
  11012. + *Sun\ C*)
  11013. + # Sun C++ 5.9
  11014. - beos*)
  11015. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11016. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11017. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11018. - # support --undefined. This deserves some investigation. FIXME
  11019. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11020. - else
  11021. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11022. - fi
  11023. + # The more standards-conforming stlport4 library is
  11024. + # incompatible with the Cstd library. Avoid specifying
  11025. + # it if it's in CXXFLAGS. Ignore libCrun as
  11026. + # -library=stlport4 depends on it.
  11027. + case " $CXX $CXXFLAGS " in
  11028. + *" -library=stlport4 "*)
  11029. + solaris_use_stlport4=yes
  11030. ;;
  11031. + esac
  11032. - cygwin* | mingw* | pw32*)
  11033. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11034. - # as there is no search path for DLLs.
  11035. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11036. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11037. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11038. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11039. - _LT_AC_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'
  11040. -
  11041. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11042. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11043. - # If the export-symbols file already is a .def file (1st line
  11044. - # is EXPORTS), use it as is; otherwise, prepend...
  11045. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11046. - cp $export_symbols $output_objdir/$soname.def;
  11047. - else
  11048. - echo EXPORTS > $output_objdir/$soname.def;
  11049. - cat $export_symbols >> $output_objdir/$soname.def;
  11050. - fi~
  11051. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11052. - else
  11053. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11054. - fi
  11055. - ;;
  11056. + if test "$solaris_use_stlport4" != yes; then
  11057. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11058. + fi
  11059. + ;;
  11060. + esac
  11061. + ;;
  11062. - interix3*)
  11063. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11064. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11065. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11066. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11067. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11068. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  11069. - # default) and relocated if they conflict, which is a slow very memory
  11070. - # consuming and fragmenting process. To avoid this, we pick a random,
  11071. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11072. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11073. - _LT_AC_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'
  11074. - _LT_AC_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'
  11075. +solaris*)
  11076. + case $cc_basename in
  11077. + CC*)
  11078. + # The more standards-conforming stlport4 library is
  11079. + # incompatible with the Cstd library. Avoid specifying
  11080. + # it if it's in CXXFLAGS. Ignore libCrun as
  11081. + # -library=stlport4 depends on it.
  11082. + case " $CXX $CXXFLAGS " in
  11083. + *" -library=stlport4 "*)
  11084. + solaris_use_stlport4=yes
  11085. ;;
  11086. + esac
  11087. - linux*)
  11088. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11089. - tmp_addflag=
  11090. - case $cc_basename,$host_cpu in
  11091. - pgcc*) # Portland Group C compiler
  11092. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11093. - tmp_addflag=' $pic_flag'
  11094. - ;;
  11095. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  11096. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  11097. - tmp_addflag=' $pic_flag -Mnomain' ;;
  11098. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11099. - tmp_addflag=' -i_dynamic' ;;
  11100. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11101. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11102. - ifc* | ifort*) # Intel Fortran compiler
  11103. - tmp_addflag=' -nofor_main' ;;
  11104. - esac
  11105. - case `$CC -V 2>&1 | sed 5q` in
  11106. - *Sun\ C*) # Sun C 5.9
  11107. - _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
  11108. - tmp_sharedflag='-G' ;;
  11109. - *Sun\ F*) # Sun Fortran 8.3
  11110. - tmp_sharedflag='-G' ;;
  11111. - *)
  11112. - tmp_sharedflag='-shared' ;;
  11113. - esac
  11114. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11115. + # Adding this requires a known-good setup of shared libraries for
  11116. + # Sun compiler versions before 5.6, else PIC objects from an old
  11117. + # archive will be linked into the output, leading to subtle bugs.
  11118. + if test "$solaris_use_stlport4" != yes; then
  11119. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  11120. + fi
  11121. + ;;
  11122. + esac
  11123. + ;;
  11124. +esac
  11125. +])
  11126. - if test $supports_anon_versioning = yes; then
  11127. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11128. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11129. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11130. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11131. - fi
  11132. - else
  11133. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11134. - fi
  11135. - ;;
  11136. +case " $_LT_TAGVAR(postdeps, $1) " in
  11137. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  11138. +esac
  11139. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  11140. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  11141. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11142. +fi
  11143. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  11144. + [The directories searched by this compiler when creating a shared library])
  11145. +_LT_TAGDECL([], [predep_objects], [1],
  11146. + [Dependencies to place before and after the objects being linked to
  11147. + create a shared library])
  11148. +_LT_TAGDECL([], [postdep_objects], [1])
  11149. +_LT_TAGDECL([], [predeps], [1])
  11150. +_LT_TAGDECL([], [postdeps], [1])
  11151. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  11152. + [The library search path used internally by the compiler when linking
  11153. + a shared library])
  11154. +])# _LT_SYS_HIDDEN_LIBDEPS
  11155. +
  11156. +
  11157. +# _LT_PROG_F77
  11158. +# ------------
  11159. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  11160. +# if there is no fortran compiler, we have our own version here.
  11161. +m4_defun([_LT_PROG_F77],
  11162. +[
  11163. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  11164. +AC_PROG_F77
  11165. +if test -z "$F77" || test "X$F77" = "Xno"; then
  11166. + _lt_disable_F77=yes
  11167. +fi
  11168. +popdef([AC_MSG_ERROR])
  11169. +])# _LT_PROG_F77
  11170. - netbsd*)
  11171. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11172. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11173. - wlarc=
  11174. - else
  11175. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11176. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11177. - fi
  11178. - ;;
  11179. +dnl aclocal-1.4 backwards compatibility:
  11180. +dnl AC_DEFUN([_LT_PROG_F77], [])
  11181. - solaris*)
  11182. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11183. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11184. - cat <<EOF 1>&2
  11185. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11186. -*** create shared libraries on Solaris systems. Therefore, libtool
  11187. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11188. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11189. -*** your PATH or compiler configuration so that the native linker is
  11190. -*** used, and then restart.
  11191. +# _LT_LANG_F77_CONFIG([TAG])
  11192. +# --------------------------
  11193. +# Ensure that the configuration variables for a Fortran 77 compiler are
  11194. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  11195. +# to write the compiler configuration to `libtool'.
  11196. +m4_defun([_LT_LANG_F77_CONFIG],
  11197. +[AC_REQUIRE([_LT_PROG_F77])dnl
  11198. +AC_LANG_PUSH(Fortran 77)
  11199. -EOF
  11200. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11201. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11202. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11203. - else
  11204. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11205. - fi
  11206. - ;;
  11207. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11208. +_LT_TAGVAR(allow_undefined_flag, $1)=
  11209. +_LT_TAGVAR(always_export_symbols, $1)=no
  11210. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  11211. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11212. +_LT_TAGVAR(hardcode_direct, $1)=no
  11213. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11214. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11215. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11216. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11217. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  11218. +_LT_TAGVAR(hardcode_automatic, $1)=no
  11219. +_LT_TAGVAR(inherit_rpath, $1)=no
  11220. +_LT_TAGVAR(module_cmds, $1)=
  11221. +_LT_TAGVAR(module_expsym_cmds, $1)=
  11222. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11223. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11224. +_LT_TAGVAR(no_undefined_flag, $1)=
  11225. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11226. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11227. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  11228. - case `$LD -v 2>&1` in
  11229. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  11230. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11231. - cat <<_LT_EOF 1>&2
  11232. +# Source file extension for f77 test sources.
  11233. +ac_ext=f
  11234. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  11235. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  11236. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11237. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  11238. -*** your PATH or compiler configuration so that the native linker is
  11239. -*** used, and then restart.
  11240. +# Object file extension for compiled f77 test sources.
  11241. +objext=o
  11242. +_LT_TAGVAR(objext, $1)=$objext
  11243. -_LT_EOF
  11244. - ;;
  11245. - *)
  11246. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11247. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  11248. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  11249. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  11250. - else
  11251. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11252. - fi
  11253. - ;;
  11254. - esac
  11255. - ;;
  11256. +# No sense in running all these tests if we already determined that
  11257. +# the F77 compiler isn't working. Some variables (like enable_shared)
  11258. +# are currently assumed to apply to all compilers on this platform,
  11259. +# and will be corrupted by setting them based on a non-working compiler.
  11260. +if test "$_lt_disable_F77" != yes; then
  11261. + # Code to be used in simple compile tests
  11262. + lt_simple_compile_test_code="\
  11263. + subroutine t
  11264. + return
  11265. + end
  11266. +"
  11267. - sunos4*)
  11268. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11269. - wlarc=
  11270. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11271. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11272. - ;;
  11273. + # Code to be used in simple link tests
  11274. + lt_simple_link_test_code="\
  11275. + program t
  11276. + end
  11277. +"
  11278. - *)
  11279. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11280. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11281. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11282. - else
  11283. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11284. - fi
  11285. - ;;
  11286. - esac
  11287. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11288. + _LT_TAG_COMPILER
  11289. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11290. - runpath_var=
  11291. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11292. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11293. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11294. - fi
  11295. - else
  11296. - # PORTME fill in a description of your system's linker (not GNU ld)
  11297. - case $host_os in
  11298. - aix3*)
  11299. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11300. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11301. - _LT_AC_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'
  11302. - # Note: this linker hardcodes the directories in LIBPATH if there
  11303. - # are no directories specified by -L.
  11304. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11305. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  11306. - # Neither direct hardcoding nor static linking is supported with a
  11307. - # broken collect2.
  11308. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11309. - fi
  11310. - ;;
  11311. + # save warnings/boilerplate of simple test code
  11312. + _LT_COMPILER_BOILERPLATE
  11313. + _LT_LINKER_BOILERPLATE
  11314. +
  11315. + # Allow CC to be a program name with arguments.
  11316. + lt_save_CC="$CC"
  11317. + lt_save_GCC=$GCC
  11318. + CC=${F77-"f77"}
  11319. + compiler=$CC
  11320. + _LT_TAGVAR(compiler, $1)=$CC
  11321. + _LT_CC_BASENAME([$compiler])
  11322. + GCC=$G77
  11323. + if test -n "$compiler"; then
  11324. + AC_MSG_CHECKING([if libtool supports shared libraries])
  11325. + AC_MSG_RESULT([$can_build_shared])
  11326. - aix4* | aix5*)
  11327. - if test "$host_cpu" = ia64; then
  11328. - # On IA64, the linker does run time linking by default, so we don't
  11329. - # have to do anything special.
  11330. - aix_use_runtimelinking=no
  11331. - exp_sym_flag='-Bexport'
  11332. - no_entry_flag=""
  11333. - else
  11334. - # If we're using GNU nm, then we don't want the "-C" option.
  11335. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11336. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11337. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11338. - else
  11339. - _LT_AC_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'
  11340. + AC_MSG_CHECKING([whether to build shared libraries])
  11341. + test "$can_build_shared" = "no" && enable_shared=no
  11342. +
  11343. + # On AIX, shared libraries and static libraries use the same namespace, and
  11344. + # are all built from PIC.
  11345. + case $host_os in
  11346. + aix3*)
  11347. + test "$enable_shared" = yes && enable_static=no
  11348. + if test -n "$RANLIB"; then
  11349. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11350. + postinstall_cmds='$RANLIB $lib'
  11351. + fi
  11352. + ;;
  11353. + aix[[4-9]]*)
  11354. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11355. + test "$enable_shared" = yes && enable_static=no
  11356. fi
  11357. - aix_use_runtimelinking=no
  11358. + ;;
  11359. + esac
  11360. + AC_MSG_RESULT([$enable_shared])
  11361. - # Test if we are trying to use run time linking or normal
  11362. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11363. - # need to do runtime linking.
  11364. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11365. - for ld_flag in $LDFLAGS; do
  11366. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11367. - aix_use_runtimelinking=yes
  11368. - break
  11369. - fi
  11370. - done
  11371. - ;;
  11372. - esac
  11373. + AC_MSG_CHECKING([whether to build static libraries])
  11374. + # Make sure either enable_shared or enable_static is yes.
  11375. + test "$enable_shared" = yes || enable_static=yes
  11376. + AC_MSG_RESULT([$enable_static])
  11377. +
  11378. + _LT_TAGVAR(GCC, $1)="$G77"
  11379. + _LT_TAGVAR(LD, $1)="$LD"
  11380. +
  11381. + ## CAVEAT EMPTOR:
  11382. + ## There is no encapsulation within the following macros, do not change
  11383. + ## the running order or otherwise move them around unless you know exactly
  11384. + ## what you are doing...
  11385. + _LT_COMPILER_PIC($1)
  11386. + _LT_COMPILER_C_O($1)
  11387. + _LT_COMPILER_FILE_LOCKS($1)
  11388. + _LT_LINKER_SHLIBS($1)
  11389. + _LT_SYS_DYNAMIC_LINKER($1)
  11390. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11391. +
  11392. + _LT_CONFIG($1)
  11393. + fi # test -n "$compiler"
  11394. +
  11395. + GCC=$lt_save_GCC
  11396. + CC="$lt_save_CC"
  11397. +fi # test "$_lt_disable_F77" != yes
  11398. - exp_sym_flag='-bexport'
  11399. - no_entry_flag='-bnoentry'
  11400. - fi
  11401. +AC_LANG_POP
  11402. +])# _LT_LANG_F77_CONFIG
  11403. - # When large executables or shared objects are built, AIX ld can
  11404. - # have problems creating the table of contents. If linking a library
  11405. - # or program results in "error TOC overflow" add -mminimal-toc to
  11406. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11407. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11408. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11409. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11410. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11411. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11412. +# _LT_PROG_FC
  11413. +# -----------
  11414. +# Since AC_PROG_FC is broken, in that it returns the empty string
  11415. +# if there is no fortran compiler, we have our own version here.
  11416. +m4_defun([_LT_PROG_FC],
  11417. +[
  11418. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  11419. +AC_PROG_FC
  11420. +if test -z "$FC" || test "X$FC" = "Xno"; then
  11421. + _lt_disable_FC=yes
  11422. +fi
  11423. +popdef([AC_MSG_ERROR])
  11424. +])# _LT_PROG_FC
  11425. - if test "$GCC" = yes; then
  11426. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  11427. - # We only want to do this on AIX 4.2 and lower, the check
  11428. - # below for broken collect2 doesn't work under 4.3+
  11429. - collect2name=`${CC} -print-prog-name=collect2`
  11430. - if test -f "$collect2name" && \
  11431. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11432. - then
  11433. - # We have reworked collect2
  11434. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11435. - else
  11436. - # We have old collect2
  11437. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11438. - # It fails to find uninstalled libraries when the uninstalled
  11439. - # path is not listed in the libpath. Setting hardcode_minus_L
  11440. - # to unsupported forces relinking
  11441. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11442. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11443. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11444. - fi
  11445. - ;;
  11446. - esac
  11447. - shared_flag='-shared'
  11448. - if test "$aix_use_runtimelinking" = yes; then
  11449. - shared_flag="$shared_flag "'${wl}-G'
  11450. - fi
  11451. - else
  11452. - # not using gcc
  11453. - if test "$host_cpu" = ia64; then
  11454. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11455. - # chokes on -Wl,-G. The following line is correct:
  11456. - shared_flag='-G'
  11457. - else
  11458. - if test "$aix_use_runtimelinking" = yes; then
  11459. - shared_flag='${wl}-G'
  11460. - else
  11461. - shared_flag='${wl}-bM:SRE'
  11462. - fi
  11463. - fi
  11464. - fi
  11465. +dnl aclocal-1.4 backwards compatibility:
  11466. +dnl AC_DEFUN([_LT_PROG_FC], [])
  11467. - # It seems that -bexpall does not export symbols beginning with
  11468. - # underscore (_), so it is better to generate a list of symbols to export.
  11469. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11470. - if test "$aix_use_runtimelinking" = yes; then
  11471. - # Warning - without using the other runtime loading flags (-brtl),
  11472. - # -berok will link without error, but may produce a broken library.
  11473. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11474. - # Determine the default libpath from the value encoded in an empty executable.
  11475. - _LT_AC_SYS_LIBPATH_AIX
  11476. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11477. - _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11478. - else
  11479. - if test "$host_cpu" = ia64; then
  11480. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11481. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11482. - _LT_AC_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"
  11483. - else
  11484. - # Determine the default libpath from the value encoded in an empty executable.
  11485. - _LT_AC_SYS_LIBPATH_AIX
  11486. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11487. - # Warning - without using the other run time loading flags,
  11488. - # -berok will link without error, but may produce a broken library.
  11489. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11490. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11491. - # Exported symbols can be pulled into shared objects from archives
  11492. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  11493. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11494. - # This is similar to how AIX traditionally builds its shared libraries.
  11495. - _LT_AC_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'
  11496. - fi
  11497. - fi
  11498. - ;;
  11499. - amigaos*)
  11500. - _LT_AC_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)'
  11501. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11502. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11503. - # see comment about different semantics on the GNU ld section
  11504. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11505. - ;;
  11506. +# _LT_LANG_FC_CONFIG([TAG])
  11507. +# -------------------------
  11508. +# Ensure that the configuration variables for a Fortran compiler are
  11509. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  11510. +# to write the compiler configuration to `libtool'.
  11511. +m4_defun([_LT_LANG_FC_CONFIG],
  11512. +[AC_REQUIRE([_LT_PROG_FC])dnl
  11513. +AC_LANG_PUSH(Fortran)
  11514. +
  11515. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11516. +_LT_TAGVAR(allow_undefined_flag, $1)=
  11517. +_LT_TAGVAR(always_export_symbols, $1)=no
  11518. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  11519. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  11520. +_LT_TAGVAR(hardcode_direct, $1)=no
  11521. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  11522. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11523. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11524. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  11525. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  11526. +_LT_TAGVAR(hardcode_automatic, $1)=no
  11527. +_LT_TAGVAR(inherit_rpath, $1)=no
  11528. +_LT_TAGVAR(module_cmds, $1)=
  11529. +_LT_TAGVAR(module_expsym_cmds, $1)=
  11530. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  11531. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11532. +_LT_TAGVAR(no_undefined_flag, $1)=
  11533. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  11534. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11535. - bsdi[[45]]*)
  11536. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11537. - ;;
  11538. +# Source file extension for fc test sources.
  11539. +ac_ext=${ac_fc_srcext-f}
  11540. - cygwin* | mingw* | pw32*)
  11541. - # When not using gcc, we currently assume that we are using
  11542. - # Microsoft Visual C++.
  11543. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  11544. - # no search path for DLLs.
  11545. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  11546. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11547. - # Tell ltmain to make .lib files, not .a files.
  11548. - libext=lib
  11549. - # Tell ltmain to make .dll files, not .so files.
  11550. - shrext_cmds=".dll"
  11551. - # FIXME: Setting linknames here is a bad hack.
  11552. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11553. - # The linker will automatically build a .lib file if we build a DLL.
  11554. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  11555. - # FIXME: Should let the user specify the lib program.
  11556. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11557. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  11558. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11559. - ;;
  11560. +# Object file extension for compiled fc test sources.
  11561. +objext=o
  11562. +_LT_TAGVAR(objext, $1)=$objext
  11563. - darwin* | rhapsody*)
  11564. - case $host_os in
  11565. - rhapsody* | darwin1.[[012]])
  11566. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  11567. - ;;
  11568. - *) # Darwin 1.3 on
  11569. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11570. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11571. - else
  11572. - case ${MACOSX_DEPLOYMENT_TARGET} in
  11573. - 10.[[012]])
  11574. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  11575. - ;;
  11576. - 10.*)
  11577. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  11578. - ;;
  11579. - esac
  11580. - fi
  11581. - ;;
  11582. - esac
  11583. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11584. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11585. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  11586. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11587. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  11588. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11589. - if test "$GCC" = yes ; then
  11590. - output_verbose_link_cmd='echo'
  11591. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11592. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11593. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11594. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11595. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11596. - else
  11597. - case $cc_basename in
  11598. - xlc*)
  11599. - output_verbose_link_cmd='echo'
  11600. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  11601. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11602. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  11603. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11604. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11605. - ;;
  11606. - *)
  11607. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11608. - ;;
  11609. - esac
  11610. - fi
  11611. - ;;
  11612. +# No sense in running all these tests if we already determined that
  11613. +# the FC compiler isn't working. Some variables (like enable_shared)
  11614. +# are currently assumed to apply to all compilers on this platform,
  11615. +# and will be corrupted by setting them based on a non-working compiler.
  11616. +if test "$_lt_disable_FC" != yes; then
  11617. + # Code to be used in simple compile tests
  11618. + lt_simple_compile_test_code="\
  11619. + subroutine t
  11620. + return
  11621. + end
  11622. +"
  11623. - dgux*)
  11624. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11625. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11626. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11627. - ;;
  11628. + # Code to be used in simple link tests
  11629. + lt_simple_link_test_code="\
  11630. + program t
  11631. + end
  11632. +"
  11633. - freebsd1*)
  11634. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11635. - ;;
  11636. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11637. + _LT_TAG_COMPILER
  11638. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11639. - # support. Future versions do this automatically, but an explicit c++rt0.o
  11640. - # does not break anything, and helps significantly (at the cost of a little
  11641. - # extra space).
  11642. - freebsd2.2*)
  11643. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11644. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11645. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11646. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11647. - ;;
  11648. + # save warnings/boilerplate of simple test code
  11649. + _LT_COMPILER_BOILERPLATE
  11650. + _LT_LINKER_BOILERPLATE
  11651. +
  11652. + # Allow CC to be a program name with arguments.
  11653. + lt_save_CC="$CC"
  11654. + lt_save_GCC=$GCC
  11655. + CC=${FC-"f95"}
  11656. + compiler=$CC
  11657. + GCC=$ac_cv_fc_compiler_gnu
  11658. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11659. - freebsd2*)
  11660. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11661. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11662. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11663. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11664. - ;;
  11665. + _LT_TAGVAR(compiler, $1)=$CC
  11666. + _LT_CC_BASENAME([$compiler])
  11667. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11668. - freebsd* | kfreebsd*-gnu | dragonfly*)
  11669. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11670. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11671. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11672. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11673. - ;;
  11674. + if test -n "$compiler"; then
  11675. + AC_MSG_CHECKING([if libtool supports shared libraries])
  11676. + AC_MSG_RESULT([$can_build_shared])
  11677. - hpux9*)
  11678. - if test "$GCC" = yes; then
  11679. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11680. - else
  11681. - _LT_AC_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'
  11682. - fi
  11683. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11684. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11685. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11686. + AC_MSG_CHECKING([whether to build shared libraries])
  11687. + test "$can_build_shared" = "no" && enable_shared=no
  11688. - # hardcode_minus_L: Not really in the search PATH,
  11689. - # but as the default location of the library.
  11690. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11691. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11692. - ;;
  11693. + # On AIX, shared libraries and static libraries use the same namespace, and
  11694. + # are all built from PIC.
  11695. + case $host_os in
  11696. + aix3*)
  11697. + test "$enable_shared" = yes && enable_static=no
  11698. + if test -n "$RANLIB"; then
  11699. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11700. + postinstall_cmds='$RANLIB $lib'
  11701. + fi
  11702. + ;;
  11703. + aix[[4-9]]*)
  11704. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11705. + test "$enable_shared" = yes && enable_static=no
  11706. + fi
  11707. + ;;
  11708. + esac
  11709. + AC_MSG_RESULT([$enable_shared])
  11710. - hpux10*)
  11711. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11712. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11713. - else
  11714. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11715. - fi
  11716. - if test "$with_gnu_ld" = no; then
  11717. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11718. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11719. + AC_MSG_CHECKING([whether to build static libraries])
  11720. + # Make sure either enable_shared or enable_static is yes.
  11721. + test "$enable_shared" = yes || enable_static=yes
  11722. + AC_MSG_RESULT([$enable_static])
  11723. +
  11724. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  11725. + _LT_TAGVAR(LD, $1)="$LD"
  11726. +
  11727. + ## CAVEAT EMPTOR:
  11728. + ## There is no encapsulation within the following macros, do not change
  11729. + ## the running order or otherwise move them around unless you know exactly
  11730. + ## what you are doing...
  11731. + _LT_SYS_HIDDEN_LIBDEPS($1)
  11732. + _LT_COMPILER_PIC($1)
  11733. + _LT_COMPILER_C_O($1)
  11734. + _LT_COMPILER_FILE_LOCKS($1)
  11735. + _LT_LINKER_SHLIBS($1)
  11736. + _LT_SYS_DYNAMIC_LINKER($1)
  11737. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11738. +
  11739. + _LT_CONFIG($1)
  11740. + fi # test -n "$compiler"
  11741. +
  11742. + GCC=$lt_save_GCC
  11743. + CC="$lt_save_CC"
  11744. +fi # test "$_lt_disable_FC" != yes
  11745. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11746. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11747. +AC_LANG_POP
  11748. +])# _LT_LANG_FC_CONFIG
  11749. - # hardcode_minus_L: Not really in the search PATH,
  11750. - # but as the default location of the library.
  11751. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11752. - fi
  11753. - ;;
  11754. - hpux11*)
  11755. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11756. - case $host_cpu in
  11757. - hppa*64*)
  11758. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11759. - ;;
  11760. - ia64*)
  11761. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11762. - ;;
  11763. - *)
  11764. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11765. - ;;
  11766. - esac
  11767. - else
  11768. - case $host_cpu in
  11769. - hppa*64*)
  11770. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11771. - ;;
  11772. - ia64*)
  11773. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  11774. - ;;
  11775. - *)
  11776. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11777. - ;;
  11778. - esac
  11779. - fi
  11780. - if test "$with_gnu_ld" = no; then
  11781. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11782. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11783. +# _LT_LANG_GCJ_CONFIG([TAG])
  11784. +# --------------------------
  11785. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  11786. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  11787. +# to write the compiler configuration to `libtool'.
  11788. +m4_defun([_LT_LANG_GCJ_CONFIG],
  11789. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  11790. +AC_LANG_SAVE
  11791. - case $host_cpu in
  11792. - hppa*64*|ia64*)
  11793. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  11794. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11795. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11796. - ;;
  11797. - *)
  11798. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11799. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11800. +# Source file extension for Java test sources.
  11801. +ac_ext=java
  11802. - # hardcode_minus_L: Not really in the search PATH,
  11803. - # but as the default location of the library.
  11804. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11805. - ;;
  11806. - esac
  11807. - fi
  11808. - ;;
  11809. +# Object file extension for compiled Java test sources.
  11810. +objext=o
  11811. +_LT_TAGVAR(objext, $1)=$objext
  11812. - irix5* | irix6* | nonstopux*)
  11813. - if test "$GCC" = yes; then
  11814. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11815. - else
  11816. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11817. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  11818. - fi
  11819. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11820. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11821. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11822. - ;;
  11823. +# Code to be used in simple compile tests
  11824. +lt_simple_compile_test_code="class foo {}"
  11825. - netbsd*)
  11826. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11827. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11828. - else
  11829. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11830. - fi
  11831. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11832. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11833. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11834. - ;;
  11835. +# Code to be used in simple link tests
  11836. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  11837. - newsos6)
  11838. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11839. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11840. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11841. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11842. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11843. - ;;
  11844. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  11845. +_LT_TAG_COMPILER
  11846. +
  11847. +# save warnings/boilerplate of simple test code
  11848. +_LT_COMPILER_BOILERPLATE
  11849. +_LT_LINKER_BOILERPLATE
  11850. +
  11851. +# Allow CC to be a program name with arguments.
  11852. +lt_save_CC="$CC"
  11853. +lt_save_GCC=$GCC
  11854. +GCC=yes
  11855. +CC=${GCJ-"gcj"}
  11856. +compiler=$CC
  11857. +_LT_TAGVAR(compiler, $1)=$CC
  11858. +_LT_TAGVAR(LD, $1)="$LD"
  11859. +_LT_CC_BASENAME([$compiler])
  11860. - openbsd*)
  11861. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11862. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11863. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11864. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11865. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  11866. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11867. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11868. - else
  11869. - case $host_os in
  11870. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  11871. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11872. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11873. - ;;
  11874. - *)
  11875. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11876. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11877. - ;;
  11878. - esac
  11879. - fi
  11880. - ;;
  11881. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  11882. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  11883. - os2*)
  11884. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11885. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11886. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11887. - _LT_AC_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'
  11888. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  11889. - ;;
  11890. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  11891. - osf3*)
  11892. - if test "$GCC" = yes; then
  11893. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  11894. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11895. - else
  11896. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  11897. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11898. - fi
  11899. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11900. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11901. - ;;
  11902. +## CAVEAT EMPTOR:
  11903. +## There is no encapsulation within the following macros, do not change
  11904. +## the running order or otherwise move them around unless you know exactly
  11905. +## what you are doing...
  11906. +if test -n "$compiler"; then
  11907. + _LT_COMPILER_NO_RTTI($1)
  11908. + _LT_COMPILER_PIC($1)
  11909. + _LT_COMPILER_C_O($1)
  11910. + _LT_COMPILER_FILE_LOCKS($1)
  11911. + _LT_LINKER_SHLIBS($1)
  11912. + _LT_LINKER_HARDCODE_LIBPATH($1)
  11913. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  11914. - if test "$GCC" = yes; then
  11915. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  11916. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11917. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11918. - else
  11919. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  11920. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11921. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  11922. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  11923. + _LT_CONFIG($1)
  11924. +fi
  11925. - # Both c and cxx compiler support -rpath directly
  11926. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  11927. - fi
  11928. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11929. - ;;
  11930. +AC_LANG_RESTORE
  11931. - solaris*)
  11932. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  11933. - if test "$GCC" = yes; then
  11934. - wlarc='${wl}'
  11935. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11936. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11937. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  11938. - else
  11939. - wlarc=''
  11940. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11941. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  11942. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  11943. - fi
  11944. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11945. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11946. - case $host_os in
  11947. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  11948. - *)
  11949. - # The compiler driver will combine linker options so we
  11950. - # cannot just pass the convience library names through
  11951. - # without $wl, iff we do not link with $LD.
  11952. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  11953. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  11954. - case $wlarc in
  11955. - '')
  11956. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  11957. - *)
  11958. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  11959. - esac ;;
  11960. - esac
  11961. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11962. - ;;
  11963. +GCC=$lt_save_GCC
  11964. +CC="$lt_save_CC"
  11965. +])# _LT_LANG_GCJ_CONFIG
  11966. - sunos4*)
  11967. - if test "x$host_vendor" = xsequent; then
  11968. - # Use $CC to link under sequent, because it throws in some extra .o
  11969. - # files that make .init and .fini sections work.
  11970. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  11971. - else
  11972. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  11973. - fi
  11974. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11975. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11976. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11977. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11978. - ;;
  11979. - sysv4)
  11980. - case $host_vendor in
  11981. - sni)
  11982. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11983. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  11984. - ;;
  11985. - siemens)
  11986. - ## LD is ld it makes a PLAMLIB
  11987. - ## CC just makes a GrossModule.
  11988. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  11989. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  11990. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11991. - ;;
  11992. - motorola)
  11993. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11994. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  11995. - ;;
  11996. - esac
  11997. - runpath_var='LD_RUN_PATH'
  11998. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11999. - ;;
  12000. +# _LT_LANG_RC_CONFIG([TAG])
  12001. +# -------------------------
  12002. +# Ensure that the configuration variables for the Windows resource compiler
  12003. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  12004. +# to write the compiler configuration to `libtool'.
  12005. +m4_defun([_LT_LANG_RC_CONFIG],
  12006. +[AC_REQUIRE([LT_PROG_RC])dnl
  12007. +AC_LANG_SAVE
  12008. - sysv4.3*)
  12009. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12010. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12011. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12012. - ;;
  12013. +# Source file extension for RC test sources.
  12014. +ac_ext=rc
  12015. - sysv4*MP*)
  12016. - if test -d /usr/nec; then
  12017. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12018. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12019. - runpath_var=LD_RUN_PATH
  12020. - hardcode_runpath_var=yes
  12021. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12022. - fi
  12023. - ;;
  12024. +# Object file extension for compiled RC test sources.
  12025. +objext=o
  12026. +_LT_TAGVAR(objext, $1)=$objext
  12027. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  12028. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12029. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12030. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12031. - runpath_var='LD_RUN_PATH'
  12032. +# Code to be used in simple compile tests
  12033. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  12034. - if test "$GCC" = yes; then
  12035. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12036. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12037. - else
  12038. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12039. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  12040. - fi
  12041. - ;;
  12042. +# Code to be used in simple link tests
  12043. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  12044. - sysv5* | sco3.2v5* | sco5v6*)
  12045. - # Note: We can NOT use -z defs as we might desire, because we do not
  12046. - # link with -lc, and that would cause any symbols used from libc to
  12047. - # always be unresolved, which means just about no library would
  12048. - # ever link correctly. If we're not using GNU ld we use -z text
  12049. - # though, which does catch some bad symbols but isn't as heavy-handed
  12050. - # as -z defs.
  12051. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  12052. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  12053. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12054. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12055. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  12056. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  12057. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12058. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12059. - runpath_var='LD_RUN_PATH'
  12060. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  12061. +_LT_TAG_COMPILER
  12062. - if test "$GCC" = yes; then
  12063. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12064. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12065. - else
  12066. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12067. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. - fi
  12069. - ;;
  12070. +# save warnings/boilerplate of simple test code
  12071. +_LT_COMPILER_BOILERPLATE
  12072. +_LT_LINKER_BOILERPLATE
  12073. - uts4*)
  12074. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12075. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12076. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12077. - ;;
  12078. +# Allow CC to be a program name with arguments.
  12079. +lt_save_CC="$CC"
  12080. +lt_save_GCC=$GCC
  12081. +GCC=
  12082. +CC=${RC-"windres"}
  12083. +compiler=$CC
  12084. +_LT_TAGVAR(compiler, $1)=$CC
  12085. +_LT_CC_BASENAME([$compiler])
  12086. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  12087. - *)
  12088. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12089. - ;;
  12090. - esac
  12091. - fi
  12092. -])
  12093. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12094. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12095. +if test -n "$compiler"; then
  12096. + :
  12097. + _LT_CONFIG($1)
  12098. +fi
  12099. -#
  12100. -# Do we need to explicitly link libc?
  12101. -#
  12102. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12103. -x|xyes)
  12104. - # Assume -lc should be added
  12105. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12106. +GCC=$lt_save_GCC
  12107. +AC_LANG_RESTORE
  12108. +CC="$lt_save_CC"
  12109. +])# _LT_LANG_RC_CONFIG
  12110. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12111. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12112. - *'~'*)
  12113. - # FIXME: we may have to deal with multi-command sequences.
  12114. - ;;
  12115. - '$CC '*)
  12116. - # Test whether the compiler implicitly links with -lc since on some
  12117. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12118. - # to ld, don't add -lc before -lgcc.
  12119. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12120. - $rm conftest*
  12121. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12122. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12123. - soname=conftest
  12124. - lib=conftest
  12125. - libobjs=conftest.$ac_objext
  12126. - deplibs=
  12127. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12128. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  12129. - compiler_flags=-v
  12130. - linker_flags=-v
  12131. - verstring=
  12132. - output_objdir=.
  12133. - libname=conftest
  12134. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12135. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12136. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12137. - then
  12138. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12139. - else
  12140. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12141. - fi
  12142. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12143. - else
  12144. - cat conftest.err 1>&5
  12145. - fi
  12146. - $rm conftest*
  12147. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12148. - ;;
  12149. - esac
  12150. - fi
  12151. - ;;
  12152. -esac
  12153. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12154. +# LT_PROG_GCJ
  12155. +# -----------
  12156. +AC_DEFUN([LT_PROG_GCJ],
  12157. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  12158. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  12159. + [AC_CHECK_TOOL(GCJ, gcj,)
  12160. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12161. + AC_SUBST(GCJFLAGS)])])[]dnl
  12162. +])
  12163. +# Old name:
  12164. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  12165. +dnl aclocal-1.4 backwards compatibility:
  12166. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  12167. -# _LT_AC_FILE_LTDLL_C
  12168. -# -------------------
  12169. -# Be careful that the start marker always follows a newline.
  12170. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12171. -# /* ltdll.c starts here */
  12172. -# #define WIN32_LEAN_AND_MEAN
  12173. -# #include <windows.h>
  12174. -# #undef WIN32_LEAN_AND_MEAN
  12175. -# #include <stdio.h>
  12176. -#
  12177. -# #ifndef __CYGWIN__
  12178. -# # ifdef __CYGWIN32__
  12179. -# # define __CYGWIN__ __CYGWIN32__
  12180. -# # endif
  12181. -# #endif
  12182. -#
  12183. -# #ifdef __cplusplus
  12184. -# extern "C" {
  12185. -# #endif
  12186. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12187. -# #ifdef __cplusplus
  12188. -# }
  12189. -# #endif
  12190. -#
  12191. -# #ifdef __CYGWIN__
  12192. -# #include <cygwin/cygwin_dll.h>
  12193. -# DECLARE_CYGWIN_DLL( DllMain );
  12194. -# #endif
  12195. -# HINSTANCE __hDllInstance_base;
  12196. -#
  12197. -# BOOL APIENTRY
  12198. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12199. -# {
  12200. -# __hDllInstance_base = hInst;
  12201. -# return TRUE;
  12202. -# }
  12203. -# /* ltdll.c ends here */
  12204. -])# _LT_AC_FILE_LTDLL_C
  12205. +# LT_PROG_RC
  12206. +# ----------
  12207. +AC_DEFUN([LT_PROG_RC],
  12208. +[AC_CHECK_TOOL(RC, windres,)
  12209. +])
  12210. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12211. -# ---------------------------------
  12212. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12213. +# Old name:
  12214. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  12215. +dnl aclocal-1.4 backwards compatibility:
  12216. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  12217. -# old names
  12218. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12219. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12220. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12221. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12222. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12223. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12224. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12225. -
  12226. -# This is just to silence aclocal about the macro not being used
  12227. -ifelse([AC_DISABLE_FAST_INSTALL])
  12228. -
  12229. -AC_DEFUN([LT_AC_PROG_GCJ],
  12230. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12231. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12232. - AC_SUBST(GCJFLAGS)
  12233. +# _LT_DECL_EGREP
  12234. +# --------------
  12235. +# If we don't have a new enough Autoconf to choose the best grep
  12236. +# available, choose the one first in the user's PATH.
  12237. +m4_defun([_LT_DECL_EGREP],
  12238. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  12239. +AC_REQUIRE([AC_PROG_FGREP])dnl
  12240. +test -z "$GREP" && GREP=grep
  12241. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  12242. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  12243. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  12244. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  12245. +AC_SUBST([GREP])
  12246. ])
  12247. -AC_DEFUN([LT_AC_PROG_RC],
  12248. -[AC_CHECK_TOOL(RC, windres, no)
  12249. -])
  12250. +# _LT_DECL_SED
  12251. +# ------------
  12252. +# Check for a fully-functional sed program, that truncates
  12253. +# as few characters as possible. Prefer GNU sed if found.
  12254. +m4_defun([_LT_DECL_SED],
  12255. +[AC_PROG_SED
  12256. +test -z "$SED" && SED=sed
  12257. +Xsed="$SED -e 1s/^X//"
  12258. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  12259. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  12260. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  12261. +])# _LT_DECL_SED
  12262. +
  12263. +m4_ifndef([AC_PROG_SED], [
  12264. ############################################################
  12265. # NOTE: This macro has been submitted for inclusion into #
  12266. # GNU Autoconf as AC_PROG_SED. When it is available in #
  12267. # a released version of Autoconf we should remove this #
  12268. # macro and use it instead. #
  12269. ############################################################
  12270. -# LT_AC_PROG_SED
  12271. -# --------------
  12272. -# Check for a fully-functional sed program, that truncates
  12273. -# as few characters as possible. Prefer GNU sed if found.
  12274. -AC_DEFUN([LT_AC_PROG_SED],
  12275. +
  12276. +m4_defun([AC_PROG_SED],
  12277. [AC_MSG_CHECKING([for a sed that does not truncate output])
  12278. AC_CACHE_VAL(lt_cv_path_SED,
  12279. [# Loop through the user's path and test for sed and gsed.
  12280. @@ -6435,6 +7010,7 @@ do
  12281. done
  12282. done
  12283. done
  12284. +IFS=$as_save_IFS
  12285. lt_ac_max=0
  12286. lt_ac_count=0
  12287. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12288. @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp
  12289. done
  12290. ])
  12291. SED=$lt_cv_path_SED
  12292. +AC_SUBST([SED])
  12293. AC_MSG_RESULT([$SED])
  12294. +])#AC_PROG_SED
  12295. +])#m4_ifndef
  12296. +
  12297. +# Old name:
  12298. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  12299. +dnl aclocal-1.4 backwards compatibility:
  12300. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  12301. +
  12302. +
  12303. +# _LT_CHECK_SHELL_FEATURES
  12304. +# ------------------------
  12305. +# Find out whether the shell is Bourne or XSI compatible,
  12306. +# or has some other useful features.
  12307. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  12308. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  12309. +# Try some XSI features
  12310. +xsi_shell=no
  12311. +( _lt_dummy="a/b/c"
  12312. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  12313. + = c,a/b,, \
  12314. + && eval 'test $(( 1 + 1 )) -eq 2 \
  12315. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  12316. + && xsi_shell=yes
  12317. +AC_MSG_RESULT([$xsi_shell])
  12318. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  12319. +
  12320. +AC_MSG_CHECKING([whether the shell understands "+="])
  12321. +lt_shell_append=no
  12322. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  12323. + >/dev/null 2>&1 \
  12324. + && lt_shell_append=yes
  12325. +AC_MSG_RESULT([$lt_shell_append])
  12326. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  12327. +
  12328. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12329. + lt_unset=unset
  12330. +else
  12331. + lt_unset=false
  12332. +fi
  12333. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  12334. +
  12335. +# test EBCDIC or ASCII
  12336. +case `echo X|tr X '\101'` in
  12337. + A) # ASCII based system
  12338. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  12339. + lt_SP2NL='tr \040 \012'
  12340. + lt_NL2SP='tr \015\012 \040\040'
  12341. + ;;
  12342. + *) # EBCDIC based system
  12343. + lt_SP2NL='tr \100 \n'
  12344. + lt_NL2SP='tr \r\n \100\100'
  12345. + ;;
  12346. +esac
  12347. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  12348. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  12349. +])# _LT_CHECK_SHELL_FEATURES
  12350. +
  12351. +
  12352. +# _LT_PROG_XSI_SHELLFNS
  12353. +# ---------------------
  12354. +# Bourne and XSI compatible variants of some useful shell functions.
  12355. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  12356. +[case $xsi_shell in
  12357. + yes)
  12358. + cat << \_LT_EOF >> "$cfgfile"
  12359. +
  12360. +# func_dirname file append nondir_replacement
  12361. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12362. +# otherwise set result to NONDIR_REPLACEMENT.
  12363. +func_dirname ()
  12364. +{
  12365. + case ${1} in
  12366. + */*) func_dirname_result="${1%/*}${2}" ;;
  12367. + * ) func_dirname_result="${3}" ;;
  12368. + esac
  12369. +}
  12370. +
  12371. +# func_basename file
  12372. +func_basename ()
  12373. +{
  12374. + func_basename_result="${1##*/}"
  12375. +}
  12376. +
  12377. +# func_dirname_and_basename file append nondir_replacement
  12378. +# perform func_basename and func_dirname in a single function
  12379. +# call:
  12380. +# dirname: Compute the dirname of FILE. If nonempty,
  12381. +# add APPEND to the result, otherwise set result
  12382. +# to NONDIR_REPLACEMENT.
  12383. +# value returned in "$func_dirname_result"
  12384. +# basename: Compute filename of FILE.
  12385. +# value retuned in "$func_basename_result"
  12386. +# Implementation must be kept synchronized with func_dirname
  12387. +# and func_basename. For efficiency, we do not delegate to
  12388. +# those functions but instead duplicate the functionality here.
  12389. +func_dirname_and_basename ()
  12390. +{
  12391. + case ${1} in
  12392. + */*) func_dirname_result="${1%/*}${2}" ;;
  12393. + * ) func_dirname_result="${3}" ;;
  12394. + esac
  12395. + func_basename_result="${1##*/}"
  12396. +}
  12397. +
  12398. +# func_stripname prefix suffix name
  12399. +# strip PREFIX and SUFFIX off of NAME.
  12400. +# PREFIX and SUFFIX must not contain globbing or regex special
  12401. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  12402. +# dot (in which case that matches only a dot).
  12403. +func_stripname ()
  12404. +{
  12405. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12406. + # positional parameters, so assign one to ordinary parameter first.
  12407. + func_stripname_result=${3}
  12408. + func_stripname_result=${func_stripname_result#"${1}"}
  12409. + func_stripname_result=${func_stripname_result%"${2}"}
  12410. +}
  12411. +
  12412. +# func_opt_split
  12413. +func_opt_split ()
  12414. +{
  12415. + func_opt_split_opt=${1%%=*}
  12416. + func_opt_split_arg=${1#*=}
  12417. +}
  12418. +
  12419. +# func_lo2o object
  12420. +func_lo2o ()
  12421. +{
  12422. + case ${1} in
  12423. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12424. + *) func_lo2o_result=${1} ;;
  12425. + esac
  12426. +}
  12427. +
  12428. +# func_xform libobj-or-source
  12429. +func_xform ()
  12430. +{
  12431. + func_xform_result=${1%.*}.lo
  12432. +}
  12433. +
  12434. +# func_arith arithmetic-term...
  12435. +func_arith ()
  12436. +{
  12437. + func_arith_result=$(( $[*] ))
  12438. +}
  12439. +
  12440. +# func_len string
  12441. +# STRING may not start with a hyphen.
  12442. +func_len ()
  12443. +{
  12444. + func_len_result=${#1}
  12445. +}
  12446. +
  12447. +_LT_EOF
  12448. + ;;
  12449. + *) # Bourne compatible functions.
  12450. + cat << \_LT_EOF >> "$cfgfile"
  12451. +
  12452. +# func_dirname file append nondir_replacement
  12453. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12454. +# otherwise set result to NONDIR_REPLACEMENT.
  12455. +func_dirname ()
  12456. +{
  12457. + # Extract subdirectory from the argument.
  12458. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  12459. + if test "X$func_dirname_result" = "X${1}"; then
  12460. + func_dirname_result="${3}"
  12461. + else
  12462. + func_dirname_result="$func_dirname_result${2}"
  12463. + fi
  12464. +}
  12465. +
  12466. +# func_basename file
  12467. +func_basename ()
  12468. +{
  12469. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  12470. +}
  12471. +
  12472. +dnl func_dirname_and_basename
  12473. +dnl A portable version of this function is already defined in general.m4sh
  12474. +dnl so there is no need for it here.
  12475. +
  12476. +# func_stripname prefix suffix name
  12477. +# strip PREFIX and SUFFIX off of NAME.
  12478. +# PREFIX and SUFFIX must not contain globbing or regex special
  12479. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  12480. +# dot (in which case that matches only a dot).
  12481. +# func_strip_suffix prefix name
  12482. +func_stripname ()
  12483. +{
  12484. + case ${2} in
  12485. + .*) func_stripname_result=`$ECHO "X${3}" \
  12486. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  12487. + *) func_stripname_result=`$ECHO "X${3}" \
  12488. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  12489. + esac
  12490. +}
  12491. +
  12492. +# sed scripts:
  12493. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  12494. +my_sed_long_arg='1s/^-[[^=]]*=//'
  12495. +
  12496. +# func_opt_split
  12497. +func_opt_split ()
  12498. +{
  12499. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  12500. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  12501. +}
  12502. +
  12503. +# func_lo2o object
  12504. +func_lo2o ()
  12505. +{
  12506. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  12507. +}
  12508. +
  12509. +# func_xform libobj-or-source
  12510. +func_xform ()
  12511. +{
  12512. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  12513. +}
  12514. +
  12515. +# func_arith arithmetic-term...
  12516. +func_arith ()
  12517. +{
  12518. + func_arith_result=`expr "$[@]"`
  12519. +}
  12520. +
  12521. +# func_len string
  12522. +# STRING may not start with a hyphen.
  12523. +func_len ()
  12524. +{
  12525. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  12526. +}
  12527. +
  12528. +_LT_EOF
  12529. +esac
  12530. +
  12531. +case $lt_shell_append in
  12532. + yes)
  12533. + cat << \_LT_EOF >> "$cfgfile"
  12534. +
  12535. +# func_append var value
  12536. +# Append VALUE to the end of shell variable VAR.
  12537. +func_append ()
  12538. +{
  12539. + eval "$[1]+=\$[2]"
  12540. +}
  12541. +_LT_EOF
  12542. + ;;
  12543. + *)
  12544. + cat << \_LT_EOF >> "$cfgfile"
  12545. +
  12546. +# func_append var value
  12547. +# Append VALUE to the end of shell variable VAR.
  12548. +func_append ()
  12549. +{
  12550. + eval "$[1]=\$$[1]\$[2]"
  12551. +}
  12552. +
  12553. +_LT_EOF
  12554. + ;;
  12555. + esac
  12556. ])
  12557. --- a/m4/libtool.m4
  12558. +++ b/m4/libtool.m4
  12559. @@ -1,107 +1,186 @@
  12560. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  12561. -## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006
  12562. -## Free Software Foundation, Inc.
  12563. -## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  12564. -##
  12565. -## This file is free software; the Free Software Foundation gives
  12566. -## unlimited permission to copy and/or distribute it, with or without
  12567. -## modifications, as long as this notice is preserved.
  12568. -
  12569. -# serial 48 AC_PROG_LIBTOOL
  12570. -
  12571. -
  12572. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  12573. -# -----------------------------------------------------------
  12574. -# If this macro is not defined by Autoconf, define it here.
  12575. -m4_ifdef([AC_PROVIDE_IFELSE],
  12576. - [],
  12577. - [m4_define([AC_PROVIDE_IFELSE],
  12578. - [m4_ifdef([AC_PROVIDE_$1],
  12579. - [$2], [$3])])])
  12580. +#
  12581. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12582. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  12583. +# Written by Gordon Matzigkeit, 1996
  12584. +#
  12585. +# This file is free software; the Free Software Foundation gives
  12586. +# unlimited permission to copy and/or distribute it, with or without
  12587. +# modifications, as long as this notice is preserved.
  12588. +
  12589. +m4_define([_LT_COPYING], [dnl
  12590. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12591. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  12592. +# Written by Gordon Matzigkeit, 1996
  12593. +#
  12594. +# This file is part of GNU Libtool.
  12595. +#
  12596. +# GNU Libtool is free software; you can redistribute it and/or
  12597. +# modify it under the terms of the GNU General Public License as
  12598. +# published by the Free Software Foundation; either version 2 of
  12599. +# the License, or (at your option) any later version.
  12600. +#
  12601. +# As a special exception to the GNU General Public License,
  12602. +# if you distribute this file as part of a program or library that
  12603. +# is built using GNU Libtool, you may include this file under the
  12604. +# same distribution terms that you use for the rest of that program.
  12605. +#
  12606. +# GNU Libtool is distributed in the hope that it will be useful,
  12607. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12608. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12609. +# GNU General Public License for more details.
  12610. +#
  12611. +# You should have received a copy of the GNU General Public License
  12612. +# along with GNU Libtool; see the file COPYING. If not, a copy
  12613. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12614. +# obtained by writing to the Free Software Foundation, Inc.,
  12615. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12616. +])
  12617. +# serial 56 LT_INIT
  12618. -# AC_PROG_LIBTOOL
  12619. -# ---------------
  12620. -AC_DEFUN([AC_PROG_LIBTOOL],
  12621. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  12622. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  12623. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  12624. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  12625. - [AC_LIBTOOL_CXX],
  12626. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  12627. - ])])
  12628. -dnl And a similar setup for Fortran 77 support
  12629. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  12630. - [AC_LIBTOOL_F77],
  12631. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  12632. -])])
  12633. -
  12634. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  12635. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  12636. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  12637. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  12638. - [AC_LIBTOOL_GCJ],
  12639. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  12640. - [AC_LIBTOOL_GCJ],
  12641. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  12642. - [AC_LIBTOOL_GCJ],
  12643. - [ifdef([AC_PROG_GCJ],
  12644. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  12645. - ifdef([A][M_PROG_GCJ],
  12646. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  12647. - ifdef([LT_AC_PROG_GCJ],
  12648. - [define([LT_AC_PROG_GCJ],
  12649. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  12650. -])])# AC_PROG_LIBTOOL
  12651. +# LT_PREREQ(VERSION)
  12652. +# ------------------
  12653. +# Complain and exit if this libtool version is less that VERSION.
  12654. +m4_defun([LT_PREREQ],
  12655. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  12656. + [m4_default([$3],
  12657. + [m4_fatal([Libtool version $1 or higher is required],
  12658. + 63)])],
  12659. + [$2])])
  12660. -# _AC_PROG_LIBTOOL
  12661. -# ----------------
  12662. -AC_DEFUN([_AC_PROG_LIBTOOL],
  12663. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  12664. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  12665. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  12666. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  12667. +
  12668. +# _LT_CHECK_BUILDDIR
  12669. +# ------------------
  12670. +# Complain if the absolute build directory name contains unusual characters
  12671. +m4_defun([_LT_CHECK_BUILDDIR],
  12672. +[case `pwd` in
  12673. + *\ * | *\ *)
  12674. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  12675. +esac
  12676. +])
  12677. +
  12678. +
  12679. +# LT_INIT([OPTIONS])
  12680. +# ------------------
  12681. +AC_DEFUN([LT_INIT],
  12682. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  12683. +AC_BEFORE([$0], [LT_LANG])dnl
  12684. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  12685. +AC_BEFORE([$0], [LTDL_INIT])dnl
  12686. +m4_require([_LT_CHECK_BUILDDIR])dnl
  12687. +
  12688. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  12689. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  12690. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  12691. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  12692. +dnl unless we require an AC_DEFUNed macro:
  12693. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  12694. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  12695. +AC_REQUIRE([LTVERSION_VERSION])dnl
  12696. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  12697. +m4_require([_LT_PROG_LTMAIN])dnl
  12698. +
  12699. +dnl Parse OPTIONS
  12700. +_LT_SET_OPTIONS([$0], [$1])
  12701. # This can be used to rebuild libtool when needed
  12702. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  12703. +LIBTOOL_DEPS="$ltmain"
  12704. # Always use our own libtool.
  12705. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  12706. +LIBTOOL='$(SHELL) $(top_builddir)'
  12707. +LIBTOOL="$LIBTOOL/$host_alias-libtool"
  12708. AC_SUBST(LIBTOOL)dnl
  12709. -# Prevent multiple expansion
  12710. -define([AC_PROG_LIBTOOL], [])
  12711. -])# _AC_PROG_LIBTOOL
  12712. +_LT_SETUP
  12713. +# Only expand once:
  12714. +m4_define([LT_INIT])
  12715. +])# LT_INIT
  12716. +
  12717. +# Old names:
  12718. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  12719. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  12720. +dnl aclocal-1.4 backwards compatibility:
  12721. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  12722. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  12723. -# AC_LIBTOOL_SETUP
  12724. -# ----------------
  12725. -AC_DEFUN([AC_LIBTOOL_SETUP],
  12726. -[AC_PREREQ(2.50)dnl
  12727. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  12728. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  12729. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  12730. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12731. +
  12732. +# _LT_CC_BASENAME(CC)
  12733. +# -------------------
  12734. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  12735. +m4_defun([_LT_CC_BASENAME],
  12736. +[for cc_temp in $1""; do
  12737. + case $cc_temp in
  12738. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  12739. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  12740. + \-*) ;;
  12741. + *) break;;
  12742. + esac
  12743. +done
  12744. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  12745. +])
  12746. +
  12747. +
  12748. +# _LT_FILEUTILS_DEFAULTS
  12749. +# ----------------------
  12750. +# It is okay to use these file commands and assume they have been set
  12751. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  12752. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  12753. +[: ${CP="cp -f"}
  12754. +: ${MV="mv -f"}
  12755. +: ${RM="rm -f"}
  12756. +])# _LT_FILEUTILS_DEFAULTS
  12757. +
  12758. +
  12759. +# _LT_SETUP
  12760. +# ---------
  12761. +m4_defun([_LT_SETUP],
  12762. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  12763. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  12764. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  12765. +_LT_DECL([], [host], [0])dnl
  12766. +_LT_DECL([], [host_os], [0])dnl
  12767. +dnl
  12768. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  12769. +_LT_DECL([], [build], [0])dnl
  12770. +_LT_DECL([], [build_os], [0])dnl
  12771. +dnl
  12772. AC_REQUIRE([AC_PROG_CC])dnl
  12773. -AC_REQUIRE([AC_PROG_LD])dnl
  12774. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  12775. -AC_REQUIRE([AC_PROG_NM])dnl
  12776. -
  12777. +AC_REQUIRE([LT_PATH_LD])dnl
  12778. +AC_REQUIRE([LT_PATH_NM])dnl
  12779. +dnl
  12780. AC_REQUIRE([AC_PROG_LN_S])dnl
  12781. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  12782. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  12783. -AC_REQUIRE([AC_OBJEXT])dnl
  12784. -AC_REQUIRE([AC_EXEEXT])dnl
  12785. +test -z "$LN_S" && LN_S="ln -s"
  12786. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  12787. dnl
  12788. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  12789. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  12790. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  12791. +dnl
  12792. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  12793. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  12794. +m4_require([_LT_CMD_RELOAD])dnl
  12795. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  12796. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  12797. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  12798. +
  12799. +_LT_CONFIG_LIBTOOL_INIT([
  12800. +# See if we are running on zsh, and set the options which allow our
  12801. +# commands through without removal of \ escapes INIT.
  12802. +if test -n "\${ZSH_VERSION+set}" ; then
  12803. + setopt NO_GLOB_SUBST
  12804. +fi
  12805. +])
  12806. +if test -n "${ZSH_VERSION+set}" ; then
  12807. + setopt NO_GLOB_SUBST
  12808. +fi
  12809. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  12810. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  12811. -AC_LIBTOOL_OBJDIR
  12812. +_LT_CHECK_OBJDIR
  12813. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  12814. -_LT_AC_PROG_ECHO_BACKSLASH
  12815. +m4_require([_LT_TAG_COMPILER])dnl
  12816. +_LT_PROG_ECHO_BACKSLASH
  12817. case $host_os in
  12818. aix3*)
  12819. @@ -117,6307 +196,6803 @@ esac
  12820. # Sed substitution that helps us do robust quoting. It backslashifies
  12821. # metacharacters that are still active within double-quoted strings.
  12822. -Xsed='sed -e 1s/^X//'
  12823. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  12824. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  12825. # Same as above, but do not quote variable references.
  12826. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  12827. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  12828. # Sed substitution to delay expansion of an escaped shell variable in a
  12829. # double_quote_subst'ed string.
  12830. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  12831. +# Sed substitution to delay expansion of an escaped single quote.
  12832. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  12833. +
  12834. # Sed substitution to avoid accidental globbing in evaled expressions
  12835. no_glob_subst='s/\*/\\\*/g'
  12836. -# Constants:
  12837. -rm="rm -f"
  12838. -
  12839. # Global variables:
  12840. -default_ofile=libtool
  12841. +ofile=${host_alias}-libtool
  12842. can_build_shared=yes
  12843. # All known linkers require a `.a' archive for static linking (except MSVC,
  12844. # which needs '.lib').
  12845. libext=a
  12846. -ltmain="$ac_aux_dir/ltmain.sh"
  12847. -ofile="$default_ofile"
  12848. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  12849. -AC_CHECK_TOOL(AR, ar, false)
  12850. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  12851. -AC_CHECK_TOOL(STRIP, strip, :)
  12852. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  12853. old_CC="$CC"
  12854. old_CFLAGS="$CFLAGS"
  12855. # Set sane defaults for various variables
  12856. -test -z "$AR" && AR=ar
  12857. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  12858. -test -z "$AS" && AS=as
  12859. test -z "$CC" && CC=cc
  12860. test -z "$LTCC" && LTCC=$CC
  12861. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  12862. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  12863. test -z "$LD" && LD=ld
  12864. -test -z "$LN_S" && LN_S="ln -s"
  12865. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  12866. -test -z "$NM" && NM=nm
  12867. -test -z "$SED" && SED=sed
  12868. -test -z "$OBJDUMP" && OBJDUMP=objdump
  12869. -test -z "$RANLIB" && RANLIB=:
  12870. -test -z "$STRIP" && STRIP=:
  12871. test -z "$ac_objext" && ac_objext=o
  12872. -# Determine commands to create old-style static archives.
  12873. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  12874. -old_postinstall_cmds='chmod 644 $oldlib'
  12875. -old_postuninstall_cmds=
  12876. -
  12877. -if test -n "$RANLIB"; then
  12878. - case $host_os in
  12879. - openbsd*)
  12880. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  12881. - ;;
  12882. - *)
  12883. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  12884. - ;;
  12885. - esac
  12886. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  12887. -fi
  12888. -
  12889. _LT_CC_BASENAME([$compiler])
  12890. # Only perform the check for file, if the check method requires it
  12891. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  12892. case $deplibs_check_method in
  12893. file_magic*)
  12894. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  12895. - AC_PATH_MAGIC
  12896. + _LT_PATH_MAGIC
  12897. fi
  12898. ;;
  12899. esac
  12900. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  12901. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  12902. -enable_win32_dll=yes, enable_win32_dll=no)
  12903. -
  12904. -AC_ARG_ENABLE([libtool-lock],
  12905. - [AC_HELP_STRING([--disable-libtool-lock],
  12906. - [avoid locking (might break parallel builds)])])
  12907. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  12908. +# Use C for the default configuration in the libtool script
  12909. +LT_SUPPORTED_TAG([CC])
  12910. +_LT_LANG_C_CONFIG
  12911. +_LT_LANG_DEFAULT_CONFIG
  12912. +_LT_CONFIG_COMMANDS
  12913. +])# _LT_SETUP
  12914. -AC_ARG_WITH([pic],
  12915. - [AC_HELP_STRING([--with-pic],
  12916. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12917. - [pic_mode="$withval"],
  12918. - [pic_mode=default])
  12919. -test -z "$pic_mode" && pic_mode=default
  12920. -# Use C for the default configuration in the libtool script
  12921. -tagname=
  12922. -AC_LIBTOOL_LANG_C_CONFIG
  12923. -_LT_AC_TAGCONFIG
  12924. -])# AC_LIBTOOL_SETUP
  12925. +# _LT_PROG_LTMAIN
  12926. +# ---------------
  12927. +# Note that this code is called both from `configure', and `config.status'
  12928. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  12929. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  12930. +# so we pass a copy along to make sure it has a sensible value anyway.
  12931. +m4_defun([_LT_PROG_LTMAIN],
  12932. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  12933. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  12934. +ltmain="$ac_aux_dir/ltmain.sh"
  12935. +])# _LT_PROG_LTMAIN
  12936. -# _LT_AC_SYS_COMPILER
  12937. -# -------------------
  12938. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  12939. -[AC_REQUIRE([AC_PROG_CC])dnl
  12940. +## ------------------------------------- ##
  12941. +## Accumulate code for creating libtool. ##
  12942. +## ------------------------------------- ##
  12943. +
  12944. +# So that we can recreate a full libtool script including additional
  12945. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  12946. +# in macros and then make a single call at the end using the `libtool'
  12947. +# label.
  12948. +
  12949. +
  12950. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  12951. +# ----------------------------------------
  12952. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  12953. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  12954. +[m4_ifval([$1],
  12955. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  12956. + [$1
  12957. +])])])
  12958. +
  12959. +# Initialize.
  12960. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  12961. +
  12962. +
  12963. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  12964. +# ------------------------------
  12965. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  12966. +m4_define([_LT_CONFIG_LIBTOOL],
  12967. +[m4_ifval([$1],
  12968. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  12969. + [$1
  12970. +])])])
  12971. +
  12972. +# Initialize.
  12973. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  12974. +
  12975. +
  12976. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  12977. +# -----------------------------------------------------
  12978. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  12979. +[_LT_CONFIG_LIBTOOL([$1])
  12980. +_LT_CONFIG_LIBTOOL_INIT([$2])
  12981. +])
  12982. -# If no C compiler was specified, use CC.
  12983. -LTCC=${LTCC-"$CC"}
  12984. -# If no C compiler flags were specified, use CFLAGS.
  12985. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12986. +# _LT_FORMAT_COMMENT([COMMENT])
  12987. +# -----------------------------
  12988. +# Add leading comment marks to the start of each line, and a trailing
  12989. +# full-stop to the whole comment if one is not present already.
  12990. +m4_define([_LT_FORMAT_COMMENT],
  12991. +[m4_ifval([$1], [
  12992. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  12993. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  12994. +)])
  12995. -# Allow CC to be a program name with arguments.
  12996. -compiler=$CC
  12997. -])# _LT_AC_SYS_COMPILER
  12998. -# _LT_CC_BASENAME(CC)
  12999. -# -------------------
  13000. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  13001. -AC_DEFUN([_LT_CC_BASENAME],
  13002. -[for cc_temp in $1""; do
  13003. - case $cc_temp in
  13004. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  13005. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  13006. - \-*) ;;
  13007. - *) break;;
  13008. - esac
  13009. -done
  13010. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  13011. +## ------------------------ ##
  13012. +## FIXME: Eliminate VARNAME ##
  13013. +## ------------------------ ##
  13014. +
  13015. +
  13016. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  13017. +# -------------------------------------------------------------------
  13018. +# CONFIGNAME is the name given to the value in the libtool script.
  13019. +# VARNAME is the (base) name used in the configure script.
  13020. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  13021. +# VARNAME. Any other value will be used directly.
  13022. +m4_define([_LT_DECL],
  13023. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  13024. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  13025. + [m4_ifval([$1], [$1], [$2])])
  13026. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  13027. + m4_ifval([$4],
  13028. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  13029. + lt_dict_add_subkey([lt_decl_dict], [$2],
  13030. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  13031. ])
  13032. -# _LT_COMPILER_BOILERPLATE
  13033. -# ------------------------
  13034. -# Check for compiler boilerplate output or warnings with
  13035. -# the simple compiler test code.
  13036. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  13037. -[ac_outfile=conftest.$ac_objext
  13038. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  13039. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13040. -_lt_compiler_boilerplate=`cat conftest.err`
  13041. -$rm conftest*
  13042. -])# _LT_COMPILER_BOILERPLATE
  13043. -
  13044. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  13045. +# --------------------------------------------------------
  13046. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  13047. +
  13048. +
  13049. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  13050. +# ------------------------------------------------
  13051. +m4_define([lt_decl_tag_varnames],
  13052. +[_lt_decl_filter([tagged?], [yes], $@)])
  13053. +
  13054. +
  13055. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  13056. +# ---------------------------------------------------------
  13057. +m4_define([_lt_decl_filter],
  13058. +[m4_case([$#],
  13059. + [0], [m4_fatal([$0: too few arguments: $#])],
  13060. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  13061. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  13062. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  13063. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  13064. +])
  13065. -# _LT_LINKER_BOILERPLATE
  13066. -# ----------------------
  13067. -# Check for linker boilerplate output or warnings with
  13068. -# the simple link test code.
  13069. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  13070. -[ac_outfile=conftest.$ac_objext
  13071. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  13072. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  13073. -_lt_linker_boilerplate=`cat conftest.err`
  13074. -$rm conftest*
  13075. -])# _LT_LINKER_BOILERPLATE
  13076. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  13077. +# --------------------------------------------------
  13078. +m4_define([lt_decl_quote_varnames],
  13079. +[_lt_decl_filter([value], [1], $@)])
  13080. +
  13081. +
  13082. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  13083. +# ---------------------------------------------------
  13084. +m4_define([lt_decl_dquote_varnames],
  13085. +[_lt_decl_filter([value], [2], $@)])
  13086. +
  13087. +
  13088. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  13089. +# ---------------------------------------------------
  13090. +m4_define([lt_decl_varnames_tagged],
  13091. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  13092. + m4_quote(m4_if([$2], [],
  13093. + m4_quote(lt_decl_tag_varnames),
  13094. + m4_quote(m4_shift($@)))),
  13095. + m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
  13096. +m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
  13097. +
  13098. +
  13099. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  13100. +# ------------------------------------------------
  13101. +m4_define([lt_decl_all_varnames],
  13102. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  13103. + m4_if([$2], [],
  13104. + m4_quote(lt_decl_varnames),
  13105. + m4_quote(m4_shift($@))))[]dnl
  13106. +])
  13107. +m4_define([_lt_decl_all_varnames],
  13108. +[lt_join($@, lt_decl_varnames_tagged([$1],
  13109. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  13110. +])
  13111. -# _LT_AC_SYS_LIBPATH_AIX
  13112. -# ----------------------
  13113. -# Links a minimal program and checks the executable
  13114. -# for the system default hardcoded library path. In most cases,
  13115. -# this is /usr/lib:/lib, but when the MPI compilers are used
  13116. -# the location of the communication and MPI libs are included too.
  13117. -# If we don't find anything, use the default library path according
  13118. -# to the aix ld manual.
  13119. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  13120. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  13121. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13122. -}'`
  13123. -# Check for a 64-bit object if we didn't find anything.
  13124. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  13125. -}'`; fi],[])
  13126. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  13127. -])# _LT_AC_SYS_LIBPATH_AIX
  13128. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  13129. +# ------------------------------------
  13130. +# Quote a variable value, and forward it to `config.status' so that its
  13131. +# declaration there will have the same value as in `configure'. VARNAME
  13132. +# must have a single quote delimited value for this to work.
  13133. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  13134. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  13135. -# _LT_AC_SHELL_INIT(ARG)
  13136. -# ----------------------
  13137. -AC_DEFUN([_LT_AC_SHELL_INIT],
  13138. -[ifdef([AC_DIVERSION_NOTICE],
  13139. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  13140. - [AC_DIVERT_PUSH(NOTICE)])
  13141. -$1
  13142. -AC_DIVERT_POP
  13143. -])# _LT_AC_SHELL_INIT
  13144. +# _LT_CONFIG_STATUS_DECLARATIONS
  13145. +# ------------------------------
  13146. +# We delimit libtool config variables with single quotes, so when
  13147. +# we write them to config.status, we have to be sure to quote all
  13148. +# embedded single quotes properly. In configure, this macro expands
  13149. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  13150. +#
  13151. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  13152. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  13153. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  13154. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  13155. -# _LT_AC_PROG_ECHO_BACKSLASH
  13156. -# --------------------------
  13157. -# Add some code to the start of the generated configure script which
  13158. -# will find an echo command which doesn't interpret backslashes.
  13159. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  13160. -[_LT_AC_SHELL_INIT([
  13161. -# Check that we are running under the correct shell.
  13162. -SHELL=${CONFIG_SHELL-/bin/sh}
  13163. -case X$ECHO in
  13164. -X*--fallback-echo)
  13165. - # Remove one level of quotation (which was required for Make).
  13166. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  13167. - ;;
  13168. -esac
  13169. +# _LT_LIBTOOL_TAGS
  13170. +# ----------------
  13171. +# Output comment and list of tags supported by the script
  13172. +m4_defun([_LT_LIBTOOL_TAGS],
  13173. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  13174. +available_tags="_LT_TAGS"dnl
  13175. +])
  13176. -echo=${ECHO-echo}
  13177. -if test "X[$]1" = X--no-reexec; then
  13178. - # Discard the --no-reexec flag, and continue.
  13179. - shift
  13180. -elif test "X[$]1" = X--fallback-echo; then
  13181. - # Avoid inline document here, it may be left over
  13182. - :
  13183. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  13184. - # Yippee, $echo works!
  13185. - :
  13186. -else
  13187. - # Restart under the correct shell.
  13188. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  13189. -fi
  13190. -if test "X[$]1" = X--fallback-echo; then
  13191. - # used as fallback echo
  13192. - shift
  13193. - cat <<EOF
  13194. -[$]*
  13195. -EOF
  13196. - exit 0
  13197. -fi
  13198. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  13199. +# -----------------------------------
  13200. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  13201. +# expand to a commented shell variable setting:
  13202. +#
  13203. +# # Some comment about what VAR is for.
  13204. +# visible_name=$lt_internal_name
  13205. +m4_define([_LT_LIBTOOL_DECLARE],
  13206. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  13207. + [description])))[]dnl
  13208. +m4_pushdef([_libtool_name],
  13209. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  13210. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  13211. + [0], [_libtool_name=[$]$1],
  13212. + [1], [_libtool_name=$lt_[]$1],
  13213. + [2], [_libtool_name=$lt_[]$1],
  13214. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  13215. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  13216. +])
  13217. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  13218. -# if CDPATH is set.
  13219. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13220. -if test -z "$ECHO"; then
  13221. -if test "X${echo_test_string+set}" != Xset; then
  13222. -# find a string as large as possible, as long as the shell can cope with it
  13223. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  13224. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  13225. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  13226. - echo_test_string=`eval $cmd` &&
  13227. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  13228. - then
  13229. - break
  13230. - fi
  13231. - done
  13232. -fi
  13233. +# _LT_LIBTOOL_CONFIG_VARS
  13234. +# -----------------------
  13235. +# Produce commented declarations of non-tagged libtool config variables
  13236. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  13237. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  13238. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  13239. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  13240. +[m4_foreach([_lt_var],
  13241. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  13242. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  13243. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13244. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13245. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13246. - :
  13247. -else
  13248. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  13249. - # backslashes. This makes it impossible to quote backslashes using
  13250. - # echo "$something" | sed 's/\\/\\\\/g'
  13251. - #
  13252. - # So, first we look for a working echo in the user's PATH.
  13253. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  13254. - for dir in $PATH /usr/ucb; do
  13255. - IFS="$lt_save_ifs"
  13256. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  13257. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  13258. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  13259. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13260. - echo="$dir/echo"
  13261. - break
  13262. - fi
  13263. - done
  13264. - IFS="$lt_save_ifs"
  13265. +# _LT_LIBTOOL_TAG_VARS(TAG)
  13266. +# -------------------------
  13267. +m4_define([_LT_LIBTOOL_TAG_VARS],
  13268. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  13269. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  13270. - if test "X$echo" = Xecho; then
  13271. - # We didn't find a better echo, so look for alternatives.
  13272. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13273. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  13274. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13275. - # This shell has a builtin print -r that does the trick.
  13276. - echo='print -r'
  13277. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13278. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  13279. - # If we have ksh, try running configure again with it.
  13280. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  13281. - export ORIGINAL_CONFIG_SHELL
  13282. - CONFIG_SHELL=/bin/ksh
  13283. - export CONFIG_SHELL
  13284. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  13285. - else
  13286. - # Try using printf.
  13287. - echo='printf %s\n'
  13288. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13289. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  13290. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13291. - # Cool, printf works
  13292. - :
  13293. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  13294. - test "X$echo_testing_string" = 'X\t' &&
  13295. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13296. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13297. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  13298. - export CONFIG_SHELL
  13299. - SHELL="$CONFIG_SHELL"
  13300. - export SHELL
  13301. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  13302. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  13303. - test "X$echo_testing_string" = 'X\t' &&
  13304. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  13305. - test "X$echo_testing_string" = "X$echo_test_string"; then
  13306. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  13307. - else
  13308. - # maybe with a smaller string...
  13309. - prev=:
  13310. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  13311. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  13312. - then
  13313. - break
  13314. - fi
  13315. - prev="$cmd"
  13316. - done
  13317. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  13318. +# ------------------------------
  13319. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  13320. - if test "$prev" != 'sed 50q "[$]0"'; then
  13321. - echo_test_string=`eval $prev`
  13322. - export echo_test_string
  13323. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  13324. - else
  13325. - # Oops. We lost completely, so just stick with echo.
  13326. - echo=echo
  13327. - fi
  13328. - fi
  13329. - fi
  13330. - fi
  13331. -fi
  13332. -fi
  13333. -# Copy echo and quote the copy suitably for passing to libtool from
  13334. -# the Makefile, instead of quoting the original, which is used later.
  13335. -ECHO=$echo
  13336. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  13337. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  13338. -fi
  13339. +# _LT_CONFIG_COMMANDS
  13340. +# -------------------
  13341. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  13342. +# variables for single and double quote escaping we saved from calls
  13343. +# to _LT_DECL, we can put quote escaped variables declarations
  13344. +# into `config.status', and then the shell code to quote escape them in
  13345. +# for loops in `config.status'. Finally, any additional code accumulated
  13346. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  13347. +m4_defun([_LT_CONFIG_COMMANDS],
  13348. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  13349. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  13350. + dnl instead of duplicating it all over again into config.status,
  13351. + dnl then we will have config.status run $CONFIG_LT later, so it
  13352. + dnl needs to know what name is stored there:
  13353. + [AC_CONFIG_COMMANDS([libtool],
  13354. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  13355. + dnl If the libtool generation code is destined for config.status,
  13356. + dnl expand the accumulated commands and init code now:
  13357. + [AC_CONFIG_COMMANDS([libtool],
  13358. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  13359. +])#_LT_CONFIG_COMMANDS
  13360. -AC_SUBST(ECHO)
  13361. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  13362. +# Initialize.
  13363. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  13364. +[
  13365. -# _LT_AC_LOCK
  13366. -# -----------
  13367. -AC_DEFUN([_LT_AC_LOCK],
  13368. -[AC_ARG_ENABLE([libtool-lock],
  13369. - [AC_HELP_STRING([--disable-libtool-lock],
  13370. - [avoid locking (might break parallel builds)])])
  13371. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  13372. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  13373. +# if CDPATH is set.
  13374. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13375. -# Some flags need to be propagated to the compiler or linker for good
  13376. -# libtool support.
  13377. -case $host in
  13378. -ia64-*-hpux*)
  13379. - # Find out which ABI we are using.
  13380. - echo 'int i;' > conftest.$ac_ext
  13381. - if AC_TRY_EVAL(ac_compile); then
  13382. - case `/usr/bin/file conftest.$ac_objext` in
  13383. - *ELF-32*)
  13384. - HPUX_IA64_MODE="32"
  13385. - ;;
  13386. - *ELF-64*)
  13387. - HPUX_IA64_MODE="64"
  13388. - ;;
  13389. - esac
  13390. - fi
  13391. - rm -rf conftest*
  13392. - ;;
  13393. -*-*-irix6*)
  13394. - # Find out which ABI we are using.
  13395. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  13396. - if AC_TRY_EVAL(ac_compile); then
  13397. - if test "$lt_cv_prog_gnu_ld" = yes; then
  13398. - case `/usr/bin/file conftest.$ac_objext` in
  13399. - *32-bit*)
  13400. - LD="${LD-ld} -melf32bsmip"
  13401. - ;;
  13402. - *N32*)
  13403. - LD="${LD-ld} -melf32bmipn32"
  13404. +sed_quote_subst='$sed_quote_subst'
  13405. +double_quote_subst='$double_quote_subst'
  13406. +delay_variable_subst='$delay_variable_subst'
  13407. +_LT_CONFIG_STATUS_DECLARATIONS
  13408. +LTCC='$LTCC'
  13409. +LTCFLAGS='$LTCFLAGS'
  13410. +compiler='$compiler_DEFAULT'
  13411. +
  13412. +# Quote evaled strings.
  13413. +for var in lt_decl_all_varnames([[ \
  13414. +]], lt_decl_quote_varnames); do
  13415. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13416. + *[[\\\\\\\`\\"\\\$]]*)
  13417. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13418. ;;
  13419. - *64-bit*)
  13420. - LD="${LD-ld} -melf64bmip"
  13421. + *)
  13422. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13423. ;;
  13424. esac
  13425. - else
  13426. - case `/usr/bin/file conftest.$ac_objext` in
  13427. - *32-bit*)
  13428. - LD="${LD-ld} -32"
  13429. - ;;
  13430. - *N32*)
  13431. - LD="${LD-ld} -n32"
  13432. +done
  13433. +
  13434. +# Double-quote double-evaled strings.
  13435. +for var in lt_decl_all_varnames([[ \
  13436. +]], lt_decl_dquote_varnames); do
  13437. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13438. + *[[\\\\\\\`\\"\\\$]]*)
  13439. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13440. ;;
  13441. - *64-bit*)
  13442. - LD="${LD-ld} -64"
  13443. + *)
  13444. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13445. ;;
  13446. esac
  13447. - fi
  13448. - fi
  13449. - rm -rf conftest*
  13450. +done
  13451. +
  13452. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  13453. +case \$lt_ECHO in
  13454. +*'\\\[$]0 --fallback-echo"')dnl "
  13455. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  13456. ;;
  13457. +esac
  13458. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  13459. - # Find out which ABI we are using.
  13460. - echo 'int i;' > conftest.$ac_ext
  13461. - if AC_TRY_EVAL(ac_compile); then
  13462. - case `/usr/bin/file conftest.o` in
  13463. - *32-bit*)
  13464. - case $host in
  13465. - x86_64-*linux*)
  13466. - LD="${LD-ld} -m elf_i386"
  13467. - ;;
  13468. - ppc64-*linux*|powerpc64-*linux*)
  13469. - LD="${LD-ld} -m elf32ppclinux"
  13470. - ;;
  13471. - s390x-*linux*)
  13472. - LD="${LD-ld} -m elf_s390"
  13473. - ;;
  13474. - sparc64-*linux*)
  13475. - LD="${LD-ld} -m elf32_sparc"
  13476. - ;;
  13477. - esac
  13478. - ;;
  13479. - *64-bit*)
  13480. - case $host in
  13481. - x86_64-*linux*)
  13482. - LD="${LD-ld} -m elf_x86_64"
  13483. - ;;
  13484. - ppc*-*linux*|powerpc*-*linux*)
  13485. - LD="${LD-ld} -m elf64ppc"
  13486. - ;;
  13487. - s390*-*linux*)
  13488. - LD="${LD-ld} -m elf64_s390"
  13489. - ;;
  13490. - sparc*-*linux*)
  13491. - LD="${LD-ld} -m elf64_sparc"
  13492. - ;;
  13493. - esac
  13494. - ;;
  13495. - esac
  13496. - fi
  13497. - rm -rf conftest*
  13498. - ;;
  13499. +_LT_OUTPUT_LIBTOOL_INIT
  13500. +])
  13501. -*-*-sco3.2v5*)
  13502. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  13503. - SAVE_CFLAGS="$CFLAGS"
  13504. - CFLAGS="$CFLAGS -belf"
  13505. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  13506. - [AC_LANG_PUSH(C)
  13507. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  13508. - AC_LANG_POP])
  13509. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  13510. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  13511. - CFLAGS="$SAVE_CFLAGS"
  13512. - fi
  13513. - ;;
  13514. -sparc*-*solaris*)
  13515. - # Find out which ABI we are using.
  13516. - echo 'int i;' > conftest.$ac_ext
  13517. - if AC_TRY_EVAL(ac_compile); then
  13518. - case `/usr/bin/file conftest.o` in
  13519. - *64-bit*)
  13520. - case $lt_cv_prog_gnu_ld in
  13521. - yes*) LD="${LD-ld} -m elf64_sparc" ;;
  13522. - *) LD="${LD-ld} -64" ;;
  13523. - esac
  13524. - ;;
  13525. - esac
  13526. - fi
  13527. - rm -rf conftest*
  13528. - ;;
  13529. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  13530. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  13531. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  13532. - AC_CHECK_TOOL(AS, as, false)
  13533. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  13534. - ;;
  13535. - ])
  13536. -esac
  13537. +# LT_OUTPUT
  13538. +# ---------
  13539. +# This macro allows early generation of the libtool script (before
  13540. +# AC_OUTPUT is called), incase it is used in configure for compilation
  13541. +# tests.
  13542. +AC_DEFUN([LT_OUTPUT],
  13543. +[: ${CONFIG_LT=./config.lt}
  13544. +AC_MSG_NOTICE([creating $CONFIG_LT])
  13545. +cat >"$CONFIG_LT" <<_LTEOF
  13546. +#! $SHELL
  13547. +# Generated by $as_me.
  13548. +# Run this file to recreate a libtool stub with the current configuration.
  13549. +
  13550. +lt_cl_silent=false
  13551. +SHELL=\${CONFIG_SHELL-$SHELL}
  13552. +_LTEOF
  13553. +
  13554. +cat >>"$CONFIG_LT" <<\_LTEOF
  13555. +AS_SHELL_SANITIZE
  13556. +_AS_PREPARE
  13557. -need_locks="$enable_libtool_lock"
  13558. +exec AS_MESSAGE_FD>&1
  13559. +exec AS_MESSAGE_LOG_FD>>config.log
  13560. +{
  13561. + echo
  13562. + AS_BOX([Running $as_me.])
  13563. +} >&AS_MESSAGE_LOG_FD
  13564. +
  13565. +lt_cl_help="\
  13566. +\`$as_me' creates a local libtool stub from the current configuration,
  13567. +for use in further configure time tests before the real libtool is
  13568. +generated.
  13569. +
  13570. +Usage: $[0] [[OPTIONS]]
  13571. +
  13572. + -h, --help print this help, then exit
  13573. + -V, --version print version number, then exit
  13574. + -q, --quiet do not print progress messages
  13575. + -d, --debug don't remove temporary files
  13576. +
  13577. +Report bugs to <bug-libtool@gnu.org>."
  13578. +
  13579. +lt_cl_version="\
  13580. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  13581. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  13582. +configured by $[0], generated by m4_PACKAGE_STRING.
  13583. +
  13584. +Copyright (C) 2008 Free Software Foundation, Inc.
  13585. +This config.lt script is free software; the Free Software Foundation
  13586. +gives unlimited permision to copy, distribute and modify it."
  13587. -])# _LT_AC_LOCK
  13588. +while test $[#] != 0
  13589. +do
  13590. + case $[1] in
  13591. + --version | --v* | -V )
  13592. + echo "$lt_cl_version"; exit 0 ;;
  13593. + --help | --h* | -h )
  13594. + echo "$lt_cl_help"; exit 0 ;;
  13595. + --debug | --d* | -d )
  13596. + debug=: ;;
  13597. + --quiet | --q* | --silent | --s* | -q )
  13598. + lt_cl_silent=: ;;
  13599. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  13600. +Try \`$[0] --help' for more information.]) ;;
  13601. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  13602. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  13603. -# ----------------------------------------------------------------
  13604. -# Check whether the given compiler option works
  13605. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  13606. -[AC_REQUIRE([LT_AC_PROG_SED])
  13607. -AC_CACHE_CHECK([$1], [$2],
  13608. - [$2=no
  13609. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  13610. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  13611. - lt_compiler_flag="$3"
  13612. - # Insert the option either (1) after the last *FLAGS variable, or
  13613. - # (2) before a word containing "conftest.", or (3) at the end.
  13614. - # Note that $ac_compile itself does not contain backslashes and begins
  13615. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  13616. - # The option is referenced via a variable to avoid confusing sed.
  13617. - lt_compile=`echo "$ac_compile" | $SED \
  13618. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13619. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  13620. - -e 's:$: $lt_compiler_flag:'`
  13621. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  13622. - (eval "$lt_compile" 2>conftest.err)
  13623. - ac_status=$?
  13624. - cat conftest.err >&AS_MESSAGE_LOG_FD
  13625. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  13626. - if (exit $ac_status) && test -s "$ac_outfile"; then
  13627. - # The compiler can only warn and ignore the option if not recognized
  13628. - # So say no if there are warnings other than the usual output.
  13629. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  13630. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13631. - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  13632. - $2=yes
  13633. - fi
  13634. - fi
  13635. - $rm conftest*
  13636. -])
  13637. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  13638. +Try \`$[0] --help' for more information.]) ;;
  13639. + esac
  13640. + shift
  13641. +done
  13642. -if test x"[$]$2" = xyes; then
  13643. - ifelse([$5], , :, [$5])
  13644. -else
  13645. - ifelse([$6], , :, [$6])
  13646. +if $lt_cl_silent; then
  13647. + exec AS_MESSAGE_FD>/dev/null
  13648. fi
  13649. -])# AC_LIBTOOL_COMPILER_OPTION
  13650. -
  13651. -
  13652. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  13653. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  13654. -# ------------------------------------------------------------
  13655. -# Check whether the given compiler option works
  13656. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  13657. -[AC_CACHE_CHECK([$1], [$2],
  13658. - [$2=no
  13659. - save_LDFLAGS="$LDFLAGS"
  13660. - LDFLAGS="$LDFLAGS $3"
  13661. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  13662. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13663. - # The linker can only warn and ignore the option if not recognized
  13664. - # So say no if there are warnings
  13665. - if test -s conftest.err; then
  13666. - # Append any errors to the config.log.
  13667. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  13668. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  13669. - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13670. - if diff conftest.exp conftest.er2 >/dev/null; then
  13671. - $2=yes
  13672. - fi
  13673. - else
  13674. - $2=yes
  13675. - fi
  13676. - fi
  13677. - $rm conftest*
  13678. - LDFLAGS="$save_LDFLAGS"
  13679. -])
  13680. +_LTEOF
  13681. -if test x"[$]$2" = xyes; then
  13682. - ifelse([$4], , :, [$4])
  13683. -else
  13684. - ifelse([$5], , :, [$5])
  13685. +cat >>"$CONFIG_LT" <<_LTEOF
  13686. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  13687. +_LTEOF
  13688. +
  13689. +cat >>"$CONFIG_LT" <<\_LTEOF
  13690. +AC_MSG_NOTICE([creating $ofile])
  13691. +_LT_OUTPUT_LIBTOOL_COMMANDS
  13692. +AS_EXIT(0)
  13693. +_LTEOF
  13694. +chmod +x "$CONFIG_LT"
  13695. +
  13696. +# configure is writing to config.log, but config.lt does its own redirection,
  13697. +# appending to config.log, which fails on DOS, as config.log is still kept
  13698. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  13699. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  13700. +if test "$no_create" != yes; then
  13701. + lt_cl_success=:
  13702. + test "$silent" = yes &&
  13703. + lt_config_lt_args="$lt_config_lt_args --quiet"
  13704. + exec AS_MESSAGE_LOG_FD>/dev/null
  13705. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  13706. + exec AS_MESSAGE_LOG_FD>>config.log
  13707. + $lt_cl_success || AS_EXIT(1)
  13708. fi
  13709. -])# AC_LIBTOOL_LINKER_OPTION
  13710. -
  13711. +])# LT_OUTPUT
  13712. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  13713. -# --------------------------
  13714. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  13715. -[# find the maximum length of command line arguments
  13716. -AC_MSG_CHECKING([the maximum length of command line arguments])
  13717. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  13718. - i=0
  13719. - teststring="ABCD"
  13720. - case $build_os in
  13721. - msdosdjgpp*)
  13722. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  13723. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  13724. - # during glob expansion). Even if it were fixed, the result of this
  13725. - # check would be larger than it should be.
  13726. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  13727. - ;;
  13728. +# _LT_CONFIG(TAG)
  13729. +# ---------------
  13730. +# If TAG is the built-in tag, create an initial libtool script with a
  13731. +# default configuration from the untagged config vars. Otherwise add code
  13732. +# to config.status for appending the configuration named by TAG from the
  13733. +# matching tagged config vars.
  13734. +m4_defun([_LT_CONFIG],
  13735. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  13736. +_LT_CONFIG_SAVE_COMMANDS([
  13737. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  13738. + m4_if(_LT_TAG, [C], [
  13739. + # See if we are running on zsh, and set the options which allow our
  13740. + # commands through without removal of \ escapes.
  13741. + if test -n "${ZSH_VERSION+set}" ; then
  13742. + setopt NO_GLOB_SUBST
  13743. + fi
  13744. - gnu*)
  13745. - # Under GNU Hurd, this test is not required because there is
  13746. - # no limit to the length of command line arguments.
  13747. - # Libtool will interpret -1 as no limit whatsoever
  13748. - lt_cv_sys_max_cmd_len=-1;
  13749. - ;;
  13750. + cfgfile="${ofile}T"
  13751. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  13752. + $RM "$cfgfile"
  13753. - cygwin* | mingw*)
  13754. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  13755. - # about 5 minutes as the teststring grows exponentially.
  13756. - # Worse, since 9x/ME are not pre-emptively multitasking,
  13757. - # you end up with a "frozen" computer, even though with patience
  13758. - # the test eventually succeeds (with a max line length of 256k).
  13759. - # Instead, let's just punt: use the minimum linelength reported by
  13760. - # all of the supported platforms: 8192 (on NT/2K/XP).
  13761. - lt_cv_sys_max_cmd_len=8192;
  13762. - ;;
  13763. + cat <<_LT_EOF >> "$cfgfile"
  13764. +#! $SHELL
  13765. - amigaos*)
  13766. - # On AmigaOS with pdksh, this test takes hours, literally.
  13767. - # So we just punt and use a minimum line length of 8192.
  13768. - lt_cv_sys_max_cmd_len=8192;
  13769. - ;;
  13770. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  13771. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  13772. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  13773. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  13774. +#
  13775. +_LT_COPYING
  13776. +_LT_LIBTOOL_TAGS
  13777. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  13778. - # This has been around since 386BSD, at least. Likely further.
  13779. - if test -x /sbin/sysctl; then
  13780. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  13781. - elif test -x /usr/sbin/sysctl; then
  13782. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  13783. - else
  13784. - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  13785. - fi
  13786. - # And add a safety zone
  13787. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  13788. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  13789. - ;;
  13790. +# ### BEGIN LIBTOOL CONFIG
  13791. +_LT_LIBTOOL_CONFIG_VARS
  13792. +_LT_LIBTOOL_TAG_VARS
  13793. +# ### END LIBTOOL CONFIG
  13794. - interix*)
  13795. - # We know the value 262144 and hardcode it with a safety zone (like BSD)
  13796. - lt_cv_sys_max_cmd_len=196608
  13797. - ;;
  13798. +_LT_EOF
  13799. - osf*)
  13800. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  13801. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  13802. - # nice to cause kernel panics so lets avoid the loop below.
  13803. - # First set a reasonable default.
  13804. - lt_cv_sys_max_cmd_len=16384
  13805. - #
  13806. - if test -x /sbin/sysconfig; then
  13807. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  13808. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  13809. - esac
  13810. - fi
  13811. - ;;
  13812. - sco3.2v5*)
  13813. - lt_cv_sys_max_cmd_len=102400
  13814. - ;;
  13815. - sysv5* | sco5v6* | sysv4.2uw2*)
  13816. - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  13817. - if test -n "$kargmax"; then
  13818. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  13819. - else
  13820. - lt_cv_sys_max_cmd_len=32768
  13821. - fi
  13822. - ;;
  13823. - *)
  13824. - # If test is not a shell built-in, we'll probably end up computing a
  13825. - # maximum length that is only half of the actual maximum length, but
  13826. - # we can't tell.
  13827. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  13828. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  13829. - = "XX$teststring") >/dev/null 2>&1 &&
  13830. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  13831. - lt_cv_sys_max_cmd_len=$new_result &&
  13832. - test $i != 17 # 1/2 MB should be enough
  13833. - do
  13834. - i=`expr $i + 1`
  13835. - teststring=$teststring$teststring
  13836. - done
  13837. - teststring=
  13838. - # Add a significant safety factor because C++ compilers can tack on massive
  13839. - # amounts of additional arguments before passing them to the linker.
  13840. - # It appears as though 1/2 is a usable value.
  13841. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  13842. + case $host_os in
  13843. + aix3*)
  13844. + cat <<\_LT_EOF >> "$cfgfile"
  13845. +# AIX sometimes has problems with the GCC collect2 program. For some
  13846. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  13847. +# vanish in a puff of smoke.
  13848. +if test "X${COLLECT_NAMES+set}" != Xset; then
  13849. + COLLECT_NAMES=
  13850. + export COLLECT_NAMES
  13851. +fi
  13852. +_LT_EOF
  13853. ;;
  13854. esac
  13855. -])
  13856. -if test -n $lt_cv_sys_max_cmd_len ; then
  13857. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  13858. -else
  13859. - AC_MSG_RESULT(none)
  13860. -fi
  13861. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  13862. + _LT_PROG_LTMAIN
  13863. -# _LT_AC_CHECK_DLFCN
  13864. -# ------------------
  13865. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  13866. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  13867. -])# _LT_AC_CHECK_DLFCN
  13868. + # We use sed instead of cat because bash on DJGPP gets confused if
  13869. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13870. + # text mode, it properly converts lines to CR/LF. This bash problem
  13871. + # is reportedly fixed, but why not run on old versions too?
  13872. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  13873. + || (rm -f "$cfgfile"; exit 1)
  13874. + _LT_PROG_XSI_SHELLFNS
  13875. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  13876. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  13877. -# ---------------------------------------------------------------------
  13878. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  13879. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  13880. -if test "$cross_compiling" = yes; then :
  13881. - [$4]
  13882. -else
  13883. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  13884. - lt_status=$lt_dlunknown
  13885. - cat > conftest.$ac_ext <<EOF
  13886. -[#line __oline__ "configure"
  13887. -#include "confdefs.h"
  13888. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  13889. + || (rm -f "$cfgfile"; exit 1)
  13890. -#if HAVE_DLFCN_H
  13891. -#include <dlfcn.h>
  13892. -#endif
  13893. + mv -f "$cfgfile" "$ofile" ||
  13894. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13895. + chmod +x "$ofile"
  13896. +],
  13897. +[cat <<_LT_EOF >> "$ofile"
  13898. -#include <stdio.h>
  13899. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  13900. +dnl in a comment (ie after a #).
  13901. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  13902. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  13903. +# ### END LIBTOOL TAG CONFIG: $1
  13904. +_LT_EOF
  13905. +])dnl /m4_if
  13906. +],
  13907. +[m4_if([$1], [], [
  13908. + PACKAGE='$PACKAGE'
  13909. + VERSION='$VERSION'
  13910. + TIMESTAMP='$TIMESTAMP'
  13911. + RM='$RM'
  13912. + ofile='$ofile'], [])
  13913. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  13914. +])# _LT_CONFIG
  13915. +
  13916. +
  13917. +# LT_SUPPORTED_TAG(TAG)
  13918. +# ---------------------
  13919. +# Trace this macro to discover what tags are supported by the libtool
  13920. +# --tag option, using:
  13921. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  13922. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  13923. +
  13924. +
  13925. +# C support is built-in for now
  13926. +m4_define([_LT_LANG_C_enabled], [])
  13927. +m4_define([_LT_TAGS], [])
  13928. -#ifdef RTLD_GLOBAL
  13929. -# define LT_DLGLOBAL RTLD_GLOBAL
  13930. -#else
  13931. -# ifdef DL_GLOBAL
  13932. -# define LT_DLGLOBAL DL_GLOBAL
  13933. -# else
  13934. -# define LT_DLGLOBAL 0
  13935. -# endif
  13936. -#endif
  13937. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  13938. - find out it does not work in some platform. */
  13939. -#ifndef LT_DLLAZY_OR_NOW
  13940. -# ifdef RTLD_LAZY
  13941. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  13942. -# else
  13943. -# ifdef DL_LAZY
  13944. -# define LT_DLLAZY_OR_NOW DL_LAZY
  13945. -# else
  13946. -# ifdef RTLD_NOW
  13947. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  13948. -# else
  13949. -# ifdef DL_NOW
  13950. -# define LT_DLLAZY_OR_NOW DL_NOW
  13951. -# else
  13952. -# define LT_DLLAZY_OR_NOW 0
  13953. -# endif
  13954. -# endif
  13955. -# endif
  13956. -# endif
  13957. -#endif
  13958. +# LT_LANG(LANG)
  13959. +# -------------
  13960. +# Enable libtool support for the given language if not already enabled.
  13961. +AC_DEFUN([LT_LANG],
  13962. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  13963. +m4_case([$1],
  13964. + [C], [_LT_LANG(C)],
  13965. + [C++], [_LT_LANG(CXX)],
  13966. + [Java], [_LT_LANG(GCJ)],
  13967. + [Fortran 77], [_LT_LANG(F77)],
  13968. + [Fortran], [_LT_LANG(FC)],
  13969. + [Windows Resource], [_LT_LANG(RC)],
  13970. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  13971. + [_LT_LANG($1)],
  13972. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  13973. +])# LT_LANG
  13974. -#ifdef __cplusplus
  13975. -extern "C" void exit (int);
  13976. -#endif
  13977. -void fnord() { int i=42;}
  13978. -int main ()
  13979. -{
  13980. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  13981. - int status = $lt_dlunknown;
  13982. -
  13983. - if (self)
  13984. - {
  13985. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  13986. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  13987. - /* dlclose (self); */
  13988. - }
  13989. - else
  13990. - puts (dlerror ());
  13991. +# _LT_LANG(LANGNAME)
  13992. +# ------------------
  13993. +m4_defun([_LT_LANG],
  13994. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  13995. + [LT_SUPPORTED_TAG([$1])dnl
  13996. + m4_append([_LT_TAGS], [$1 ])dnl
  13997. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  13998. + _LT_LANG_$1_CONFIG($1)])dnl
  13999. +])# _LT_LANG
  14000. - exit (status);
  14001. -}]
  14002. -EOF
  14003. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  14004. - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  14005. - lt_status=$?
  14006. - case x$lt_status in
  14007. - x$lt_dlno_uscore) $1 ;;
  14008. - x$lt_dlneed_uscore) $2 ;;
  14009. - x$lt_dlunknown|x*) $3 ;;
  14010. - esac
  14011. - else :
  14012. - # compilation failed
  14013. - $3
  14014. - fi
  14015. -fi
  14016. -rm -fr conftest*
  14017. -])# _LT_AC_TRY_DLOPEN_SELF
  14018. +# _LT_LANG_DEFAULT_CONFIG
  14019. +# -----------------------
  14020. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  14021. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  14022. + [LT_LANG(CXX)],
  14023. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  14024. +
  14025. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  14026. + [LT_LANG(F77)],
  14027. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  14028. +
  14029. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  14030. + [LT_LANG(FC)],
  14031. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  14032. +
  14033. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  14034. +dnl pulling things in needlessly.
  14035. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  14036. + [LT_LANG(GCJ)],
  14037. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  14038. + [LT_LANG(GCJ)],
  14039. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  14040. + [LT_LANG(GCJ)],
  14041. + [m4_ifdef([AC_PROG_GCJ],
  14042. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  14043. + m4_ifdef([A][M_PROG_GCJ],
  14044. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  14045. + m4_ifdef([LT_PROG_GCJ],
  14046. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  14047. +
  14048. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  14049. + [LT_LANG(RC)],
  14050. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  14051. +])# _LT_LANG_DEFAULT_CONFIG
  14052. +
  14053. +# Obsolete macros:
  14054. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  14055. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  14056. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  14057. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  14058. +dnl aclocal-1.4 backwards compatibility:
  14059. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  14060. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  14061. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  14062. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  14063. -# AC_LIBTOOL_DLOPEN_SELF
  14064. -# ----------------------
  14065. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  14066. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  14067. -if test "x$enable_dlopen" != xyes; then
  14068. - enable_dlopen=unknown
  14069. - enable_dlopen_self=unknown
  14070. - enable_dlopen_self_static=unknown
  14071. -else
  14072. - lt_cv_dlopen=no
  14073. - lt_cv_dlopen_libs=
  14074. - case $host_os in
  14075. - beos*)
  14076. - lt_cv_dlopen="load_add_on"
  14077. - lt_cv_dlopen_libs=
  14078. - lt_cv_dlopen_self=yes
  14079. - ;;
  14080. +# _LT_TAG_COMPILER
  14081. +# ----------------
  14082. +m4_defun([_LT_TAG_COMPILER],
  14083. +[AC_REQUIRE([AC_PROG_CC])dnl
  14084. - mingw* | pw32*)
  14085. - lt_cv_dlopen="LoadLibrary"
  14086. - lt_cv_dlopen_libs=
  14087. - ;;
  14088. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  14089. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  14090. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  14091. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  14092. - cygwin*)
  14093. - lt_cv_dlopen="dlopen"
  14094. - lt_cv_dlopen_libs=
  14095. - ;;
  14096. +# If no C compiler was specified, use CC.
  14097. +LTCC=${LTCC-"$CC"}
  14098. - darwin*)
  14099. - # if libdl is installed we need to link against it
  14100. - AC_CHECK_LIB([dl], [dlopen],
  14101. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  14102. - lt_cv_dlopen="dyld"
  14103. - lt_cv_dlopen_libs=
  14104. - lt_cv_dlopen_self=yes
  14105. - ])
  14106. - ;;
  14107. +# If no C compiler flags were specified, use CFLAGS.
  14108. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  14109. - *)
  14110. - AC_CHECK_FUNC([shl_load],
  14111. - [lt_cv_dlopen="shl_load"],
  14112. - [AC_CHECK_LIB([dld], [shl_load],
  14113. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  14114. - [AC_CHECK_FUNC([dlopen],
  14115. - [lt_cv_dlopen="dlopen"],
  14116. - [AC_CHECK_LIB([dl], [dlopen],
  14117. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  14118. - [AC_CHECK_LIB([svld], [dlopen],
  14119. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  14120. - [AC_CHECK_LIB([dld], [dld_link],
  14121. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  14122. - ])
  14123. - ])
  14124. - ])
  14125. - ])
  14126. - ])
  14127. - ;;
  14128. - esac
  14129. +# Allow CC to be a program name with arguments.
  14130. +compiler=$CC
  14131. +])# _LT_TAG_COMPILER
  14132. - if test "x$lt_cv_dlopen" != xno; then
  14133. - enable_dlopen=yes
  14134. - else
  14135. - enable_dlopen=no
  14136. - fi
  14137. - case $lt_cv_dlopen in
  14138. - dlopen)
  14139. - save_CPPFLAGS="$CPPFLAGS"
  14140. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  14141. +# _LT_COMPILER_BOILERPLATE
  14142. +# ------------------------
  14143. +# Check for compiler boilerplate output or warnings with
  14144. +# the simple compiler test code.
  14145. +m4_defun([_LT_COMPILER_BOILERPLATE],
  14146. +[m4_require([_LT_DECL_SED])dnl
  14147. +ac_outfile=conftest.$ac_objext
  14148. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  14149. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14150. +_lt_compiler_boilerplate=`cat conftest.err`
  14151. +$RM conftest*
  14152. +])# _LT_COMPILER_BOILERPLATE
  14153. - save_LDFLAGS="$LDFLAGS"
  14154. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  14155. - save_LIBS="$LIBS"
  14156. - LIBS="$lt_cv_dlopen_libs $LIBS"
  14157. +# _LT_LINKER_BOILERPLATE
  14158. +# ----------------------
  14159. +# Check for linker boilerplate output or warnings with
  14160. +# the simple link test code.
  14161. +m4_defun([_LT_LINKER_BOILERPLATE],
  14162. +[m4_require([_LT_DECL_SED])dnl
  14163. +ac_outfile=conftest.$ac_objext
  14164. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  14165. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  14166. +_lt_linker_boilerplate=`cat conftest.err`
  14167. +$RM -r conftest*
  14168. +])# _LT_LINKER_BOILERPLATE
  14169. - AC_CACHE_CHECK([whether a program can dlopen itself],
  14170. - lt_cv_dlopen_self, [dnl
  14171. - _LT_AC_TRY_DLOPEN_SELF(
  14172. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  14173. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  14174. +# _LT_REQUIRED_DARWIN_CHECKS
  14175. +# -------------------------
  14176. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  14177. + case $host_os in
  14178. + rhapsody* | darwin*)
  14179. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  14180. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  14181. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  14182. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  14183. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  14184. + _LT_DECL([], [DSYMUTIL], [1],
  14185. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  14186. + _LT_DECL([], [NMEDIT], [1],
  14187. + [Tool to change global to local symbols on Mac OS X])
  14188. + _LT_DECL([], [LIPO], [1],
  14189. + [Tool to manipulate fat objects and archives on Mac OS X])
  14190. + _LT_DECL([], [OTOOL], [1],
  14191. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  14192. + _LT_DECL([], [OTOOL64], [1],
  14193. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  14194. +
  14195. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  14196. + [lt_cv_apple_cc_single_mod=no
  14197. + if test -z "${LT_MULTI_MODULE}"; then
  14198. + # By default we will add the -single_module flag. You can override
  14199. + # by either setting the environment variable LT_MULTI_MODULE
  14200. + # non-empty at configure time, or by adding -multi_module to the
  14201. + # link flags.
  14202. + rm -rf libconftest.dylib*
  14203. + echo "int foo(void){return 1;}" > conftest.c
  14204. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  14205. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  14206. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  14207. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  14208. + _lt_result=$?
  14209. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  14210. + lt_cv_apple_cc_single_mod=yes
  14211. + else
  14212. + cat conftest.err >&AS_MESSAGE_LOG_FD
  14213. + fi
  14214. + rm -rf libconftest.dylib*
  14215. + rm -f conftest.*
  14216. + fi])
  14217. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  14218. + [lt_cv_ld_exported_symbols_list],
  14219. + [lt_cv_ld_exported_symbols_list=no
  14220. + save_LDFLAGS=$LDFLAGS
  14221. + echo "_main" > conftest.sym
  14222. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  14223. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  14224. + [lt_cv_ld_exported_symbols_list=yes],
  14225. + [lt_cv_ld_exported_symbols_list=no])
  14226. + LDFLAGS="$save_LDFLAGS"
  14227. ])
  14228. -
  14229. - if test "x$lt_cv_dlopen_self" = xyes; then
  14230. - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  14231. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  14232. - lt_cv_dlopen_self_static, [dnl
  14233. - _LT_AC_TRY_DLOPEN_SELF(
  14234. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  14235. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  14236. - ])
  14237. + case $host_os in
  14238. + rhapsody* | darwin1.[[012]])
  14239. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  14240. + darwin1.*)
  14241. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  14242. + darwin*) # darwin 5.x on
  14243. + # if running on 10.5 or later, the deployment target defaults
  14244. + # to the OS version, if on x86, and 10.4, the deployment
  14245. + # target defaults to 10.4. Don't you love it?
  14246. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  14247. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  14248. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  14249. + 10.[[012]]*)
  14250. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  14251. + 10.*)
  14252. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  14253. + esac
  14254. + ;;
  14255. + esac
  14256. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  14257. + _lt_dar_single_mod='$single_module'
  14258. + fi
  14259. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  14260. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  14261. + else
  14262. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  14263. + fi
  14264. + if test "$DSYMUTIL" != ":"; then
  14265. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  14266. + else
  14267. + _lt_dsymutil=
  14268. fi
  14269. -
  14270. - CPPFLAGS="$save_CPPFLAGS"
  14271. - LDFLAGS="$save_LDFLAGS"
  14272. - LIBS="$save_LIBS"
  14273. ;;
  14274. esac
  14275. +])
  14276. - case $lt_cv_dlopen_self in
  14277. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  14278. - *) enable_dlopen_self=unknown ;;
  14279. - esac
  14280. - case $lt_cv_dlopen_self_static in
  14281. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  14282. - *) enable_dlopen_self_static=unknown ;;
  14283. - esac
  14284. -fi
  14285. -])# AC_LIBTOOL_DLOPEN_SELF
  14286. +# _LT_DARWIN_LINKER_FEATURES
  14287. +# --------------------------
  14288. +# Checks for linker and compiler features on darwin
  14289. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  14290. +[
  14291. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  14292. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  14293. + _LT_TAGVAR(hardcode_direct, $1)=no
  14294. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  14295. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  14296. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  14297. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  14298. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  14299. + if test "$GCC" = "yes"; then
  14300. + output_verbose_link_cmd=echo
  14301. + _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}"
  14302. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  14303. + _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}"
  14304. + _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}"
  14305. + m4_if([$1], [CXX],
  14306. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  14307. + _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}"
  14308. + _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}"
  14309. + fi
  14310. +],[])
  14311. + else
  14312. + _LT_TAGVAR(ld_shlibs, $1)=no
  14313. + fi
  14314. +])
  14315. +# _LT_SYS_MODULE_PATH_AIX
  14316. +# -----------------------
  14317. +# Links a minimal program and checks the executable
  14318. +# for the system default hardcoded library path. In most cases,
  14319. +# this is /usr/lib:/lib, but when the MPI compilers are used
  14320. +# the location of the communication and MPI libs are included too.
  14321. +# If we don't find anything, use the default library path according
  14322. +# to the aix ld manual.
  14323. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  14324. +[m4_require([_LT_DECL_SED])dnl
  14325. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  14326. +lt_aix_libpath_sed='
  14327. + /Import File Strings/,/^$/ {
  14328. + /^0/ {
  14329. + s/^0 *\(.*\)$/\1/
  14330. + p
  14331. + }
  14332. + }'
  14333. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14334. +# Check for a 64-bit object if we didn't find anything.
  14335. +if test -z "$aix_libpath"; then
  14336. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  14337. +fi],[])
  14338. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  14339. +])# _LT_SYS_MODULE_PATH_AIX
  14340. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  14341. -# ---------------------------------
  14342. -# Check to see if options -c and -o are simultaneously supported by compiler
  14343. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  14344. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  14345. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  14346. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  14347. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  14348. - $rm -r conftest 2>/dev/null
  14349. - mkdir conftest
  14350. - cd conftest
  14351. - mkdir out
  14352. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  14353. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  14354. - # Insert the option either (1) after the last *FLAGS variable, or
  14355. - # (2) before a word containing "conftest.", or (3) at the end.
  14356. - # Note that $ac_compile itself does not contain backslashes and begins
  14357. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  14358. - lt_compile=`echo "$ac_compile" | $SED \
  14359. - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  14360. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  14361. - -e 's:$: $lt_compiler_flag:'`
  14362. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  14363. - (eval "$lt_compile" 2>out/conftest.err)
  14364. - ac_status=$?
  14365. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  14366. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  14367. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  14368. - then
  14369. - # The compiler can only warn and ignore the option if not recognized
  14370. - # So say no if there are warnings
  14371. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  14372. - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  14373. - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  14374. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  14375. - fi
  14376. - fi
  14377. - chmod u+w . 2>&AS_MESSAGE_LOG_FD
  14378. - $rm conftest*
  14379. - # SGI C++ compiler will create directory out/ii_files/ for
  14380. - # template instantiation
  14381. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  14382. - $rm out/* && rmdir out
  14383. - cd ..
  14384. - rmdir conftest
  14385. - $rm conftest*
  14386. -])
  14387. -])# AC_LIBTOOL_PROG_CC_C_O
  14388. +# _LT_SHELL_INIT(ARG)
  14389. +# -------------------
  14390. +m4_define([_LT_SHELL_INIT],
  14391. +[ifdef([AC_DIVERSION_NOTICE],
  14392. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  14393. + [AC_DIVERT_PUSH(NOTICE)])
  14394. +$1
  14395. +AC_DIVERT_POP
  14396. +])# _LT_SHELL_INIT
  14397. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  14398. -# -----------------------------------------
  14399. -# Check to see if we can do hard links to lock some files if needed
  14400. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  14401. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  14402. +# _LT_PROG_ECHO_BACKSLASH
  14403. +# -----------------------
  14404. +# Add some code to the start of the generated configure script which
  14405. +# will find an echo command which doesn't interpret backslashes.
  14406. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  14407. +[_LT_SHELL_INIT([
  14408. +# Check that we are running under the correct shell.
  14409. +SHELL=${CONFIG_SHELL-/bin/sh}
  14410. -hard_links="nottested"
  14411. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  14412. - # do not overwrite the value of need_locks provided by the user
  14413. - AC_MSG_CHECKING([if we can lock with hard links])
  14414. - hard_links=yes
  14415. - $rm conftest*
  14416. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14417. - touch conftest.a
  14418. - ln conftest.a conftest.b 2>&5 || hard_links=no
  14419. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14420. - AC_MSG_RESULT([$hard_links])
  14421. - if test "$hard_links" = no; then
  14422. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  14423. - need_locks=warn
  14424. - fi
  14425. +case X$lt_ECHO in
  14426. +X*--fallback-echo)
  14427. + # Remove one level of quotation (which was required for Make).
  14428. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  14429. + ;;
  14430. +esac
  14431. +
  14432. +ECHO=${lt_ECHO-echo}
  14433. +if test "X[$]1" = X--no-reexec; then
  14434. + # Discard the --no-reexec flag, and continue.
  14435. + shift
  14436. +elif test "X[$]1" = X--fallback-echo; then
  14437. + # Avoid inline document here, it may be left over
  14438. + :
  14439. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  14440. + # Yippee, $ECHO works!
  14441. + :
  14442. else
  14443. - need_locks=no
  14444. + # Restart under the correct shell.
  14445. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  14446. fi
  14447. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  14448. -
  14449. -# AC_LIBTOOL_OBJDIR
  14450. -# -----------------
  14451. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  14452. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  14453. -[rm -f .libs 2>/dev/null
  14454. -mkdir .libs 2>/dev/null
  14455. -if test -d .libs; then
  14456. - lt_cv_objdir=.libs
  14457. -else
  14458. - # MS-DOS does not allow filenames that begin with a dot.
  14459. - lt_cv_objdir=_libs
  14460. +if test "X[$]1" = X--fallback-echo; then
  14461. + # used as fallback echo
  14462. + shift
  14463. + cat <<_LT_EOF
  14464. +[$]*
  14465. +_LT_EOF
  14466. + exit 0
  14467. fi
  14468. -rmdir .libs 2>/dev/null])
  14469. -objdir=$lt_cv_objdir
  14470. -])# AC_LIBTOOL_OBJDIR
  14471. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  14472. +# if CDPATH is set.
  14473. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14474. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  14475. -# ----------------------------------------------
  14476. -# Check hardcoding attributes.
  14477. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  14478. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  14479. -_LT_AC_TAGVAR(hardcode_action, $1)=
  14480. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  14481. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  14482. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  14483. -
  14484. - # We can hardcode non-existant directories.
  14485. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  14486. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14487. - # have to relink, otherwise we might link with an installed library
  14488. - # when we should be linking with a yet-to-be-installed one
  14489. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  14490. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  14491. - # Linking always hardcodes the temporary library directory.
  14492. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  14493. - else
  14494. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14495. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  14496. +if test -z "$lt_ECHO"; then
  14497. + if test "X${echo_test_string+set}" != Xset; then
  14498. + # find a string as large as possible, as long as the shell can cope with it
  14499. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  14500. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  14501. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  14502. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  14503. + then
  14504. + break
  14505. + fi
  14506. + done
  14507. fi
  14508. -else
  14509. - # We cannot hardcode anything, or else we can only hardcode existing
  14510. - # directories.
  14511. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  14512. -fi
  14513. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  14514. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  14515. - # Fast installation is not supported
  14516. - enable_fast_install=no
  14517. -elif test "$shlibpath_overrides_runpath" = yes ||
  14518. - test "$enable_shared" = no; then
  14519. - # Fast installation is not necessary
  14520. - enable_fast_install=needless
  14521. -fi
  14522. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  14523. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14524. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14525. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14526. + :
  14527. + else
  14528. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  14529. + # backslashes. This makes it impossible to quote backslashes using
  14530. + # echo "$something" | sed 's/\\/\\\\/g'
  14531. + #
  14532. + # So, first we look for a working echo in the user's PATH.
  14533. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14534. + for dir in $PATH /usr/ucb; do
  14535. + IFS="$lt_save_ifs"
  14536. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  14537. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  14538. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  14539. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14540. + ECHO="$dir/echo"
  14541. + break
  14542. + fi
  14543. + done
  14544. + IFS="$lt_save_ifs"
  14545. -# AC_LIBTOOL_SYS_LIB_STRIP
  14546. -# ------------------------
  14547. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  14548. -[striplib=
  14549. -old_striplib=
  14550. -AC_MSG_CHECKING([whether stripping libraries is possible])
  14551. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  14552. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  14553. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  14554. - AC_MSG_RESULT([yes])
  14555. -else
  14556. -# FIXME - insert some real tests, host_os isn't really good enough
  14557. - case $host_os in
  14558. - darwin*)
  14559. - if test -n "$STRIP" ; then
  14560. - striplib="$STRIP -x"
  14561. - AC_MSG_RESULT([yes])
  14562. - else
  14563. - AC_MSG_RESULT([no])
  14564. -fi
  14565. - ;;
  14566. - *)
  14567. - AC_MSG_RESULT([no])
  14568. - ;;
  14569. - esac
  14570. -fi
  14571. -])# AC_LIBTOOL_SYS_LIB_STRIP
  14572. + if test "X$ECHO" = Xecho; then
  14573. + # We didn't find a better echo, so look for alternatives.
  14574. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  14575. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  14576. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14577. + # This shell has a builtin print -r that does the trick.
  14578. + ECHO='print -r'
  14579. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  14580. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  14581. + # If we have ksh, try running configure again with it.
  14582. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14583. + export ORIGINAL_CONFIG_SHELL
  14584. + CONFIG_SHELL=/bin/ksh
  14585. + export CONFIG_SHELL
  14586. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  14587. + else
  14588. + # Try using printf.
  14589. + ECHO='printf %s\n'
  14590. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14591. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14592. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14593. + # Cool, printf works
  14594. + :
  14595. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  14596. + test "X$echo_testing_string" = 'X\t' &&
  14597. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14598. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14599. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  14600. + export CONFIG_SHELL
  14601. + SHELL="$CONFIG_SHELL"
  14602. + export SHELL
  14603. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  14604. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  14605. + test "X$echo_testing_string" = 'X\t' &&
  14606. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14607. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14608. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  14609. + else
  14610. + # maybe with a smaller string...
  14611. + prev=:
  14612. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  14613. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  14614. + then
  14615. + break
  14616. + fi
  14617. + prev="$cmd"
  14618. + done
  14619. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  14620. -# -----------------------------
  14621. -# PORTME Fill in your ld.so characteristics
  14622. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  14623. -[AC_MSG_CHECKING([dynamic linker characteristics])
  14624. -library_names_spec=
  14625. -libname_spec='lib$name'
  14626. -soname_spec=
  14627. -shrext_cmds=".so"
  14628. -postinstall_cmds=
  14629. -postuninstall_cmds=
  14630. -finish_cmds=
  14631. -finish_eval=
  14632. -shlibpath_var=
  14633. -shlibpath_overrides_runpath=unknown
  14634. -version_type=none
  14635. -dynamic_linker="$host_os ld.so"
  14636. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14637. -if test "$GCC" = yes; then
  14638. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14639. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  14640. - # if the path contains ";" then we assume it to be the separator
  14641. - # otherwise default to the standard path separator (i.e. ":") - it is
  14642. - # assumed that no part of a normal pathname contains ";" but that should
  14643. - # okay in the real world where ";" in dirpaths is itself problematic.
  14644. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14645. - else
  14646. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14647. + if test "$prev" != 'sed 50q "[$]0"'; then
  14648. + echo_test_string=`eval $prev`
  14649. + export echo_test_string
  14650. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  14651. + else
  14652. + # Oops. We lost completely, so just stick with echo.
  14653. + ECHO=echo
  14654. + fi
  14655. + fi
  14656. + fi
  14657. + fi
  14658. fi
  14659. -else
  14660. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14661. fi
  14662. -need_lib_prefix=unknown
  14663. -hardcode_into_libs=no
  14664. -# when you set need_version to no, make sure it does not cause -set_version
  14665. -# flags to be left without arguments
  14666. -need_version=unknown
  14667. +# Copy echo and quote the copy suitably for passing to libtool from
  14668. +# the Makefile, instead of quoting the original, which is used later.
  14669. +lt_ECHO=$ECHO
  14670. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  14671. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  14672. +fi
  14673. -case $host_os in
  14674. -aix3*)
  14675. - version_type=linux
  14676. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14677. - shlibpath_var=LIBPATH
  14678. +AC_SUBST(lt_ECHO)
  14679. +])
  14680. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  14681. +_LT_DECL([], [ECHO], [1],
  14682. + [An echo program that does not interpret backslashes])
  14683. +])# _LT_PROG_ECHO_BACKSLASH
  14684. - # AIX 3 has no versioning support, so we append a major version to the name.
  14685. - soname_spec='${libname}${release}${shared_ext}$major'
  14686. - ;;
  14687. -aix4* | aix5*)
  14688. - version_type=linux
  14689. - need_lib_prefix=no
  14690. - need_version=no
  14691. - hardcode_into_libs=yes
  14692. - if test "$host_cpu" = ia64; then
  14693. - # AIX 5 supports IA64
  14694. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14695. - shlibpath_var=LD_LIBRARY_PATH
  14696. - else
  14697. - # With GCC up to 2.95.x, collect2 would create an import file
  14698. - # for dependence libraries. The import file would start with
  14699. - # the line `#! .'. This would cause the generated library to
  14700. - # depend on `.', always an invalid library. This was fixed in
  14701. - # development snapshots of GCC prior to 3.0.
  14702. - case $host_os in
  14703. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  14704. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14705. - echo ' yes '
  14706. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  14707. - :
  14708. - else
  14709. - can_build_shared=no
  14710. - fi
  14711. - ;;
  14712. +# _LT_ENABLE_LOCK
  14713. +# ---------------
  14714. +m4_defun([_LT_ENABLE_LOCK],
  14715. +[AC_ARG_ENABLE([libtool-lock],
  14716. + [AS_HELP_STRING([--disable-libtool-lock],
  14717. + [avoid locking (might break parallel builds)])])
  14718. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  14719. +
  14720. +# Some flags need to be propagated to the compiler or linker for good
  14721. +# libtool support.
  14722. +case $host in
  14723. +ia64-*-hpux*)
  14724. + # Find out which ABI we are using.
  14725. + echo 'int i;' > conftest.$ac_ext
  14726. + if AC_TRY_EVAL(ac_compile); then
  14727. + case `/usr/bin/file conftest.$ac_objext` in
  14728. + *ELF-32*)
  14729. + HPUX_IA64_MODE="32"
  14730. + ;;
  14731. + *ELF-64*)
  14732. + HPUX_IA64_MODE="64"
  14733. + ;;
  14734. esac
  14735. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14736. - # soname into executable. Probably we can add versioning support to
  14737. - # collect2, so additional links can be useful in future.
  14738. - if test "$aix_use_runtimelinking" = yes; then
  14739. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14740. - # instead of lib<name>.a to let people know that these are not
  14741. - # typical AIX shared libraries.
  14742. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14743. + fi
  14744. + rm -rf conftest*
  14745. + ;;
  14746. +*-*-irix6*)
  14747. + # Find out which ABI we are using.
  14748. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  14749. + if AC_TRY_EVAL(ac_compile); then
  14750. + if test "$lt_cv_prog_gnu_ld" = yes; then
  14751. + case `/usr/bin/file conftest.$ac_objext` in
  14752. + *32-bit*)
  14753. + LD="${LD-ld} -melf32bsmip"
  14754. + ;;
  14755. + *N32*)
  14756. + LD="${LD-ld} -melf32bmipn32"
  14757. + ;;
  14758. + *64-bit*)
  14759. + LD="${LD-ld} -melf64bmip"
  14760. + ;;
  14761. + esac
  14762. else
  14763. - # We preserve .a as extension for shared libraries through AIX4.2
  14764. - # and later when we are not doing run time linking.
  14765. - library_names_spec='${libname}${release}.a $libname.a'
  14766. - soname_spec='${libname}${release}${shared_ext}$major'
  14767. + case `/usr/bin/file conftest.$ac_objext` in
  14768. + *32-bit*)
  14769. + LD="${LD-ld} -32"
  14770. + ;;
  14771. + *N32*)
  14772. + LD="${LD-ld} -n32"
  14773. + ;;
  14774. + *64-bit*)
  14775. + LD="${LD-ld} -64"
  14776. + ;;
  14777. + esac
  14778. fi
  14779. - shlibpath_var=LIBPATH
  14780. fi
  14781. + rm -rf conftest*
  14782. ;;
  14783. -amigaos*)
  14784. - library_names_spec='$libname.ixlibrary $libname.a'
  14785. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14786. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
  14787. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  14788. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  14789. + # Find out which ABI we are using.
  14790. + echo 'int i;' > conftest.$ac_ext
  14791. + if AC_TRY_EVAL(ac_compile); then
  14792. + case `/usr/bin/file conftest.o` in
  14793. + *32-bit*)
  14794. + case $host in
  14795. + x86_64-*kfreebsd*-gnu)
  14796. + LD="${LD-ld} -m elf_i386_fbsd"
  14797. + ;;
  14798. + x86_64-*linux*)
  14799. + LD="${LD-ld} -m elf_i386"
  14800. + ;;
  14801. + ppc64-*linux*|powerpc64-*linux*)
  14802. + LD="${LD-ld} -m elf32ppclinux"
  14803. + ;;
  14804. + s390x-*linux*)
  14805. + LD="${LD-ld} -m elf_s390"
  14806. + ;;
  14807. + sparc64-*linux*)
  14808. + LD="${LD-ld} -m elf32_sparc"
  14809. + ;;
  14810. + esac
  14811. + ;;
  14812. + *64-bit*)
  14813. + case $host in
  14814. + x86_64-*kfreebsd*-gnu)
  14815. + LD="${LD-ld} -m elf_x86_64_fbsd"
  14816. + ;;
  14817. + x86_64-*linux*)
  14818. + LD="${LD-ld} -m elf_x86_64"
  14819. + ;;
  14820. + ppc*-*linux*|powerpc*-*linux*)
  14821. + LD="${LD-ld} -m elf64ppc"
  14822. + ;;
  14823. + s390*-*linux*|s390*-*tpf*)
  14824. + LD="${LD-ld} -m elf64_s390"
  14825. + ;;
  14826. + sparc*-*linux*)
  14827. + LD="${LD-ld} -m elf64_sparc"
  14828. + ;;
  14829. + esac
  14830. + ;;
  14831. + esac
  14832. + fi
  14833. + rm -rf conftest*
  14834. ;;
  14835. -beos*)
  14836. - library_names_spec='${libname}${shared_ext}'
  14837. - dynamic_linker="$host_os ld.so"
  14838. - shlibpath_var=LIBRARY_PATH
  14839. +*-*-sco3.2v5*)
  14840. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  14841. + SAVE_CFLAGS="$CFLAGS"
  14842. + CFLAGS="$CFLAGS -belf"
  14843. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  14844. + [AC_LANG_PUSH(C)
  14845. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  14846. + AC_LANG_POP])
  14847. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  14848. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  14849. + CFLAGS="$SAVE_CFLAGS"
  14850. + fi
  14851. ;;
  14852. -
  14853. -bsdi[[45]]*)
  14854. - version_type=linux
  14855. - need_version=no
  14856. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14857. - soname_spec='${libname}${release}${shared_ext}$major'
  14858. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14859. - shlibpath_var=LD_LIBRARY_PATH
  14860. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14861. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14862. - # the default ld.so.conf also contains /usr/contrib/lib and
  14863. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14864. - # libtool to hard-code these into programs
  14865. +sparc*-*solaris*)
  14866. + # Find out which ABI we are using.
  14867. + echo 'int i;' > conftest.$ac_ext
  14868. + if AC_TRY_EVAL(ac_compile); then
  14869. + case `/usr/bin/file conftest.o` in
  14870. + *64-bit*)
  14871. + case $lt_cv_prog_gnu_ld in
  14872. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  14873. + *)
  14874. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  14875. + LD="${LD-ld} -64"
  14876. + fi
  14877. + ;;
  14878. + esac
  14879. + ;;
  14880. + esac
  14881. + fi
  14882. + rm -rf conftest*
  14883. ;;
  14884. +esac
  14885. -cygwin* | mingw* | pw32*)
  14886. - version_type=windows
  14887. - shrext_cmds=".dll"
  14888. - need_version=no
  14889. - need_lib_prefix=no
  14890. +need_locks="$enable_libtool_lock"
  14891. +])# _LT_ENABLE_LOCK
  14892. - case $GCC,$host_os in
  14893. - yes,cygwin* | yes,mingw* | yes,pw32*)
  14894. - library_names_spec='$libname.dll.a'
  14895. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14896. - postinstall_cmds='base_file=`basename \${file}`~
  14897. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  14898. - dldir=$destdir/`dirname \$dlpath`~
  14899. - test -d \$dldir || mkdir -p \$dldir~
  14900. - $install_prog $dir/$dlname \$dldir/$dlname~
  14901. - chmod a+x \$dldir/$dlname'
  14902. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14903. - dlpath=$dir/\$dldll~
  14904. - $rm \$dlpath'
  14905. - shlibpath_overrides_runpath=yes
  14906. - case $host_os in
  14907. - cygwin*)
  14908. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14909. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  14910. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  14911. - ;;
  14912. - mingw*)
  14913. - # MinGW DLLs use traditional 'lib' prefix
  14914. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  14915. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  14916. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  14917. - # It is most probably a Windows format PATH printed by
  14918. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  14919. - # path with ; separators, and with drive letters. We can handle the
  14920. - # drive letters (cygwin fileutils understands them), so leave them,
  14921. - # especially as we might pass files found there to a mingw objdump,
  14922. - # which wouldn't understand a cygwinified path. Ahh.
  14923. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14924. - else
  14925. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14926. - fi
  14927. - ;;
  14928. - pw32*)
  14929. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  14930. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  14931. - ;;
  14932. - esac
  14933. - ;;
  14934. +# _LT_CMD_OLD_ARCHIVE
  14935. +# -------------------
  14936. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  14937. +[AC_CHECK_TOOL(AR, ar, false)
  14938. +test -z "$AR" && AR=ar
  14939. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  14940. +_LT_DECL([], [AR], [1], [The archiver])
  14941. +_LT_DECL([], [AR_FLAGS], [1])
  14942. +
  14943. +AC_CHECK_TOOL(STRIP, strip, :)
  14944. +test -z "$STRIP" && STRIP=:
  14945. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  14946. +
  14947. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  14948. +test -z "$RANLIB" && RANLIB=:
  14949. +_LT_DECL([], [RANLIB], [1],
  14950. + [Commands used to install an old-style archive])
  14951. +
  14952. +# Determine commands to create old-style static archives.
  14953. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  14954. +old_postinstall_cmds='chmod 644 $oldlib'
  14955. +old_postuninstall_cmds=
  14956. +if test -n "$RANLIB"; then
  14957. + case $host_os in
  14958. + openbsd*)
  14959. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  14960. + ;;
  14961. *)
  14962. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14963. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  14964. ;;
  14965. esac
  14966. - dynamic_linker='Win32 ld.exe'
  14967. - # FIXME: first we should search . and the directory the executable is in
  14968. - shlibpath_var=PATH
  14969. - ;;
  14970. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  14971. +fi
  14972. +_LT_DECL([], [old_postinstall_cmds], [2])
  14973. +_LT_DECL([], [old_postuninstall_cmds], [2])
  14974. +_LT_TAGDECL([], [old_archive_cmds], [2],
  14975. + [Commands used to build an old-style archive])
  14976. +])# _LT_CMD_OLD_ARCHIVE
  14977. -darwin* | rhapsody*)
  14978. - dynamic_linker="$host_os dyld"
  14979. - version_type=darwin
  14980. - need_lib_prefix=no
  14981. - need_version=no
  14982. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14983. - soname_spec='${libname}${release}${major}$shared_ext'
  14984. - shlibpath_overrides_runpath=yes
  14985. - shlibpath_var=DYLD_LIBRARY_PATH
  14986. - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14987. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  14988. - if test "$GCC" = yes; then
  14989. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  14990. - else
  14991. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  14992. - fi
  14993. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14994. - ;;
  14995. -dgux*)
  14996. - version_type=linux
  14997. - need_lib_prefix=no
  14998. - need_version=no
  14999. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  15000. - soname_spec='${libname}${release}${shared_ext}$major'
  15001. - shlibpath_var=LD_LIBRARY_PATH
  15002. - ;;
  15003. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  15004. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  15005. +# ----------------------------------------------------------------
  15006. +# Check whether the given compiler option works
  15007. +AC_DEFUN([_LT_COMPILER_OPTION],
  15008. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  15009. +m4_require([_LT_DECL_SED])dnl
  15010. +AC_CACHE_CHECK([$1], [$2],
  15011. + [$2=no
  15012. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  15013. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15014. + lt_compiler_flag="$3"
  15015. + # Insert the option either (1) after the last *FLAGS variable, or
  15016. + # (2) before a word containing "conftest.", or (3) at the end.
  15017. + # Note that $ac_compile itself does not contain backslashes and begins
  15018. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  15019. + # The option is referenced via a variable to avoid confusing sed.
  15020. + lt_compile=`echo "$ac_compile" | $SED \
  15021. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15022. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  15023. + -e 's:$: $lt_compiler_flag:'`
  15024. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  15025. + (eval "$lt_compile" 2>conftest.err)
  15026. + ac_status=$?
  15027. + cat conftest.err >&AS_MESSAGE_LOG_FD
  15028. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  15029. + if (exit $ac_status) && test -s "$ac_outfile"; then
  15030. + # The compiler can only warn and ignore the option if not recognized
  15031. + # So say no if there are warnings other than the usual output.
  15032. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  15033. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15034. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  15035. + $2=yes
  15036. + fi
  15037. + fi
  15038. + $RM conftest*
  15039. +])
  15040. -freebsd1*)
  15041. - dynamic_linker=no
  15042. - ;;
  15043. +if test x"[$]$2" = xyes; then
  15044. + m4_if([$5], , :, [$5])
  15045. +else
  15046. + m4_if([$6], , :, [$6])
  15047. +fi
  15048. +])# _LT_COMPILER_OPTION
  15049. -kfreebsd*-gnu)
  15050. - version_type=linux
  15051. - need_lib_prefix=no
  15052. - need_version=no
  15053. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15054. - soname_spec='${libname}${release}${shared_ext}$major'
  15055. - shlibpath_var=LD_LIBRARY_PATH
  15056. - shlibpath_overrides_runpath=no
  15057. - hardcode_into_libs=yes
  15058. - dynamic_linker='GNU ld.so'
  15059. - ;;
  15060. +# Old name:
  15061. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  15062. +dnl aclocal-1.4 backwards compatibility:
  15063. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  15064. -freebsd* | dragonfly*)
  15065. - # DragonFly does not have aout. When/if they implement a new
  15066. - # versioning mechanism, adjust this.
  15067. - if test -x /usr/bin/objformat; then
  15068. - objformat=`/usr/bin/objformat`
  15069. - else
  15070. - case $host_os in
  15071. - freebsd[[123]]*) objformat=aout ;;
  15072. - *) objformat=elf ;;
  15073. - esac
  15074. - fi
  15075. - version_type=freebsd-$objformat
  15076. - case $version_type in
  15077. - freebsd-elf*)
  15078. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15079. - need_version=no
  15080. - need_lib_prefix=no
  15081. - ;;
  15082. - freebsd-*)
  15083. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  15084. - need_version=yes
  15085. - ;;
  15086. - esac
  15087. - shlibpath_var=LD_LIBRARY_PATH
  15088. - case $host_os in
  15089. - freebsd2*)
  15090. - shlibpath_overrides_runpath=yes
  15091. - ;;
  15092. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  15093. - shlibpath_overrides_runpath=yes
  15094. - hardcode_into_libs=yes
  15095. +
  15096. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  15097. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  15098. +# ----------------------------------------------------
  15099. +# Check whether the given linker option works
  15100. +AC_DEFUN([_LT_LINKER_OPTION],
  15101. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  15102. +m4_require([_LT_DECL_SED])dnl
  15103. +AC_CACHE_CHECK([$1], [$2],
  15104. + [$2=no
  15105. + save_LDFLAGS="$LDFLAGS"
  15106. + LDFLAGS="$LDFLAGS $3"
  15107. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  15108. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  15109. + # The linker can only warn and ignore the option if not recognized
  15110. + # So say no if there are warnings
  15111. + if test -s conftest.err; then
  15112. + # Append any errors to the config.log.
  15113. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  15114. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  15115. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  15116. + if diff conftest.exp conftest.er2 >/dev/null; then
  15117. + $2=yes
  15118. + fi
  15119. + else
  15120. + $2=yes
  15121. + fi
  15122. + fi
  15123. + $RM -r conftest*
  15124. + LDFLAGS="$save_LDFLAGS"
  15125. +])
  15126. +
  15127. +if test x"[$]$2" = xyes; then
  15128. + m4_if([$4], , :, [$4])
  15129. +else
  15130. + m4_if([$5], , :, [$5])
  15131. +fi
  15132. +])# _LT_LINKER_OPTION
  15133. +
  15134. +# Old name:
  15135. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  15136. +dnl aclocal-1.4 backwards compatibility:
  15137. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  15138. +
  15139. +
  15140. +# LT_CMD_MAX_LEN
  15141. +#---------------
  15142. +AC_DEFUN([LT_CMD_MAX_LEN],
  15143. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  15144. +# find the maximum length of command line arguments
  15145. +AC_MSG_CHECKING([the maximum length of command line arguments])
  15146. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  15147. + i=0
  15148. + teststring="ABCD"
  15149. +
  15150. + case $build_os in
  15151. + msdosdjgpp*)
  15152. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  15153. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  15154. + # during glob expansion). Even if it were fixed, the result of this
  15155. + # check would be larger than it should be.
  15156. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  15157. ;;
  15158. - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  15159. - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  15160. - shlibpath_overrides_runpath=no
  15161. - hardcode_into_libs=yes
  15162. +
  15163. + gnu*)
  15164. + # Under GNU Hurd, this test is not required because there is
  15165. + # no limit to the length of command line arguments.
  15166. + # Libtool will interpret -1 as no limit whatsoever
  15167. + lt_cv_sys_max_cmd_len=-1;
  15168. ;;
  15169. - freebsd*) # from 4.6 on
  15170. - shlibpath_overrides_runpath=yes
  15171. - hardcode_into_libs=yes
  15172. +
  15173. + cygwin* | mingw*)
  15174. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  15175. + # about 5 minutes as the teststring grows exponentially.
  15176. + # Worse, since 9x/ME are not pre-emptively multitasking,
  15177. + # you end up with a "frozen" computer, even though with patience
  15178. + # the test eventually succeeds (with a max line length of 256k).
  15179. + # Instead, let's just punt: use the minimum linelength reported by
  15180. + # all of the supported platforms: 8192 (on NT/2K/XP).
  15181. + lt_cv_sys_max_cmd_len=8192;
  15182. ;;
  15183. - esac
  15184. - ;;
  15185. -gnu*)
  15186. - version_type=linux
  15187. - need_lib_prefix=no
  15188. - need_version=no
  15189. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  15190. - soname_spec='${libname}${release}${shared_ext}$major'
  15191. - shlibpath_var=LD_LIBRARY_PATH
  15192. - hardcode_into_libs=yes
  15193. - ;;
  15194. + amigaos*)
  15195. + # On AmigaOS with pdksh, this test takes hours, literally.
  15196. + # So we just punt and use a minimum line length of 8192.
  15197. + lt_cv_sys_max_cmd_len=8192;
  15198. + ;;
  15199. -hpux9* | hpux10* | hpux11*)
  15200. - # Give a soname corresponding to the major version so that dld.sl refuses to
  15201. - # link against other versions.
  15202. - version_type=sunos
  15203. - need_lib_prefix=no
  15204. - need_version=no
  15205. - case $host_cpu in
  15206. - ia64*)
  15207. - shrext_cmds='.so'
  15208. - hardcode_into_libs=yes
  15209. - dynamic_linker="$host_os dld.so"
  15210. - shlibpath_var=LD_LIBRARY_PATH
  15211. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15212. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15213. - soname_spec='${libname}${release}${shared_ext}$major'
  15214. - if test "X$HPUX_IA64_MODE" = X32; then
  15215. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  15216. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  15217. + # This has been around since 386BSD, at least. Likely further.
  15218. + if test -x /sbin/sysctl; then
  15219. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  15220. + elif test -x /usr/sbin/sysctl; then
  15221. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  15222. else
  15223. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  15224. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  15225. fi
  15226. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15227. - ;;
  15228. - hppa*64*)
  15229. - shrext_cmds='.sl'
  15230. - hardcode_into_libs=yes
  15231. - dynamic_linker="$host_os dld.sl"
  15232. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  15233. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  15234. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15235. - soname_spec='${libname}${release}${shared_ext}$major'
  15236. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  15237. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  15238. - ;;
  15239. - *)
  15240. - shrext_cmds='.sl'
  15241. - dynamic_linker="$host_os dld.sl"
  15242. - shlibpath_var=SHLIB_PATH
  15243. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15244. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15245. - soname_spec='${libname}${release}${shared_ext}$major'
  15246. + # And add a safety zone
  15247. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  15248. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  15249. ;;
  15250. - esac
  15251. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15252. - postinstall_cmds='chmod 555 $lib'
  15253. - ;;
  15254. -interix3*)
  15255. - version_type=linux
  15256. - need_lib_prefix=no
  15257. - need_version=no
  15258. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15259. - soname_spec='${libname}${release}${shared_ext}$major'
  15260. - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  15261. - shlibpath_var=LD_LIBRARY_PATH
  15262. - shlibpath_overrides_runpath=no
  15263. - hardcode_into_libs=yes
  15264. - ;;
  15265. + interix*)
  15266. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  15267. + lt_cv_sys_max_cmd_len=196608
  15268. + ;;
  15269. -irix5* | irix6* | nonstopux*)
  15270. - case $host_os in
  15271. - nonstopux*) version_type=nonstopux ;;
  15272. - *)
  15273. - if test "$lt_cv_prog_gnu_ld" = yes; then
  15274. - version_type=linux
  15275. - else
  15276. - version_type=irix
  15277. - fi ;;
  15278. - esac
  15279. - need_lib_prefix=no
  15280. - need_version=no
  15281. - soname_spec='${libname}${release}${shared_ext}$major'
  15282. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  15283. - case $host_os in
  15284. - irix5* | nonstopux*)
  15285. - libsuff= shlibsuff=
  15286. + osf*)
  15287. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  15288. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  15289. + # nice to cause kernel panics so lets avoid the loop below.
  15290. + # First set a reasonable default.
  15291. + lt_cv_sys_max_cmd_len=16384
  15292. + #
  15293. + if test -x /sbin/sysconfig; then
  15294. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  15295. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  15296. + esac
  15297. + fi
  15298. + ;;
  15299. + sco3.2v5*)
  15300. + lt_cv_sys_max_cmd_len=102400
  15301. + ;;
  15302. + sysv5* | sco5v6* | sysv4.2uw2*)
  15303. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  15304. + if test -n "$kargmax"; then
  15305. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  15306. + else
  15307. + lt_cv_sys_max_cmd_len=32768
  15308. + fi
  15309. ;;
  15310. *)
  15311. - case $LD in # libtool.m4 will add one of these switches to LD
  15312. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  15313. - libsuff= shlibsuff= libmagic=32-bit;;
  15314. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  15315. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  15316. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  15317. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15318. - *) libsuff= shlibsuff= libmagic=never-match;;
  15319. - esac
  15320. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  15321. + if test -n "$lt_cv_sys_max_cmd_len"; then
  15322. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  15323. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  15324. + else
  15325. + # Make teststring a little bigger before we do anything with it.
  15326. + # a 1K string should be a reasonable start.
  15327. + for i in 1 2 3 4 5 6 7 8 ; do
  15328. + teststring=$teststring$teststring
  15329. + done
  15330. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  15331. + # If test is not a shell built-in, we'll probably end up computing a
  15332. + # maximum length that is only half of the actual maximum length, but
  15333. + # we can't tell.
  15334. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  15335. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  15336. + test $i != 17 # 1/2 MB should be enough
  15337. + do
  15338. + i=`expr $i + 1`
  15339. + teststring=$teststring$teststring
  15340. + done
  15341. + # Only check the string length outside the loop.
  15342. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  15343. + teststring=
  15344. + # Add a significant safety factor because C++ compilers can tack on
  15345. + # massive amounts of additional arguments before passing them to the
  15346. + # linker. It appears as though 1/2 is a usable value.
  15347. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  15348. + fi
  15349. ;;
  15350. esac
  15351. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15352. - shlibpath_overrides_runpath=no
  15353. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15354. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15355. - hardcode_into_libs=yes
  15356. - ;;
  15357. +])
  15358. +if test -n $lt_cv_sys_max_cmd_len ; then
  15359. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  15360. +else
  15361. + AC_MSG_RESULT(none)
  15362. +fi
  15363. +max_cmd_len=$lt_cv_sys_max_cmd_len
  15364. +_LT_DECL([], [max_cmd_len], [0],
  15365. + [What is the maximum length of a command?])
  15366. +])# LT_CMD_MAX_LEN
  15367. -# No shared lib support for Linux oldld, aout, or coff.
  15368. -linux*oldld* | linux*aout* | linux*coff*)
  15369. - dynamic_linker=no
  15370. - ;;
  15371. +# Old name:
  15372. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  15373. +dnl aclocal-1.4 backwards compatibility:
  15374. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  15375. -# This must be Linux ELF.
  15376. -linux*)
  15377. - version_type=linux
  15378. - need_lib_prefix=no
  15379. - need_version=no
  15380. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15381. - soname_spec='${libname}${release}${shared_ext}$major'
  15382. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15383. - shlibpath_var=LD_LIBRARY_PATH
  15384. - shlibpath_overrides_runpath=no
  15385. - # This implies no fast_install, which is unacceptable.
  15386. - # Some rework will be needed to allow for fast_install
  15387. - # before this can be enabled.
  15388. - hardcode_into_libs=yes
  15389. - # Append ld.so.conf contents to the search path
  15390. - if test -f /etc/ld.so.conf; then
  15391. - 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  15392. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  15393. - fi
  15394. +# _LT_HEADER_DLFCN
  15395. +# ----------------
  15396. +m4_defun([_LT_HEADER_DLFCN],
  15397. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  15398. +])# _LT_HEADER_DLFCN
  15399. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  15400. - # powerpc, because MkLinux only supported shared libraries with the
  15401. - # GNU dynamic linker. Since this was broken with cross compilers,
  15402. - # most powerpc-linux boxes support dynamic linking these days and
  15403. - # people can always --disable-shared, the test was removed, and we
  15404. - # assume the GNU/Linux dynamic linker is in use.
  15405. - dynamic_linker='GNU/Linux ld.so'
  15406. - ;;
  15407. -knetbsd*-gnu)
  15408. - version_type=linux
  15409. - need_lib_prefix=no
  15410. - need_version=no
  15411. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15412. - soname_spec='${libname}${release}${shared_ext}$major'
  15413. - shlibpath_var=LD_LIBRARY_PATH
  15414. - shlibpath_overrides_runpath=no
  15415. - hardcode_into_libs=yes
  15416. - dynamic_linker='GNU ld.so'
  15417. - ;;
  15418. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  15419. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  15420. +# ----------------------------------------------------------------
  15421. +m4_defun([_LT_TRY_DLOPEN_SELF],
  15422. +[m4_require([_LT_HEADER_DLFCN])dnl
  15423. +if test "$cross_compiling" = yes; then :
  15424. + [$4]
  15425. +else
  15426. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15427. + lt_status=$lt_dlunknown
  15428. + cat > conftest.$ac_ext <<_LT_EOF
  15429. +[#line __oline__ "configure"
  15430. +#include "confdefs.h"
  15431. -netbsd*)
  15432. - version_type=sunos
  15433. - need_lib_prefix=no
  15434. - need_version=no
  15435. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15436. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15437. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15438. - dynamic_linker='NetBSD (a.out) ld.so'
  15439. - else
  15440. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  15441. - soname_spec='${libname}${release}${shared_ext}$major'
  15442. - dynamic_linker='NetBSD ld.elf_so'
  15443. - fi
  15444. - shlibpath_var=LD_LIBRARY_PATH
  15445. - shlibpath_overrides_runpath=yes
  15446. - hardcode_into_libs=yes
  15447. - ;;
  15448. +#if HAVE_DLFCN_H
  15449. +#include <dlfcn.h>
  15450. +#endif
  15451. -newsos6)
  15452. - version_type=linux
  15453. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15454. - shlibpath_var=LD_LIBRARY_PATH
  15455. - shlibpath_overrides_runpath=yes
  15456. - ;;
  15457. +#include <stdio.h>
  15458. -nto-qnx*)
  15459. - version_type=linux
  15460. - need_lib_prefix=no
  15461. - need_version=no
  15462. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15463. - soname_spec='${libname}${release}${shared_ext}$major'
  15464. - shlibpath_var=LD_LIBRARY_PATH
  15465. - shlibpath_overrides_runpath=yes
  15466. - ;;
  15467. +#ifdef RTLD_GLOBAL
  15468. +# define LT_DLGLOBAL RTLD_GLOBAL
  15469. +#else
  15470. +# ifdef DL_GLOBAL
  15471. +# define LT_DLGLOBAL DL_GLOBAL
  15472. +# else
  15473. +# define LT_DLGLOBAL 0
  15474. +# endif
  15475. +#endif
  15476. -openbsd*)
  15477. - version_type=sunos
  15478. - sys_lib_dlsearch_path_spec="/usr/lib"
  15479. - need_lib_prefix=no
  15480. - # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  15481. - case $host_os in
  15482. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  15483. - *) need_version=no ;;
  15484. - esac
  15485. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15486. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15487. - shlibpath_var=LD_LIBRARY_PATH
  15488. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15489. - case $host_os in
  15490. - openbsd2.[[89]] | openbsd2.[[89]].*)
  15491. - shlibpath_overrides_runpath=no
  15492. - ;;
  15493. - *)
  15494. - shlibpath_overrides_runpath=yes
  15495. - ;;
  15496. - esac
  15497. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15498. + find out it does not work in some platform. */
  15499. +#ifndef LT_DLLAZY_OR_NOW
  15500. +# ifdef RTLD_LAZY
  15501. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  15502. +# else
  15503. +# ifdef DL_LAZY
  15504. +# define LT_DLLAZY_OR_NOW DL_LAZY
  15505. +# else
  15506. +# ifdef RTLD_NOW
  15507. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  15508. +# else
  15509. +# ifdef DL_NOW
  15510. +# define LT_DLLAZY_OR_NOW DL_NOW
  15511. +# else
  15512. +# define LT_DLLAZY_OR_NOW 0
  15513. +# endif
  15514. +# endif
  15515. +# endif
  15516. +# endif
  15517. +#endif
  15518. +
  15519. +#ifdef __cplusplus
  15520. +extern "C" void exit (int);
  15521. +#endif
  15522. +
  15523. +void fnord() { int i=42;}
  15524. +int main ()
  15525. +{
  15526. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15527. + int status = $lt_dlunknown;
  15528. +
  15529. + if (self)
  15530. + {
  15531. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15532. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15533. + /* dlclose (self); */
  15534. + }
  15535. else
  15536. - shlibpath_overrides_runpath=yes
  15537. + puts (dlerror ());
  15538. +
  15539. + exit (status);
  15540. +}]
  15541. +_LT_EOF
  15542. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  15543. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  15544. + lt_status=$?
  15545. + case x$lt_status in
  15546. + x$lt_dlno_uscore) $1 ;;
  15547. + x$lt_dlneed_uscore) $2 ;;
  15548. + x$lt_dlunknown|x*) $3 ;;
  15549. + esac
  15550. + else :
  15551. + # compilation failed
  15552. + $3
  15553. fi
  15554. - ;;
  15555. +fi
  15556. +rm -fr conftest*
  15557. +])# _LT_TRY_DLOPEN_SELF
  15558. -os2*)
  15559. - libname_spec='$name'
  15560. - shrext_cmds=".dll"
  15561. - need_lib_prefix=no
  15562. - library_names_spec='$libname${shared_ext} $libname.a'
  15563. - dynamic_linker='OS/2 ld.exe'
  15564. - shlibpath_var=LIBPATH
  15565. - ;;
  15566. -osf3* | osf4* | osf5*)
  15567. - version_type=osf
  15568. - need_lib_prefix=no
  15569. - need_version=no
  15570. - soname_spec='${libname}${release}${shared_ext}$major'
  15571. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15572. - shlibpath_var=LD_LIBRARY_PATH
  15573. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  15574. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  15575. - ;;
  15576. +# LT_SYS_DLOPEN_SELF
  15577. +# ------------------
  15578. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  15579. +[m4_require([_LT_HEADER_DLFCN])dnl
  15580. +if test "x$enable_dlopen" != xyes; then
  15581. + enable_dlopen=unknown
  15582. + enable_dlopen_self=unknown
  15583. + enable_dlopen_self_static=unknown
  15584. +else
  15585. + lt_cv_dlopen=no
  15586. + lt_cv_dlopen_libs=
  15587. -solaris*)
  15588. - version_type=linux
  15589. - need_lib_prefix=no
  15590. - need_version=no
  15591. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15592. - soname_spec='${libname}${release}${shared_ext}$major'
  15593. - shlibpath_var=LD_LIBRARY_PATH
  15594. - shlibpath_overrides_runpath=yes
  15595. - hardcode_into_libs=yes
  15596. - # ldd complains unless libraries are executable
  15597. - postinstall_cmds='chmod +x $lib'
  15598. - ;;
  15599. + case $host_os in
  15600. + beos*)
  15601. + lt_cv_dlopen="load_add_on"
  15602. + lt_cv_dlopen_libs=
  15603. + lt_cv_dlopen_self=yes
  15604. + ;;
  15605. -sunos4*)
  15606. - version_type=sunos
  15607. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  15608. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  15609. - shlibpath_var=LD_LIBRARY_PATH
  15610. - shlibpath_overrides_runpath=yes
  15611. - if test "$with_gnu_ld" = yes; then
  15612. - need_lib_prefix=no
  15613. - fi
  15614. - need_version=yes
  15615. - ;;
  15616. + mingw* | pw32*)
  15617. + lt_cv_dlopen="LoadLibrary"
  15618. + lt_cv_dlopen_libs=
  15619. + ;;
  15620. -sysv4 | sysv4.3*)
  15621. - version_type=linux
  15622. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15623. - soname_spec='${libname}${release}${shared_ext}$major'
  15624. - shlibpath_var=LD_LIBRARY_PATH
  15625. - case $host_vendor in
  15626. - sni)
  15627. - shlibpath_overrides_runpath=no
  15628. - need_lib_prefix=no
  15629. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  15630. - runpath_var=LD_RUN_PATH
  15631. - ;;
  15632. - siemens)
  15633. - need_lib_prefix=no
  15634. - ;;
  15635. - motorola)
  15636. - need_lib_prefix=no
  15637. - need_version=no
  15638. - shlibpath_overrides_runpath=no
  15639. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  15640. - ;;
  15641. - esac
  15642. - ;;
  15643. + cygwin*)
  15644. + lt_cv_dlopen="dlopen"
  15645. + lt_cv_dlopen_libs=
  15646. + ;;
  15647. -sysv4*MP*)
  15648. - if test -d /usr/nec ;then
  15649. - version_type=linux
  15650. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  15651. - soname_spec='$libname${shared_ext}.$major'
  15652. - shlibpath_var=LD_LIBRARY_PATH
  15653. - fi
  15654. - ;;
  15655. + darwin*)
  15656. + # if libdl is installed we need to link against it
  15657. + AC_CHECK_LIB([dl], [dlopen],
  15658. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  15659. + lt_cv_dlopen="dyld"
  15660. + lt_cv_dlopen_libs=
  15661. + lt_cv_dlopen_self=yes
  15662. + ])
  15663. + ;;
  15664. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  15665. - version_type=freebsd-elf
  15666. - need_lib_prefix=no
  15667. - need_version=no
  15668. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  15669. - soname_spec='${libname}${release}${shared_ext}$major'
  15670. - shlibpath_var=LD_LIBRARY_PATH
  15671. - hardcode_into_libs=yes
  15672. - if test "$with_gnu_ld" = yes; then
  15673. - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  15674. - shlibpath_overrides_runpath=no
  15675. + *)
  15676. + AC_CHECK_FUNC([shl_load],
  15677. + [lt_cv_dlopen="shl_load"],
  15678. + [AC_CHECK_LIB([dld], [shl_load],
  15679. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  15680. + [AC_CHECK_FUNC([dlopen],
  15681. + [lt_cv_dlopen="dlopen"],
  15682. + [AC_CHECK_LIB([dl], [dlopen],
  15683. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  15684. + [AC_CHECK_LIB([svld], [dlopen],
  15685. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  15686. + [AC_CHECK_LIB([dld], [dld_link],
  15687. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  15688. + ])
  15689. + ])
  15690. + ])
  15691. + ])
  15692. + ])
  15693. + ;;
  15694. + esac
  15695. +
  15696. + if test "x$lt_cv_dlopen" != xno; then
  15697. + enable_dlopen=yes
  15698. else
  15699. - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  15700. - shlibpath_overrides_runpath=yes
  15701. - case $host_os in
  15702. - sco3.2v5*)
  15703. - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  15704. - ;;
  15705. - esac
  15706. + enable_dlopen=no
  15707. fi
  15708. - sys_lib_dlsearch_path_spec='/usr/lib'
  15709. - ;;
  15710. -
  15711. -uts4*)
  15712. - version_type=linux
  15713. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  15714. - soname_spec='${libname}${release}${shared_ext}$major'
  15715. - shlibpath_var=LD_LIBRARY_PATH
  15716. - ;;
  15717. -
  15718. -*)
  15719. - dynamic_linker=no
  15720. - ;;
  15721. -esac
  15722. -AC_MSG_RESULT([$dynamic_linker])
  15723. -test "$dynamic_linker" = no && can_build_shared=no
  15724. -
  15725. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  15726. -if test "$GCC" = yes; then
  15727. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  15728. -fi
  15729. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  15730. -
  15731. -# _LT_AC_TAGCONFIG
  15732. -# ----------------
  15733. -AC_DEFUN([_LT_AC_TAGCONFIG],
  15734. -[AC_ARG_WITH([tags],
  15735. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  15736. - [include additional configurations @<:@automatic@:>@])],
  15737. - [tagnames="$withval"])
  15738. -
  15739. -if test -f "$ltmain" && test -n "$tagnames"; then
  15740. - if test ! -f "${ofile}"; then
  15741. - AC_MSG_WARN([output file `$ofile' does not exist])
  15742. - fi
  15743. + case $lt_cv_dlopen in
  15744. + dlopen)
  15745. + save_CPPFLAGS="$CPPFLAGS"
  15746. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15747. - if test -z "$LTCC"; then
  15748. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  15749. - if test -z "$LTCC"; then
  15750. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  15751. - else
  15752. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  15753. - fi
  15754. - fi
  15755. - if test -z "$LTCFLAGS"; then
  15756. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  15757. - fi
  15758. + save_LDFLAGS="$LDFLAGS"
  15759. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15760. - # Extract list of available tagged configurations in $ofile.
  15761. - # Note that this assumes the entire list is on one line.
  15762. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  15763. + save_LIBS="$LIBS"
  15764. + LIBS="$lt_cv_dlopen_libs $LIBS"
  15765. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15766. - for tagname in $tagnames; do
  15767. - IFS="$lt_save_ifs"
  15768. - # Check whether tagname contains only valid characters
  15769. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  15770. - "") ;;
  15771. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  15772. - ;;
  15773. - esac
  15774. + AC_CACHE_CHECK([whether a program can dlopen itself],
  15775. + lt_cv_dlopen_self, [dnl
  15776. + _LT_TRY_DLOPEN_SELF(
  15777. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  15778. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  15779. + ])
  15780. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  15781. - then
  15782. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  15783. + if test "x$lt_cv_dlopen_self" = xyes; then
  15784. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15785. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  15786. + lt_cv_dlopen_self_static, [dnl
  15787. + _LT_TRY_DLOPEN_SELF(
  15788. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  15789. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  15790. + ])
  15791. fi
  15792. - # Update the list of available tags.
  15793. - if test -n "$tagname"; then
  15794. - echo appending configuration tag \"$tagname\" to $ofile
  15795. -
  15796. - case $tagname in
  15797. - CXX)
  15798. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  15799. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  15800. - (test "X$CXX" != "Xg++"))) ; then
  15801. - AC_LIBTOOL_LANG_CXX_CONFIG
  15802. - else
  15803. - tagname=""
  15804. - fi
  15805. - ;;
  15806. -
  15807. - F77)
  15808. - if test -n "$F77" && test "X$F77" != "Xno"; then
  15809. - AC_LIBTOOL_LANG_F77_CONFIG
  15810. - else
  15811. - tagname=""
  15812. - fi
  15813. - ;;
  15814. -
  15815. - GCJ)
  15816. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  15817. - AC_LIBTOOL_LANG_GCJ_CONFIG
  15818. - else
  15819. - tagname=""
  15820. - fi
  15821. - ;;
  15822. -
  15823. - RC)
  15824. - AC_LIBTOOL_LANG_RC_CONFIG
  15825. - ;;
  15826. -
  15827. - *)
  15828. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  15829. - ;;
  15830. - esac
  15831. + CPPFLAGS="$save_CPPFLAGS"
  15832. + LDFLAGS="$save_LDFLAGS"
  15833. + LIBS="$save_LIBS"
  15834. + ;;
  15835. + esac
  15836. - # Append the new tag name to the list of available tags.
  15837. - if test -n "$tagname" ; then
  15838. - available_tags="$available_tags $tagname"
  15839. - fi
  15840. - fi
  15841. - done
  15842. - IFS="$lt_save_ifs"
  15843. + case $lt_cv_dlopen_self in
  15844. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15845. + *) enable_dlopen_self=unknown ;;
  15846. + esac
  15847. - # Now substitute the updated list of available tags.
  15848. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  15849. - mv "${ofile}T" "$ofile"
  15850. - chmod +x "$ofile"
  15851. - else
  15852. - rm -f "${ofile}T"
  15853. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  15854. - fi
  15855. + case $lt_cv_dlopen_self_static in
  15856. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15857. + *) enable_dlopen_self_static=unknown ;;
  15858. + esac
  15859. fi
  15860. -])# _LT_AC_TAGCONFIG
  15861. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  15862. + [Whether dlopen is supported])
  15863. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  15864. + [Whether dlopen of programs is supported])
  15865. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  15866. + [Whether dlopen of statically linked programs is supported])
  15867. +])# LT_SYS_DLOPEN_SELF
  15868. +
  15869. +# Old name:
  15870. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  15871. +dnl aclocal-1.4 backwards compatibility:
  15872. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  15873. -# AC_LIBTOOL_DLOPEN
  15874. -# -----------------
  15875. -# enable checks for dlopen support
  15876. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  15877. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  15878. -])# AC_LIBTOOL_DLOPEN
  15879. +# _LT_COMPILER_C_O([TAGNAME])
  15880. +# ---------------------------
  15881. +# Check to see if options -c and -o are simultaneously supported by compiler.
  15882. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  15883. +m4_defun([_LT_COMPILER_C_O],
  15884. +[m4_require([_LT_DECL_SED])dnl
  15885. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  15886. +m4_require([_LT_TAG_COMPILER])dnl
  15887. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  15888. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  15889. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  15890. + $RM -r conftest 2>/dev/null
  15891. + mkdir conftest
  15892. + cd conftest
  15893. + mkdir out
  15894. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  15895. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  15896. + # Insert the option either (1) after the last *FLAGS variable, or
  15897. + # (2) before a word containing "conftest.", or (3) at the end.
  15898. + # Note that $ac_compile itself does not contain backslashes and begins
  15899. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  15900. + lt_compile=`echo "$ac_compile" | $SED \
  15901. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  15902. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  15903. + -e 's:$: $lt_compiler_flag:'`
  15904. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  15905. + (eval "$lt_compile" 2>out/conftest.err)
  15906. + ac_status=$?
  15907. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  15908. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  15909. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  15910. + then
  15911. + # The compiler can only warn and ignore the option if not recognized
  15912. + # So say no if there are warnings
  15913. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  15914. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  15915. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  15916. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  15917. + fi
  15918. + fi
  15919. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  15920. + $RM conftest*
  15921. + # SGI C++ compiler will create directory out/ii_files/ for
  15922. + # template instantiation
  15923. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  15924. + $RM out/* && rmdir out
  15925. + cd ..
  15926. + $RM -r conftest
  15927. + $RM conftest*
  15928. +])
  15929. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  15930. + [Does compiler simultaneously support -c and -o options?])
  15931. +])# _LT_COMPILER_C_O
  15932. -# AC_LIBTOOL_WIN32_DLL
  15933. -# --------------------
  15934. -# declare package support for building win32 DLLs
  15935. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  15936. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  15937. -])# AC_LIBTOOL_WIN32_DLL
  15938. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  15939. +# ----------------------------------
  15940. +# Check to see if we can do hard links to lock some files if needed
  15941. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  15942. +[m4_require([_LT_ENABLE_LOCK])dnl
  15943. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  15944. +_LT_COMPILER_C_O([$1])
  15945. -# AC_ENABLE_SHARED([DEFAULT])
  15946. -# ---------------------------
  15947. -# implement the --enable-shared flag
  15948. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  15949. -AC_DEFUN([AC_ENABLE_SHARED],
  15950. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  15951. -AC_ARG_ENABLE([shared],
  15952. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  15953. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  15954. - [p=${PACKAGE-default}
  15955. - case $enableval in
  15956. - yes) enable_shared=yes ;;
  15957. - no) enable_shared=no ;;
  15958. - *)
  15959. - enable_shared=no
  15960. - # Look at the argument we got. We use all the common list separators.
  15961. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  15962. - for pkg in $enableval; do
  15963. - IFS="$lt_save_ifs"
  15964. - if test "X$pkg" = "X$p"; then
  15965. - enable_shared=yes
  15966. - fi
  15967. - done
  15968. - IFS="$lt_save_ifs"
  15969. - ;;
  15970. - esac],
  15971. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  15972. -])# AC_ENABLE_SHARED
  15973. -
  15974. -
  15975. -# AC_DISABLE_SHARED
  15976. -# -----------------
  15977. -# set the default shared flag to --disable-shared
  15978. -AC_DEFUN([AC_DISABLE_SHARED],
  15979. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  15980. -AC_ENABLE_SHARED(no)
  15981. -])# AC_DISABLE_SHARED
  15982. -
  15983. -
  15984. -# AC_ENABLE_STATIC([DEFAULT])
  15985. -# ---------------------------
  15986. -# implement the --enable-static flag
  15987. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  15988. -AC_DEFUN([AC_ENABLE_STATIC],
  15989. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  15990. -AC_ARG_ENABLE([static],
  15991. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  15992. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  15993. - [p=${PACKAGE-default}
  15994. - case $enableval in
  15995. - yes) enable_static=yes ;;
  15996. - no) enable_static=no ;;
  15997. - *)
  15998. - enable_static=no
  15999. - # Look at the argument we got. We use all the common list separators.
  16000. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  16001. - for pkg in $enableval; do
  16002. - IFS="$lt_save_ifs"
  16003. - if test "X$pkg" = "X$p"; then
  16004. - enable_static=yes
  16005. - fi
  16006. - done
  16007. - IFS="$lt_save_ifs"
  16008. - ;;
  16009. - esac],
  16010. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  16011. -])# AC_ENABLE_STATIC
  16012. -
  16013. -
  16014. -# AC_DISABLE_STATIC
  16015. -# -----------------
  16016. -# set the default static flag to --disable-static
  16017. -AC_DEFUN([AC_DISABLE_STATIC],
  16018. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  16019. -AC_ENABLE_STATIC(no)
  16020. -])# AC_DISABLE_STATIC
  16021. -
  16022. -
  16023. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  16024. -# ---------------------------------
  16025. -# implement the --enable-fast-install flag
  16026. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  16027. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  16028. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  16029. -AC_ARG_ENABLE([fast-install],
  16030. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  16031. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  16032. - [p=${PACKAGE-default}
  16033. - case $enableval in
  16034. - yes) enable_fast_install=yes ;;
  16035. - no) enable_fast_install=no ;;
  16036. - *)
  16037. - enable_fast_install=no
  16038. - # Look at the argument we got. We use all the common list separators.
  16039. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  16040. - for pkg in $enableval; do
  16041. - IFS="$lt_save_ifs"
  16042. - if test "X$pkg" = "X$p"; then
  16043. - enable_fast_install=yes
  16044. - fi
  16045. - done
  16046. - IFS="$lt_save_ifs"
  16047. - ;;
  16048. - esac],
  16049. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  16050. -])# AC_ENABLE_FAST_INSTALL
  16051. -
  16052. -
  16053. -# AC_DISABLE_FAST_INSTALL
  16054. -# -----------------------
  16055. -# set the default to --disable-fast-install
  16056. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  16057. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  16058. -AC_ENABLE_FAST_INSTALL(no)
  16059. -])# AC_DISABLE_FAST_INSTALL
  16060. -
  16061. -
  16062. -# AC_LIBTOOL_PICMODE([MODE])
  16063. -# --------------------------
  16064. -# implement the --with-pic flag
  16065. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  16066. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  16067. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  16068. -pic_mode=ifelse($#,1,$1,default)
  16069. -])# AC_LIBTOOL_PICMODE
  16070. -
  16071. -
  16072. -# AC_PROG_EGREP
  16073. -# -------------
  16074. -# This is predefined starting with Autoconf 2.54, so this conditional
  16075. -# definition can be removed once we require Autoconf 2.54 or later.
  16076. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  16077. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  16078. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  16079. - then ac_cv_prog_egrep='grep -E'
  16080. - else ac_cv_prog_egrep='egrep'
  16081. - fi])
  16082. - EGREP=$ac_cv_prog_egrep
  16083. - AC_SUBST([EGREP])
  16084. -])])
  16085. -
  16086. -
  16087. -# AC_PATH_TOOL_PREFIX
  16088. -# -------------------
  16089. -# find a file program which can recognise shared library
  16090. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  16091. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  16092. -AC_MSG_CHECKING([for $1])
  16093. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  16094. -[case $MAGIC_CMD in
  16095. -[[\\/*] | ?:[\\/]*])
  16096. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  16097. - ;;
  16098. -*)
  16099. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  16100. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16101. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  16102. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  16103. -dnl not every word. This closes a longstanding sh security hole.
  16104. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  16105. - for ac_dir in $ac_dummy; do
  16106. - IFS="$lt_save_ifs"
  16107. - test -z "$ac_dir" && ac_dir=.
  16108. - if test -f $ac_dir/$1; then
  16109. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  16110. - if test -n "$file_magic_test_file"; then
  16111. - case $deplibs_check_method in
  16112. - "file_magic "*)
  16113. - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  16114. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  16115. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  16116. - $EGREP "$file_magic_regex" > /dev/null; then
  16117. - :
  16118. - else
  16119. - cat <<EOF 1>&2
  16120. +hard_links="nottested"
  16121. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  16122. + # do not overwrite the value of need_locks provided by the user
  16123. + AC_MSG_CHECKING([if we can lock with hard links])
  16124. + hard_links=yes
  16125. + $RM conftest*
  16126. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16127. + touch conftest.a
  16128. + ln conftest.a conftest.b 2>&5 || hard_links=no
  16129. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  16130. + AC_MSG_RESULT([$hard_links])
  16131. + if test "$hard_links" = no; then
  16132. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  16133. + need_locks=warn
  16134. + fi
  16135. +else
  16136. + need_locks=no
  16137. +fi
  16138. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  16139. +])# _LT_COMPILER_FILE_LOCKS
  16140. -*** Warning: the command libtool uses to detect shared libraries,
  16141. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  16142. -*** The result is that libtool may fail to recognize shared libraries
  16143. -*** as such. This will affect the creation of libtool libraries that
  16144. -*** depend on shared libraries, but programs linked with such libtool
  16145. -*** libraries will work regardless of this problem. Nevertheless, you
  16146. -*** may want to report the problem to your system manager and/or to
  16147. -*** bug-libtool@gnu.org
  16148. -EOF
  16149. - fi ;;
  16150. - esac
  16151. - fi
  16152. - break
  16153. - fi
  16154. - done
  16155. - IFS="$lt_save_ifs"
  16156. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  16157. - ;;
  16158. -esac])
  16159. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  16160. -if test -n "$MAGIC_CMD"; then
  16161. - AC_MSG_RESULT($MAGIC_CMD)
  16162. +# _LT_CHECK_OBJDIR
  16163. +# ----------------
  16164. +m4_defun([_LT_CHECK_OBJDIR],
  16165. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  16166. +[rm -f .libs 2>/dev/null
  16167. +mkdir .libs 2>/dev/null
  16168. +if test -d .libs; then
  16169. + lt_cv_objdir=.libs
  16170. else
  16171. - AC_MSG_RESULT(no)
  16172. + # MS-DOS does not allow filenames that begin with a dot.
  16173. + lt_cv_objdir=_libs
  16174. fi
  16175. -])# AC_PATH_TOOL_PREFIX
  16176. +rmdir .libs 2>/dev/null])
  16177. +objdir=$lt_cv_objdir
  16178. +_LT_DECL([], [objdir], [0],
  16179. + [The name of the directory that contains temporary libtool files])dnl
  16180. +m4_pattern_allow([LT_OBJDIR])dnl
  16181. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  16182. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  16183. +])# _LT_CHECK_OBJDIR
  16184. -# AC_PATH_MAGIC
  16185. -# -------------
  16186. -# find a file program which can recognise a shared library
  16187. -AC_DEFUN([AC_PATH_MAGIC],
  16188. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  16189. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  16190. - if test -n "$ac_tool_prefix"; then
  16191. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  16192. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  16193. +# --------------------------------------
  16194. +# Check hardcoding attributes.
  16195. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  16196. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  16197. +_LT_TAGVAR(hardcode_action, $1)=
  16198. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  16199. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  16200. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  16201. +
  16202. + # We can hardcode non-existent directories.
  16203. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  16204. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  16205. + # have to relink, otherwise we might link with an installed library
  16206. + # when we should be linking with a yet-to-be-installed one
  16207. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  16208. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  16209. + # Linking always hardcodes the temporary library directory.
  16210. + _LT_TAGVAR(hardcode_action, $1)=relink
  16211. else
  16212. - MAGIC_CMD=:
  16213. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  16214. + _LT_TAGVAR(hardcode_action, $1)=immediate
  16215. fi
  16216. +else
  16217. + # We cannot hardcode anything, or else we can only hardcode existing
  16218. + # directories.
  16219. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  16220. +fi
  16221. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  16222. +
  16223. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  16224. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  16225. + # Fast installation is not supported
  16226. + enable_fast_install=no
  16227. +elif test "$shlibpath_overrides_runpath" = yes ||
  16228. + test "$enable_shared" = no; then
  16229. + # Fast installation is not necessary
  16230. + enable_fast_install=needless
  16231. fi
  16232. -])# AC_PATH_MAGIC
  16233. +_LT_TAGDECL([], [hardcode_action], [0],
  16234. + [How to hardcode a shared library path into an executable])
  16235. +])# _LT_LINKER_HARDCODE_LIBPATH
  16236. -# AC_PROG_LD
  16237. -# ----------
  16238. -# find the pathname to the GNU or non-GNU linker
  16239. -AC_DEFUN([AC_PROG_LD],
  16240. -[AC_ARG_WITH([gnu-ld],
  16241. - [AC_HELP_STRING([--with-gnu-ld],
  16242. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  16243. - [test "$withval" = no || with_gnu_ld=yes],
  16244. - [with_gnu_ld=no])
  16245. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  16246. -AC_REQUIRE([AC_PROG_CC])dnl
  16247. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  16248. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  16249. -ac_prog=ld
  16250. -if test "$GCC" = yes; then
  16251. - # Check if gcc -print-prog-name=ld gives a path.
  16252. - AC_MSG_CHECKING([for ld used by $CC])
  16253. - case $host in
  16254. - *-*-mingw*)
  16255. - # gcc leaves a trailing carriage return which upsets mingw
  16256. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  16257. - *)
  16258. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  16259. - esac
  16260. - case $ac_prog in
  16261. - # Accept absolute paths.
  16262. - [[\\/]]* | ?:[[\\/]]*)
  16263. - re_direlt='/[[^/]][[^/]]*/\.\./'
  16264. - # Canonicalize the pathname of ld
  16265. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  16266. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  16267. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  16268. - done
  16269. - test -z "$LD" && LD="$ac_prog"
  16270. - ;;
  16271. - "")
  16272. - # If it fails, then pretend we aren't using GCC.
  16273. - ac_prog=ld
  16274. +# _LT_CMD_STRIPLIB
  16275. +# ----------------
  16276. +m4_defun([_LT_CMD_STRIPLIB],
  16277. +[m4_require([_LT_DECL_EGREP])
  16278. +striplib=
  16279. +old_striplib=
  16280. +AC_MSG_CHECKING([whether stripping libraries is possible])
  16281. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  16282. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  16283. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  16284. + AC_MSG_RESULT([yes])
  16285. +else
  16286. +# FIXME - insert some real tests, host_os isn't really good enough
  16287. + case $host_os in
  16288. + darwin*)
  16289. + if test -n "$STRIP" ; then
  16290. + striplib="$STRIP -x"
  16291. + old_striplib="$STRIP -S"
  16292. + AC_MSG_RESULT([yes])
  16293. + else
  16294. + AC_MSG_RESULT([no])
  16295. + fi
  16296. ;;
  16297. *)
  16298. - # If it is relative, then search for the first ld in PATH.
  16299. - with_gnu_ld=unknown
  16300. + AC_MSG_RESULT([no])
  16301. ;;
  16302. esac
  16303. -elif test "$with_gnu_ld" = yes; then
  16304. - AC_MSG_CHECKING([for GNU ld])
  16305. -else
  16306. - AC_MSG_CHECKING([for non-GNU ld])
  16307. fi
  16308. -AC_CACHE_VAL(lt_cv_path_LD,
  16309. -[if test -z "$LD"; then
  16310. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16311. - for ac_dir in $PATH; do
  16312. - IFS="$lt_save_ifs"
  16313. - test -z "$ac_dir" && ac_dir=.
  16314. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  16315. - lt_cv_path_LD="$ac_dir/$ac_prog"
  16316. - # Check to see if the program is GNU ld. I'd rather use --version,
  16317. - # but apparently some variants of GNU ld only accept -v.
  16318. - # Break only if it was the GNU/non-GNU ld that we prefer.
  16319. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  16320. - *GNU* | *'with BFD'*)
  16321. - test "$with_gnu_ld" != no && break
  16322. - ;;
  16323. - *)
  16324. - test "$with_gnu_ld" != yes && break
  16325. - ;;
  16326. - esac
  16327. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  16328. +_LT_DECL([], [striplib], [1])
  16329. +])# _LT_CMD_STRIPLIB
  16330. +
  16331. +
  16332. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  16333. +# -----------------------------
  16334. +# PORTME Fill in your ld.so characteristics
  16335. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  16336. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  16337. +m4_require([_LT_DECL_EGREP])dnl
  16338. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  16339. +m4_require([_LT_DECL_SED])dnl
  16340. +AC_MSG_CHECKING([dynamic linker characteristics])
  16341. +m4_if([$1],
  16342. + [], [
  16343. +if test "$GCC" = yes; then
  16344. + case $host_os in
  16345. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  16346. + *) lt_awk_arg="/^libraries:/" ;;
  16347. + esac
  16348. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16349. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  16350. + # if the path contains ";" then we assume it to be the separator
  16351. + # otherwise default to the standard path separator (i.e. ":") - it is
  16352. + # assumed that no part of a normal pathname contains ";" but that should
  16353. + # okay in the real world where ";" in dirpaths is itself problematic.
  16354. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  16355. + else
  16356. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16357. + fi
  16358. + # Ok, now we have the path, separated by spaces, we can step through it
  16359. + # and add multilib dir if necessary.
  16360. + lt_tmp_lt_search_path_spec=
  16361. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  16362. + for lt_sys_path in $lt_search_path_spec; do
  16363. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  16364. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  16365. + else
  16366. + test -d "$lt_sys_path" && \
  16367. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  16368. fi
  16369. done
  16370. - IFS="$lt_save_ifs"
  16371. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  16372. +BEGIN {RS=" "; FS="/|\n";} {
  16373. + lt_foo="";
  16374. + lt_count=0;
  16375. + for (lt_i = NF; lt_i > 0; lt_i--) {
  16376. + if ($lt_i != "" && $lt_i != ".") {
  16377. + if ($lt_i == "..") {
  16378. + lt_count++;
  16379. + } else {
  16380. + if (lt_count == 0) {
  16381. + lt_foo="/" $lt_i lt_foo;
  16382. + } else {
  16383. + lt_count--;
  16384. + }
  16385. + }
  16386. + }
  16387. + }
  16388. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  16389. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  16390. +}'`
  16391. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  16392. else
  16393. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  16394. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  16395. fi])
  16396. -LD="$lt_cv_path_LD"
  16397. -if test -n "$LD"; then
  16398. - AC_MSG_RESULT($LD)
  16399. -else
  16400. - AC_MSG_RESULT(no)
  16401. -fi
  16402. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  16403. -AC_PROG_LD_GNU
  16404. -])# AC_PROG_LD
  16405. +library_names_spec=
  16406. +libname_spec='lib$name'
  16407. +soname_spec=
  16408. +shrext_cmds=".so"
  16409. +postinstall_cmds=
  16410. +postuninstall_cmds=
  16411. +finish_cmds=
  16412. +finish_eval=
  16413. +shlibpath_var=
  16414. +shlibpath_overrides_runpath=unknown
  16415. +version_type=none
  16416. +dynamic_linker="$host_os ld.so"
  16417. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  16418. +need_lib_prefix=unknown
  16419. +hardcode_into_libs=no
  16420. +
  16421. +# when you set need_version to no, make sure it does not cause -set_version
  16422. +# flags to be left without arguments
  16423. +need_version=unknown
  16424. +case $host_os in
  16425. +aix3*)
  16426. + version_type=linux
  16427. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  16428. + shlibpath_var=LIBPATH
  16429. -# AC_PROG_LD_GNU
  16430. -# --------------
  16431. -AC_DEFUN([AC_PROG_LD_GNU],
  16432. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  16433. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  16434. -[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  16435. -case `$LD -v 2>&1 </dev/null` in
  16436. -*GNU* | *'with BFD'*)
  16437. - lt_cv_prog_gnu_ld=yes
  16438. + # AIX 3 has no versioning support, so we append a major version to the name.
  16439. + soname_spec='${libname}${release}${shared_ext}$major'
  16440. ;;
  16441. -*)
  16442. - lt_cv_prog_gnu_ld=no
  16443. - ;;
  16444. -esac])
  16445. -with_gnu_ld=$lt_cv_prog_gnu_ld
  16446. -])# AC_PROG_LD_GNU
  16447. -
  16448. -# AC_PROG_LD_RELOAD_FLAG
  16449. -# ----------------------
  16450. -# find reload flag for linker
  16451. -# -- PORTME Some linkers may need a different reload flag.
  16452. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  16453. -[AC_CACHE_CHECK([for $LD option to reload object files],
  16454. - lt_cv_ld_reload_flag,
  16455. - [lt_cv_ld_reload_flag='-r'])
  16456. -reload_flag=$lt_cv_ld_reload_flag
  16457. -case $reload_flag in
  16458. -"" | " "*) ;;
  16459. -*) reload_flag=" $reload_flag" ;;
  16460. -esac
  16461. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16462. -case $host_os in
  16463. - darwin*)
  16464. - if test "$GCC" = yes; then
  16465. - reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  16466. +aix[[4-9]]*)
  16467. + version_type=linux
  16468. + need_lib_prefix=no
  16469. + need_version=no
  16470. + hardcode_into_libs=yes
  16471. + if test "$host_cpu" = ia64; then
  16472. + # AIX 5 supports IA64
  16473. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  16474. + shlibpath_var=LD_LIBRARY_PATH
  16475. + else
  16476. + # With GCC up to 2.95.x, collect2 would create an import file
  16477. + # for dependence libraries. The import file would start with
  16478. + # the line `#! .'. This would cause the generated library to
  16479. + # depend on `.', always an invalid library. This was fixed in
  16480. + # development snapshots of GCC prior to 3.0.
  16481. + case $host_os in
  16482. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  16483. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  16484. + echo ' yes '
  16485. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  16486. + :
  16487. + else
  16488. + can_build_shared=no
  16489. + fi
  16490. + ;;
  16491. + esac
  16492. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  16493. + # soname into executable. Probably we can add versioning support to
  16494. + # collect2, so additional links can be useful in future.
  16495. + if test "$aix_use_runtimelinking" = yes; then
  16496. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  16497. + # instead of lib<name>.a to let people know that these are not
  16498. + # typical AIX shared libraries.
  16499. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16500. else
  16501. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  16502. + # We preserve .a as extension for shared libraries through AIX4.2
  16503. + # and later when we are not doing run time linking.
  16504. + library_names_spec='${libname}${release}.a $libname.a'
  16505. + soname_spec='${libname}${release}${shared_ext}$major'
  16506. fi
  16507. - ;;
  16508. -esac
  16509. -])# AC_PROG_LD_RELOAD_FLAG
  16510. -
  16511. -
  16512. -# AC_DEPLIBS_CHECK_METHOD
  16513. -# -----------------------
  16514. -# how to check for library dependencies
  16515. -# -- PORTME fill in with the dynamic library characteristics
  16516. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  16517. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  16518. -lt_cv_deplibs_check_method,
  16519. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  16520. -lt_cv_file_magic_test_file=
  16521. -lt_cv_deplibs_check_method='unknown'
  16522. -# Need to set the preceding variable on all platforms that support
  16523. -# interlibrary dependencies.
  16524. -# 'none' -- dependencies not supported.
  16525. -# `unknown' -- same as none, but documents that we really don't know.
  16526. -# 'pass_all' -- all dependencies passed with no checks.
  16527. -# 'test_compile' -- check by making test program.
  16528. -# 'file_magic [[regex]]' -- check by looking for files in library path
  16529. -# which responds to the $file_magic_cmd with a given extended regex.
  16530. -# If you have `file' or equivalent on your system and you're not sure
  16531. -# whether `pass_all' will *always* work, you probably want this one.
  16532. + shlibpath_var=LIBPATH
  16533. + fi
  16534. + ;;
  16535. -case $host_os in
  16536. -aix4* | aix5*)
  16537. - lt_cv_deplibs_check_method=pass_all
  16538. +amigaos*)
  16539. + case $host_cpu in
  16540. + powerpc)
  16541. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  16542. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  16543. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16544. + ;;
  16545. + m68k)
  16546. + library_names_spec='$libname.ixlibrary $libname.a'
  16547. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  16548. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  16549. + ;;
  16550. + esac
  16551. ;;
  16552. beos*)
  16553. - lt_cv_deplibs_check_method=pass_all
  16554. + library_names_spec='${libname}${shared_ext}'
  16555. + dynamic_linker="$host_os ld.so"
  16556. + shlibpath_var=LIBRARY_PATH
  16557. ;;
  16558. bsdi[[45]]*)
  16559. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  16560. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  16561. - lt_cv_file_magic_test_file=/shlib/libc.so
  16562. - ;;
  16563. -
  16564. -cygwin*)
  16565. - # func_win32_libid is a shell function defined in ltmain.sh
  16566. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  16567. - lt_cv_file_magic_cmd='func_win32_libid'
  16568. + version_type=linux
  16569. + need_version=no
  16570. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16571. + soname_spec='${libname}${release}${shared_ext}$major'
  16572. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  16573. + shlibpath_var=LD_LIBRARY_PATH
  16574. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  16575. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  16576. + # the default ld.so.conf also contains /usr/contrib/lib and
  16577. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  16578. + # libtool to hard-code these into programs
  16579. ;;
  16580. -mingw* | pw32*)
  16581. - # Base MSYS/MinGW do not provide the 'file' command needed by
  16582. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  16583. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  16584. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  16585. - ;;
  16586. +cygwin* | mingw* | pw32*)
  16587. + version_type=windows
  16588. + shrext_cmds=".dll"
  16589. + need_version=no
  16590. + need_lib_prefix=no
  16591. -darwin* | rhapsody*)
  16592. - lt_cv_deplibs_check_method=pass_all
  16593. - ;;
  16594. + case $GCC,$host_os in
  16595. + yes,cygwin* | yes,mingw* | yes,pw32*)
  16596. + library_names_spec='$libname.dll.a'
  16597. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  16598. + postinstall_cmds='base_file=`basename \${file}`~
  16599. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  16600. + dldir=$destdir/`dirname \$dlpath`~
  16601. + test -d \$dldir || mkdir -p \$dldir~
  16602. + $install_prog $dir/$dlname \$dldir/$dlname~
  16603. + chmod a+x \$dldir/$dlname~
  16604. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  16605. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  16606. + fi'
  16607. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  16608. + dlpath=$dir/\$dldll~
  16609. + $RM \$dlpath'
  16610. + shlibpath_overrides_runpath=yes
  16611. -freebsd* | kfreebsd*-gnu | dragonfly*)
  16612. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  16613. - case $host_cpu in
  16614. - i*86 )
  16615. - # Not sure whether the presence of OpenBSD here was a mistake.
  16616. - # Let's accept both of them until this is cleared up.
  16617. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  16618. - lt_cv_file_magic_cmd=/usr/bin/file
  16619. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  16620. + case $host_os in
  16621. + cygwin*)
  16622. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  16623. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  16624. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  16625. + ;;
  16626. + mingw*)
  16627. + # MinGW DLLs use traditional 'lib' prefix
  16628. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  16629. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  16630. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  16631. + # It is most probably a Windows format PATH printed by
  16632. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  16633. + # path with ; separators, and with drive letters. We can handle the
  16634. + # drive letters (cygwin fileutils understands them), so leave them,
  16635. + # especially as we might pass files found there to a mingw objdump,
  16636. + # which wouldn't understand a cygwinified path. Ahh.
  16637. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  16638. + else
  16639. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  16640. + fi
  16641. + ;;
  16642. + pw32*)
  16643. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  16644. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  16645. ;;
  16646. esac
  16647. - else
  16648. - lt_cv_deplibs_check_method=pass_all
  16649. - fi
  16650. - ;;
  16651. -
  16652. -gnu*)
  16653. - lt_cv_deplibs_check_method=pass_all
  16654. - ;;
  16655. -
  16656. -hpux10.20* | hpux11*)
  16657. - lt_cv_file_magic_cmd=/usr/bin/file
  16658. - case $host_cpu in
  16659. - ia64*)
  16660. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  16661. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  16662. - ;;
  16663. - hppa*64*)
  16664. - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  16665. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  16666. ;;
  16667. +
  16668. *)
  16669. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  16670. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  16671. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  16672. ;;
  16673. esac
  16674. + dynamic_linker='Win32 ld.exe'
  16675. + # FIXME: first we should search . and the directory the executable is in
  16676. + shlibpath_var=PATH
  16677. ;;
  16678. -interix3*)
  16679. - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  16680. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  16681. - ;;
  16682. -
  16683. -irix5* | irix6* | nonstopux*)
  16684. - case $LD in
  16685. - *-32|*"-32 ") libmagic=32-bit;;
  16686. - *-n32|*"-n32 ") libmagic=N32;;
  16687. - *-64|*"-64 ") libmagic=64-bit;;
  16688. - *) libmagic=never-match;;
  16689. - esac
  16690. - lt_cv_deplibs_check_method=pass_all
  16691. - ;;
  16692. -
  16693. -# This must be Linux ELF.
  16694. -linux*)
  16695. - lt_cv_deplibs_check_method=pass_all
  16696. - ;;
  16697. -
  16698. -netbsd*)
  16699. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  16700. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  16701. - else
  16702. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  16703. - fi
  16704. +darwin* | rhapsody*)
  16705. + dynamic_linker="$host_os dyld"
  16706. + version_type=darwin
  16707. + need_lib_prefix=no
  16708. + need_version=no
  16709. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  16710. + soname_spec='${libname}${release}${major}$shared_ext'
  16711. + shlibpath_overrides_runpath=yes
  16712. + shlibpath_var=DYLD_LIBRARY_PATH
  16713. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  16714. +m4_if([$1], [],[
  16715. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  16716. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  16717. ;;
  16718. -newos6*)
  16719. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  16720. - lt_cv_file_magic_cmd=/usr/bin/file
  16721. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  16722. +dgux*)
  16723. + version_type=linux
  16724. + need_lib_prefix=no
  16725. + need_version=no
  16726. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  16727. + soname_spec='${libname}${release}${shared_ext}$major'
  16728. + shlibpath_var=LD_LIBRARY_PATH
  16729. ;;
  16730. -nto-qnx*)
  16731. - lt_cv_deplibs_check_method=unknown
  16732. +freebsd1*)
  16733. + dynamic_linker=no
  16734. ;;
  16735. -openbsd*)
  16736. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16737. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  16738. +freebsd* | dragonfly*)
  16739. + # DragonFly does not have aout. When/if they implement a new
  16740. + # versioning mechanism, adjust this.
  16741. + if test -x /usr/bin/objformat; then
  16742. + objformat=`/usr/bin/objformat`
  16743. else
  16744. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  16745. + case $host_os in
  16746. + freebsd[[123]]*) objformat=aout ;;
  16747. + *) objformat=elf ;;
  16748. + esac
  16749. fi
  16750. - ;;
  16751. -
  16752. -osf3* | osf4* | osf5*)
  16753. - lt_cv_deplibs_check_method=pass_all
  16754. - ;;
  16755. -
  16756. -solaris*)
  16757. - lt_cv_deplibs_check_method=pass_all
  16758. - ;;
  16759. -
  16760. -sysv4 | sysv4.3*)
  16761. - case $host_vendor in
  16762. - motorola)
  16763. - 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]]'
  16764. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  16765. - ;;
  16766. - ncr)
  16767. - lt_cv_deplibs_check_method=pass_all
  16768. - ;;
  16769. - sequent)
  16770. - lt_cv_file_magic_cmd='/bin/file'
  16771. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  16772. + version_type=freebsd-$objformat
  16773. + case $version_type in
  16774. + freebsd-elf*)
  16775. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  16776. + need_version=no
  16777. + need_lib_prefix=no
  16778. + ;;
  16779. + freebsd-*)
  16780. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  16781. + need_version=yes
  16782. + ;;
  16783. + esac
  16784. + shlibpath_var=LD_LIBRARY_PATH
  16785. + case $host_os in
  16786. + freebsd2*)
  16787. + shlibpath_overrides_runpath=yes
  16788. ;;
  16789. - sni)
  16790. - lt_cv_file_magic_cmd='/bin/file'
  16791. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  16792. - lt_cv_file_magic_test_file=/lib/libc.so
  16793. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  16794. + shlibpath_overrides_runpath=yes
  16795. + hardcode_into_libs=yes
  16796. ;;
  16797. - siemens)
  16798. - lt_cv_deplibs_check_method=pass_all
  16799. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  16800. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  16801. + shlibpath_overrides_runpath=no
  16802. + hardcode_into_libs=yes
  16803. ;;
  16804. - pc)
  16805. - lt_cv_deplibs_check_method=pass_all
  16806. + *) # from 4.6 on, and DragonFly
  16807. + shlibpath_overrides_runpath=yes
  16808. + hardcode_into_libs=yes
  16809. ;;
  16810. esac
  16811. ;;
  16812. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  16813. - lt_cv_deplibs_check_method=pass_all
  16814. +gnu*)
  16815. + version_type=linux
  16816. + need_lib_prefix=no
  16817. + need_version=no
  16818. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  16819. + soname_spec='${libname}${release}${shared_ext}$major'
  16820. + shlibpath_var=LD_LIBRARY_PATH
  16821. + hardcode_into_libs=yes
  16822. ;;
  16823. -esac
  16824. -])
  16825. -file_magic_cmd=$lt_cv_file_magic_cmd
  16826. -deplibs_check_method=$lt_cv_deplibs_check_method
  16827. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  16828. -])# AC_DEPLIBS_CHECK_METHOD
  16829. -
  16830. -# AC_PROG_NM
  16831. -# ----------
  16832. -# find the pathname to a BSD-compatible name lister
  16833. -AC_DEFUN([AC_PROG_NM],
  16834. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  16835. -[if test -n "$NM"; then
  16836. - # Let the user override the test.
  16837. - lt_cv_path_NM="$NM"
  16838. -else
  16839. - lt_nm_to_check="${ac_tool_prefix}nm"
  16840. - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  16841. - lt_nm_to_check="$lt_nm_to_check nm"
  16842. - fi
  16843. - for lt_tmp_nm in $lt_nm_to_check; do
  16844. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16845. - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  16846. - IFS="$lt_save_ifs"
  16847. - test -z "$ac_dir" && ac_dir=.
  16848. - tmp_nm="$ac_dir/$lt_tmp_nm"
  16849. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  16850. - # Check to see if the nm accepts a BSD-compat flag.
  16851. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  16852. - # nm: unknown option "B" ignored
  16853. - # Tru64's nm complains that /dev/null is an invalid object file
  16854. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  16855. - */dev/null* | *'Invalid file or object type'*)
  16856. - lt_cv_path_NM="$tmp_nm -B"
  16857. - break
  16858. - ;;
  16859. - *)
  16860. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  16861. - */dev/null*)
  16862. - lt_cv_path_NM="$tmp_nm -p"
  16863. - break
  16864. - ;;
  16865. - *)
  16866. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  16867. - continue # so that we can try to find one that supports BSD flags
  16868. - ;;
  16869. - esac
  16870. - ;;
  16871. - esac
  16872. - fi
  16873. - done
  16874. - IFS="$lt_save_ifs"
  16875. - done
  16876. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  16877. -fi])
  16878. -NM="$lt_cv_path_NM"
  16879. -])# AC_PROG_NM
  16880. -
  16881. -
  16882. -# AC_CHECK_LIBM
  16883. -# -------------
  16884. -# check for math library
  16885. -AC_DEFUN([AC_CHECK_LIBM],
  16886. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  16887. -LIBM=
  16888. -case $host in
  16889. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  16890. - # These system don't have libm, or don't need it
  16891. - ;;
  16892. -*-ncr-sysv4.3*)
  16893. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  16894. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  16895. - ;;
  16896. -*)
  16897. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  16898. +hpux9* | hpux10* | hpux11*)
  16899. + # Give a soname corresponding to the major version so that dld.sl refuses to
  16900. + # link against other versions.
  16901. + version_type=sunos
  16902. + need_lib_prefix=no
  16903. + need_version=no
  16904. + case $host_cpu in
  16905. + ia64*)
  16906. + shrext_cmds='.so'
  16907. + hardcode_into_libs=yes
  16908. + dynamic_linker="$host_os dld.so"
  16909. + shlibpath_var=LD_LIBRARY_PATH
  16910. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16911. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16912. + soname_spec='${libname}${release}${shared_ext}$major'
  16913. + if test "X$HPUX_IA64_MODE" = X32; then
  16914. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  16915. + else
  16916. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  16917. + fi
  16918. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16919. + ;;
  16920. + hppa*64*)
  16921. + shrext_cmds='.sl'
  16922. + hardcode_into_libs=yes
  16923. + dynamic_linker="$host_os dld.sl"
  16924. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  16925. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  16926. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16927. + soname_spec='${libname}${release}${shared_ext}$major'
  16928. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  16929. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  16930. + ;;
  16931. + *)
  16932. + shrext_cmds='.sl'
  16933. + dynamic_linker="$host_os dld.sl"
  16934. + shlibpath_var=SHLIB_PATH
  16935. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  16936. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  16937. + soname_spec='${libname}${release}${shared_ext}$major'
  16938. + ;;
  16939. + esac
  16940. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  16941. + postinstall_cmds='chmod 555 $lib'
  16942. ;;
  16943. -esac
  16944. -])# AC_CHECK_LIBM
  16945. +interix[[3-9]]*)
  16946. + version_type=linux
  16947. + need_lib_prefix=no
  16948. + need_version=no
  16949. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  16950. + soname_spec='${libname}${release}${shared_ext}$major'
  16951. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  16952. + shlibpath_var=LD_LIBRARY_PATH
  16953. + shlibpath_overrides_runpath=no
  16954. + hardcode_into_libs=yes
  16955. + ;;
  16956. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  16957. -# -----------------------------------
  16958. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  16959. -# LTDLINCL to the include flags for the libltdl header and adds
  16960. -# --enable-ltdl-convenience to the configure arguments. Note that
  16961. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  16962. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  16963. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  16964. -# (note the single quotes!). If your package is not flat and you're not
  16965. -# using automake, define top_builddir and top_srcdir appropriately in
  16966. -# the Makefiles.
  16967. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  16968. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  16969. - case $enable_ltdl_convenience in
  16970. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  16971. - "") enable_ltdl_convenience=yes
  16972. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  16973. +irix5* | irix6* | nonstopux*)
  16974. + case $host_os in
  16975. + nonstopux*) version_type=nonstopux ;;
  16976. + *)
  16977. + if test "$lt_cv_prog_gnu_ld" = yes; then
  16978. + version_type=linux
  16979. + else
  16980. + version_type=irix
  16981. + fi ;;
  16982. esac
  16983. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  16984. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  16985. - # For backwards non-gettext consistent compatibility...
  16986. - INCLTDL="$LTDLINCL"
  16987. -])# AC_LIBLTDL_CONVENIENCE
  16988. -
  16989. -
  16990. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  16991. -# -----------------------------------
  16992. -# sets LIBLTDL to the link flags for the libltdl installable library and
  16993. -# LTDLINCL to the include flags for the libltdl header and adds
  16994. -# --enable-ltdl-install to the configure arguments. Note that
  16995. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  16996. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  16997. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  16998. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  16999. -# flat and you're not using automake, define top_builddir and top_srcdir
  17000. -# appropriately in the Makefiles.
  17001. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  17002. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  17003. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  17004. - AC_CHECK_LIB(ltdl, lt_dlinit,
  17005. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  17006. - [if test x"$enable_ltdl_install" = xno; then
  17007. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  17008. - else
  17009. - enable_ltdl_install=yes
  17010. - fi
  17011. - ])
  17012. - if test x"$enable_ltdl_install" = x"yes"; then
  17013. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  17014. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  17015. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  17016. - else
  17017. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  17018. - LIBLTDL="-lltdl"
  17019. - LTDLINCL=
  17020. - fi
  17021. - # For backwards non-gettext consistent compatibility...
  17022. - INCLTDL="$LTDLINCL"
  17023. -])# AC_LIBLTDL_INSTALLABLE
  17024. + need_lib_prefix=no
  17025. + need_version=no
  17026. + soname_spec='${libname}${release}${shared_ext}$major'
  17027. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  17028. + case $host_os in
  17029. + irix5* | nonstopux*)
  17030. + libsuff= shlibsuff=
  17031. + ;;
  17032. + *)
  17033. + case $LD in # libtool.m4 will add one of these switches to LD
  17034. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17035. + libsuff= shlibsuff= libmagic=32-bit;;
  17036. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17037. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  17038. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17039. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17040. + *) libsuff= shlibsuff= libmagic=never-match;;
  17041. + esac
  17042. + ;;
  17043. + esac
  17044. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17045. + shlibpath_overrides_runpath=no
  17046. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  17047. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  17048. + hardcode_into_libs=yes
  17049. + ;;
  17050. +# No shared lib support for Linux oldld, aout, or coff.
  17051. +linux*oldld* | linux*aout* | linux*coff*)
  17052. + dynamic_linker=no
  17053. + ;;
  17054. -# AC_LIBTOOL_CXX
  17055. -# --------------
  17056. -# enable support for C++ libraries
  17057. -AC_DEFUN([AC_LIBTOOL_CXX],
  17058. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  17059. -])# AC_LIBTOOL_CXX
  17060. +# This must be Linux ELF.
  17061. +linux* | k*bsd*-gnu)
  17062. + version_type=linux
  17063. + need_lib_prefix=no
  17064. + need_version=no
  17065. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17066. + soname_spec='${libname}${release}${shared_ext}$major'
  17067. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17068. + shlibpath_var=LD_LIBRARY_PATH
  17069. + shlibpath_overrides_runpath=no
  17070. + # Some binutils ld are patched to set DT_RUNPATH
  17071. + save_LDFLAGS=$LDFLAGS
  17072. + save_libdir=$libdir
  17073. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  17074. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  17075. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  17076. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  17077. + [shlibpath_overrides_runpath=yes])])
  17078. + LDFLAGS=$save_LDFLAGS
  17079. + libdir=$save_libdir
  17080. + # This implies no fast_install, which is unacceptable.
  17081. + # Some rework will be needed to allow for fast_install
  17082. + # before this can be enabled.
  17083. + hardcode_into_libs=yes
  17084. -# _LT_AC_LANG_CXX
  17085. -# ---------------
  17086. -AC_DEFUN([_LT_AC_LANG_CXX],
  17087. -[AC_REQUIRE([AC_PROG_CXX])
  17088. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  17089. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  17090. -])# _LT_AC_LANG_CXX
  17091. + # Append ld.so.conf contents to the search path
  17092. + if test -f /etc/ld.so.conf; then
  17093. + 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;/^$/d' | tr '\n' ' '`
  17094. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  17095. + fi
  17096. -# _LT_AC_PROG_CXXCPP
  17097. -# ------------------
  17098. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  17099. -[
  17100. -AC_REQUIRE([AC_PROG_CXX])
  17101. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  17102. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  17103. - (test "X$CXX" != "Xg++"))) ; then
  17104. - AC_PROG_CXXCPP
  17105. -fi
  17106. -])# _LT_AC_PROG_CXXCPP
  17107. -
  17108. -# AC_LIBTOOL_F77
  17109. -# --------------
  17110. -# enable support for Fortran 77 libraries
  17111. -AC_DEFUN([AC_LIBTOOL_F77],
  17112. -[AC_REQUIRE([_LT_AC_LANG_F77])
  17113. -])# AC_LIBTOOL_F77
  17114. -
  17115. -
  17116. -# _LT_AC_LANG_F77
  17117. -# ---------------
  17118. -AC_DEFUN([_LT_AC_LANG_F77],
  17119. -[AC_REQUIRE([AC_PROG_F77])
  17120. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  17121. -])# _LT_AC_LANG_F77
  17122. -
  17123. -
  17124. -# AC_LIBTOOL_GCJ
  17125. -# --------------
  17126. -# enable support for GCJ libraries
  17127. -AC_DEFUN([AC_LIBTOOL_GCJ],
  17128. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  17129. -])# AC_LIBTOOL_GCJ
  17130. -
  17131. -
  17132. -# _LT_AC_LANG_GCJ
  17133. -# ---------------
  17134. -AC_DEFUN([_LT_AC_LANG_GCJ],
  17135. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  17136. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  17137. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  17138. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  17139. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  17140. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  17141. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  17142. -])# _LT_AC_LANG_GCJ
  17143. -
  17144. -
  17145. -# AC_LIBTOOL_RC
  17146. -# -------------
  17147. -# enable support for Windows resource files
  17148. -AC_DEFUN([AC_LIBTOOL_RC],
  17149. -[AC_REQUIRE([LT_AC_PROG_RC])
  17150. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  17151. -])# AC_LIBTOOL_RC
  17152. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  17153. + # powerpc, because MkLinux only supported shared libraries with the
  17154. + # GNU dynamic linker. Since this was broken with cross compilers,
  17155. + # most powerpc-linux boxes support dynamic linking these days and
  17156. + # people can always --disable-shared, the test was removed, and we
  17157. + # assume the GNU/Linux dynamic linker is in use.
  17158. + dynamic_linker='GNU/Linux ld.so'
  17159. + ;;
  17160. +netbsd*)
  17161. + version_type=sunos
  17162. + need_lib_prefix=no
  17163. + need_version=no
  17164. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  17165. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17166. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17167. + dynamic_linker='NetBSD (a.out) ld.so'
  17168. + else
  17169. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17170. + soname_spec='${libname}${release}${shared_ext}$major'
  17171. + dynamic_linker='NetBSD ld.elf_so'
  17172. + fi
  17173. + shlibpath_var=LD_LIBRARY_PATH
  17174. + shlibpath_overrides_runpath=yes
  17175. + hardcode_into_libs=yes
  17176. + ;;
  17177. -# AC_LIBTOOL_LANG_C_CONFIG
  17178. -# ------------------------
  17179. -# Ensure that the configuration vars for the C compiler are
  17180. -# suitably defined. Those variables are subsequently used by
  17181. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  17182. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  17183. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  17184. -[lt_save_CC="$CC"
  17185. -AC_LANG_PUSH(C)
  17186. +newsos6)
  17187. + version_type=linux
  17188. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17189. + shlibpath_var=LD_LIBRARY_PATH
  17190. + shlibpath_overrides_runpath=yes
  17191. + ;;
  17192. -# Source file extension for C test sources.
  17193. -ac_ext=c
  17194. +*nto* | *qnx*)
  17195. + version_type=qnx
  17196. + need_lib_prefix=no
  17197. + need_version=no
  17198. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17199. + soname_spec='${libname}${release}${shared_ext}$major'
  17200. + shlibpath_var=LD_LIBRARY_PATH
  17201. + shlibpath_overrides_runpath=no
  17202. + hardcode_into_libs=yes
  17203. + dynamic_linker='ldqnx.so'
  17204. + ;;
  17205. -# Object file extension for compiled C test sources.
  17206. -objext=o
  17207. -_LT_AC_TAGVAR(objext, $1)=$objext
  17208. +openbsd*)
  17209. + version_type=sunos
  17210. + sys_lib_dlsearch_path_spec="/usr/lib"
  17211. + need_lib_prefix=no
  17212. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  17213. + case $host_os in
  17214. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  17215. + *) need_version=no ;;
  17216. + esac
  17217. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17218. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  17219. + shlibpath_var=LD_LIBRARY_PATH
  17220. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  17221. + case $host_os in
  17222. + openbsd2.[[89]] | openbsd2.[[89]].*)
  17223. + shlibpath_overrides_runpath=no
  17224. + ;;
  17225. + *)
  17226. + shlibpath_overrides_runpath=yes
  17227. + ;;
  17228. + esac
  17229. + else
  17230. + shlibpath_overrides_runpath=yes
  17231. + fi
  17232. + ;;
  17233. -# Code to be used in simple compile tests
  17234. -lt_simple_compile_test_code="int some_variable = 0;\n"
  17235. +os2*)
  17236. + libname_spec='$name'
  17237. + shrext_cmds=".dll"
  17238. + need_lib_prefix=no
  17239. + library_names_spec='$libname${shared_ext} $libname.a'
  17240. + dynamic_linker='OS/2 ld.exe'
  17241. + shlibpath_var=LIBPATH
  17242. + ;;
  17243. -# Code to be used in simple link tests
  17244. -lt_simple_link_test_code='int main(){return(0);}\n'
  17245. +osf3* | osf4* | osf5*)
  17246. + version_type=osf
  17247. + need_lib_prefix=no
  17248. + need_version=no
  17249. + soname_spec='${libname}${release}${shared_ext}$major'
  17250. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17251. + shlibpath_var=LD_LIBRARY_PATH
  17252. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  17253. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  17254. + ;;
  17255. -_LT_AC_SYS_COMPILER
  17256. +rdos*)
  17257. + dynamic_linker=no
  17258. + ;;
  17259. -# save warnings/boilerplate of simple test code
  17260. -_LT_COMPILER_BOILERPLATE
  17261. -_LT_LINKER_BOILERPLATE
  17262. +solaris*)
  17263. + version_type=linux
  17264. + need_lib_prefix=no
  17265. + need_version=no
  17266. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17267. + soname_spec='${libname}${release}${shared_ext}$major'
  17268. + shlibpath_var=LD_LIBRARY_PATH
  17269. + shlibpath_overrides_runpath=yes
  17270. + hardcode_into_libs=yes
  17271. + # ldd complains unless libraries are executable
  17272. + postinstall_cmds='chmod +x $lib'
  17273. + ;;
  17274. -## CAVEAT EMPTOR:
  17275. -## There is no encapsulation within the following macros, do not change
  17276. -## the running order or otherwise move them around unless you know exactly
  17277. -## what you are doing...
  17278. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  17279. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  17280. -AC_LIBTOOL_PROG_CC_C_O($1)
  17281. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  17282. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  17283. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  17284. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  17285. -AC_LIBTOOL_SYS_LIB_STRIP
  17286. -AC_LIBTOOL_DLOPEN_SELF
  17287. -
  17288. -# Report which library types will actually be built
  17289. -AC_MSG_CHECKING([if libtool supports shared libraries])
  17290. -AC_MSG_RESULT([$can_build_shared])
  17291. +sunos4*)
  17292. + version_type=sunos
  17293. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  17294. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  17295. + shlibpath_var=LD_LIBRARY_PATH
  17296. + shlibpath_overrides_runpath=yes
  17297. + if test "$with_gnu_ld" = yes; then
  17298. + need_lib_prefix=no
  17299. + fi
  17300. + need_version=yes
  17301. + ;;
  17302. -AC_MSG_CHECKING([whether to build shared libraries])
  17303. -test "$can_build_shared" = "no" && enable_shared=no
  17304. +sysv4 | sysv4.3*)
  17305. + version_type=linux
  17306. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17307. + soname_spec='${libname}${release}${shared_ext}$major'
  17308. + shlibpath_var=LD_LIBRARY_PATH
  17309. + case $host_vendor in
  17310. + sni)
  17311. + shlibpath_overrides_runpath=no
  17312. + need_lib_prefix=no
  17313. + runpath_var=LD_RUN_PATH
  17314. + ;;
  17315. + siemens)
  17316. + need_lib_prefix=no
  17317. + ;;
  17318. + motorola)
  17319. + need_lib_prefix=no
  17320. + need_version=no
  17321. + shlibpath_overrides_runpath=no
  17322. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  17323. + ;;
  17324. + esac
  17325. + ;;
  17326. -# On AIX, shared libraries and static libraries use the same namespace, and
  17327. -# are all built from PIC.
  17328. -case $host_os in
  17329. -aix3*)
  17330. - test "$enable_shared" = yes && enable_static=no
  17331. - if test -n "$RANLIB"; then
  17332. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  17333. - postinstall_cmds='$RANLIB $lib'
  17334. +sysv4*MP*)
  17335. + if test -d /usr/nec ;then
  17336. + version_type=linux
  17337. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  17338. + soname_spec='$libname${shared_ext}.$major'
  17339. + shlibpath_var=LD_LIBRARY_PATH
  17340. fi
  17341. ;;
  17342. -aix4* | aix5*)
  17343. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  17344. - test "$enable_shared" = yes && enable_static=no
  17345. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  17346. + version_type=freebsd-elf
  17347. + need_lib_prefix=no
  17348. + need_version=no
  17349. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17350. + soname_spec='${libname}${release}${shared_ext}$major'
  17351. + shlibpath_var=LD_LIBRARY_PATH
  17352. + shlibpath_overrides_runpath=yes
  17353. + hardcode_into_libs=yes
  17354. + if test "$with_gnu_ld" = yes; then
  17355. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  17356. + else
  17357. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  17358. + case $host_os in
  17359. + sco3.2v5*)
  17360. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  17361. + ;;
  17362. + esac
  17363. fi
  17364. - ;;
  17365. -esac
  17366. -AC_MSG_RESULT([$enable_shared])
  17367. -
  17368. -AC_MSG_CHECKING([whether to build static libraries])
  17369. -# Make sure either enable_shared or enable_static is yes.
  17370. -test "$enable_shared" = yes || enable_static=yes
  17371. -AC_MSG_RESULT([$enable_static])
  17372. -
  17373. -AC_LIBTOOL_CONFIG($1)
  17374. -
  17375. -AC_LANG_POP
  17376. -CC="$lt_save_CC"
  17377. -])# AC_LIBTOOL_LANG_C_CONFIG
  17378. -
  17379. -
  17380. -# AC_LIBTOOL_LANG_CXX_CONFIG
  17381. -# --------------------------
  17382. -# Ensure that the configuration vars for the C compiler are
  17383. -# suitably defined. Those variables are subsequently used by
  17384. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  17385. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  17386. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  17387. -[AC_LANG_PUSH(C++)
  17388. -AC_REQUIRE([AC_PROG_CXX])
  17389. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  17390. -
  17391. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  17392. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  17393. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  17394. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  17395. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  17396. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  17397. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  17398. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  17399. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  17400. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  17401. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  17402. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  17403. -_LT_AC_TAGVAR(module_cmds, $1)=
  17404. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  17405. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  17406. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  17407. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  17408. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  17409. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  17410. -
  17411. -# Dependencies to place before and after the object being linked:
  17412. -_LT_AC_TAGVAR(predep_objects, $1)=
  17413. -_LT_AC_TAGVAR(postdep_objects, $1)=
  17414. -_LT_AC_TAGVAR(predeps, $1)=
  17415. -_LT_AC_TAGVAR(postdeps, $1)=
  17416. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  17417. -
  17418. -# Source file extension for C++ test sources.
  17419. -ac_ext=cpp
  17420. -
  17421. -# Object file extension for compiled C++ test sources.
  17422. -objext=o
  17423. -_LT_AC_TAGVAR(objext, $1)=$objext
  17424. -
  17425. -# Code to be used in simple compile tests
  17426. -lt_simple_compile_test_code="int some_variable = 0;\n"
  17427. + sys_lib_dlsearch_path_spec='/usr/lib'
  17428. + ;;
  17429. -# Code to be used in simple link tests
  17430. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
  17431. +tpf*)
  17432. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  17433. + version_type=linux
  17434. + need_lib_prefix=no
  17435. + need_version=no
  17436. + library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17437. + shlibpath_var=LD_LIBRARY_PATH
  17438. + shlibpath_overrides_runpath=no
  17439. + hardcode_into_libs=yes
  17440. + ;;
  17441. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  17442. -_LT_AC_SYS_COMPILER
  17443. +uts4*)
  17444. + version_type=linux
  17445. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17446. + soname_spec='${libname}${release}${shared_ext}$major'
  17447. + shlibpath_var=LD_LIBRARY_PATH
  17448. + ;;
  17449. -# save warnings/boilerplate of simple test code
  17450. -_LT_COMPILER_BOILERPLATE
  17451. -_LT_LINKER_BOILERPLATE
  17452. +*)
  17453. + dynamic_linker=no
  17454. + ;;
  17455. +esac
  17456. +AC_MSG_RESULT([$dynamic_linker])
  17457. +test "$dynamic_linker" = no && can_build_shared=no
  17458. -# Allow CC to be a program name with arguments.
  17459. -lt_save_CC=$CC
  17460. -lt_save_LD=$LD
  17461. -lt_save_GCC=$GCC
  17462. -GCC=$GXX
  17463. -lt_save_with_gnu_ld=$with_gnu_ld
  17464. -lt_save_path_LD=$lt_cv_path_LD
  17465. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  17466. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  17467. -else
  17468. - $as_unset lt_cv_prog_gnu_ld
  17469. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  17470. +if test "$GCC" = yes; then
  17471. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  17472. fi
  17473. -if test -n "${lt_cv_path_LDCXX+set}"; then
  17474. - lt_cv_path_LD=$lt_cv_path_LDCXX
  17475. -else
  17476. - $as_unset lt_cv_path_LD
  17477. +
  17478. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  17479. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  17480. fi
  17481. -test -z "${LDCXX+set}" || LD=$LDCXX
  17482. -CC=${CXX-"c++"}
  17483. -compiler=$CC
  17484. -_LT_AC_TAGVAR(compiler, $1)=$CC
  17485. -_LT_CC_BASENAME([$compiler])
  17486. -
  17487. -# We don't want -fno-exception wen compiling C++ code, so set the
  17488. -# no_builtin_flag separately
  17489. -if test "$GXX" = yes; then
  17490. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  17491. -else
  17492. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  17493. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  17494. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  17495. fi
  17496. -if test "$GXX" = yes; then
  17497. - # Set up default GNU C++ configuration
  17498. -
  17499. - AC_PROG_LD
  17500. -
  17501. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  17502. - # archiving commands below assume that GNU ld is being used.
  17503. - if test "$with_gnu_ld" = yes; then
  17504. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17505. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  17506. -
  17507. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  17508. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  17509. -
  17510. - # If archive_cmds runs LD, not CC, wlarc should be empty
  17511. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  17512. - # investigate it a little bit more. (MM)
  17513. - wlarc='${wl}'
  17514. -
  17515. - # ancient GNU ld didn't support --whole-archive et. al.
  17516. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  17517. - grep 'no-whole-archive' > /dev/null; then
  17518. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  17519. - else
  17520. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  17521. - fi
  17522. - else
  17523. - with_gnu_ld=no
  17524. - wlarc=
  17525. -
  17526. - # A generic and very simple default shared library creation
  17527. - # command for GNU C++ for the case where it uses the native
  17528. - # linker, instead of GNU ld. If possible, this setting should
  17529. - # overridden to take advantage of the native linker features on
  17530. - # the platform it is being used on.
  17531. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  17532. - fi
  17533. -
  17534. - # Commands to make compiler produce verbose output that lists
  17535. - # what "hidden" libraries, object files and flags are used when
  17536. - # linking a shared library.
  17537. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  17538. -
  17539. -else
  17540. - GXX=no
  17541. - with_gnu_ld=no
  17542. - wlarc=
  17543. -fi
  17544. +_LT_DECL([], [variables_saved_for_relink], [1],
  17545. + [Variables whose values should be saved in libtool wrapper scripts and
  17546. + restored at link time])
  17547. +_LT_DECL([], [need_lib_prefix], [0],
  17548. + [Do we need the "lib" prefix for modules?])
  17549. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  17550. +_LT_DECL([], [version_type], [0], [Library versioning type])
  17551. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  17552. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  17553. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  17554. + [Is shlibpath searched before the hard-coded library search path?])
  17555. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  17556. +_LT_DECL([], [library_names_spec], [1],
  17557. + [[List of archive names. First name is the real one, the rest are links.
  17558. + The last name is the one that the linker finds with -lNAME]])
  17559. +_LT_DECL([], [soname_spec], [1],
  17560. + [[The coded name of the library, if different from the real name]])
  17561. +_LT_DECL([], [postinstall_cmds], [2],
  17562. + [Command to use after installation of a shared archive])
  17563. +_LT_DECL([], [postuninstall_cmds], [2],
  17564. + [Command to use after uninstallation of a shared archive])
  17565. +_LT_DECL([], [finish_cmds], [2],
  17566. + [Commands used to finish a libtool library installation in a directory])
  17567. +_LT_DECL([], [finish_eval], [1],
  17568. + [[As "finish_cmds", except a single script fragment to be evaled but
  17569. + not shown]])
  17570. +_LT_DECL([], [hardcode_into_libs], [0],
  17571. + [Whether we should hardcode library paths into libraries])
  17572. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  17573. + [Compile-time system search path for libraries])
  17574. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  17575. + [Run-time system search path for libraries])
  17576. +])# _LT_SYS_DYNAMIC_LINKER
  17577. -# PORTME: fill in a description of your system's C++ link characteristics
  17578. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  17579. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  17580. -case $host_os in
  17581. - aix3*)
  17582. - # FIXME: insert proper C++ library support
  17583. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17584. - ;;
  17585. - aix4* | aix5*)
  17586. - if test "$host_cpu" = ia64; then
  17587. - # On IA64, the linker does run time linking by default, so we don't
  17588. - # have to do anything special.
  17589. - aix_use_runtimelinking=no
  17590. - exp_sym_flag='-Bexport'
  17591. - no_entry_flag=""
  17592. - else
  17593. - aix_use_runtimelinking=no
  17594. - # Test if we are trying to use run time linking or normal
  17595. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  17596. - # need to do runtime linking.
  17597. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  17598. - for ld_flag in $LDFLAGS; do
  17599. - case $ld_flag in
  17600. - *-brtl*)
  17601. - aix_use_runtimelinking=yes
  17602. - break
  17603. - ;;
  17604. - esac
  17605. - done
  17606. - ;;
  17607. - esac
  17608. -
  17609. - exp_sym_flag='-bexport'
  17610. - no_entry_flag='-bnoentry'
  17611. - fi
  17612. +# _LT_PATH_TOOL_PREFIX(TOOL)
  17613. +# --------------------------
  17614. +# find a file program which can recognize shared library
  17615. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  17616. +[m4_require([_LT_DECL_EGREP])dnl
  17617. +AC_MSG_CHECKING([for $1])
  17618. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  17619. +[case $MAGIC_CMD in
  17620. +[[\\/*] | ?:[\\/]*])
  17621. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  17622. + ;;
  17623. +*)
  17624. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  17625. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  17626. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  17627. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  17628. +dnl not every word. This closes a longstanding sh security hole.
  17629. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  17630. + for ac_dir in $ac_dummy; do
  17631. + IFS="$lt_save_ifs"
  17632. + test -z "$ac_dir" && ac_dir=.
  17633. + if test -f $ac_dir/$1; then
  17634. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  17635. + if test -n "$file_magic_test_file"; then
  17636. + case $deplibs_check_method in
  17637. + "file_magic "*)
  17638. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  17639. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  17640. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  17641. + $EGREP "$file_magic_regex" > /dev/null; then
  17642. + :
  17643. + else
  17644. + cat <<_LT_EOF 1>&2
  17645. - # When large executables or shared objects are built, AIX ld can
  17646. - # have problems creating the table of contents. If linking a library
  17647. - # or program results in "error TOC overflow" add -mminimal-toc to
  17648. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  17649. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  17650. -
  17651. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  17652. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  17653. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  17654. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  17655. +*** Warning: the command libtool uses to detect shared libraries,
  17656. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  17657. +*** The result is that libtool may fail to recognize shared libraries
  17658. +*** as such. This will affect the creation of libtool libraries that
  17659. +*** depend on shared libraries, but programs linked with such libtool
  17660. +*** libraries will work regardless of this problem. Nevertheless, you
  17661. +*** may want to report the problem to your system manager and/or to
  17662. +*** bug-libtool@gnu.org
  17663. - if test "$GXX" = yes; then
  17664. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  17665. - # We only want to do this on AIX 4.2 and lower, the check
  17666. - # below for broken collect2 doesn't work under 4.3+
  17667. - collect2name=`${CC} -print-prog-name=collect2`
  17668. - if test -f "$collect2name" && \
  17669. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  17670. - then
  17671. - # We have reworked collect2
  17672. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  17673. - else
  17674. - # We have old collect2
  17675. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  17676. - # It fails to find uninstalled libraries when the uninstalled
  17677. - # path is not listed in the libpath. Setting hardcode_minus_L
  17678. - # to unsupported forces relinking
  17679. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  17680. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  17681. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  17682. - fi
  17683. - ;;
  17684. - esac
  17685. - shared_flag='-shared'
  17686. - if test "$aix_use_runtimelinking" = yes; then
  17687. - shared_flag="$shared_flag "'${wl}-G'
  17688. - fi
  17689. - else
  17690. - # not using gcc
  17691. - if test "$host_cpu" = ia64; then
  17692. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  17693. - # chokes on -Wl,-G. The following line is correct:
  17694. - shared_flag='-G'
  17695. - else
  17696. - if test "$aix_use_runtimelinking" = yes; then
  17697. - shared_flag='${wl}-G'
  17698. - else
  17699. - shared_flag='${wl}-bM:SRE'
  17700. - fi
  17701. +_LT_EOF
  17702. + fi ;;
  17703. + esac
  17704. fi
  17705. + break
  17706. fi
  17707. + done
  17708. + IFS="$lt_save_ifs"
  17709. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  17710. + ;;
  17711. +esac])
  17712. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  17713. +if test -n "$MAGIC_CMD"; then
  17714. + AC_MSG_RESULT($MAGIC_CMD)
  17715. +else
  17716. + AC_MSG_RESULT(no)
  17717. +fi
  17718. +_LT_DECL([], [MAGIC_CMD], [0],
  17719. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  17720. +])# _LT_PATH_TOOL_PREFIX
  17721. - # It seems that -bexpall does not export symbols beginning with
  17722. - # underscore (_), so it is better to generate a list of symbols to export.
  17723. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  17724. - if test "$aix_use_runtimelinking" = yes; then
  17725. - # Warning - without using the other runtime loading flags (-brtl),
  17726. - # -berok will link without error, but may produce a broken library.
  17727. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  17728. - # Determine the default libpath from the value encoded in an empty executable.
  17729. - _LT_AC_SYS_LIBPATH_AIX
  17730. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  17731. +# Old name:
  17732. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  17733. +dnl aclocal-1.4 backwards compatibility:
  17734. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  17735. - _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  17736. - else
  17737. - if test "$host_cpu" = ia64; then
  17738. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  17739. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  17740. - _LT_AC_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"
  17741. - else
  17742. - # Determine the default libpath from the value encoded in an empty executable.
  17743. - _LT_AC_SYS_LIBPATH_AIX
  17744. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  17745. - # Warning - without using the other run time loading flags,
  17746. - # -berok will link without error, but may produce a broken library.
  17747. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  17748. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  17749. - # Exported symbols can be pulled into shared objects from archives
  17750. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  17751. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  17752. - # This is similar to how AIX traditionally builds its shared libraries.
  17753. - _LT_AC_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'
  17754. - fi
  17755. - fi
  17756. - ;;
  17757. - beos*)
  17758. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  17759. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  17760. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  17761. - # support --undefined. This deserves some investigation. FIXME
  17762. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  17763. - else
  17764. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17765. - fi
  17766. - ;;
  17767. +# _LT_PATH_MAGIC
  17768. +# --------------
  17769. +# find a file program which can recognize a shared library
  17770. +m4_defun([_LT_PATH_MAGIC],
  17771. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  17772. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  17773. + if test -n "$ac_tool_prefix"; then
  17774. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  17775. + else
  17776. + MAGIC_CMD=:
  17777. + fi
  17778. +fi
  17779. +])# _LT_PATH_MAGIC
  17780. - chorus*)
  17781. - case $cc_basename in
  17782. - *)
  17783. - # FIXME: insert proper C++ library support
  17784. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17785. - ;;
  17786. - esac
  17787. - ;;
  17788. - cygwin* | mingw* | pw32*)
  17789. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  17790. - # as there is no search path for DLLs.
  17791. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  17792. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  17793. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  17794. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  17795. -
  17796. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  17797. - _LT_AC_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'
  17798. - # If the export-symbols file already is a .def file (1st line
  17799. - # is EXPORTS), use it as is; otherwise, prepend...
  17800. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  17801. - cp $export_symbols $output_objdir/$soname.def;
  17802. - else
  17803. - echo EXPORTS > $output_objdir/$soname.def;
  17804. - cat $export_symbols >> $output_objdir/$soname.def;
  17805. - fi~
  17806. - $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'
  17807. - else
  17808. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17809. - fi
  17810. - ;;
  17811. - darwin* | rhapsody*)
  17812. - case $host_os in
  17813. - rhapsody* | darwin1.[[012]])
  17814. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  17815. - ;;
  17816. - *) # Darwin 1.3 on
  17817. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  17818. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  17819. - else
  17820. - case ${MACOSX_DEPLOYMENT_TARGET} in
  17821. - 10.[[012]])
  17822. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  17823. - ;;
  17824. - 10.*)
  17825. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  17826. - ;;
  17827. - esac
  17828. - fi
  17829. - ;;
  17830. - esac
  17831. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  17832. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  17833. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  17834. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  17835. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  17836. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  17837. -
  17838. - if test "$GXX" = yes ; then
  17839. - lt_int_apple_cc_single_mod=no
  17840. - output_verbose_link_cmd='echo'
  17841. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  17842. - lt_int_apple_cc_single_mod=yes
  17843. - fi
  17844. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17845. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  17846. - else
  17847. - _LT_AC_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'
  17848. - fi
  17849. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17850. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17851. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  17852. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17853. - else
  17854. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17855. - fi
  17856. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17857. - else
  17858. - case $cc_basename in
  17859. - xlc*)
  17860. - output_verbose_link_cmd='echo'
  17861. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  17862. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  17863. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  17864. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17865. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  17866. - ;;
  17867. - *)
  17868. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17869. - ;;
  17870. - esac
  17871. - fi
  17872. - ;;
  17873. +# LT_PATH_LD
  17874. +# ----------
  17875. +# find the pathname to the GNU or non-GNU linker
  17876. +AC_DEFUN([LT_PATH_LD],
  17877. +[AC_REQUIRE([AC_PROG_CC])dnl
  17878. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  17879. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  17880. +m4_require([_LT_DECL_SED])dnl
  17881. +m4_require([_LT_DECL_EGREP])dnl
  17882. - dgux*)
  17883. - case $cc_basename in
  17884. - ec++*)
  17885. - # FIXME: insert proper C++ library support
  17886. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17887. - ;;
  17888. - ghcx*)
  17889. - # Green Hills C++ Compiler
  17890. - # FIXME: insert proper C++ library support
  17891. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17892. - ;;
  17893. - *)
  17894. - # FIXME: insert proper C++ library support
  17895. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17896. - ;;
  17897. - esac
  17898. - ;;
  17899. - freebsd[[12]]*)
  17900. - # C++ shared libraries reported to be fairly broken before switch to ELF
  17901. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17902. - ;;
  17903. - freebsd-elf*)
  17904. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  17905. - ;;
  17906. - freebsd* | kfreebsd*-gnu | dragonfly*)
  17907. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  17908. - # conventions
  17909. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  17910. - ;;
  17911. - gnu*)
  17912. - ;;
  17913. - hpux9*)
  17914. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  17915. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  17916. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  17917. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  17918. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  17919. - # but as the default
  17920. - # location of the library.
  17921. -
  17922. - case $cc_basename in
  17923. - CC*)
  17924. - # FIXME: insert proper C++ library support
  17925. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17926. - ;;
  17927. - aCC*)
  17928. - _LT_AC_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'
  17929. - # Commands to make compiler produce verbose output that lists
  17930. - # what "hidden" libraries, object files and flags are used when
  17931. - # linking a shared library.
  17932. - #
  17933. - # There doesn't appear to be a way to prevent this compiler from
  17934. - # explicitly linking system object files so we need to strip them
  17935. - # from the output so that they don't get included in the library
  17936. - # dependencies.
  17937. - 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; echo $list'
  17938. - ;;
  17939. - *)
  17940. - if test "$GXX" = yes; then
  17941. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  17942. - else
  17943. - # FIXME: insert proper C++ library support
  17944. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  17945. - fi
  17946. - ;;
  17947. - esac
  17948. - ;;
  17949. - hpux10*|hpux11*)
  17950. - if test $with_gnu_ld = no; then
  17951. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  17952. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  17953. +AC_ARG_WITH([gnu-ld],
  17954. + [AS_HELP_STRING([--with-gnu-ld],
  17955. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  17956. + [test "$withval" = no || with_gnu_ld=yes],
  17957. + [with_gnu_ld=no])dnl
  17958. - case $host_cpu in
  17959. - hppa*64*|ia64*)
  17960. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  17961. - ;;
  17962. - *)
  17963. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  17964. - ;;
  17965. - esac
  17966. - fi
  17967. - case $host_cpu in
  17968. - hppa*64*|ia64*)
  17969. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  17970. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  17971. - ;;
  17972. - *)
  17973. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  17974. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  17975. - # but as the default
  17976. - # location of the library.
  17977. +ac_prog=ld
  17978. +if test "$GCC" = yes; then
  17979. + # Check if gcc -print-prog-name=ld gives a path.
  17980. + AC_MSG_CHECKING([for ld used by $CC])
  17981. + case $host in
  17982. + *-*-mingw*)
  17983. + # gcc leaves a trailing carriage return which upsets mingw
  17984. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  17985. + *)
  17986. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  17987. + esac
  17988. + case $ac_prog in
  17989. + # Accept absolute paths.
  17990. + [[\\/]]* | ?:[[\\/]]*)
  17991. + re_direlt='/[[^/]][[^/]]*/\.\./'
  17992. + # Canonicalize the pathname of ld
  17993. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  17994. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  17995. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  17996. + done
  17997. + test -z "$LD" && LD="$ac_prog"
  17998. ;;
  17999. - esac
  18000. -
  18001. - case $cc_basename in
  18002. - CC*)
  18003. - # FIXME: insert proper C++ library support
  18004. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18005. - ;;
  18006. - aCC*)
  18007. - case $host_cpu in
  18008. - hppa*64*)
  18009. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18010. - ;;
  18011. - ia64*)
  18012. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18013. - ;;
  18014. - *)
  18015. - _LT_AC_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'
  18016. - ;;
  18017. - esac
  18018. - # Commands to make compiler produce verbose output that lists
  18019. - # what "hidden" libraries, object files and flags are used when
  18020. - # linking a shared library.
  18021. - #
  18022. - # There doesn't appear to be a way to prevent this compiler from
  18023. - # explicitly linking system object files so we need to strip them
  18024. - # from the output so that they don't get included in the library
  18025. - # dependencies.
  18026. - 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; echo $list'
  18027. - ;;
  18028. - *)
  18029. - if test "$GXX" = yes; then
  18030. - if test $with_gnu_ld = no; then
  18031. - case $host_cpu in
  18032. - hppa*64*)
  18033. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18034. - ;;
  18035. - ia64*)
  18036. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18037. - ;;
  18038. - *)
  18039. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18040. - ;;
  18041. - esac
  18042. - fi
  18043. - else
  18044. - # FIXME: insert proper C++ library support
  18045. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18046. - fi
  18047. - ;;
  18048. - esac
  18049. - ;;
  18050. - interix3*)
  18051. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  18052. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  18053. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  18054. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  18055. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  18056. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  18057. - # default) and relocated if they conflict, which is a slow very memory
  18058. - # consuming and fragmenting process. To avoid this, we pick a random,
  18059. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  18060. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  18061. - _LT_AC_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'
  18062. - _LT_AC_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'
  18063. - ;;
  18064. - irix5* | irix6*)
  18065. - case $cc_basename in
  18066. - CC*)
  18067. - # SGI C++
  18068. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  18069. -
  18070. - # Archives containing C++ object files must be created using
  18071. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  18072. - # necessary to make sure instantiated templates are included
  18073. - # in the archive.
  18074. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  18075. - ;;
  18076. - *)
  18077. - if test "$GXX" = yes; then
  18078. - if test "$with_gnu_ld" = no; then
  18079. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  18080. - else
  18081. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  18082. - fi
  18083. - fi
  18084. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  18085. - ;;
  18086. - esac
  18087. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  18088. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18089. + "")
  18090. + # If it fails, then pretend we aren't using GCC.
  18091. + ac_prog=ld
  18092. ;;
  18093. - linux*)
  18094. - case $cc_basename in
  18095. - KCC*)
  18096. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  18097. -
  18098. - # KCC will only create a shared library if the output file
  18099. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18100. - # to its proper name (with version) after linking.
  18101. - _LT_AC_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'
  18102. - _LT_AC_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'
  18103. - # Commands to make compiler produce verbose output that lists
  18104. - # what "hidden" libraries, object files and flags are used when
  18105. - # linking a shared library.
  18106. - #
  18107. - # There doesn't appear to be a way to prevent this compiler from
  18108. - # explicitly linking system object files so we need to strip them
  18109. - # from the output so that they don't get included in the library
  18110. - # dependencies.
  18111. - 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; echo $list'
  18112. -
  18113. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  18114. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  18115. -
  18116. - # Archives containing C++ object files must be created using
  18117. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  18118. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  18119. - ;;
  18120. - icpc*)
  18121. - # Intel C++
  18122. - with_gnu_ld=yes
  18123. - # version 8.0 and above of icpc choke on multiply defined symbols
  18124. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  18125. - # earlier do not add the objects themselves.
  18126. - case `$CC -V 2>&1` in
  18127. - *"Version 7."*)
  18128. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18129. - _LT_AC_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'
  18130. - ;;
  18131. - *) # Version 8.0 or newer
  18132. - tmp_idyn=
  18133. - case $host_cpu in
  18134. - ia64*) tmp_idyn=' -i_dynamic';;
  18135. - esac
  18136. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18137. - _LT_AC_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'
  18138. - ;;
  18139. - esac
  18140. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  18141. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  18142. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  18143. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  18144. - ;;
  18145. - pgCC*)
  18146. - # Portland Group C++ compiler
  18147. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  18148. - _LT_AC_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'
  18149. -
  18150. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  18151. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  18152. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  18153. - ;;
  18154. - cxx*)
  18155. - # Compaq C++
  18156. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  18157. - _LT_AC_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'
  18158. -
  18159. - runpath_var=LD_RUN_PATH
  18160. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  18161. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18162. -
  18163. - # Commands to make compiler produce verbose output that lists
  18164. - # what "hidden" libraries, object files and flags are used when
  18165. - # linking a shared library.
  18166. - #
  18167. - # There doesn't appear to be a way to prevent this compiler from
  18168. - # explicitly linking system object files so we need to strip them
  18169. - # from the output so that they don't get included in the library
  18170. - # dependencies.
  18171. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
  18172. - ;;
  18173. - *)
  18174. - case `$CC -V 2>&1 | sed 5q` in
  18175. - *Sun\ C*)
  18176. - # Sun C++ 5.9
  18177. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  18178. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18179. - _LT_AC_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'
  18180. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  18181. - _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  18182. -
  18183. - # Not sure whether something based on
  18184. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  18185. - # would be better.
  18186. - output_verbose_link_cmd='echo'
  18187. -
  18188. - # Archives containing C++ object files must be created using
  18189. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  18190. - # necessary to make sure instantiated templates are included
  18191. - # in the archive.
  18192. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  18193. - ;;
  18194. - esac
  18195. - ;;
  18196. - esac
  18197. + *)
  18198. + # If it is relative, then search for the first ld in PATH.
  18199. + with_gnu_ld=unknown
  18200. ;;
  18201. - lynxos*)
  18202. - # FIXME: insert proper C++ library support
  18203. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18204. - ;;
  18205. - m88k*)
  18206. - # FIXME: insert proper C++ library support
  18207. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18208. - ;;
  18209. - mvs*)
  18210. - case $cc_basename in
  18211. - cxx*)
  18212. - # FIXME: insert proper C++ library support
  18213. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18214. + esac
  18215. +elif test "$with_gnu_ld" = yes; then
  18216. + AC_MSG_CHECKING([for GNU ld])
  18217. +else
  18218. + AC_MSG_CHECKING([for non-GNU ld])
  18219. +fi
  18220. +AC_CACHE_VAL(lt_cv_path_LD,
  18221. +[if test -z "$LD"; then
  18222. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18223. + for ac_dir in $PATH; do
  18224. + IFS="$lt_save_ifs"
  18225. + test -z "$ac_dir" && ac_dir=.
  18226. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  18227. + lt_cv_path_LD="$ac_dir/$ac_prog"
  18228. + # Check to see if the program is GNU ld. I'd rather use --version,
  18229. + # but apparently some variants of GNU ld only accept -v.
  18230. + # Break only if it was the GNU/non-GNU ld that we prefer.
  18231. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  18232. + *GNU* | *'with BFD'*)
  18233. + test "$with_gnu_ld" != no && break
  18234. ;;
  18235. *)
  18236. - # FIXME: insert proper C++ library support
  18237. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18238. + test "$with_gnu_ld" != yes && break
  18239. ;;
  18240. - esac
  18241. - ;;
  18242. - netbsd*)
  18243. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  18244. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  18245. - wlarc=
  18246. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  18247. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  18248. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  18249. - fi
  18250. - # Workaround some broken pre-1.5 toolchains
  18251. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  18252. - ;;
  18253. - openbsd2*)
  18254. - # C++ shared libraries are fairly broken
  18255. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18256. - ;;
  18257. - openbsd*)
  18258. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  18259. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  18260. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  18261. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  18262. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18263. - _LT_AC_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'
  18264. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  18265. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  18266. + esac
  18267. fi
  18268. - output_verbose_link_cmd='echo'
  18269. - ;;
  18270. - osf3*)
  18271. - case $cc_basename in
  18272. - KCC*)
  18273. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  18274. -
  18275. - # KCC will only create a shared library if the output file
  18276. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18277. - # to its proper name (with version) after linking.
  18278. - _LT_AC_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'
  18279. -
  18280. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  18281. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18282. -
  18283. - # Archives containing C++ object files must be created using
  18284. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  18285. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  18286. -
  18287. - ;;
  18288. - RCC*)
  18289. - # Rational C++ 2.4.1
  18290. - # FIXME: insert proper C++ library support
  18291. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18292. - ;;
  18293. - cxx*)
  18294. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  18295. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  18296. -
  18297. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  18298. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18299. -
  18300. - # Commands to make compiler produce verbose output that lists
  18301. - # what "hidden" libraries, object files and flags are used when
  18302. - # linking a shared library.
  18303. - #
  18304. - # There doesn't appear to be a way to prevent this compiler from
  18305. - # explicitly linking system object files so we need to strip them
  18306. - # from the output so that they don't get included in the library
  18307. - # dependencies.
  18308. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  18309. - ;;
  18310. - *)
  18311. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18312. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  18313. - _LT_AC_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" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  18314. -
  18315. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  18316. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18317. -
  18318. - # Commands to make compiler produce verbose output that lists
  18319. - # what "hidden" libraries, object files and flags are used when
  18320. - # linking a shared library.
  18321. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  18322. + done
  18323. + IFS="$lt_save_ifs"
  18324. +else
  18325. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  18326. +fi])
  18327. +LD="$lt_cv_path_LD"
  18328. +if test -n "$LD"; then
  18329. + AC_MSG_RESULT($LD)
  18330. +else
  18331. + AC_MSG_RESULT(no)
  18332. +fi
  18333. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  18334. +_LT_PATH_LD_GNU
  18335. +AC_SUBST([LD])
  18336. - else
  18337. - # FIXME: insert proper C++ library support
  18338. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18339. - fi
  18340. - ;;
  18341. - esac
  18342. - ;;
  18343. - osf4* | osf5*)
  18344. - case $cc_basename in
  18345. - KCC*)
  18346. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  18347. -
  18348. - # KCC will only create a shared library if the output file
  18349. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  18350. - # to its proper name (with version) after linking.
  18351. - _LT_AC_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'
  18352. -
  18353. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  18354. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18355. -
  18356. - # Archives containing C++ object files must be created using
  18357. - # the KAI C++ compiler.
  18358. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  18359. - ;;
  18360. - RCC*)
  18361. - # Rational C++ 2.4.1
  18362. - # FIXME: insert proper C++ library support
  18363. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18364. - ;;
  18365. - cxx*)
  18366. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  18367. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  18368. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  18369. - echo "-hidden">> $lib.exp~
  18370. - $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~
  18371. - $rm $lib.exp'
  18372. -
  18373. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  18374. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18375. -
  18376. - # Commands to make compiler produce verbose output that lists
  18377. - # what "hidden" libraries, object files and flags are used when
  18378. - # linking a shared library.
  18379. - #
  18380. - # There doesn't appear to be a way to prevent this compiler from
  18381. - # explicitly linking system object files so we need to strip them
  18382. - # from the output so that they don't get included in the library
  18383. - # dependencies.
  18384. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
  18385. - ;;
  18386. - *)
  18387. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18388. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  18389. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  18390. -
  18391. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  18392. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  18393. -
  18394. - # Commands to make compiler produce verbose output that lists
  18395. - # what "hidden" libraries, object files and flags are used when
  18396. - # linking a shared library.
  18397. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  18398. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  18399. +])# LT_PATH_LD
  18400. - else
  18401. - # FIXME: insert proper C++ library support
  18402. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18403. - fi
  18404. - ;;
  18405. - esac
  18406. - ;;
  18407. - psos*)
  18408. - # FIXME: insert proper C++ library support
  18409. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18410. - ;;
  18411. - sunos4*)
  18412. - case $cc_basename in
  18413. - CC*)
  18414. - # Sun C++ 4.x
  18415. - # FIXME: insert proper C++ library support
  18416. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18417. - ;;
  18418. - lcc*)
  18419. - # Lucid
  18420. - # FIXME: insert proper C++ library support
  18421. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18422. - ;;
  18423. - *)
  18424. - # FIXME: insert proper C++ library support
  18425. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18426. - ;;
  18427. - esac
  18428. +# Old names:
  18429. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  18430. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  18431. +dnl aclocal-1.4 backwards compatibility:
  18432. +dnl AC_DEFUN([AM_PROG_LD], [])
  18433. +dnl AC_DEFUN([AC_PROG_LD], [])
  18434. +
  18435. +
  18436. +# _LT_PATH_LD_GNU
  18437. +#- --------------
  18438. +m4_defun([_LT_PATH_LD_GNU],
  18439. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  18440. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  18441. +case `$LD -v 2>&1 </dev/null` in
  18442. +*GNU* | *'with BFD'*)
  18443. + lt_cv_prog_gnu_ld=yes
  18444. + ;;
  18445. +*)
  18446. + lt_cv_prog_gnu_ld=no
  18447. + ;;
  18448. +esac])
  18449. +with_gnu_ld=$lt_cv_prog_gnu_ld
  18450. +])# _LT_PATH_LD_GNU
  18451. +
  18452. +
  18453. +# _LT_CMD_RELOAD
  18454. +# --------------
  18455. +# find reload flag for linker
  18456. +# -- PORTME Some linkers may need a different reload flag.
  18457. +m4_defun([_LT_CMD_RELOAD],
  18458. +[AC_CACHE_CHECK([for $LD option to reload object files],
  18459. + lt_cv_ld_reload_flag,
  18460. + [lt_cv_ld_reload_flag='-r'])
  18461. +reload_flag=$lt_cv_ld_reload_flag
  18462. +case $reload_flag in
  18463. +"" | " "*) ;;
  18464. +*) reload_flag=" $reload_flag" ;;
  18465. +esac
  18466. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  18467. +case $host_os in
  18468. + darwin*)
  18469. + if test "$GCC" = yes; then
  18470. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  18471. + else
  18472. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  18473. + fi
  18474. ;;
  18475. - solaris*)
  18476. - case $cc_basename in
  18477. - CC*)
  18478. - # Sun C++ 4.2, 5.x and Centerline C++
  18479. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  18480. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  18481. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  18482. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18483. - $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'
  18484. -
  18485. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  18486. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  18487. - case $host_os in
  18488. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  18489. - *)
  18490. - # The C++ compiler is used as linker so we must use $wl
  18491. - # flag to pass the commands to the underlying system
  18492. - # linker. We must also pass each convience library through
  18493. - # to the system linker between allextract/defaultextract.
  18494. - # The C++ compiler will combine linker options so we
  18495. - # cannot just pass the convience library names through
  18496. - # without $wl.
  18497. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  18498. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
  18499. - ;;
  18500. - esac
  18501. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  18502. +esac
  18503. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  18504. +_LT_DECL([], [reload_cmds], [2])dnl
  18505. +])# _LT_CMD_RELOAD
  18506. - output_verbose_link_cmd='echo'
  18507. - # Archives containing C++ object files must be created using
  18508. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  18509. - # necessary to make sure instantiated templates are included
  18510. - # in the archive.
  18511. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  18512. - ;;
  18513. - gcx*)
  18514. - # Green Hills C++ Compiler
  18515. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18516. +# _LT_CHECK_MAGIC_METHOD
  18517. +# ----------------------
  18518. +# how to check for library dependencies
  18519. +# -- PORTME fill in with the dynamic library characteristics
  18520. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  18521. +[m4_require([_LT_DECL_EGREP])
  18522. +AC_CACHE_CHECK([how to recognize dependent libraries],
  18523. +lt_cv_deplibs_check_method,
  18524. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  18525. +lt_cv_file_magic_test_file=
  18526. +lt_cv_deplibs_check_method='unknown'
  18527. +# Need to set the preceding variable on all platforms that support
  18528. +# interlibrary dependencies.
  18529. +# 'none' -- dependencies not supported.
  18530. +# `unknown' -- same as none, but documents that we really don't know.
  18531. +# 'pass_all' -- all dependencies passed with no checks.
  18532. +# 'test_compile' -- check by making test program.
  18533. +# 'file_magic [[regex]]' -- check by looking for files in library path
  18534. +# which responds to the $file_magic_cmd with a given extended regex.
  18535. +# If you have `file' or equivalent on your system and you're not sure
  18536. +# whether `pass_all' will *always* work, you probably want this one.
  18537. - # The C++ compiler must be used to create the archive.
  18538. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  18539. - ;;
  18540. - *)
  18541. - # GNU C++ compiler with Solaris linker
  18542. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  18543. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  18544. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  18545. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18546. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18547. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  18548. +case $host_os in
  18549. +aix[[4-9]]*)
  18550. + lt_cv_deplibs_check_method=pass_all
  18551. + ;;
  18552. - # Commands to make compiler produce verbose output that lists
  18553. - # what "hidden" libraries, object files and flags are used when
  18554. - # linking a shared library.
  18555. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  18556. - else
  18557. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  18558. - # platform.
  18559. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  18560. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  18561. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  18562. +beos*)
  18563. + lt_cv_deplibs_check_method=pass_all
  18564. + ;;
  18565. - # Commands to make compiler produce verbose output that lists
  18566. - # what "hidden" libraries, object files and flags are used when
  18567. - # linking a shared library.
  18568. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  18569. - fi
  18570. +bsdi[[45]]*)
  18571. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  18572. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  18573. + lt_cv_file_magic_test_file=/shlib/libc.so
  18574. + ;;
  18575. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  18576. - fi
  18577. - ;;
  18578. - esac
  18579. - ;;
  18580. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  18581. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  18582. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  18583. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  18584. - runpath_var='LD_RUN_PATH'
  18585. -
  18586. - case $cc_basename in
  18587. - CC*)
  18588. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18589. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18590. - ;;
  18591. - *)
  18592. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18593. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  18594. - ;;
  18595. - esac
  18596. - ;;
  18597. - sysv5* | sco3.2v5* | sco5v6*)
  18598. - # Note: We can NOT use -z defs as we might desire, because we do not
  18599. - # link with -lc, and that would cause any symbols used from libc to
  18600. - # always be unresolved, which means just about no library would
  18601. - # ever link correctly. If we're not using GNU ld we use -z text
  18602. - # though, which does catch some bad symbols but isn't as heavy-handed
  18603. - # as -z defs.
  18604. - # For security reasons, it is highly recommended that you always
  18605. - # use absolute paths for naming shared libraries, and exclude the
  18606. - # DT_RUNPATH tag from executables and libraries. But doing so
  18607. - # requires that you compile everything twice, which is a pain.
  18608. - # So that behaviour is only enabled if SCOABSPATH is set to a
  18609. - # non-empty value in the environment. Most likely only useful for
  18610. - # creating official distributions of packages.
  18611. - # This is a hack until libtool officially supports absolute path
  18612. - # names for shared libraries.
  18613. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  18614. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  18615. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  18616. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  18617. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  18618. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  18619. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  18620. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  18621. - runpath_var='LD_RUN_PATH'
  18622. -
  18623. - case $cc_basename in
  18624. - CC*)
  18625. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18626. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18627. - ;;
  18628. - *)
  18629. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18630. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  18631. - ;;
  18632. - esac
  18633. - ;;
  18634. - tandem*)
  18635. - case $cc_basename in
  18636. - NCC*)
  18637. - # NonStop-UX NCC 3.20
  18638. - # FIXME: insert proper C++ library support
  18639. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18640. - ;;
  18641. - *)
  18642. - # FIXME: insert proper C++ library support
  18643. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18644. - ;;
  18645. +cygwin*)
  18646. + # func_win32_libid is a shell function defined in ltmain.sh
  18647. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18648. + lt_cv_file_magic_cmd='func_win32_libid'
  18649. + ;;
  18650. +
  18651. +mingw* | pw32*)
  18652. + # Base MSYS/MinGW do not provide the 'file' command needed by
  18653. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  18654. + # unless we find 'file', for example because we are cross-compiling.
  18655. + if ( file / ) >/dev/null 2>&1; then
  18656. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  18657. + lt_cv_file_magic_cmd='func_win32_libid'
  18658. + else
  18659. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  18660. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  18661. + fi
  18662. + ;;
  18663. +
  18664. +darwin* | rhapsody*)
  18665. + lt_cv_deplibs_check_method=pass_all
  18666. + ;;
  18667. +
  18668. +freebsd* | dragonfly*)
  18669. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  18670. + case $host_cpu in
  18671. + i*86 )
  18672. + # Not sure whether the presence of OpenBSD here was a mistake.
  18673. + # Let's accept both of them until this is cleared up.
  18674. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  18675. + lt_cv_file_magic_cmd=/usr/bin/file
  18676. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  18677. + ;;
  18678. esac
  18679. + else
  18680. + lt_cv_deplibs_check_method=pass_all
  18681. + fi
  18682. + ;;
  18683. +
  18684. +gnu*)
  18685. + lt_cv_deplibs_check_method=pass_all
  18686. + ;;
  18687. +
  18688. +hpux10.20* | hpux11*)
  18689. + lt_cv_file_magic_cmd=/usr/bin/file
  18690. + case $host_cpu in
  18691. + ia64*)
  18692. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  18693. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  18694. ;;
  18695. - vxworks*)
  18696. - # FIXME: insert proper C++ library support
  18697. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18698. + hppa*64*)
  18699. + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  18700. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  18701. ;;
  18702. *)
  18703. - # FIXME: insert proper C++ library support
  18704. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  18705. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  18706. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  18707. ;;
  18708. -esac
  18709. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  18710. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  18711. + esac
  18712. + ;;
  18713. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  18714. -_LT_AC_TAGVAR(LD, $1)="$LD"
  18715. +interix[[3-9]]*)
  18716. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  18717. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  18718. + ;;
  18719. -## CAVEAT EMPTOR:
  18720. -## There is no encapsulation within the following macros, do not change
  18721. -## the running order or otherwise move them around unless you know exactly
  18722. -## what you are doing...
  18723. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  18724. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  18725. -AC_LIBTOOL_PROG_CC_C_O($1)
  18726. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  18727. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  18728. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  18729. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  18730. +irix5* | irix6* | nonstopux*)
  18731. + case $LD in
  18732. + *-32|*"-32 ") libmagic=32-bit;;
  18733. + *-n32|*"-n32 ") libmagic=N32;;
  18734. + *-64|*"-64 ") libmagic=64-bit;;
  18735. + *) libmagic=never-match;;
  18736. + esac
  18737. + lt_cv_deplibs_check_method=pass_all
  18738. + ;;
  18739. -AC_LIBTOOL_CONFIG($1)
  18740. +# This must be Linux ELF.
  18741. +linux* | k*bsd*-gnu)
  18742. + lt_cv_deplibs_check_method=pass_all
  18743. + ;;
  18744. -AC_LANG_POP
  18745. -CC=$lt_save_CC
  18746. -LDCXX=$LD
  18747. -LD=$lt_save_LD
  18748. -GCC=$lt_save_GCC
  18749. -with_gnu_ldcxx=$with_gnu_ld
  18750. -with_gnu_ld=$lt_save_with_gnu_ld
  18751. -lt_cv_path_LDCXX=$lt_cv_path_LD
  18752. -lt_cv_path_LD=$lt_save_path_LD
  18753. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  18754. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  18755. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  18756. +netbsd*)
  18757. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  18758. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  18759. + else
  18760. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  18761. + fi
  18762. + ;;
  18763. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  18764. -# ------------------------------------
  18765. -# Figure out "hidden" library dependencies from verbose
  18766. -# compiler output when linking a shared library.
  18767. -# Parse the compiler output and extract the necessary
  18768. -# objects, libraries and library flags.
  18769. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  18770. -dnl we can't use the lt_simple_compile_test_code here,
  18771. -dnl because it contains code intended for an executable,
  18772. -dnl not a library. It's possible we should let each
  18773. -dnl tag define a new lt_????_link_test_code variable,
  18774. -dnl but it's only used here...
  18775. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  18776. -int a;
  18777. -void foo (void) { a = 0; }
  18778. -EOF
  18779. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  18780. -class Foo
  18781. -{
  18782. -public:
  18783. - Foo (void) { a = 0; }
  18784. -private:
  18785. - int a;
  18786. -};
  18787. -EOF
  18788. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  18789. - subroutine foo
  18790. - implicit none
  18791. - integer*4 a
  18792. - a=0
  18793. - return
  18794. - end
  18795. -EOF
  18796. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  18797. -public class foo {
  18798. - private int a;
  18799. - public void bar (void) {
  18800. - a = 0;
  18801. - }
  18802. -};
  18803. -EOF
  18804. -])
  18805. -dnl Parse the compiler output and extract the necessary
  18806. -dnl objects, libraries and library flags.
  18807. -if AC_TRY_EVAL(ac_compile); then
  18808. - # Parse the compiler output and extract the necessary
  18809. - # objects, libraries and library flags.
  18810. +newos6*)
  18811. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  18812. + lt_cv_file_magic_cmd=/usr/bin/file
  18813. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  18814. + ;;
  18815. - # Sentinel used to keep track of whether or not we are before
  18816. - # the conftest object file.
  18817. - pre_test_object_deps_done=no
  18818. +*nto* | *qnx*)
  18819. + lt_cv_deplibs_check_method=pass_all
  18820. + ;;
  18821. - # The `*' in the case matches for architectures that use `case' in
  18822. - # $output_verbose_cmd can trigger glob expansion during the loop
  18823. - # eval without this substitution.
  18824. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  18825. +openbsd*)
  18826. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18827. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  18828. + else
  18829. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  18830. + fi
  18831. + ;;
  18832. - for p in `eval $output_verbose_link_cmd`; do
  18833. - case $p in
  18834. +osf3* | osf4* | osf5*)
  18835. + lt_cv_deplibs_check_method=pass_all
  18836. + ;;
  18837. - -L* | -R* | -l*)
  18838. - # Some compilers place space between "-{L,R}" and the path.
  18839. - # Remove the space.
  18840. - if test $p = "-L" \
  18841. - || test $p = "-R"; then
  18842. - prev=$p
  18843. - continue
  18844. - else
  18845. - prev=
  18846. - fi
  18847. +rdos*)
  18848. + lt_cv_deplibs_check_method=pass_all
  18849. + ;;
  18850. +
  18851. +solaris*)
  18852. + lt_cv_deplibs_check_method=pass_all
  18853. + ;;
  18854. +
  18855. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18856. + lt_cv_deplibs_check_method=pass_all
  18857. + ;;
  18858. +
  18859. +sysv4 | sysv4.3*)
  18860. + case $host_vendor in
  18861. + motorola)
  18862. + 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]]'
  18863. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  18864. + ;;
  18865. + ncr)
  18866. + lt_cv_deplibs_check_method=pass_all
  18867. + ;;
  18868. + sequent)
  18869. + lt_cv_file_magic_cmd='/bin/file'
  18870. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  18871. + ;;
  18872. + sni)
  18873. + lt_cv_file_magic_cmd='/bin/file'
  18874. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  18875. + lt_cv_file_magic_test_file=/lib/libc.so
  18876. + ;;
  18877. + siemens)
  18878. + lt_cv_deplibs_check_method=pass_all
  18879. + ;;
  18880. + pc)
  18881. + lt_cv_deplibs_check_method=pass_all
  18882. + ;;
  18883. + esac
  18884. + ;;
  18885. +
  18886. +tpf*)
  18887. + lt_cv_deplibs_check_method=pass_all
  18888. + ;;
  18889. +esac
  18890. +])
  18891. +file_magic_cmd=$lt_cv_file_magic_cmd
  18892. +deplibs_check_method=$lt_cv_deplibs_check_method
  18893. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  18894. +
  18895. +_LT_DECL([], [deplibs_check_method], [1],
  18896. + [Method to check whether dependent libraries are shared objects])
  18897. +_LT_DECL([], [file_magic_cmd], [1],
  18898. + [Command to use when deplibs_check_method == "file_magic"])
  18899. +])# _LT_CHECK_MAGIC_METHOD
  18900. +
  18901. +
  18902. +# LT_PATH_NM
  18903. +# ----------
  18904. +# find the pathname to a BSD- or MS-compatible name lister
  18905. +AC_DEFUN([LT_PATH_NM],
  18906. +[AC_REQUIRE([AC_PROG_CC])dnl
  18907. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  18908. +[if test -n "$NM"; then
  18909. + # Let the user override the test.
  18910. + lt_cv_path_NM="$NM"
  18911. +else
  18912. + lt_nm_to_check="${ac_tool_prefix}nm"
  18913. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  18914. + lt_nm_to_check="$lt_nm_to_check nm"
  18915. + fi
  18916. + for lt_tmp_nm in $lt_nm_to_check; do
  18917. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  18918. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  18919. + IFS="$lt_save_ifs"
  18920. + test -z "$ac_dir" && ac_dir=.
  18921. + tmp_nm="$ac_dir/$lt_tmp_nm"
  18922. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  18923. + # Check to see if the nm accepts a BSD-compat flag.
  18924. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  18925. + # nm: unknown option "B" ignored
  18926. + # Tru64's nm complains that /dev/null is an invalid object file
  18927. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  18928. + */dev/null* | *'Invalid file or object type'*)
  18929. + lt_cv_path_NM="$tmp_nm -B"
  18930. + break
  18931. + ;;
  18932. + *)
  18933. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  18934. + */dev/null*)
  18935. + lt_cv_path_NM="$tmp_nm -p"
  18936. + break
  18937. + ;;
  18938. + *)
  18939. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  18940. + continue # so that we can try to find one that supports BSD flags
  18941. + ;;
  18942. + esac
  18943. + ;;
  18944. + esac
  18945. + fi
  18946. + done
  18947. + IFS="$lt_save_ifs"
  18948. + done
  18949. + : ${lt_cv_path_NM=no}
  18950. +fi])
  18951. +if test "$lt_cv_path_NM" != "no"; then
  18952. + NM="$lt_cv_path_NM"
  18953. +else
  18954. + # Didn't find any BSD compatible name lister, look for dumpbin.
  18955. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  18956. + AC_SUBST([DUMPBIN])
  18957. + if test "$DUMPBIN" != ":"; then
  18958. + NM="$DUMPBIN"
  18959. + fi
  18960. +fi
  18961. +test -z "$NM" && NM=nm
  18962. +AC_SUBST([NM])
  18963. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  18964. +
  18965. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  18966. + [lt_cv_nm_interface="BSD nm"
  18967. + echo "int some_variable = 0;" > conftest.$ac_ext
  18968. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  18969. + (eval "$ac_compile" 2>conftest.err)
  18970. + cat conftest.err >&AS_MESSAGE_LOG_FD
  18971. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  18972. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  18973. + cat conftest.err >&AS_MESSAGE_LOG_FD
  18974. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  18975. + cat conftest.out >&AS_MESSAGE_LOG_FD
  18976. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  18977. + lt_cv_nm_interface="MS dumpbin"
  18978. + fi
  18979. + rm -f conftest*])
  18980. +])# LT_PATH_NM
  18981. +
  18982. +# Old names:
  18983. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  18984. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  18985. +dnl aclocal-1.4 backwards compatibility:
  18986. +dnl AC_DEFUN([AM_PROG_NM], [])
  18987. +dnl AC_DEFUN([AC_PROG_NM], [])
  18988. +
  18989. +
  18990. +# LT_LIB_M
  18991. +# --------
  18992. +# check for math library
  18993. +AC_DEFUN([LT_LIB_M],
  18994. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  18995. +LIBM=
  18996. +case $host in
  18997. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  18998. + # These system don't have libm, or don't need it
  18999. + ;;
  19000. +*-ncr-sysv4.3*)
  19001. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  19002. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  19003. + ;;
  19004. +*)
  19005. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  19006. + ;;
  19007. +esac
  19008. +AC_SUBST([LIBM])
  19009. +])# LT_LIB_M
  19010. +
  19011. +# Old name:
  19012. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  19013. +dnl aclocal-1.4 backwards compatibility:
  19014. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  19015. +
  19016. +
  19017. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  19018. +# -------------------------------
  19019. +m4_defun([_LT_COMPILER_NO_RTTI],
  19020. +[m4_require([_LT_TAG_COMPILER])dnl
  19021. +
  19022. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  19023. +
  19024. +if test "$GCC" = yes; then
  19025. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  19026. +
  19027. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  19028. + lt_cv_prog_compiler_rtti_exceptions,
  19029. + [-fno-rtti -fno-exceptions], [],
  19030. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  19031. +fi
  19032. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  19033. + [Compiler flag to turn off builtin functions])
  19034. +])# _LT_COMPILER_NO_RTTI
  19035. +
  19036. +
  19037. +# _LT_CMD_GLOBAL_SYMBOLS
  19038. +# ----------------------
  19039. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  19040. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  19041. +AC_REQUIRE([AC_PROG_CC])dnl
  19042. +AC_REQUIRE([LT_PATH_NM])dnl
  19043. +AC_REQUIRE([LT_PATH_LD])dnl
  19044. +m4_require([_LT_DECL_SED])dnl
  19045. +m4_require([_LT_DECL_EGREP])dnl
  19046. +m4_require([_LT_TAG_COMPILER])dnl
  19047. +
  19048. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  19049. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  19050. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  19051. +[
  19052. +# These are sane defaults that work on at least a few old systems.
  19053. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  19054. +
  19055. +# Character class describing NM global symbol codes.
  19056. +symcode='[[BCDEGRST]]'
  19057. +
  19058. +# Regexp to match symbols that can be accessed directly from C.
  19059. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  19060. +
  19061. +# Define system-specific variables.
  19062. +case $host_os in
  19063. +aix*)
  19064. + symcode='[[BCDT]]'
  19065. + ;;
  19066. +cygwin* | mingw* | pw32*)
  19067. + symcode='[[ABCDGISTW]]'
  19068. + ;;
  19069. +hpux*)
  19070. + if test "$host_cpu" = ia64; then
  19071. + symcode='[[ABCDEGRST]]'
  19072. + fi
  19073. + ;;
  19074. +irix* | nonstopux*)
  19075. + symcode='[[BCDEGRST]]'
  19076. + ;;
  19077. +osf*)
  19078. + symcode='[[BCDEGQRST]]'
  19079. + ;;
  19080. +solaris*)
  19081. + symcode='[[BDRT]]'
  19082. + ;;
  19083. +sco3.2v5*)
  19084. + symcode='[[DT]]'
  19085. + ;;
  19086. +sysv4.2uw2*)
  19087. + symcode='[[DT]]'
  19088. + ;;
  19089. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  19090. + symcode='[[ABDT]]'
  19091. + ;;
  19092. +sysv4)
  19093. + symcode='[[DFNSTU]]'
  19094. + ;;
  19095. +esac
  19096. +
  19097. +# If we're using GNU nm, then use its standard symbol codes.
  19098. +case `$NM -V 2>&1` in
  19099. +*GNU* | *'with BFD'*)
  19100. + symcode='[[ABCDGIRSTW]]' ;;
  19101. +esac
  19102. +
  19103. +# Transform an extracted symbol line into a proper C declaration.
  19104. +# Some systems (esp. on ia64) link data and code symbols differently,
  19105. +# so use this general approach.
  19106. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  19107. +
  19108. +# Transform an extracted symbol line into symbol name and symbol address
  19109. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  19110. +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'"
  19111. +
  19112. +# Handle CRLF in mingw tool chain
  19113. +opt_cr=
  19114. +case $build_os in
  19115. +mingw*)
  19116. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  19117. + ;;
  19118. +esac
  19119. +
  19120. +# Try without a prefix underscore, then with it.
  19121. +for ac_symprfx in "" "_"; do
  19122. +
  19123. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  19124. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  19125. +
  19126. + # Write the raw and C identifiers.
  19127. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  19128. + # Fake it for dumpbin and say T for any non-static function
  19129. + # and D for any global variable.
  19130. + # Also find C++ and __fastcall symbols from MSVC++,
  19131. + # which start with @ or ?.
  19132. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  19133. +" {last_section=section; section=\$ 3};"\
  19134. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  19135. +" \$ 0!~/External *\|/{next};"\
  19136. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  19137. +" {if(hide[section]) next};"\
  19138. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  19139. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  19140. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  19141. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  19142. +" ' prfx=^$ac_symprfx]"
  19143. + else
  19144. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  19145. + fi
  19146. +
  19147. + # Check to see that the pipe works correctly.
  19148. + pipe_works=no
  19149. +
  19150. + rm -f conftest*
  19151. + cat > conftest.$ac_ext <<_LT_EOF
  19152. +#ifdef __cplusplus
  19153. +extern "C" {
  19154. +#endif
  19155. +char nm_test_var;
  19156. +void nm_test_func(void);
  19157. +void nm_test_func(void){}
  19158. +#ifdef __cplusplus
  19159. +}
  19160. +#endif
  19161. +int main(){nm_test_var='a';nm_test_func();return(0);}
  19162. +_LT_EOF
  19163. +
  19164. + if AC_TRY_EVAL(ac_compile); then
  19165. + # Now try to grab the symbols.
  19166. + nlist=conftest.nm
  19167. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  19168. + # Try sorting and uniquifying the output.
  19169. + if sort "$nlist" | uniq > "$nlist"T; then
  19170. + mv -f "$nlist"T "$nlist"
  19171. + else
  19172. + rm -f "$nlist"T
  19173. + fi
  19174. +
  19175. + # Make sure that we snagged all the symbols we need.
  19176. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  19177. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  19178. + cat <<_LT_EOF > conftest.$ac_ext
  19179. +#ifdef __cplusplus
  19180. +extern "C" {
  19181. +#endif
  19182. +
  19183. +_LT_EOF
  19184. + # Now generate the symbol file.
  19185. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  19186. +
  19187. + cat <<_LT_EOF >> conftest.$ac_ext
  19188. +
  19189. +/* The mapping between symbol names and symbols. */
  19190. +const struct {
  19191. + const char *name;
  19192. + void *address;
  19193. +}
  19194. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  19195. +{
  19196. + { "@PROGRAM@", (void *) 0 },
  19197. +_LT_EOF
  19198. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  19199. + cat <<\_LT_EOF >> conftest.$ac_ext
  19200. + {0, (void *) 0}
  19201. +};
  19202. +
  19203. +/* This works around a problem in FreeBSD linker */
  19204. +#ifdef FREEBSD_WORKAROUND
  19205. +static const void *lt_preloaded_setup() {
  19206. + return lt__PROGRAM__LTX_preloaded_symbols;
  19207. +}
  19208. +#endif
  19209. +
  19210. +#ifdef __cplusplus
  19211. +}
  19212. +#endif
  19213. +_LT_EOF
  19214. + # Now try linking the two files.
  19215. + mv conftest.$ac_objext conftstm.$ac_objext
  19216. + lt_save_LIBS="$LIBS"
  19217. + lt_save_CFLAGS="$CFLAGS"
  19218. + LIBS="conftstm.$ac_objext"
  19219. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  19220. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  19221. + pipe_works=yes
  19222. + fi
  19223. + LIBS="$lt_save_LIBS"
  19224. + CFLAGS="$lt_save_CFLAGS"
  19225. + else
  19226. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  19227. + fi
  19228. + else
  19229. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  19230. + fi
  19231. + else
  19232. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  19233. + fi
  19234. + else
  19235. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  19236. + cat conftest.$ac_ext >&5
  19237. + fi
  19238. + rm -rf conftest* conftst*
  19239. - if test "$pre_test_object_deps_done" = no; then
  19240. - case $p in
  19241. - -L* | -R*)
  19242. - # Internal compiler library paths should come after those
  19243. - # provided the user. The postdeps already come after the
  19244. - # user supplied libs so there is no need to process them.
  19245. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  19246. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  19247. - else
  19248. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  19249. - fi
  19250. - ;;
  19251. - # The "-l" case would never come before the object being
  19252. - # linked, so don't bother handling this case.
  19253. - esac
  19254. - else
  19255. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  19256. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  19257. - else
  19258. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  19259. - fi
  19260. - fi
  19261. - ;;
  19262. + # Do not use the global_symbol_pipe unless it works.
  19263. + if test "$pipe_works" = yes; then
  19264. + break
  19265. + else
  19266. + lt_cv_sys_global_symbol_pipe=
  19267. + fi
  19268. +done
  19269. +])
  19270. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  19271. + lt_cv_sys_global_symbol_to_cdecl=
  19272. +fi
  19273. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  19274. + AC_MSG_RESULT(failed)
  19275. +else
  19276. + AC_MSG_RESULT(ok)
  19277. +fi
  19278. - *.$objext)
  19279. - # This assumes that the test object file only shows up
  19280. - # once in the compiler output.
  19281. - if test "$p" = "conftest.$objext"; then
  19282. - pre_test_object_deps_done=yes
  19283. - continue
  19284. - fi
  19285. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  19286. + [Take the output of nm and produce a listing of raw symbols and C names])
  19287. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  19288. + [Transform the output of nm in a proper C declaration])
  19289. +_LT_DECL([global_symbol_to_c_name_address],
  19290. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  19291. + [Transform the output of nm in a C name address pair])
  19292. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  19293. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  19294. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  19295. +]) # _LT_CMD_GLOBAL_SYMBOLS
  19296. - if test "$pre_test_object_deps_done" = no; then
  19297. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  19298. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  19299. - else
  19300. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  19301. - fi
  19302. - else
  19303. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  19304. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  19305. - else
  19306. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  19307. - fi
  19308. - fi
  19309. - ;;
  19310. - *) ;; # Ignore the rest.
  19311. +# _LT_COMPILER_PIC([TAGNAME])
  19312. +# ---------------------------
  19313. +m4_defun([_LT_COMPILER_PIC],
  19314. +[m4_require([_LT_TAG_COMPILER])dnl
  19315. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  19316. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  19317. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  19318. +
  19319. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  19320. +m4_if([$1], [CXX], [
  19321. + # C++ specific cases for pic, static, wl, etc.
  19322. + if test "$GXX" = yes; then
  19323. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19324. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  19325. + case $host_os in
  19326. + aix*)
  19327. + # All AIX code is PIC.
  19328. + if test "$host_cpu" = ia64; then
  19329. + # AIX 5 now supports IA64 processor
  19330. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19331. + fi
  19332. + ;;
  19333. +
  19334. + amigaos*)
  19335. + case $host_cpu in
  19336. + powerpc)
  19337. + # see comment about AmigaOS4 .so support
  19338. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19339. + ;;
  19340. + m68k)
  19341. + # FIXME: we need at least 68020 code to build shared libraries, but
  19342. + # adding the `-m68020' flag to GCC prevents building anything better,
  19343. + # like `-m68040'.
  19344. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  19345. + ;;
  19346. + esac
  19347. + ;;
  19348. +
  19349. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  19350. + # PIC is the default for these OSes.
  19351. + ;;
  19352. + mingw* | cygwin* | os2* | pw32*)
  19353. + # This hack is so that the source file can tell whether it is being
  19354. + # built for inclusion in a dll (and should export symbols for example).
  19355. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  19356. + # (--disable-auto-import) libraries
  19357. + m4_if([$1], [GCJ], [],
  19358. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  19359. + ;;
  19360. + darwin* | rhapsody*)
  19361. + # PIC is the default on this platform
  19362. + # Common symbols not allowed in MH_DYLIB files
  19363. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  19364. + ;;
  19365. + *djgpp*)
  19366. + # DJGPP does not support shared libraries at all
  19367. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  19368. + ;;
  19369. + interix[[3-9]]*)
  19370. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  19371. + # Instead, we relocate shared libraries at runtime.
  19372. + ;;
  19373. + sysv4*MP*)
  19374. + if test -d /usr/nec; then
  19375. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  19376. + fi
  19377. + ;;
  19378. + hpux*)
  19379. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19380. + # not for PA HP-UX.
  19381. + case $host_cpu in
  19382. + hppa*64*|ia64*)
  19383. + ;;
  19384. + *)
  19385. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19386. + ;;
  19387. + esac
  19388. + ;;
  19389. + *qnx* | *nto*)
  19390. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  19391. + # it will coredump.
  19392. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  19393. + ;;
  19394. + *)
  19395. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19396. + ;;
  19397. + esac
  19398. + else
  19399. + case $host_os in
  19400. + aix[[4-9]]*)
  19401. + # All AIX code is PIC.
  19402. + if test "$host_cpu" = ia64; then
  19403. + # AIX 5 now supports IA64 processor
  19404. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19405. + else
  19406. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  19407. + fi
  19408. + ;;
  19409. + chorus*)
  19410. + case $cc_basename in
  19411. + cxch68*)
  19412. + # Green Hills C++ Compiler
  19413. + # _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"
  19414. + ;;
  19415. + esac
  19416. + ;;
  19417. + dgux*)
  19418. + case $cc_basename in
  19419. + ec++*)
  19420. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19421. + ;;
  19422. + ghcx*)
  19423. + # Green Hills C++ Compiler
  19424. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  19425. + ;;
  19426. + *)
  19427. + ;;
  19428. + esac
  19429. + ;;
  19430. + freebsd* | dragonfly*)
  19431. + # FreeBSD uses GNU C++
  19432. + ;;
  19433. + hpux9* | hpux10* | hpux11*)
  19434. + case $cc_basename in
  19435. + CC*)
  19436. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19437. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  19438. + if test "$host_cpu" != ia64; then
  19439. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  19440. + fi
  19441. + ;;
  19442. + aCC*)
  19443. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19444. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  19445. + case $host_cpu in
  19446. + hppa*64*|ia64*)
  19447. + # +Z the default
  19448. + ;;
  19449. + *)
  19450. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  19451. + ;;
  19452. + esac
  19453. + ;;
  19454. + *)
  19455. + ;;
  19456. + esac
  19457. + ;;
  19458. + interix*)
  19459. + # This is c89, which is MS Visual C++ (no shared libs)
  19460. + # Anyone wants to do a port?
  19461. + ;;
  19462. + irix5* | irix6* | nonstopux*)
  19463. + case $cc_basename in
  19464. + CC*)
  19465. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19466. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  19467. + # CC pic flag -KPIC is the default.
  19468. + ;;
  19469. + *)
  19470. + ;;
  19471. + esac
  19472. + ;;
  19473. + linux* | k*bsd*-gnu)
  19474. + case $cc_basename in
  19475. + KCC*)
  19476. + # KAI C++ Compiler
  19477. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  19478. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19479. + ;;
  19480. + icpc* | ecpc* )
  19481. + # Intel C++
  19482. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19483. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19484. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  19485. + ;;
  19486. + pgCC* | pgcpp*)
  19487. + # Portland Group C++ compiler
  19488. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19489. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  19490. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19491. + ;;
  19492. + cxx*)
  19493. + # Compaq C++
  19494. + # Make sure the PIC flag is empty. It appears that all Alpha
  19495. + # Linux and Compaq Tru64 Unix objects are PIC.
  19496. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  19497. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  19498. + ;;
  19499. + xlc* | xlC*)
  19500. + # IBM XL 8.0 on PPC
  19501. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19502. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  19503. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  19504. + ;;
  19505. + *)
  19506. + case `$CC -V 2>&1 | sed 5q` in
  19507. + *Sun\ C*)
  19508. + # Sun C++ 5.9
  19509. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19510. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19511. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  19512. + ;;
  19513. + esac
  19514. + ;;
  19515. + esac
  19516. + ;;
  19517. + lynxos*)
  19518. + ;;
  19519. + m88k*)
  19520. + ;;
  19521. + mvs*)
  19522. + case $cc_basename in
  19523. + cxx*)
  19524. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  19525. + ;;
  19526. + *)
  19527. + ;;
  19528. + esac
  19529. + ;;
  19530. + netbsd*)
  19531. + ;;
  19532. + *qnx* | *nto*)
  19533. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  19534. + # it will coredump.
  19535. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  19536. + ;;
  19537. + osf3* | osf4* | osf5*)
  19538. + case $cc_basename in
  19539. + KCC*)
  19540. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  19541. + ;;
  19542. + RCC*)
  19543. + # Rational C++ 2.4.1
  19544. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  19545. + ;;
  19546. + cxx*)
  19547. + # Digital/Compaq C++
  19548. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19549. + # Make sure the PIC flag is empty. It appears that all Alpha
  19550. + # Linux and Compaq Tru64 Unix objects are PIC.
  19551. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  19552. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  19553. + ;;
  19554. + *)
  19555. + ;;
  19556. + esac
  19557. + ;;
  19558. + psos*)
  19559. + ;;
  19560. + solaris*)
  19561. + case $cc_basename in
  19562. + CC*)
  19563. + # Sun C++ 4.2, 5.x and Centerline C++
  19564. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19565. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19566. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  19567. + ;;
  19568. + gcx*)
  19569. + # Green Hills C++ Compiler
  19570. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  19571. + ;;
  19572. + *)
  19573. + ;;
  19574. + esac
  19575. + ;;
  19576. + sunos4*)
  19577. + case $cc_basename in
  19578. + CC*)
  19579. + # Sun C++ 4.x
  19580. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  19581. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19582. + ;;
  19583. + lcc*)
  19584. + # Lucid
  19585. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  19586. + ;;
  19587. + *)
  19588. + ;;
  19589. + esac
  19590. + ;;
  19591. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  19592. + case $cc_basename in
  19593. + CC*)
  19594. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19595. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19596. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19597. + ;;
  19598. + esac
  19599. + ;;
  19600. + tandem*)
  19601. + case $cc_basename in
  19602. + NCC*)
  19603. + # NonStop-UX NCC 3.20
  19604. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19605. + ;;
  19606. + *)
  19607. + ;;
  19608. + esac
  19609. + ;;
  19610. + vxworks*)
  19611. + ;;
  19612. + *)
  19613. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  19614. + ;;
  19615. esac
  19616. - done
  19617. -
  19618. - # Clean up.
  19619. - rm -f a.out a.exe
  19620. -else
  19621. - echo "libtool.m4: error: problem compiling $1 test program"
  19622. -fi
  19623. -
  19624. -$rm -f confest.$objext
  19625. -
  19626. -# PORTME: override above test on systems where it is broken
  19627. -ifelse([$1],[CXX],
  19628. -[case $host_os in
  19629. -interix3*)
  19630. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  19631. - # hack all around it, let's just trust "g++" to DTRT.
  19632. - _LT_AC_TAGVAR(predep_objects,$1)=
  19633. - _LT_AC_TAGVAR(postdep_objects,$1)=
  19634. - _LT_AC_TAGVAR(postdeps,$1)=
  19635. - ;;
  19636. -
  19637. -linux*)
  19638. - case `$CC -V 2>&1 | sed 5q` in
  19639. - *Sun\ C*)
  19640. - # Sun C++ 5.9
  19641. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  19642. - ;;
  19643. - esac
  19644. - ;;
  19645. -
  19646. -solaris*)
  19647. - case $cc_basename in
  19648. - CC*)
  19649. - # Adding this requires a known-good setup of shared libraries for
  19650. - # Sun compiler versions before 5.6, else PIC objects from an old
  19651. - # archive will be linked into the output, leading to subtle bugs.
  19652. - _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
  19653. - ;;
  19654. - esac
  19655. - ;;
  19656. -esac
  19657. -])
  19658. -
  19659. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  19660. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  19661. -esac
  19662. -])# AC_LIBTOOL_POSTDEP_PREDEP
  19663. -
  19664. -# AC_LIBTOOL_LANG_F77_CONFIG
  19665. -# --------------------------
  19666. -# Ensure that the configuration vars for the C compiler are
  19667. -# suitably defined. Those variables are subsequently used by
  19668. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  19669. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  19670. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  19671. -[AC_REQUIRE([AC_PROG_F77])
  19672. -AC_LANG_PUSH(Fortran 77)
  19673. -
  19674. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  19675. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  19676. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  19677. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  19678. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  19679. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  19680. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  19681. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  19682. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  19683. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  19684. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  19685. -_LT_AC_TAGVAR(module_cmds, $1)=
  19686. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  19687. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  19688. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  19689. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  19690. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  19691. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  19692. -
  19693. -# Source file extension for f77 test sources.
  19694. -ac_ext=f
  19695. -
  19696. -# Object file extension for compiled f77 test sources.
  19697. -objext=o
  19698. -_LT_AC_TAGVAR(objext, $1)=$objext
  19699. -
  19700. -# Code to be used in simple compile tests
  19701. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  19702. -
  19703. -# Code to be used in simple link tests
  19704. -lt_simple_link_test_code=" program t\n end\n"
  19705. -
  19706. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  19707. -_LT_AC_SYS_COMPILER
  19708. -
  19709. -# save warnings/boilerplate of simple test code
  19710. -_LT_COMPILER_BOILERPLATE
  19711. -_LT_LINKER_BOILERPLATE
  19712. -
  19713. -# Allow CC to be a program name with arguments.
  19714. -lt_save_CC="$CC"
  19715. -CC=${F77-"f77"}
  19716. -compiler=$CC
  19717. -_LT_AC_TAGVAR(compiler, $1)=$CC
  19718. -_LT_CC_BASENAME([$compiler])
  19719. -
  19720. -AC_MSG_CHECKING([if libtool supports shared libraries])
  19721. -AC_MSG_RESULT([$can_build_shared])
  19722. -
  19723. -AC_MSG_CHECKING([whether to build shared libraries])
  19724. -test "$can_build_shared" = "no" && enable_shared=no
  19725. -
  19726. -# On AIX, shared libraries and static libraries use the same namespace, and
  19727. -# are all built from PIC.
  19728. -case $host_os in
  19729. -aix3*)
  19730. - test "$enable_shared" = yes && enable_static=no
  19731. - if test -n "$RANLIB"; then
  19732. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  19733. - postinstall_cmds='$RANLIB $lib'
  19734. fi
  19735. - ;;
  19736. -aix4* | aix5*)
  19737. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  19738. - test "$enable_shared" = yes && enable_static=no
  19739. - fi
  19740. - ;;
  19741. -esac
  19742. -AC_MSG_RESULT([$enable_shared])
  19743. -
  19744. -AC_MSG_CHECKING([whether to build static libraries])
  19745. -# Make sure either enable_shared or enable_static is yes.
  19746. -test "$enable_shared" = yes || enable_static=yes
  19747. -AC_MSG_RESULT([$enable_static])
  19748. -
  19749. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  19750. -_LT_AC_TAGVAR(LD, $1)="$LD"
  19751. -
  19752. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  19753. -AC_LIBTOOL_PROG_CC_C_O($1)
  19754. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  19755. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  19756. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  19757. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  19758. -
  19759. -AC_LIBTOOL_CONFIG($1)
  19760. -
  19761. -AC_LANG_POP
  19762. -CC="$lt_save_CC"
  19763. -])# AC_LIBTOOL_LANG_F77_CONFIG
  19764. -
  19765. -
  19766. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  19767. -# --------------------------
  19768. -# Ensure that the configuration vars for the C compiler are
  19769. -# suitably defined. Those variables are subsequently used by
  19770. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  19771. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  19772. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  19773. -[AC_LANG_SAVE
  19774. -
  19775. -# Source file extension for Java test sources.
  19776. -ac_ext=java
  19777. +],
  19778. +[
  19779. + if test "$GCC" = yes; then
  19780. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19781. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  19782. -# Object file extension for compiled Java test sources.
  19783. -objext=o
  19784. -_LT_AC_TAGVAR(objext, $1)=$objext
  19785. + case $host_os in
  19786. + aix*)
  19787. + # All AIX code is PIC.
  19788. + if test "$host_cpu" = ia64; then
  19789. + # AIX 5 now supports IA64 processor
  19790. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19791. + fi
  19792. + ;;
  19793. -# Code to be used in simple compile tests
  19794. -lt_simple_compile_test_code="class foo {}\n"
  19795. + amigaos*)
  19796. + case $host_cpu in
  19797. + powerpc)
  19798. + # see comment about AmigaOS4 .so support
  19799. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19800. + ;;
  19801. + m68k)
  19802. + # FIXME: we need at least 68020 code to build shared libraries, but
  19803. + # adding the `-m68020' flag to GCC prevents building anything better,
  19804. + # like `-m68040'.
  19805. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  19806. + ;;
  19807. + esac
  19808. + ;;
  19809. -# Code to be used in simple link tests
  19810. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  19811. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  19812. + # PIC is the default for these OSes.
  19813. + ;;
  19814. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  19815. -_LT_AC_SYS_COMPILER
  19816. + mingw* | cygwin* | pw32* | os2*)
  19817. + # This hack is so that the source file can tell whether it is being
  19818. + # built for inclusion in a dll (and should export symbols for example).
  19819. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  19820. + # (--disable-auto-import) libraries
  19821. + m4_if([$1], [GCJ], [],
  19822. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  19823. + ;;
  19824. -# save warnings/boilerplate of simple test code
  19825. -_LT_COMPILER_BOILERPLATE
  19826. -_LT_LINKER_BOILERPLATE
  19827. + darwin* | rhapsody*)
  19828. + # PIC is the default on this platform
  19829. + # Common symbols not allowed in MH_DYLIB files
  19830. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  19831. + ;;
  19832. -# Allow CC to be a program name with arguments.
  19833. -lt_save_CC="$CC"
  19834. -CC=${GCJ-"gcj"}
  19835. -compiler=$CC
  19836. -_LT_AC_TAGVAR(compiler, $1)=$CC
  19837. -_LT_CC_BASENAME([$compiler])
  19838. + hpux*)
  19839. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19840. + # not for PA HP-UX.
  19841. + case $host_cpu in
  19842. + hppa*64*|ia64*)
  19843. + # +Z the default
  19844. + ;;
  19845. + *)
  19846. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19847. + ;;
  19848. + esac
  19849. + ;;
  19850. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  19851. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  19852. + interix[[3-9]]*)
  19853. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  19854. + # Instead, we relocate shared libraries at runtime.
  19855. + ;;
  19856. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  19857. + msdosdjgpp*)
  19858. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  19859. + # on systems that don't support them.
  19860. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  19861. + enable_shared=no
  19862. + ;;
  19863. -## CAVEAT EMPTOR:
  19864. -## There is no encapsulation within the following macros, do not change
  19865. -## the running order or otherwise move them around unless you know exactly
  19866. -## what you are doing...
  19867. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  19868. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  19869. -AC_LIBTOOL_PROG_CC_C_O($1)
  19870. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  19871. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  19872. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  19873. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  19874. + *nto* | *qnx*)
  19875. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  19876. + # it will coredump.
  19877. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  19878. + ;;
  19879. -AC_LIBTOOL_CONFIG($1)
  19880. + sysv4*MP*)
  19881. + if test -d /usr/nec; then
  19882. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  19883. + fi
  19884. + ;;
  19885. -AC_LANG_RESTORE
  19886. -CC="$lt_save_CC"
  19887. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  19888. + *)
  19889. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  19890. + ;;
  19891. + esac
  19892. + else
  19893. + # PORTME Check for flag to pass linker flags through the system compiler.
  19894. + case $host_os in
  19895. + aix*)
  19896. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19897. + if test "$host_cpu" = ia64; then
  19898. + # AIX 5 now supports IA64 processor
  19899. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19900. + else
  19901. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  19902. + fi
  19903. + ;;
  19904. + mingw* | cygwin* | pw32* | os2*)
  19905. + # This hack is so that the source file can tell whether it is being
  19906. + # built for inclusion in a dll (and should export symbols for example).
  19907. + m4_if([$1], [GCJ], [],
  19908. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  19909. + ;;
  19910. -# AC_LIBTOOL_LANG_RC_CONFIG
  19911. -# -------------------------
  19912. -# Ensure that the configuration vars for the Windows resource compiler are
  19913. -# suitably defined. Those variables are subsequently used by
  19914. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  19915. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  19916. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  19917. -[AC_LANG_SAVE
  19918. + hpux9* | hpux10* | hpux11*)
  19919. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19920. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  19921. + # not for PA HP-UX.
  19922. + case $host_cpu in
  19923. + hppa*64*|ia64*)
  19924. + # +Z the default
  19925. + ;;
  19926. + *)
  19927. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  19928. + ;;
  19929. + esac
  19930. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  19931. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  19932. + ;;
  19933. -# Source file extension for RC test sources.
  19934. -ac_ext=rc
  19935. + irix5* | irix6* | nonstopux*)
  19936. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19937. + # PIC (with -KPIC) is the default.
  19938. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  19939. + ;;
  19940. -# Object file extension for compiled RC test sources.
  19941. -objext=o
  19942. -_LT_AC_TAGVAR(objext, $1)=$objext
  19943. + linux* | k*bsd*-gnu)
  19944. + case $cc_basename in
  19945. + icc* | ecc* | ifort*)
  19946. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19947. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19948. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  19949. + ;;
  19950. + pgcc* | pgf77* | pgf90* | pgf95*)
  19951. + # Portland Group compilers (*not* the Pentium gcc compiler,
  19952. + # which looks to be a dead project)
  19953. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19954. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  19955. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19956. + ;;
  19957. + ccc*)
  19958. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19959. + # All Alpha code is PIC.
  19960. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  19961. + ;;
  19962. + xl*)
  19963. + # IBM XL C 8.0/Fortran 10.1 on PPC
  19964. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19965. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  19966. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  19967. + ;;
  19968. + *)
  19969. + case `$CC -V 2>&1 | sed 5q` in
  19970. + *Sun\ C*)
  19971. + # Sun C 5.9
  19972. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19973. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19974. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  19975. + ;;
  19976. + *Sun\ F*)
  19977. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  19978. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19979. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19980. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  19981. + ;;
  19982. + esac
  19983. + ;;
  19984. + esac
  19985. + ;;
  19986. -# Code to be used in simple compile tests
  19987. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  19988. + newsos6)
  19989. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  19990. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  19991. + ;;
  19992. -# Code to be used in simple link tests
  19993. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  19994. + *nto* | *qnx*)
  19995. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  19996. + # it will coredump.
  19997. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  19998. + ;;
  19999. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  20000. -_LT_AC_SYS_COMPILER
  20001. + osf3* | osf4* | osf5*)
  20002. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  20003. + # All OSF/1 code is PIC.
  20004. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  20005. + ;;
  20006. -# save warnings/boilerplate of simple test code
  20007. -_LT_COMPILER_BOILERPLATE
  20008. -_LT_LINKER_BOILERPLATE
  20009. + rdos*)
  20010. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  20011. + ;;
  20012. -# Allow CC to be a program name with arguments.
  20013. -lt_save_CC="$CC"
  20014. -CC=${RC-"windres"}
  20015. -compiler=$CC
  20016. -_LT_AC_TAGVAR(compiler, $1)=$CC
  20017. -_LT_CC_BASENAME([$compiler])
  20018. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  20019. + solaris*)
  20020. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  20021. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  20022. + case $cc_basename in
  20023. + f77* | f90* | f95*)
  20024. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  20025. + *)
  20026. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  20027. + esac
  20028. + ;;
  20029. -AC_LIBTOOL_CONFIG($1)
  20030. + sunos4*)
  20031. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  20032. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  20033. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  20034. + ;;
  20035. -AC_LANG_RESTORE
  20036. -CC="$lt_save_CC"
  20037. -])# AC_LIBTOOL_LANG_RC_CONFIG
  20038. + sysv4 | sysv4.2uw2* | sysv4.3*)
  20039. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  20040. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  20041. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  20042. + ;;
  20043. +
  20044. + sysv4*MP*)
  20045. + if test -d /usr/nec ;then
  20046. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  20047. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  20048. + fi
  20049. + ;;
  20050. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  20051. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  20052. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  20053. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  20054. + ;;
  20055. -# AC_LIBTOOL_CONFIG([TAGNAME])
  20056. -# ----------------------------
  20057. -# If TAGNAME is not passed, then create an initial libtool script
  20058. -# with a default configuration from the untagged config vars. Otherwise
  20059. -# add code to config.status for appending the configuration named by
  20060. -# TAGNAME from the matching tagged config vars.
  20061. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  20062. -[# The else clause should only fire when bootstrapping the
  20063. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  20064. -# with your package, and you will get complaints that there are
  20065. -# no rules to generate ltmain.sh.
  20066. -if test -f "$ltmain"; then
  20067. - # See if we are running on zsh, and set the options which allow our commands through
  20068. - # without removal of \ escapes.
  20069. - if test -n "${ZSH_VERSION+set}" ; then
  20070. - setopt NO_GLOB_SUBST
  20071. - fi
  20072. - # Now quote all the things that may contain metacharacters while being
  20073. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  20074. - # variables and quote the copies for generation of the libtool script.
  20075. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  20076. - SED SHELL STRIP \
  20077. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  20078. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  20079. - deplibs_check_method reload_flag reload_cmds need_locks \
  20080. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  20081. - lt_cv_sys_global_symbol_to_c_name_address \
  20082. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  20083. - old_postinstall_cmds old_postuninstall_cmds \
  20084. - _LT_AC_TAGVAR(compiler, $1) \
  20085. - _LT_AC_TAGVAR(CC, $1) \
  20086. - _LT_AC_TAGVAR(LD, $1) \
  20087. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  20088. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  20089. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  20090. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  20091. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  20092. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  20093. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  20094. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  20095. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  20096. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  20097. - _LT_AC_TAGVAR(predep_objects, $1) \
  20098. - _LT_AC_TAGVAR(postdep_objects, $1) \
  20099. - _LT_AC_TAGVAR(predeps, $1) \
  20100. - _LT_AC_TAGVAR(postdeps, $1) \
  20101. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  20102. - _LT_AC_TAGVAR(archive_cmds, $1) \
  20103. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  20104. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  20105. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  20106. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  20107. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  20108. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  20109. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  20110. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  20111. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  20112. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  20113. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  20114. - _LT_AC_TAGVAR(module_cmds, $1) \
  20115. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  20116. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  20117. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  20118. - _LT_AC_TAGVAR(include_expsyms, $1); do
  20119. -
  20120. - case $var in
  20121. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  20122. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  20123. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  20124. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  20125. - _LT_AC_TAGVAR(module_cmds, $1) | \
  20126. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  20127. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  20128. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  20129. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  20130. - postinstall_cmds | postuninstall_cmds | \
  20131. - old_postinstall_cmds | old_postuninstall_cmds | \
  20132. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  20133. - # Double-quote double-evaled strings.
  20134. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  20135. + unicos*)
  20136. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  20137. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  20138. + ;;
  20139. +
  20140. + uts4*)
  20141. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  20142. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  20143. ;;
  20144. +
  20145. *)
  20146. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  20147. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  20148. ;;
  20149. esac
  20150. - done
  20151. -
  20152. - case $lt_echo in
  20153. - *'\[$]0 --fallback-echo"')
  20154. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  20155. + fi
  20156. +])
  20157. +case $host_os in
  20158. + # For platforms which do not support PIC, -DPIC is meaningless:
  20159. + *djgpp*)
  20160. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  20161. ;;
  20162. - esac
  20163. -
  20164. -ifelse([$1], [],
  20165. - [cfgfile="${ofile}T"
  20166. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  20167. - $rm -f "$cfgfile"
  20168. - AC_MSG_NOTICE([creating $ofile])],
  20169. - [cfgfile="$ofile"])
  20170. -
  20171. - cat <<__EOF__ >> "$cfgfile"
  20172. -ifelse([$1], [],
  20173. -[#! $SHELL
  20174. + *)
  20175. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  20176. + ;;
  20177. +esac
  20178. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  20179. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  20180. + [How to pass a linker flag through the compiler])
  20181. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20182. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  20183. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20184. #
  20185. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  20186. -# Free Software Foundation, Inc.
  20187. -#
  20188. -# This file is part of GNU Libtool:
  20189. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  20190. -#
  20191. -# This program is free software; you can redistribute it and/or modify
  20192. -# it under the terms of the GNU General Public License as published by
  20193. -# the Free Software Foundation; either version 2 of the License, or
  20194. -# (at your option) any later version.
  20195. +# Check to make sure the PIC flag actually works.
  20196. #
  20197. -# This program is distributed in the hope that it will be useful, but
  20198. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  20199. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20200. -# General Public License for more details.
  20201. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  20202. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  20203. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  20204. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  20205. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  20206. + "" | " "*) ;;
  20207. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  20208. + esac],
  20209. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  20210. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  20211. +fi
  20212. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  20213. + [Additional compiler flags for building library objects])
  20214. +
  20215. #
  20216. -# You should have received a copy of the GNU General Public License
  20217. -# along with this program; if not, write to the Free Software
  20218. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20219. +# Check to make sure the static flag actually works.
  20220. #
  20221. -# As a special exception to the GNU General Public License, if you
  20222. -# distribute this file as part of a program that contains a
  20223. -# configuration script generated by Autoconf, you may include it under
  20224. -# the same distribution terms that you use for the rest of that program.
  20225. -
  20226. -# A sed program that does not truncate output.
  20227. -SED=$lt_SED
  20228. -
  20229. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20230. -Xsed="$SED -e 1s/^X//"
  20231. -
  20232. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  20233. -# if CDPATH is set.
  20234. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  20235. -
  20236. -# The names of the tagged configurations supported by this script.
  20237. -available_tags=
  20238. -
  20239. -# ### BEGIN LIBTOOL CONFIG],
  20240. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  20241. -
  20242. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20243. -
  20244. -# Shell to use when invoking shell scripts.
  20245. -SHELL=$lt_SHELL
  20246. -
  20247. -# Whether or not to build shared libraries.
  20248. -build_libtool_libs=$enable_shared
  20249. -
  20250. -# Whether or not to build static libraries.
  20251. -build_old_libs=$enable_static
  20252. -
  20253. -# Whether or not to add -lc for building shared libraries.
  20254. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  20255. -
  20256. -# Whether or not to disallow shared libs when runtime libs are static
  20257. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  20258. -
  20259. -# Whether or not to optimize for fast installation.
  20260. -fast_install=$enable_fast_install
  20261. -
  20262. -# The host system.
  20263. -host_alias=$host_alias
  20264. -host=$host
  20265. -host_os=$host_os
  20266. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  20267. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  20268. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  20269. + $lt_tmp_static_flag,
  20270. + [],
  20271. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  20272. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  20273. + [Compiler flag to prevent dynamic linking])
  20274. +])# _LT_COMPILER_PIC
  20275. -# The build system.
  20276. -build_alias=$build_alias
  20277. -build=$build
  20278. -build_os=$build_os
  20279. -# An echo program that does not interpret backslashes.
  20280. -echo=$lt_echo
  20281. +# _LT_LINKER_SHLIBS([TAGNAME])
  20282. +# ----------------------------
  20283. +# See if the linker supports building shared libraries.
  20284. +m4_defun([_LT_LINKER_SHLIBS],
  20285. +[AC_REQUIRE([LT_PATH_LD])dnl
  20286. +AC_REQUIRE([LT_PATH_NM])dnl
  20287. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  20288. +m4_require([_LT_DECL_EGREP])dnl
  20289. +m4_require([_LT_DECL_SED])dnl
  20290. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  20291. +m4_require([_LT_TAG_COMPILER])dnl
  20292. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  20293. +m4_if([$1], [CXX], [
  20294. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20295. + case $host_os in
  20296. + aix[[4-9]]*)
  20297. + # If we're using GNU nm, then we don't want the "-C" option.
  20298. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  20299. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  20300. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  20301. + else
  20302. + _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'
  20303. + fi
  20304. + ;;
  20305. + pw32*)
  20306. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  20307. + ;;
  20308. + cygwin* | mingw*)
  20309. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  20310. + ;;
  20311. + *)
  20312. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20313. + ;;
  20314. + esac
  20315. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  20316. +], [
  20317. + runpath_var=
  20318. + _LT_TAGVAR(allow_undefined_flag, $1)=
  20319. + _LT_TAGVAR(always_export_symbols, $1)=no
  20320. + _LT_TAGVAR(archive_cmds, $1)=
  20321. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  20322. + _LT_TAGVAR(compiler_needs_object, $1)=no
  20323. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  20324. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  20325. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  20326. + _LT_TAGVAR(hardcode_automatic, $1)=no
  20327. + _LT_TAGVAR(hardcode_direct, $1)=no
  20328. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  20329. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  20330. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  20331. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  20332. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  20333. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  20334. + _LT_TAGVAR(inherit_rpath, $1)=no
  20335. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  20336. + _LT_TAGVAR(module_cmds, $1)=
  20337. + _LT_TAGVAR(module_expsym_cmds, $1)=
  20338. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  20339. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  20340. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  20341. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  20342. + # include_expsyms should be a list of space-separated symbols to be *always*
  20343. + # included in the symbol list
  20344. + _LT_TAGVAR(include_expsyms, $1)=
  20345. + # exclude_expsyms can be an extended regexp of symbols to exclude
  20346. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  20347. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  20348. + # as well as any symbol that contains `d'.
  20349. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  20350. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  20351. + # platforms (ab)use it in PIC code, but their linkers get confused if
  20352. + # the symbol is explicitly referenced. Since portable code cannot
  20353. + # rely on this symbol name, it's probably fine to never include it in
  20354. + # preloaded symbol tables.
  20355. + # Exclude shared library initialization/finalization symbols.
  20356. +dnl Note also adjust exclude_expsyms for C++ above.
  20357. + extract_expsyms_cmds=
  20358. -# The archiver.
  20359. -AR=$lt_AR
  20360. -AR_FLAGS=$lt_AR_FLAGS
  20361. + case $host_os in
  20362. + cygwin* | mingw* | pw32*)
  20363. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  20364. + # When not using gcc, we currently assume that we are using
  20365. + # Microsoft Visual C++.
  20366. + if test "$GCC" != yes; then
  20367. + with_gnu_ld=no
  20368. + fi
  20369. + ;;
  20370. + interix*)
  20371. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  20372. + with_gnu_ld=yes
  20373. + ;;
  20374. + openbsd*)
  20375. + with_gnu_ld=no
  20376. + ;;
  20377. + esac
  20378. -# A C compiler.
  20379. -LTCC=$lt_LTCC
  20380. + _LT_TAGVAR(ld_shlibs, $1)=yes
  20381. + if test "$with_gnu_ld" = yes; then
  20382. + # If archive_cmds runs LD, not CC, wlarc should be empty
  20383. + wlarc='${wl}'
  20384. -# LTCC compiler flags.
  20385. -LTCFLAGS=$lt_LTCFLAGS
  20386. + # Set some defaults for GNU ld with shared library support. These
  20387. + # are reset later if shared libraries are not supported. Putting them
  20388. + # here allows them to be overridden if necessary.
  20389. + runpath_var=LD_RUN_PATH
  20390. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  20391. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  20392. + # ancient GNU ld didn't support --whole-archive et. al.
  20393. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  20394. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  20395. + else
  20396. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  20397. + fi
  20398. + supports_anon_versioning=no
  20399. + case `$LD -v 2>&1` in
  20400. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  20401. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  20402. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  20403. + *\ 2.11.*) ;; # other 2.11 versions
  20404. + *) supports_anon_versioning=yes ;;
  20405. + esac
  20406. -# A language-specific compiler.
  20407. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  20408. + # See if GNU ld supports shared libraries.
  20409. + case $host_os in
  20410. + aix[[3-9]]*)
  20411. + # On AIX/PPC, the GNU linker is very broken
  20412. + if test "$host_cpu" != ia64; then
  20413. + _LT_TAGVAR(ld_shlibs, $1)=no
  20414. + cat <<_LT_EOF 1>&2
  20415. -# Is the compiler the GNU C compiler?
  20416. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  20417. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  20418. +*** to be unable to reliably create shared libraries on AIX.
  20419. +*** Therefore, libtool is disabling shared libraries support. If you
  20420. +*** really care for shared libraries, you may want to modify your PATH
  20421. +*** so that a non-GNU linker is found, and then restart.
  20422. -# An ERE matcher.
  20423. -EGREP=$lt_EGREP
  20424. +_LT_EOF
  20425. + fi
  20426. + ;;
  20427. -# The linker used to build libraries.
  20428. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  20429. + amigaos*)
  20430. + case $host_cpu in
  20431. + powerpc)
  20432. + # see comment about AmigaOS4 .so support
  20433. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20434. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  20435. + ;;
  20436. + m68k)
  20437. + _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)'
  20438. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  20439. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20440. + ;;
  20441. + esac
  20442. + ;;
  20443. -# Whether we need hard or soft links.
  20444. -LN_S=$lt_LN_S
  20445. + beos*)
  20446. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20447. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  20448. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  20449. + # support --undefined. This deserves some investigation. FIXME
  20450. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20451. + else
  20452. + _LT_TAGVAR(ld_shlibs, $1)=no
  20453. + fi
  20454. + ;;
  20455. -# A BSD-compatible nm program.
  20456. -NM=$lt_NM
  20457. + cygwin* | mingw* | pw32*)
  20458. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  20459. + # as there is no search path for DLLs.
  20460. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  20461. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  20462. + _LT_TAGVAR(always_export_symbols, $1)=no
  20463. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  20464. + _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'
  20465. -# A symbol stripping program
  20466. -STRIP=$lt_STRIP
  20467. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  20468. + _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'
  20469. + # If the export-symbols file already is a .def file (1st line
  20470. + # is EXPORTS), use it as is; otherwise, prepend...
  20471. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  20472. + cp $export_symbols $output_objdir/$soname.def;
  20473. + else
  20474. + echo EXPORTS > $output_objdir/$soname.def;
  20475. + cat $export_symbols >> $output_objdir/$soname.def;
  20476. + fi~
  20477. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  20478. + else
  20479. + _LT_TAGVAR(ld_shlibs, $1)=no
  20480. + fi
  20481. + ;;
  20482. -# Used to examine libraries when file_magic_cmd begins "file"
  20483. -MAGIC_CMD=$MAGIC_CMD
  20484. + interix[[3-9]]*)
  20485. + _LT_TAGVAR(hardcode_direct, $1)=no
  20486. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20487. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  20488. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  20489. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  20490. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  20491. + # default) and relocated if they conflict, which is a slow very memory
  20492. + # consuming and fragmenting process. To avoid this, we pick a random,
  20493. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  20494. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  20495. + _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'
  20496. + _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'
  20497. + ;;
  20498. -# Used on cygwin: DLL creation program.
  20499. -DLLTOOL="$DLLTOOL"
  20500. + gnu* | linux* | tpf* | k*bsd*-gnu)
  20501. + tmp_diet=no
  20502. + if test "$host_os" = linux-dietlibc; then
  20503. + case $cc_basename in
  20504. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  20505. + esac
  20506. + fi
  20507. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  20508. + && test "$tmp_diet" = no
  20509. + then
  20510. + tmp_addflag=
  20511. + tmp_sharedflag='-shared'
  20512. + case $cc_basename,$host_cpu in
  20513. + pgcc*) # Portland Group C compiler
  20514. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  20515. + tmp_addflag=' $pic_flag'
  20516. + ;;
  20517. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  20518. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  20519. + tmp_addflag=' $pic_flag -Mnomain' ;;
  20520. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  20521. + tmp_addflag=' -i_dynamic' ;;
  20522. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  20523. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  20524. + ifc* | ifort*) # Intel Fortran compiler
  20525. + tmp_addflag=' -nofor_main' ;;
  20526. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  20527. + tmp_sharedflag='-qmkshrobj'
  20528. + tmp_addflag= ;;
  20529. + esac
  20530. + case `$CC -V 2>&1 | sed 5q` in
  20531. + *Sun\ C*) # Sun C 5.9
  20532. + _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  20533. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  20534. + tmp_sharedflag='-G' ;;
  20535. + *Sun\ F*) # Sun Fortran 8.3
  20536. + tmp_sharedflag='-G' ;;
  20537. + esac
  20538. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20539. -# Used on cygwin: object dumper.
  20540. -OBJDUMP="$OBJDUMP"
  20541. + if test "x$supports_anon_versioning" = xyes; then
  20542. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  20543. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  20544. + echo "local: *; };" >> $output_objdir/$libname.ver~
  20545. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  20546. + fi
  20547. -# Used on cygwin: assembler.
  20548. -AS="$AS"
  20549. + case $cc_basename in
  20550. + xlf*)
  20551. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  20552. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  20553. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  20554. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  20555. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  20556. + if test "x$supports_anon_versioning" = xyes; then
  20557. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  20558. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  20559. + echo "local: *; };" >> $output_objdir/$libname.ver~
  20560. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  20561. + fi
  20562. + ;;
  20563. + esac
  20564. + else
  20565. + _LT_TAGVAR(ld_shlibs, $1)=no
  20566. + fi
  20567. + ;;
  20568. -# The name of the directory that contains temporary libtool files.
  20569. -objdir=$objdir
  20570. + netbsd*)
  20571. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  20572. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  20573. + wlarc=
  20574. + else
  20575. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20576. + _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'
  20577. + fi
  20578. + ;;
  20579. -# How to create reloadable object files.
  20580. -reload_flag=$lt_reload_flag
  20581. -reload_cmds=$lt_reload_cmds
  20582. + solaris*)
  20583. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  20584. + _LT_TAGVAR(ld_shlibs, $1)=no
  20585. + cat <<_LT_EOF 1>&2
  20586. -# How to pass a linker flag through the compiler.
  20587. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  20588. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  20589. +*** create shared libraries on Solaris systems. Therefore, libtool
  20590. +*** is disabling shared libraries support. We urge you to upgrade GNU
  20591. +*** binutils to release 2.9.1 or newer. Another option is to modify
  20592. +*** your PATH or compiler configuration so that the native linker is
  20593. +*** used, and then restart.
  20594. -# Object file suffix (normally "o").
  20595. -objext="$ac_objext"
  20596. +_LT_EOF
  20597. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20598. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20599. + _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'
  20600. + else
  20601. + _LT_TAGVAR(ld_shlibs, $1)=no
  20602. + fi
  20603. + ;;
  20604. -# Old archive suffix (normally "a").
  20605. -libext="$libext"
  20606. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  20607. + case `$LD -v 2>&1` in
  20608. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  20609. + _LT_TAGVAR(ld_shlibs, $1)=no
  20610. + cat <<_LT_EOF 1>&2
  20611. -# Shared library suffix (normally ".so").
  20612. -shrext_cmds='$shrext_cmds'
  20613. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  20614. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  20615. +*** is disabling shared libraries support. We urge you to upgrade GNU
  20616. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  20617. +*** your PATH or compiler configuration so that the native linker is
  20618. +*** used, and then restart.
  20619. -# Executable file suffix (normally "").
  20620. -exeext="$exeext"
  20621. +_LT_EOF
  20622. + ;;
  20623. + *)
  20624. + # For security reasons, it is highly recommended that you always
  20625. + # use absolute paths for naming shared libraries, and exclude the
  20626. + # DT_RUNPATH tag from executables and libraries. But doing so
  20627. + # requires that you compile everything twice, which is a pain.
  20628. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20629. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  20630. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20631. + _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'
  20632. + else
  20633. + _LT_TAGVAR(ld_shlibs, $1)=no
  20634. + fi
  20635. + ;;
  20636. + esac
  20637. + ;;
  20638. -# Additional compiler flags for building library objects.
  20639. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  20640. -pic_mode=$pic_mode
  20641. + sunos4*)
  20642. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20643. + wlarc=
  20644. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20645. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20646. + ;;
  20647. -# What is the maximum length of a command?
  20648. -max_cmd_len=$lt_cv_sys_max_cmd_len
  20649. + *)
  20650. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  20651. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20652. + _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'
  20653. + else
  20654. + _LT_TAGVAR(ld_shlibs, $1)=no
  20655. + fi
  20656. + ;;
  20657. + esac
  20658. -# Does compiler simultaneously support -c and -o options?
  20659. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  20660. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  20661. + runpath_var=
  20662. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  20663. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  20664. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  20665. + fi
  20666. + else
  20667. + # PORTME fill in a description of your system's linker (not GNU ld)
  20668. + case $host_os in
  20669. + aix3*)
  20670. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  20671. + _LT_TAGVAR(always_export_symbols, $1)=yes
  20672. + _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'
  20673. + # Note: this linker hardcodes the directories in LIBPATH if there
  20674. + # are no directories specified by -L.
  20675. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20676. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  20677. + # Neither direct hardcoding nor static linking is supported with a
  20678. + # broken collect2.
  20679. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  20680. + fi
  20681. + ;;
  20682. -# Must we lock files when doing compilation?
  20683. -need_locks=$lt_need_locks
  20684. + aix[[4-9]]*)
  20685. + if test "$host_cpu" = ia64; then
  20686. + # On IA64, the linker does run time linking by default, so we don't
  20687. + # have to do anything special.
  20688. + aix_use_runtimelinking=no
  20689. + exp_sym_flag='-Bexport'
  20690. + no_entry_flag=""
  20691. + else
  20692. + # If we're using GNU nm, then we don't want the "-C" option.
  20693. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  20694. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  20695. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  20696. + else
  20697. + _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'
  20698. + fi
  20699. + aix_use_runtimelinking=no
  20700. -# Do we need the lib prefix for modules?
  20701. -need_lib_prefix=$need_lib_prefix
  20702. + # Test if we are trying to use run time linking or normal
  20703. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  20704. + # need to do runtime linking.
  20705. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  20706. + for ld_flag in $LDFLAGS; do
  20707. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  20708. + aix_use_runtimelinking=yes
  20709. + break
  20710. + fi
  20711. + done
  20712. + ;;
  20713. + esac
  20714. -# Do we need a version for libraries?
  20715. -need_version=$need_version
  20716. + exp_sym_flag='-bexport'
  20717. + no_entry_flag='-bnoentry'
  20718. + fi
  20719. -# Whether dlopen is supported.
  20720. -dlopen_support=$enable_dlopen
  20721. + # When large executables or shared objects are built, AIX ld can
  20722. + # have problems creating the table of contents. If linking a library
  20723. + # or program results in "error TOC overflow" add -mminimal-toc to
  20724. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  20725. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  20726. -# Whether dlopen of programs is supported.
  20727. -dlopen_self=$enable_dlopen_self
  20728. + _LT_TAGVAR(archive_cmds, $1)=''
  20729. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20730. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  20731. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  20732. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  20733. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  20734. -# Whether dlopen of statically linked programs is supported.
  20735. -dlopen_self_static=$enable_dlopen_self_static
  20736. + if test "$GCC" = yes; then
  20737. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  20738. + # We only want to do this on AIX 4.2 and lower, the check
  20739. + # below for broken collect2 doesn't work under 4.3+
  20740. + collect2name=`${CC} -print-prog-name=collect2`
  20741. + if test -f "$collect2name" &&
  20742. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  20743. + then
  20744. + # We have reworked collect2
  20745. + :
  20746. + else
  20747. + # We have old collect2
  20748. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  20749. + # It fails to find uninstalled libraries when the uninstalled
  20750. + # path is not listed in the libpath. Setting hardcode_minus_L
  20751. + # to unsupported forces relinking
  20752. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20753. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  20754. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  20755. + fi
  20756. + ;;
  20757. + esac
  20758. + shared_flag='-shared'
  20759. + if test "$aix_use_runtimelinking" = yes; then
  20760. + shared_flag="$shared_flag "'${wl}-G'
  20761. + fi
  20762. + else
  20763. + # not using gcc
  20764. + if test "$host_cpu" = ia64; then
  20765. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  20766. + # chokes on -Wl,-G. The following line is correct:
  20767. + shared_flag='-G'
  20768. + else
  20769. + if test "$aix_use_runtimelinking" = yes; then
  20770. + shared_flag='${wl}-G'
  20771. + else
  20772. + shared_flag='${wl}-bM:SRE'
  20773. + fi
  20774. + fi
  20775. + fi
  20776. -# Compiler flag to prevent dynamic linking.
  20777. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  20778. + # It seems that -bexpall does not export symbols beginning with
  20779. + # underscore (_), so it is better to generate a list of symbols to export.
  20780. + _LT_TAGVAR(always_export_symbols, $1)=yes
  20781. + if test "$aix_use_runtimelinking" = yes; then
  20782. + # Warning - without using the other runtime loading flags (-brtl),
  20783. + # -berok will link without error, but may produce a broken library.
  20784. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  20785. + # Determine the default libpath from the value encoded in an
  20786. + # empty executable.
  20787. + _LT_SYS_MODULE_PATH_AIX
  20788. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  20789. + _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  20790. + else
  20791. + if test "$host_cpu" = ia64; then
  20792. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  20793. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  20794. + _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"
  20795. + else
  20796. + # Determine the default libpath from the value encoded in an
  20797. + # empty executable.
  20798. + _LT_SYS_MODULE_PATH_AIX
  20799. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  20800. + # Warning - without using the other run time loading flags,
  20801. + # -berok will link without error, but may produce a broken library.
  20802. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  20803. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  20804. + # Exported symbols can be pulled into shared objects from archives
  20805. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  20806. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  20807. + # This is similar to how AIX traditionally builds its shared libraries.
  20808. + _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'
  20809. + fi
  20810. + fi
  20811. + ;;
  20812. -# Compiler flag to turn off builtin functions.
  20813. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  20814. + amigaos*)
  20815. + case $host_cpu in
  20816. + powerpc)
  20817. + # see comment about AmigaOS4 .so support
  20818. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  20819. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  20820. + ;;
  20821. + m68k)
  20822. + _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)'
  20823. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  20824. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20825. + ;;
  20826. + esac
  20827. + ;;
  20828. -# Compiler flag to allow reflexive dlopens.
  20829. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  20830. + bsdi[[45]]*)
  20831. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  20832. + ;;
  20833. -# Compiler flag to generate shared objects directly from archives.
  20834. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  20835. + cygwin* | mingw* | pw32*)
  20836. + # When not using gcc, we currently assume that we are using
  20837. + # Microsoft Visual C++.
  20838. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  20839. + # no search path for DLLs.
  20840. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  20841. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  20842. + # Tell ltmain to make .lib files, not .a files.
  20843. + libext=lib
  20844. + # Tell ltmain to make .dll files, not .so files.
  20845. + shrext_cmds=".dll"
  20846. + # FIXME: Setting linknames here is a bad hack.
  20847. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  20848. + # The linker will automatically build a .lib file if we build a DLL.
  20849. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  20850. + # FIXME: Should let the user specify the lib program.
  20851. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  20852. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  20853. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  20854. + ;;
  20855. -# Compiler flag to generate thread-safe objects.
  20856. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  20857. + darwin* | rhapsody*)
  20858. + _LT_DARWIN_LINKER_FEATURES($1)
  20859. + ;;
  20860. -# Library versioning type.
  20861. -version_type=$version_type
  20862. + dgux*)
  20863. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  20864. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  20865. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20866. + ;;
  20867. -# Format of library name prefix.
  20868. -libname_spec=$lt_libname_spec
  20869. + freebsd1*)
  20870. + _LT_TAGVAR(ld_shlibs, $1)=no
  20871. + ;;
  20872. -# List of archive names. First name is the real one, the rest are links.
  20873. -# The last name is the one that the linker finds with -lNAME.
  20874. -library_names_spec=$lt_library_names_spec
  20875. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  20876. + # support. Future versions do this automatically, but an explicit c++rt0.o
  20877. + # does not break anything, and helps significantly (at the cost of a little
  20878. + # extra space).
  20879. + freebsd2.2*)
  20880. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  20881. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  20882. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20883. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20884. + ;;
  20885. -# The coded name of the library, if different from the real name.
  20886. -soname_spec=$lt_soname_spec
  20887. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  20888. + freebsd2*)
  20889. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  20890. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20891. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20892. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20893. + ;;
  20894. -# Commands used to build and install an old-style archive.
  20895. -RANLIB=$lt_RANLIB
  20896. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  20897. -old_postinstall_cmds=$lt_old_postinstall_cmds
  20898. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20899. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  20900. + freebsd* | dragonfly*)
  20901. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  20902. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  20903. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20904. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20905. + ;;
  20906. -# Create an old-style archive from a shared archive.
  20907. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  20908. + hpux9*)
  20909. + if test "$GCC" = yes; then
  20910. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  20911. + else
  20912. + _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'
  20913. + fi
  20914. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  20915. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  20916. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20917. -# Create a temporary old-style archive to link instead of a shared archive.
  20918. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  20919. + # hardcode_minus_L: Not really in the search PATH,
  20920. + # but as the default location of the library.
  20921. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20922. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  20923. + ;;
  20924. -# Commands used to build and install a shared archive.
  20925. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  20926. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  20927. -postinstall_cmds=$lt_postinstall_cmds
  20928. -postuninstall_cmds=$lt_postuninstall_cmds
  20929. + hpux10*)
  20930. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20931. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20932. + else
  20933. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  20934. + fi
  20935. + if test "$with_gnu_ld" = no; then
  20936. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  20937. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  20938. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  20939. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20940. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  20941. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  20942. + # hardcode_minus_L: Not really in the search PATH,
  20943. + # but as the default location of the library.
  20944. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20945. + fi
  20946. + ;;
  20947. -# Commands used to build a loadable module (assumed same as above if empty)
  20948. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  20949. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  20950. + hpux11*)
  20951. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  20952. + case $host_cpu in
  20953. + hppa*64*)
  20954. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20955. + ;;
  20956. + ia64*)
  20957. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20958. + ;;
  20959. + *)
  20960. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20961. + ;;
  20962. + esac
  20963. + else
  20964. + case $host_cpu in
  20965. + hppa*64*)
  20966. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  20967. + ;;
  20968. + ia64*)
  20969. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  20970. + ;;
  20971. + *)
  20972. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  20973. + ;;
  20974. + esac
  20975. + fi
  20976. + if test "$with_gnu_ld" = no; then
  20977. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  20978. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  20979. -# Commands to strip libraries.
  20980. -old_striplib=$lt_old_striplib
  20981. -striplib=$lt_striplib
  20982. + case $host_cpu in
  20983. + hppa*64*|ia64*)
  20984. + _LT_TAGVAR(hardcode_direct, $1)=no
  20985. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  20986. + ;;
  20987. + *)
  20988. + _LT_TAGVAR(hardcode_direct, $1)=yes
  20989. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  20990. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  20991. -# Dependencies to place before the objects being linked to create a
  20992. -# shared library.
  20993. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  20994. + # hardcode_minus_L: Not really in the search PATH,
  20995. + # but as the default location of the library.
  20996. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  20997. + ;;
  20998. + esac
  20999. + fi
  21000. + ;;
  21001. -# Dependencies to place after the objects being linked to create a
  21002. -# shared library.
  21003. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  21004. + irix5* | irix6* | nonstopux*)
  21005. + if test "$GCC" = yes; then
  21006. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  21007. + # Try to use the -exported_symbol ld option, if it does not
  21008. + # work, assume that -exports_file does not work either and
  21009. + # implicitly export all symbols.
  21010. + save_LDFLAGS="$LDFLAGS"
  21011. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  21012. + AC_LINK_IFELSE(int foo(void) {},
  21013. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  21014. + )
  21015. + LDFLAGS="$save_LDFLAGS"
  21016. + else
  21017. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  21018. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  21019. + fi
  21020. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  21021. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  21022. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  21023. + _LT_TAGVAR(inherit_rpath, $1)=yes
  21024. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  21025. + ;;
  21026. -# Dependencies to place before the objects being linked to create a
  21027. -# shared library.
  21028. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  21029. + netbsd*)
  21030. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  21031. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  21032. + else
  21033. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  21034. + fi
  21035. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  21036. + _LT_TAGVAR(hardcode_direct, $1)=yes
  21037. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21038. + ;;
  21039. -# Dependencies to place after the objects being linked to create a
  21040. -# shared library.
  21041. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  21042. + newsos6)
  21043. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21044. + _LT_TAGVAR(hardcode_direct, $1)=yes
  21045. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  21046. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  21047. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21048. + ;;
  21049. -# The library search path used internally by the compiler when linking
  21050. -# a shared library.
  21051. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  21052. + *nto* | *qnx*)
  21053. + ;;
  21054. -# Method to check whether dependent libraries are shared objects.
  21055. -deplibs_check_method=$lt_deplibs_check_method
  21056. + openbsd*)
  21057. + if test -f /usr/libexec/ld.so; then
  21058. + _LT_TAGVAR(hardcode_direct, $1)=yes
  21059. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21060. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  21061. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21062. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  21063. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  21064. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  21065. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  21066. + else
  21067. + case $host_os in
  21068. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  21069. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  21070. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  21071. + ;;
  21072. + *)
  21073. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  21074. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  21075. + ;;
  21076. + esac
  21077. + fi
  21078. + else
  21079. + _LT_TAGVAR(ld_shlibs, $1)=no
  21080. + fi
  21081. + ;;
  21082. -# Command to use when deplibs_check_method == file_magic.
  21083. -file_magic_cmd=$lt_file_magic_cmd
  21084. + os2*)
  21085. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  21086. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  21087. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  21088. + _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'
  21089. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  21090. + ;;
  21091. -# Flag that allows shared libraries with undefined symbols to be built.
  21092. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  21093. + osf3*)
  21094. + if test "$GCC" = yes; then
  21095. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  21096. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  21097. + else
  21098. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  21099. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  21100. + fi
  21101. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  21102. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  21103. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  21104. + ;;
  21105. -# Flag that forces no undefined symbols.
  21106. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  21107. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  21108. + if test "$GCC" = yes; then
  21109. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  21110. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  21111. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  21112. + else
  21113. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  21114. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  21115. + _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~
  21116. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  21117. -# Commands used to finish a libtool library installation in a directory.
  21118. -finish_cmds=$lt_finish_cmds
  21119. + # Both c and cxx compiler support -rpath directly
  21120. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  21121. + fi
  21122. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  21123. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  21124. + ;;
  21125. -# Same as above, but a single script fragment to be evaled but not shown.
  21126. -finish_eval=$lt_finish_eval
  21127. + solaris*)
  21128. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  21129. + if test "$GCC" = yes; then
  21130. + wlarc='${wl}'
  21131. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  21132. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  21133. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  21134. + else
  21135. + case `$CC -V 2>&1` in
  21136. + *"Compilers 5.0"*)
  21137. + wlarc=''
  21138. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21139. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  21140. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  21141. + ;;
  21142. + *)
  21143. + wlarc='${wl}'
  21144. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  21145. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  21146. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  21147. + ;;
  21148. + esac
  21149. + fi
  21150. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  21151. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21152. + case $host_os in
  21153. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  21154. + *)
  21155. + # The compiler driver will combine and reorder linker options,
  21156. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  21157. + # but is careful enough not to reorder.
  21158. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  21159. + if test "$GCC" = yes; then
  21160. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  21161. + else
  21162. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  21163. + fi
  21164. + ;;
  21165. + esac
  21166. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  21167. + ;;
  21168. -# Take the output of nm and produce a listing of raw symbols and C names.
  21169. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  21170. + sunos4*)
  21171. + if test "x$host_vendor" = xsequent; then
  21172. + # Use $CC to link under sequent, because it throws in some extra .o
  21173. + # files that make .init and .fini sections work.
  21174. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  21175. + else
  21176. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  21177. + fi
  21178. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  21179. + _LT_TAGVAR(hardcode_direct, $1)=yes
  21180. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  21181. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21182. + ;;
  21183. -# Transform the output of nm in a proper C declaration
  21184. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  21185. + sysv4)
  21186. + case $host_vendor in
  21187. + sni)
  21188. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21189. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  21190. + ;;
  21191. + siemens)
  21192. + ## LD is ld it makes a PLAMLIB
  21193. + ## CC just makes a GrossModule.
  21194. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  21195. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  21196. + _LT_TAGVAR(hardcode_direct, $1)=no
  21197. + ;;
  21198. + motorola)
  21199. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21200. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  21201. + ;;
  21202. + esac
  21203. + runpath_var='LD_RUN_PATH'
  21204. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21205. + ;;
  21206. -# Transform the output of nm in a C name address pair
  21207. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  21208. + sysv4.3*)
  21209. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21210. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21211. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  21212. + ;;
  21213. -# This is the shared library runtime path variable.
  21214. -runpath_var=$runpath_var
  21215. + sysv4*MP*)
  21216. + if test -d /usr/nec; then
  21217. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21218. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21219. + runpath_var=LD_RUN_PATH
  21220. + hardcode_runpath_var=yes
  21221. + _LT_TAGVAR(ld_shlibs, $1)=yes
  21222. + fi
  21223. + ;;
  21224. -# This is the shared library path variable.
  21225. -shlibpath_var=$shlibpath_var
  21226. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  21227. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  21228. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  21229. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21230. + runpath_var='LD_RUN_PATH'
  21231. -# Is shlibpath searched before the hard-coded library search path?
  21232. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  21233. + if test "$GCC" = yes; then
  21234. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21235. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21236. + else
  21237. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21238. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21239. + fi
  21240. + ;;
  21241. -# How to hardcode a shared library path into an executable.
  21242. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  21243. + sysv5* | sco3.2v5* | sco5v6*)
  21244. + # Note: We can NOT use -z defs as we might desire, because we do not
  21245. + # link with -lc, and that would cause any symbols used from libc to
  21246. + # always be unresolved, which means just about no library would
  21247. + # ever link correctly. If we're not using GNU ld we use -z text
  21248. + # though, which does catch some bad symbols but isn't as heavy-handed
  21249. + # as -z defs.
  21250. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  21251. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  21252. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  21253. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21254. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  21255. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  21256. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  21257. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  21258. + runpath_var='LD_RUN_PATH'
  21259. -# Whether we should hardcode library paths into libraries.
  21260. -hardcode_into_libs=$hardcode_into_libs
  21261. + if test "$GCC" = yes; then
  21262. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21263. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21264. + else
  21265. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21266. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  21267. + fi
  21268. + ;;
  21269. -# Flag to hardcode \$libdir into a binary during linking.
  21270. -# This must work even if \$libdir does not exist.
  21271. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  21272. + uts4*)
  21273. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  21274. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  21275. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  21276. + ;;
  21277. -# If ld is used when linking, flag to hardcode \$libdir into
  21278. -# a binary during linking. This must work even if \$libdir does
  21279. -# not exist.
  21280. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  21281. + *)
  21282. + _LT_TAGVAR(ld_shlibs, $1)=no
  21283. + ;;
  21284. + esac
  21285. -# Whether we need a single -rpath flag with a separated argument.
  21286. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  21287. + if test x$host_vendor = xsni; then
  21288. + case $host in
  21289. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  21290. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  21291. + ;;
  21292. + esac
  21293. + fi
  21294. + fi
  21295. +])
  21296. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  21297. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  21298. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  21299. -# resulting binary.
  21300. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  21301. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  21302. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  21303. -# resulting binary.
  21304. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  21305. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  21306. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  21307. +_LT_DECL([], [extract_expsyms_cmds], [2],
  21308. + [The commands to extract the exported symbol list from a shared archive])
  21309. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  21310. -# the resulting binary.
  21311. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  21312. +#
  21313. +# Do we need to explicitly link libc?
  21314. +#
  21315. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  21316. +x|xyes)
  21317. + # Assume -lc should be added
  21318. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  21319. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  21320. -# and all subsequent libraries and executables linked against it.
  21321. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  21322. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  21323. + case $_LT_TAGVAR(archive_cmds, $1) in
  21324. + *'~'*)
  21325. + # FIXME: we may have to deal with multi-command sequences.
  21326. + ;;
  21327. + '$CC '*)
  21328. + # Test whether the compiler implicitly links with -lc since on some
  21329. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  21330. + # to ld, don't add -lc before -lgcc.
  21331. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  21332. + $RM conftest*
  21333. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  21334. -# Variables whose values should be saved in libtool wrapper scripts and
  21335. -# restored at relink time.
  21336. -variables_saved_for_relink="$variables_saved_for_relink"
  21337. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  21338. + soname=conftest
  21339. + lib=conftest
  21340. + libobjs=conftest.$ac_objext
  21341. + deplibs=
  21342. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  21343. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  21344. + compiler_flags=-v
  21345. + linker_flags=-v
  21346. + verstring=
  21347. + output_objdir=.
  21348. + libname=conftest
  21349. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  21350. + _LT_TAGVAR(allow_undefined_flag, $1)=
  21351. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  21352. + then
  21353. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  21354. + else
  21355. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  21356. + fi
  21357. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  21358. + else
  21359. + cat conftest.err 1>&5
  21360. + fi
  21361. + $RM conftest*
  21362. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  21363. + ;;
  21364. + esac
  21365. + fi
  21366. + ;;
  21367. +esac
  21368. -# Whether libtool must link a program against all its dependency libraries.
  21369. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  21370. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  21371. + [Whether or not to add -lc for building shared libraries])
  21372. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  21373. + [enable_shared_with_static_runtimes], [0],
  21374. + [Whether or not to disallow shared libs when runtime libs are static])
  21375. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  21376. + [Compiler flag to allow reflexive dlopens])
  21377. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  21378. + [Compiler flag to generate shared objects directly from archives])
  21379. +_LT_TAGDECL([], [compiler_needs_object], [1],
  21380. + [Whether the compiler copes with passing no objects directly])
  21381. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  21382. + [Create an old-style archive from a shared archive])
  21383. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  21384. + [Create a temporary old-style archive to link instead of a shared archive])
  21385. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  21386. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  21387. +_LT_TAGDECL([], [module_cmds], [2],
  21388. + [Commands used to build a loadable module if different from building
  21389. + a shared archive.])
  21390. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  21391. +_LT_TAGDECL([], [with_gnu_ld], [1],
  21392. + [Whether we are building with GNU ld or not])
  21393. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  21394. + [Flag that allows shared libraries with undefined symbols to be built])
  21395. +_LT_TAGDECL([], [no_undefined_flag], [1],
  21396. + [Flag that enforces no undefined symbols])
  21397. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  21398. + [Flag to hardcode $libdir into a binary during linking.
  21399. + This must work even if $libdir does not exist])
  21400. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  21401. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  21402. + during linking. This must work even if $libdir does not exist]])
  21403. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  21404. + [Whether we need a single "-rpath" flag with a separated argument])
  21405. +_LT_TAGDECL([], [hardcode_direct], [0],
  21406. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  21407. + DIR into the resulting binary])
  21408. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  21409. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  21410. + DIR into the resulting binary and the resulting library dependency is
  21411. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  21412. + library is relocated])
  21413. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  21414. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  21415. + into the resulting binary])
  21416. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  21417. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  21418. + into the resulting binary])
  21419. +_LT_TAGDECL([], [hardcode_automatic], [0],
  21420. + [Set to "yes" if building a shared library automatically hardcodes DIR
  21421. + into the library and all subsequent libraries and executables linked
  21422. + against it])
  21423. +_LT_TAGDECL([], [inherit_rpath], [0],
  21424. + [Set to yes if linker adds runtime paths of dependent libraries
  21425. + to runtime path list])
  21426. +_LT_TAGDECL([], [link_all_deplibs], [0],
  21427. + [Whether libtool must link a program against all its dependency libraries])
  21428. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  21429. + [Fix the shell variable $srcfile for the compiler])
  21430. +_LT_TAGDECL([], [always_export_symbols], [0],
  21431. + [Set to "yes" if exported symbols are required])
  21432. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  21433. + [The commands to list exported symbols])
  21434. +_LT_TAGDECL([], [exclude_expsyms], [1],
  21435. + [Symbols that should not be listed in the preloaded symbols])
  21436. +_LT_TAGDECL([], [include_expsyms], [1],
  21437. + [Symbols that must always be exported])
  21438. +_LT_TAGDECL([], [prelink_cmds], [2],
  21439. + [Commands necessary for linking programs (against libraries) with templates])
  21440. +_LT_TAGDECL([], [file_list_spec], [1],
  21441. + [Specify filename containing input files])
  21442. +dnl FIXME: Not yet implemented
  21443. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  21444. +dnl [Compiler flag to generate thread safe objects])
  21445. +])# _LT_LINKER_SHLIBS
  21446. -# Compile-time system search path for libraries
  21447. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  21448. -# Run-time system search path for libraries
  21449. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  21450. +# _LT_LANG_C_CONFIG([TAG])
  21451. +# ------------------------
  21452. +# Ensure that the configuration variables for a C compiler are suitably
  21453. +# defined. These variables are subsequently used by _LT_CONFIG to write
  21454. +# the compiler configuration to `libtool'.
  21455. +m4_defun([_LT_LANG_C_CONFIG],
  21456. +[m4_require([_LT_DECL_EGREP])dnl
  21457. +lt_save_CC="$CC"
  21458. +AC_LANG_PUSH(C)
  21459. -# Fix the shell variable \$srcfile for the compiler.
  21460. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  21461. +# Source file extension for C test sources.
  21462. +ac_ext=c
  21463. -# Set to yes if exported symbols are required.
  21464. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  21465. +# Object file extension for compiled C test sources.
  21466. +objext=o
  21467. +_LT_TAGVAR(objext, $1)=$objext
  21468. -# The commands to list exported symbols.
  21469. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  21470. +# Code to be used in simple compile tests
  21471. +lt_simple_compile_test_code="int some_variable = 0;"
  21472. -# The commands to extract the exported symbol list from a shared archive.
  21473. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  21474. +# Code to be used in simple link tests
  21475. +lt_simple_link_test_code='int main(){return(0);}'
  21476. -# Symbols that should not be listed in the preloaded symbols.
  21477. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  21478. +_LT_TAG_COMPILER
  21479. +# Save the default compiler, since it gets overwritten when the other
  21480. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  21481. +compiler_DEFAULT=$CC
  21482. -# Symbols that must always be exported.
  21483. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  21484. +# save warnings/boilerplate of simple test code
  21485. +_LT_COMPILER_BOILERPLATE
  21486. +_LT_LINKER_BOILERPLATE
  21487. -ifelse([$1],[],
  21488. -[# ### END LIBTOOL CONFIG],
  21489. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  21490. +## CAVEAT EMPTOR:
  21491. +## There is no encapsulation within the following macros, do not change
  21492. +## the running order or otherwise move them around unless you know exactly
  21493. +## what you are doing...
  21494. +if test -n "$compiler"; then
  21495. + _LT_COMPILER_NO_RTTI($1)
  21496. + _LT_COMPILER_PIC($1)
  21497. + _LT_COMPILER_C_O($1)
  21498. + _LT_COMPILER_FILE_LOCKS($1)
  21499. + _LT_LINKER_SHLIBS($1)
  21500. + _LT_SYS_DYNAMIC_LINKER($1)
  21501. + _LT_LINKER_HARDCODE_LIBPATH($1)
  21502. + LT_SYS_DLOPEN_SELF
  21503. + _LT_CMD_STRIPLIB
  21504. +
  21505. + # Report which library types will actually be built
  21506. + AC_MSG_CHECKING([if libtool supports shared libraries])
  21507. + AC_MSG_RESULT([$can_build_shared])
  21508. -__EOF__
  21509. + AC_MSG_CHECKING([whether to build shared libraries])
  21510. + test "$can_build_shared" = "no" && enable_shared=no
  21511. -ifelse([$1],[], [
  21512. + # On AIX, shared libraries and static libraries use the same namespace, and
  21513. + # are all built from PIC.
  21514. case $host_os in
  21515. aix3*)
  21516. - cat <<\EOF >> "$cfgfile"
  21517. + test "$enable_shared" = yes && enable_static=no
  21518. + if test -n "$RANLIB"; then
  21519. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  21520. + postinstall_cmds='$RANLIB $lib'
  21521. + fi
  21522. + ;;
  21523. -# AIX sometimes has problems with the GCC collect2 program. For some
  21524. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  21525. -# vanish in a puff of smoke.
  21526. -if test "X${COLLECT_NAMES+set}" != Xset; then
  21527. - COLLECT_NAMES=
  21528. - export COLLECT_NAMES
  21529. -fi
  21530. -EOF
  21531. + aix[[4-9]]*)
  21532. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  21533. + test "$enable_shared" = yes && enable_static=no
  21534. + fi
  21535. ;;
  21536. esac
  21537. + AC_MSG_RESULT([$enable_shared])
  21538. - # We use sed instead of cat because bash on DJGPP gets confused if
  21539. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  21540. - # text mode, it properly converts lines to CR/LF. This bash problem
  21541. - # is reportedly fixed, but why not run on old versions too?
  21542. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  21543. + AC_MSG_CHECKING([whether to build static libraries])
  21544. + # Make sure either enable_shared or enable_static is yes.
  21545. + test "$enable_shared" = yes || enable_static=yes
  21546. + AC_MSG_RESULT([$enable_static])
  21547. - mv -f "$cfgfile" "$ofile" || \
  21548. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  21549. - chmod +x "$ofile"
  21550. -])
  21551. -else
  21552. - # If there is no Makefile yet, we rely on a make rule to execute
  21553. - # `config.status --recheck' to rerun these tests and create the
  21554. - # libtool script then.
  21555. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  21556. - if test -f "$ltmain_in"; then
  21557. - test -f Makefile && make "$ltmain"
  21558. - fi
  21559. + _LT_CONFIG($1)
  21560. fi
  21561. -])# AC_LIBTOOL_CONFIG
  21562. -
  21563. -
  21564. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  21565. -# -------------------------------------------
  21566. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  21567. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  21568. -
  21569. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  21570. +AC_LANG_POP
  21571. +CC="$lt_save_CC"
  21572. +])# _LT_LANG_C_CONFIG
  21573. -if test "$GCC" = yes; then
  21574. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  21575. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  21576. - lt_cv_prog_compiler_rtti_exceptions,
  21577. - [-fno-rtti -fno-exceptions], [],
  21578. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  21579. +# _LT_PROG_CXX
  21580. +# ------------
  21581. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  21582. +# compiler, we have our own version here.
  21583. +m4_defun([_LT_PROG_CXX],
  21584. +[
  21585. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  21586. +AC_PROG_CXX
  21587. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  21588. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  21589. + (test "X$CXX" != "Xg++"))) ; then
  21590. + AC_PROG_CXXCPP
  21591. +else
  21592. + _lt_caught_CXX_error=yes
  21593. fi
  21594. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  21595. +popdef([AC_MSG_ERROR])
  21596. +])# _LT_PROG_CXX
  21597. +dnl aclocal-1.4 backwards compatibility:
  21598. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  21599. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  21600. -# ---------------------------------
  21601. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  21602. -[AC_REQUIRE([AC_CANONICAL_HOST])
  21603. -AC_REQUIRE([AC_PROG_NM])
  21604. -AC_REQUIRE([AC_OBJEXT])
  21605. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  21606. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  21607. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  21608. -[
  21609. -# These are sane defaults that work on at least a few old systems.
  21610. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  21611. -
  21612. -# Character class describing NM global symbol codes.
  21613. -symcode='[[BCDEGRST]]'
  21614. -# Regexp to match symbols that can be accessed directly from C.
  21615. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  21616. +# _LT_LANG_CXX_CONFIG([TAG])
  21617. +# --------------------------
  21618. +# Ensure that the configuration variables for a C++ compiler are suitably
  21619. +# defined. These variables are subsequently used by _LT_CONFIG to write
  21620. +# the compiler configuration to `libtool'.
  21621. +m4_defun([_LT_LANG_CXX_CONFIG],
  21622. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  21623. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  21624. +m4_require([_LT_DECL_EGREP])dnl
  21625. +
  21626. +AC_LANG_PUSH(C++)
  21627. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  21628. +_LT_TAGVAR(allow_undefined_flag, $1)=
  21629. +_LT_TAGVAR(always_export_symbols, $1)=no
  21630. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  21631. +_LT_TAGVAR(compiler_needs_object, $1)=no
  21632. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  21633. +_LT_TAGVAR(hardcode_direct, $1)=no
  21634. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  21635. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  21636. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  21637. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  21638. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  21639. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  21640. +_LT_TAGVAR(hardcode_automatic, $1)=no
  21641. +_LT_TAGVAR(inherit_rpath, $1)=no
  21642. +_LT_TAGVAR(module_cmds, $1)=
  21643. +_LT_TAGVAR(module_expsym_cmds, $1)=
  21644. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  21645. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  21646. +_LT_TAGVAR(no_undefined_flag, $1)=
  21647. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  21648. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  21649. -# Transform an extracted symbol line into a proper C declaration
  21650. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  21651. +# Source file extension for C++ test sources.
  21652. +ac_ext=cpp
  21653. -# Transform an extracted symbol line into symbol name and symbol address
  21654. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  21655. +# Object file extension for compiled C++ test sources.
  21656. +objext=o
  21657. +_LT_TAGVAR(objext, $1)=$objext
  21658. -# Define system-specific variables.
  21659. -case $host_os in
  21660. -aix*)
  21661. - symcode='[[BCDT]]'
  21662. - ;;
  21663. -cygwin* | mingw* | pw32*)
  21664. - symcode='[[ABCDGISTW]]'
  21665. - ;;
  21666. -hpux*) # Its linker distinguishes data from code symbols
  21667. - if test "$host_cpu" = ia64; then
  21668. - symcode='[[ABCDEGRST]]'
  21669. +# No sense in running all these tests if we already determined that
  21670. +# the CXX compiler isn't working. Some variables (like enable_shared)
  21671. +# are currently assumed to apply to all compilers on this platform,
  21672. +# and will be corrupted by setting them based on a non-working compiler.
  21673. +if test "$_lt_caught_CXX_error" != yes; then
  21674. + # Code to be used in simple compile tests
  21675. + lt_simple_compile_test_code="int some_variable = 0;"
  21676. +
  21677. + # Code to be used in simple link tests
  21678. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  21679. +
  21680. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  21681. + _LT_TAG_COMPILER
  21682. +
  21683. + # save warnings/boilerplate of simple test code
  21684. + _LT_COMPILER_BOILERPLATE
  21685. + _LT_LINKER_BOILERPLATE
  21686. +
  21687. + # Allow CC to be a program name with arguments.
  21688. + lt_save_CC=$CC
  21689. + lt_save_LD=$LD
  21690. + lt_save_GCC=$GCC
  21691. + GCC=$GXX
  21692. + lt_save_with_gnu_ld=$with_gnu_ld
  21693. + lt_save_path_LD=$lt_cv_path_LD
  21694. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  21695. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  21696. + else
  21697. + $as_unset lt_cv_prog_gnu_ld
  21698. fi
  21699. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  21700. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  21701. - ;;
  21702. -linux*)
  21703. - if test "$host_cpu" = ia64; then
  21704. - symcode='[[ABCDGIRSTW]]'
  21705. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  21706. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  21707. + if test -n "${lt_cv_path_LDCXX+set}"; then
  21708. + lt_cv_path_LD=$lt_cv_path_LDCXX
  21709. + else
  21710. + $as_unset lt_cv_path_LD
  21711. fi
  21712. - ;;
  21713. -irix* | nonstopux*)
  21714. - symcode='[[BCDEGRST]]'
  21715. - ;;
  21716. -osf*)
  21717. - symcode='[[BCDEGQRST]]'
  21718. - ;;
  21719. -solaris*)
  21720. - symcode='[[BDRT]]'
  21721. - ;;
  21722. -sco3.2v5*)
  21723. - symcode='[[DT]]'
  21724. - ;;
  21725. -sysv4.2uw2*)
  21726. - symcode='[[DT]]'
  21727. - ;;
  21728. -sysv5* | sco5v6* | unixware* | OpenUNIX*)
  21729. - symcode='[[ABDT]]'
  21730. - ;;
  21731. -sysv4)
  21732. - symcode='[[DFNSTU]]'
  21733. - ;;
  21734. -esac
  21735. -
  21736. -# Handle CRLF in mingw tool chain
  21737. -opt_cr=
  21738. -case $build_os in
  21739. -mingw*)
  21740. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  21741. - ;;
  21742. -esac
  21743. -
  21744. -# If we're using GNU nm, then use its standard symbol codes.
  21745. -case `$NM -V 2>&1` in
  21746. -*GNU* | *'with BFD'*)
  21747. - symcode='[[ABCDGIRSTW]]' ;;
  21748. -esac
  21749. -
  21750. -# Try without a prefix undercore, then with it.
  21751. -for ac_symprfx in "" "_"; do
  21752. -
  21753. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  21754. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  21755. -
  21756. - # Write the raw and C identifiers.
  21757. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  21758. -
  21759. - # Check to see that the pipe works correctly.
  21760. - pipe_works=no
  21761. -
  21762. - rm -f conftest*
  21763. - cat > conftest.$ac_ext <<EOF
  21764. -#ifdef __cplusplus
  21765. -extern "C" {
  21766. -#endif
  21767. -char nm_test_var;
  21768. -void nm_test_func(){}
  21769. -#ifdef __cplusplus
  21770. -}
  21771. -#endif
  21772. -int main(){nm_test_var='a';nm_test_func();return(0);}
  21773. -EOF
  21774. -
  21775. - if AC_TRY_EVAL(ac_compile); then
  21776. - # Now try to grab the symbols.
  21777. - nlist=conftest.nm
  21778. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  21779. - # Try sorting and uniquifying the output.
  21780. - if sort "$nlist" | uniq > "$nlist"T; then
  21781. - mv -f "$nlist"T "$nlist"
  21782. - else
  21783. - rm -f "$nlist"T
  21784. - fi
  21785. -
  21786. - # Make sure that we snagged all the symbols we need.
  21787. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  21788. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  21789. - cat <<EOF > conftest.$ac_ext
  21790. -#ifdef __cplusplus
  21791. -extern "C" {
  21792. -#endif
  21793. -
  21794. -EOF
  21795. - # Now generate the symbol file.
  21796. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  21797. -
  21798. - cat <<EOF >> conftest.$ac_ext
  21799. -#if defined (__STDC__) && __STDC__
  21800. -# define lt_ptr_t void *
  21801. -#else
  21802. -# define lt_ptr_t char *
  21803. -# define const
  21804. -#endif
  21805. -
  21806. -/* The mapping between symbol names and symbols. */
  21807. -const struct {
  21808. - const char *name;
  21809. - lt_ptr_t address;
  21810. -}
  21811. -lt_preloaded_symbols[[]] =
  21812. -{
  21813. -EOF
  21814. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  21815. - cat <<\EOF >> conftest.$ac_ext
  21816. - {0, (lt_ptr_t) 0}
  21817. -};
  21818. + test -z "${LDCXX+set}" || LD=$LDCXX
  21819. + CC=${CXX-"c++"}
  21820. + compiler=$CC
  21821. + _LT_TAGVAR(compiler, $1)=$CC
  21822. + _LT_CC_BASENAME([$compiler])
  21823. -#ifdef __cplusplus
  21824. -}
  21825. -#endif
  21826. -EOF
  21827. - # Now try linking the two files.
  21828. - mv conftest.$ac_objext conftstm.$ac_objext
  21829. - lt_save_LIBS="$LIBS"
  21830. - lt_save_CFLAGS="$CFLAGS"
  21831. - LIBS="conftstm.$ac_objext"
  21832. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  21833. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  21834. - pipe_works=yes
  21835. - fi
  21836. - LIBS="$lt_save_LIBS"
  21837. - CFLAGS="$lt_save_CFLAGS"
  21838. - else
  21839. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  21840. - fi
  21841. - else
  21842. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  21843. - fi
  21844. + if test -n "$compiler"; then
  21845. + # We don't want -fno-exception when compiling C++ code, so set the
  21846. + # no_builtin_flag separately
  21847. + if test "$GXX" = yes; then
  21848. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  21849. else
  21850. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  21851. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  21852. fi
  21853. - else
  21854. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  21855. - cat conftest.$ac_ext >&5
  21856. - fi
  21857. - rm -f conftest* conftst*
  21858. -
  21859. - # Do not use the global_symbol_pipe unless it works.
  21860. - if test "$pipe_works" = yes; then
  21861. - break
  21862. - else
  21863. - lt_cv_sys_global_symbol_pipe=
  21864. - fi
  21865. -done
  21866. -])
  21867. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  21868. - lt_cv_sys_global_symbol_to_cdecl=
  21869. -fi
  21870. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  21871. - AC_MSG_RESULT(failed)
  21872. -else
  21873. - AC_MSG_RESULT(ok)
  21874. -fi
  21875. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  21876. + if test "$GXX" = yes; then
  21877. + # Set up default GNU C++ configuration
  21878. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  21879. -# ---------------------------------------
  21880. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  21881. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  21882. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  21883. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  21884. + LT_PATH_LD
  21885. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  21886. - ifelse([$1],[CXX],[
  21887. - # C++ specific cases for pic, static, wl, etc.
  21888. - if test "$GXX" = yes; then
  21889. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  21890. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  21891. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  21892. + # archiving commands below assume that GNU ld is being used.
  21893. + if test "$with_gnu_ld" = yes; then
  21894. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  21895. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  21896. +
  21897. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  21898. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  21899. +
  21900. + # If archive_cmds runs LD, not CC, wlarc should be empty
  21901. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  21902. + # investigate it a little bit more. (MM)
  21903. + wlarc='${wl}'
  21904. +
  21905. + # ancient GNU ld didn't support --whole-archive et. al.
  21906. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  21907. + $GREP 'no-whole-archive' > /dev/null; then
  21908. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  21909. + else
  21910. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  21911. + fi
  21912. + else
  21913. + with_gnu_ld=no
  21914. + wlarc=
  21915. - case $host_os in
  21916. - aix*)
  21917. - # All AIX code is PIC.
  21918. - if test "$host_cpu" = ia64; then
  21919. - # AIX 5 now supports IA64 processor
  21920. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  21921. - fi
  21922. - ;;
  21923. - amigaos*)
  21924. - # FIXME: we need at least 68020 code to build shared libraries, but
  21925. - # adding the `-m68020' flag to GCC prevents building anything better,
  21926. - # like `-m68040'.
  21927. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  21928. - ;;
  21929. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  21930. - # PIC is the default for these OSes.
  21931. - ;;
  21932. - mingw* | cygwin* | os2* | pw32*)
  21933. - # This hack is so that the source file can tell whether it is being
  21934. - # built for inclusion in a dll (and should export symbols for example).
  21935. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  21936. - # (--disable-auto-import) libraries
  21937. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  21938. - ;;
  21939. - darwin* | rhapsody*)
  21940. - # PIC is the default on this platform
  21941. - # Common symbols not allowed in MH_DYLIB files
  21942. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  21943. - ;;
  21944. - *djgpp*)
  21945. - # DJGPP does not support shared libraries at all
  21946. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  21947. - ;;
  21948. - interix3*)
  21949. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  21950. - # Instead, we relocate shared libraries at runtime.
  21951. - ;;
  21952. - sysv4*MP*)
  21953. - if test -d /usr/nec; then
  21954. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  21955. + # A generic and very simple default shared library creation
  21956. + # command for GNU C++ for the case where it uses the native
  21957. + # linker, instead of GNU ld. If possible, this setting should
  21958. + # overridden to take advantage of the native linker features on
  21959. + # the platform it is being used on.
  21960. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  21961. fi
  21962. - ;;
  21963. - hpux*)
  21964. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  21965. - # not for PA HP-UX.
  21966. - case $host_cpu in
  21967. - hppa*64*|ia64*)
  21968. - ;;
  21969. - *)
  21970. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  21971. - ;;
  21972. - esac
  21973. - ;;
  21974. - *)
  21975. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  21976. - ;;
  21977. - esac
  21978. - else
  21979. +
  21980. + # Commands to make compiler produce verbose output that lists
  21981. + # what "hidden" libraries, object files and flags are used when
  21982. + # linking a shared library.
  21983. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  21984. +
  21985. + else
  21986. + GXX=no
  21987. + with_gnu_ld=no
  21988. + wlarc=
  21989. + fi
  21990. +
  21991. + # PORTME: fill in a description of your system's C++ link characteristics
  21992. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  21993. + _LT_TAGVAR(ld_shlibs, $1)=yes
  21994. case $host_os in
  21995. - aix4* | aix5*)
  21996. - # All AIX code is PIC.
  21997. - if test "$host_cpu" = ia64; then
  21998. - # AIX 5 now supports IA64 processor
  21999. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22000. + aix3*)
  22001. + # FIXME: insert proper C++ library support
  22002. + _LT_TAGVAR(ld_shlibs, $1)=no
  22003. + ;;
  22004. + aix[[4-9]]*)
  22005. + if test "$host_cpu" = ia64; then
  22006. + # On IA64, the linker does run time linking by default, so we don't
  22007. + # have to do anything special.
  22008. + aix_use_runtimelinking=no
  22009. + exp_sym_flag='-Bexport'
  22010. + no_entry_flag=""
  22011. + else
  22012. + aix_use_runtimelinking=no
  22013. +
  22014. + # Test if we are trying to use run time linking or normal
  22015. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  22016. + # need to do runtime linking.
  22017. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  22018. + for ld_flag in $LDFLAGS; do
  22019. + case $ld_flag in
  22020. + *-brtl*)
  22021. + aix_use_runtimelinking=yes
  22022. + break
  22023. + ;;
  22024. + esac
  22025. + done
  22026. + ;;
  22027. + esac
  22028. +
  22029. + exp_sym_flag='-bexport'
  22030. + no_entry_flag='-bnoentry'
  22031. + fi
  22032. +
  22033. + # When large executables or shared objects are built, AIX ld can
  22034. + # have problems creating the table of contents. If linking a library
  22035. + # or program results in "error TOC overflow" add -mminimal-toc to
  22036. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  22037. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  22038. +
  22039. + _LT_TAGVAR(archive_cmds, $1)=''
  22040. + _LT_TAGVAR(hardcode_direct, $1)=yes
  22041. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  22042. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  22043. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  22044. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  22045. +
  22046. + if test "$GXX" = yes; then
  22047. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  22048. + # We only want to do this on AIX 4.2 and lower, the check
  22049. + # below for broken collect2 doesn't work under 4.3+
  22050. + collect2name=`${CC} -print-prog-name=collect2`
  22051. + if test -f "$collect2name" &&
  22052. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  22053. + then
  22054. + # We have reworked collect2
  22055. + :
  22056. + else
  22057. + # We have old collect2
  22058. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  22059. + # It fails to find uninstalled libraries when the uninstalled
  22060. + # path is not listed in the libpath. Setting hardcode_minus_L
  22061. + # to unsupported forces relinking
  22062. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  22063. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  22064. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  22065. + fi
  22066. + esac
  22067. + shared_flag='-shared'
  22068. + if test "$aix_use_runtimelinking" = yes; then
  22069. + shared_flag="$shared_flag "'${wl}-G'
  22070. + fi
  22071. + else
  22072. + # not using gcc
  22073. + if test "$host_cpu" = ia64; then
  22074. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  22075. + # chokes on -Wl,-G. The following line is correct:
  22076. + shared_flag='-G'
  22077. + else
  22078. + if test "$aix_use_runtimelinking" = yes; then
  22079. + shared_flag='${wl}-G'
  22080. + else
  22081. + shared_flag='${wl}-bM:SRE'
  22082. + fi
  22083. + fi
  22084. + fi
  22085. +
  22086. + # It seems that -bexpall does not export symbols beginning with
  22087. + # underscore (_), so it is better to generate a list of symbols to
  22088. + # export.
  22089. + _LT_TAGVAR(always_export_symbols, $1)=yes
  22090. + if test "$aix_use_runtimelinking" = yes; then
  22091. + # Warning - without using the other runtime loading flags (-brtl),
  22092. + # -berok will link without error, but may produce a broken library.
  22093. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  22094. + # Determine the default libpath from the value encoded in an empty
  22095. + # executable.
  22096. + _LT_SYS_MODULE_PATH_AIX
  22097. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  22098. +
  22099. + _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  22100. + else
  22101. + if test "$host_cpu" = ia64; then
  22102. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  22103. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  22104. + _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"
  22105. + else
  22106. + # Determine the default libpath from the value encoded in an
  22107. + # empty executable.
  22108. + _LT_SYS_MODULE_PATH_AIX
  22109. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  22110. + # Warning - without using the other run time loading flags,
  22111. + # -berok will link without error, but may produce a broken library.
  22112. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  22113. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  22114. + # Exported symbols can be pulled into shared objects from archives
  22115. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  22116. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  22117. + # This is similar to how AIX traditionally builds its shared
  22118. + # libraries.
  22119. + _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'
  22120. + fi
  22121. + fi
  22122. + ;;
  22123. +
  22124. + beos*)
  22125. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  22126. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  22127. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  22128. + # support --undefined. This deserves some investigation. FIXME
  22129. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22130. else
  22131. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  22132. + _LT_TAGVAR(ld_shlibs, $1)=no
  22133. fi
  22134. ;;
  22135. +
  22136. chorus*)
  22137. - case $cc_basename in
  22138. - cxch68*)
  22139. - # Green Hills C++ Compiler
  22140. - # _LT_AC_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"
  22141. + case $cc_basename in
  22142. + *)
  22143. + # FIXME: insert proper C++ library support
  22144. + _LT_TAGVAR(ld_shlibs, $1)=no
  22145. ;;
  22146. - esac
  22147. + esac
  22148. + ;;
  22149. +
  22150. + cygwin* | mingw* | pw32*)
  22151. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  22152. + # as there is no search path for DLLs.
  22153. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  22154. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  22155. + _LT_TAGVAR(always_export_symbols, $1)=no
  22156. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  22157. +
  22158. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  22159. + _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'
  22160. + # If the export-symbols file already is a .def file (1st line
  22161. + # is EXPORTS), use it as is; otherwise, prepend...
  22162. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  22163. + cp $export_symbols $output_objdir/$soname.def;
  22164. + else
  22165. + echo EXPORTS > $output_objdir/$soname.def;
  22166. + cat $export_symbols >> $output_objdir/$soname.def;
  22167. + fi~
  22168. + $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'
  22169. + else
  22170. + _LT_TAGVAR(ld_shlibs, $1)=no
  22171. + fi
  22172. + ;;
  22173. + darwin* | rhapsody*)
  22174. + _LT_DARWIN_LINKER_FEATURES($1)
  22175. ;;
  22176. - darwin*)
  22177. - # PIC is the default on this platform
  22178. - # Common symbols not allowed in MH_DYLIB files
  22179. - case $cc_basename in
  22180. - xlc*)
  22181. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  22182. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22183. - ;;
  22184. - esac
  22185. - ;;
  22186. +
  22187. dgux*)
  22188. - case $cc_basename in
  22189. - ec++*)
  22190. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  22191. + case $cc_basename in
  22192. + ec++*)
  22193. + # FIXME: insert proper C++ library support
  22194. + _LT_TAGVAR(ld_shlibs, $1)=no
  22195. ;;
  22196. - ghcx*)
  22197. + ghcx*)
  22198. # Green Hills C++ Compiler
  22199. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  22200. + # FIXME: insert proper C++ library support
  22201. + _LT_TAGVAR(ld_shlibs, $1)=no
  22202. ;;
  22203. - *)
  22204. + *)
  22205. + # FIXME: insert proper C++ library support
  22206. + _LT_TAGVAR(ld_shlibs, $1)=no
  22207. ;;
  22208. - esac
  22209. - ;;
  22210. - freebsd* | kfreebsd*-gnu | dragonfly*)
  22211. - # FreeBSD uses GNU C++
  22212. - ;;
  22213. - hpux9* | hpux10* | hpux11*)
  22214. - case $cc_basename in
  22215. - CC*)
  22216. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22217. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  22218. - if test "$host_cpu" != ia64; then
  22219. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  22220. - fi
  22221. + esac
  22222. + ;;
  22223. +
  22224. + freebsd[[12]]*)
  22225. + # C++ shared libraries reported to be fairly broken before
  22226. + # switch to ELF
  22227. + _LT_TAGVAR(ld_shlibs, $1)=no
  22228. + ;;
  22229. +
  22230. + freebsd-elf*)
  22231. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  22232. + ;;
  22233. +
  22234. + freebsd* | dragonfly*)
  22235. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  22236. + # conventions
  22237. + _LT_TAGVAR(ld_shlibs, $1)=yes
  22238. + ;;
  22239. +
  22240. + gnu*)
  22241. + ;;
  22242. +
  22243. + hpux9*)
  22244. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  22245. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22246. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  22247. + _LT_TAGVAR(hardcode_direct, $1)=yes
  22248. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  22249. + # but as the default
  22250. + # location of the library.
  22251. +
  22252. + case $cc_basename in
  22253. + CC*)
  22254. + # FIXME: insert proper C++ library support
  22255. + _LT_TAGVAR(ld_shlibs, $1)=no
  22256. + ;;
  22257. + aCC*)
  22258. + _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'
  22259. + # Commands to make compiler produce verbose output that lists
  22260. + # what "hidden" libraries, object files and flags are used when
  22261. + # linking a shared library.
  22262. + #
  22263. + # There doesn't appear to be a way to prevent this compiler from
  22264. + # explicitly linking system object files so we need to strip them
  22265. + # from the output so that they don't get included in the library
  22266. + # dependencies.
  22267. + 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; $ECHO "X$list" | $Xsed'
  22268. + ;;
  22269. + *)
  22270. + if test "$GXX" = yes; then
  22271. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  22272. + else
  22273. + # FIXME: insert proper C++ library support
  22274. + _LT_TAGVAR(ld_shlibs, $1)=no
  22275. + fi
  22276. + ;;
  22277. + esac
  22278. + ;;
  22279. +
  22280. + hpux10*|hpux11*)
  22281. + if test $with_gnu_ld = no; then
  22282. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  22283. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22284. +
  22285. + case $host_cpu in
  22286. + hppa*64*|ia64*)
  22287. + ;;
  22288. + *)
  22289. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  22290. + ;;
  22291. + esac
  22292. + fi
  22293. + case $host_cpu in
  22294. + hppa*64*|ia64*)
  22295. + _LT_TAGVAR(hardcode_direct, $1)=no
  22296. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  22297. + ;;
  22298. + *)
  22299. + _LT_TAGVAR(hardcode_direct, $1)=yes
  22300. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  22301. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  22302. + # but as the default
  22303. + # location of the library.
  22304. + ;;
  22305. + esac
  22306. +
  22307. + case $cc_basename in
  22308. + CC*)
  22309. + # FIXME: insert proper C++ library support
  22310. + _LT_TAGVAR(ld_shlibs, $1)=no
  22311. ;;
  22312. - aCC*)
  22313. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22314. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  22315. + aCC*)
  22316. case $host_cpu in
  22317. - hppa*64*|ia64*)
  22318. - # +Z the default
  22319. - ;;
  22320. - *)
  22321. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  22322. - ;;
  22323. + hppa*64*)
  22324. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22325. + ;;
  22326. + ia64*)
  22327. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22328. + ;;
  22329. + *)
  22330. + _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'
  22331. + ;;
  22332. esac
  22333. + # Commands to make compiler produce verbose output that lists
  22334. + # what "hidden" libraries, object files and flags are used when
  22335. + # linking a shared library.
  22336. + #
  22337. + # There doesn't appear to be a way to prevent this compiler from
  22338. + # explicitly linking system object files so we need to strip them
  22339. + # from the output so that they don't get included in the library
  22340. + # dependencies.
  22341. + 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; $ECHO "X$list" | $Xsed'
  22342. ;;
  22343. - *)
  22344. + *)
  22345. + if test "$GXX" = yes; then
  22346. + if test $with_gnu_ld = no; then
  22347. + case $host_cpu in
  22348. + hppa*64*)
  22349. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22350. + ;;
  22351. + ia64*)
  22352. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22353. + ;;
  22354. + *)
  22355. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22356. + ;;
  22357. + esac
  22358. + fi
  22359. + else
  22360. + # FIXME: insert proper C++ library support
  22361. + _LT_TAGVAR(ld_shlibs, $1)=no
  22362. + fi
  22363. ;;
  22364. - esac
  22365. - ;;
  22366. - interix*)
  22367. - # This is c89, which is MS Visual C++ (no shared libs)
  22368. - # Anyone wants to do a port?
  22369. - ;;
  22370. - irix5* | irix6* | nonstopux*)
  22371. - case $cc_basename in
  22372. - CC*)
  22373. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22374. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  22375. - # CC pic flag -KPIC is the default.
  22376. + esac
  22377. + ;;
  22378. +
  22379. + interix[[3-9]]*)
  22380. + _LT_TAGVAR(hardcode_direct, $1)=no
  22381. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  22382. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  22383. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  22384. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  22385. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  22386. + # default) and relocated if they conflict, which is a slow very memory
  22387. + # consuming and fragmenting process. To avoid this, we pick a random,
  22388. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  22389. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  22390. + _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'
  22391. + _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'
  22392. + ;;
  22393. + irix5* | irix6*)
  22394. + case $cc_basename in
  22395. + CC*)
  22396. + # SGI C++
  22397. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  22398. +
  22399. + # Archives containing C++ object files must be created using
  22400. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  22401. + # necessary to make sure instantiated templates are included
  22402. + # in the archive.
  22403. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  22404. ;;
  22405. - *)
  22406. + *)
  22407. + if test "$GXX" = yes; then
  22408. + if test "$with_gnu_ld" = no; then
  22409. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  22410. + else
  22411. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  22412. + fi
  22413. + fi
  22414. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  22415. ;;
  22416. - esac
  22417. - ;;
  22418. - linux*)
  22419. - case $cc_basename in
  22420. - KCC*)
  22421. - # KAI C++ Compiler
  22422. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  22423. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  22424. + esac
  22425. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  22426. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22427. + _LT_TAGVAR(inherit_rpath, $1)=yes
  22428. + ;;
  22429. +
  22430. + linux* | k*bsd*-gnu)
  22431. + case $cc_basename in
  22432. + KCC*)
  22433. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  22434. +
  22435. + # KCC will only create a shared library if the output file
  22436. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  22437. + # to its proper name (with version) after linking.
  22438. + _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'
  22439. + _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'
  22440. + # Commands to make compiler produce verbose output that lists
  22441. + # what "hidden" libraries, object files and flags are used when
  22442. + # linking a shared library.
  22443. + #
  22444. + # There doesn't appear to be a way to prevent this compiler from
  22445. + # explicitly linking system object files so we need to strip them
  22446. + # from the output so that they don't get included in the library
  22447. + # dependencies.
  22448. + 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; $ECHO "X$list" | $Xsed'
  22449. +
  22450. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  22451. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  22452. +
  22453. + # Archives containing C++ object files must be created using
  22454. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  22455. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  22456. ;;
  22457. - icpc* | ecpc*)
  22458. + icpc* | ecpc* )
  22459. # Intel C++
  22460. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22461. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  22462. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  22463. - ;;
  22464. - pgCC*)
  22465. - # Portland Group C++ compiler.
  22466. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22467. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  22468. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22469. - ;;
  22470. - cxx*)
  22471. - # Compaq C++
  22472. - # Make sure the PIC flag is empty. It appears that all Alpha
  22473. - # Linux and Compaq Tru64 Unix objects are PIC.
  22474. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  22475. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  22476. + with_gnu_ld=yes
  22477. + # version 8.0 and above of icpc choke on multiply defined symbols
  22478. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  22479. + # earlier do not add the objects themselves.
  22480. + case `$CC -V 2>&1` in
  22481. + *"Version 7."*)
  22482. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22483. + _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'
  22484. + ;;
  22485. + *) # Version 8.0 or newer
  22486. + tmp_idyn=
  22487. + case $host_cpu in
  22488. + ia64*) tmp_idyn=' -i_dynamic';;
  22489. + esac
  22490. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22491. + _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'
  22492. + ;;
  22493. + esac
  22494. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  22495. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  22496. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  22497. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  22498. ;;
  22499. - *)
  22500. - case `$CC -V 2>&1 | sed 5q` in
  22501. - *Sun\ C*)
  22502. - # Sun C++ 5.9
  22503. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  22504. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22505. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  22506. + pgCC* | pgcpp*)
  22507. + # Portland Group C++ compiler
  22508. + case `$CC -V` in
  22509. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  22510. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  22511. + rm -rf $tpldir~
  22512. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  22513. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  22514. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  22515. + rm -rf $tpldir~
  22516. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  22517. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  22518. + $RANLIB $oldlib'
  22519. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  22520. + rm -rf $tpldir~
  22521. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  22522. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  22523. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  22524. + rm -rf $tpldir~
  22525. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  22526. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  22527. + ;;
  22528. + *) # Version 6 will use weak symbols
  22529. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  22530. + _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'
  22531. ;;
  22532. esac
  22533. - ;;
  22534. - esac
  22535. - ;;
  22536. - lynxos*)
  22537. - ;;
  22538. - m88k*)
  22539. - ;;
  22540. - mvs*)
  22541. - case $cc_basename in
  22542. - cxx*)
  22543. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  22544. - ;;
  22545. - *)
  22546. - ;;
  22547. - esac
  22548. - ;;
  22549. - netbsd*)
  22550. - ;;
  22551. - osf3* | osf4* | osf5*)
  22552. - case $cc_basename in
  22553. - KCC*)
  22554. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  22555. - ;;
  22556. - RCC*)
  22557. - # Rational C++ 2.4.1
  22558. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  22559. - ;;
  22560. +
  22561. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  22562. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  22563. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  22564. + ;;
  22565. cxx*)
  22566. - # Digital/Compaq C++
  22567. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22568. - # Make sure the PIC flag is empty. It appears that all Alpha
  22569. - # Linux and Compaq Tru64 Unix objects are PIC.
  22570. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  22571. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  22572. - ;;
  22573. - *)
  22574. - ;;
  22575. - esac
  22576. - ;;
  22577. - psos*)
  22578. - ;;
  22579. - solaris*)
  22580. - case $cc_basename in
  22581. - CC*)
  22582. - # Sun C++ 4.2, 5.x and Centerline C++
  22583. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  22584. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22585. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  22586. - ;;
  22587. - gcx*)
  22588. - # Green Hills C++ Compiler
  22589. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  22590. - ;;
  22591. - *)
  22592. - ;;
  22593. - esac
  22594. - ;;
  22595. - sunos4*)
  22596. - case $cc_basename in
  22597. - CC*)
  22598. - # Sun C++ 4.x
  22599. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  22600. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22601. - ;;
  22602. - lcc*)
  22603. - # Lucid
  22604. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  22605. - ;;
  22606. - *)
  22607. + # Compaq C++
  22608. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22609. + _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'
  22610. +
  22611. + runpath_var=LD_RUN_PATH
  22612. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  22613. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22614. +
  22615. + # Commands to make compiler produce verbose output that lists
  22616. + # what "hidden" libraries, object files and flags are used when
  22617. + # linking a shared library.
  22618. + #
  22619. + # There doesn't appear to be a way to prevent this compiler from
  22620. + # explicitly linking system object files so we need to strip them
  22621. + # from the output so that they don't get included in the library
  22622. + # dependencies.
  22623. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  22624. ;;
  22625. - esac
  22626. - ;;
  22627. - tandem*)
  22628. - case $cc_basename in
  22629. - NCC*)
  22630. - # NonStop-UX NCC 3.20
  22631. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  22632. + xl*)
  22633. + # IBM XL 8.0 on PPC, with GNU ld
  22634. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  22635. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  22636. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  22637. + if test "x$supports_anon_versioning" = xyes; then
  22638. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  22639. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  22640. + echo "local: *; };" >> $output_objdir/$libname.ver~
  22641. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  22642. + fi
  22643. ;;
  22644. *)
  22645. + case `$CC -V 2>&1 | sed 5q` in
  22646. + *Sun\ C*)
  22647. + # Sun C++ 5.9
  22648. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  22649. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22650. + _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'
  22651. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  22652. + _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  22653. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  22654. +
  22655. + # Not sure whether something based on
  22656. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  22657. + # would be better.
  22658. + output_verbose_link_cmd='echo'
  22659. +
  22660. + # Archives containing C++ object files must be created using
  22661. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  22662. + # necessary to make sure instantiated templates are included
  22663. + # in the archive.
  22664. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  22665. + ;;
  22666. + esac
  22667. ;;
  22668. esac
  22669. ;;
  22670. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  22671. - case $cc_basename in
  22672. - CC*)
  22673. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22674. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  22675. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22676. +
  22677. + lynxos*)
  22678. + # FIXME: insert proper C++ library support
  22679. + _LT_TAGVAR(ld_shlibs, $1)=no
  22680. + ;;
  22681. +
  22682. + m88k*)
  22683. + # FIXME: insert proper C++ library support
  22684. + _LT_TAGVAR(ld_shlibs, $1)=no
  22685. + ;;
  22686. +
  22687. + mvs*)
  22688. + case $cc_basename in
  22689. + cxx*)
  22690. + # FIXME: insert proper C++ library support
  22691. + _LT_TAGVAR(ld_shlibs, $1)=no
  22692. + ;;
  22693. + *)
  22694. + # FIXME: insert proper C++ library support
  22695. + _LT_TAGVAR(ld_shlibs, $1)=no
  22696. ;;
  22697. esac
  22698. ;;
  22699. - vxworks*)
  22700. +
  22701. + netbsd*)
  22702. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  22703. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  22704. + wlarc=
  22705. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  22706. + _LT_TAGVAR(hardcode_direct, $1)=yes
  22707. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  22708. + fi
  22709. + # Workaround some broken pre-1.5 toolchains
  22710. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  22711. ;;
  22712. - *)
  22713. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  22714. +
  22715. + *nto* | *qnx*)
  22716. + _LT_TAGVAR(ld_shlibs, $1)=yes
  22717. ;;
  22718. - esac
  22719. - fi
  22720. -],
  22721. -[
  22722. - if test "$GCC" = yes; then
  22723. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22724. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  22725. - case $host_os in
  22726. - aix*)
  22727. - # All AIX code is PIC.
  22728. - if test "$host_cpu" = ia64; then
  22729. - # AIX 5 now supports IA64 processor
  22730. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22731. - fi
  22732. - ;;
  22733. + openbsd2*)
  22734. + # C++ shared libraries are fairly broken
  22735. + _LT_TAGVAR(ld_shlibs, $1)=no
  22736. + ;;
  22737. +
  22738. + openbsd*)
  22739. + if test -f /usr/libexec/ld.so; then
  22740. + _LT_TAGVAR(hardcode_direct, $1)=yes
  22741. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  22742. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  22743. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  22744. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  22745. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22746. + _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'
  22747. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  22748. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  22749. + fi
  22750. + output_verbose_link_cmd=echo
  22751. + else
  22752. + _LT_TAGVAR(ld_shlibs, $1)=no
  22753. + fi
  22754. + ;;
  22755. - amigaos*)
  22756. - # FIXME: we need at least 68020 code to build shared libraries, but
  22757. - # adding the `-m68020' flag to GCC prevents building anything better,
  22758. - # like `-m68040'.
  22759. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  22760. - ;;
  22761. + osf3* | osf4* | osf5*)
  22762. + case $cc_basename in
  22763. + KCC*)
  22764. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  22765. +
  22766. + # KCC will only create a shared library if the output file
  22767. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  22768. + # to its proper name (with version) after linking.
  22769. + _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'
  22770. +
  22771. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  22772. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22773. +
  22774. + # Archives containing C++ object files must be created using
  22775. + # the KAI C++ compiler.
  22776. + case $host in
  22777. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  22778. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  22779. + esac
  22780. + ;;
  22781. + RCC*)
  22782. + # Rational C++ 2.4.1
  22783. + # FIXME: insert proper C++ library support
  22784. + _LT_TAGVAR(ld_shlibs, $1)=no
  22785. + ;;
  22786. + cxx*)
  22787. + case $host in
  22788. + osf3*)
  22789. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  22790. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  22791. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  22792. + ;;
  22793. + *)
  22794. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  22795. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  22796. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  22797. + echo "-hidden">> $lib.exp~
  22798. + $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  22799. + $RM $lib.exp'
  22800. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  22801. + ;;
  22802. + esac
  22803. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  22804. - # PIC is the default for these OSes.
  22805. - ;;
  22806. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22807. - mingw* | cygwin* | pw32* | os2*)
  22808. - # This hack is so that the source file can tell whether it is being
  22809. - # built for inclusion in a dll (and should export symbols for example).
  22810. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  22811. - # (--disable-auto-import) libraries
  22812. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  22813. - ;;
  22814. + # Commands to make compiler produce verbose output that lists
  22815. + # what "hidden" libraries, object files and flags are used when
  22816. + # linking a shared library.
  22817. + #
  22818. + # There doesn't appear to be a way to prevent this compiler from
  22819. + # explicitly linking system object files so we need to strip them
  22820. + # from the output so that they don't get included in the library
  22821. + # dependencies.
  22822. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  22823. + ;;
  22824. + *)
  22825. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  22826. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  22827. + case $host in
  22828. + osf3*)
  22829. + _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  22830. + ;;
  22831. + *)
  22832. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  22833. + ;;
  22834. + esac
  22835. +
  22836. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  22837. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  22838. +
  22839. + # Commands to make compiler produce verbose output that lists
  22840. + # what "hidden" libraries, object files and flags are used when
  22841. + # linking a shared library.
  22842. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  22843. +
  22844. + else
  22845. + # FIXME: insert proper C++ library support
  22846. + _LT_TAGVAR(ld_shlibs, $1)=no
  22847. + fi
  22848. + ;;
  22849. + esac
  22850. + ;;
  22851. - darwin* | rhapsody*)
  22852. - # PIC is the default on this platform
  22853. - # Common symbols not allowed in MH_DYLIB files
  22854. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  22855. - ;;
  22856. + psos*)
  22857. + # FIXME: insert proper C++ library support
  22858. + _LT_TAGVAR(ld_shlibs, $1)=no
  22859. + ;;
  22860. - interix3*)
  22861. - # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  22862. - # Instead, we relocate shared libraries at runtime.
  22863. - ;;
  22864. + sunos4*)
  22865. + case $cc_basename in
  22866. + CC*)
  22867. + # Sun C++ 4.x
  22868. + # FIXME: insert proper C++ library support
  22869. + _LT_TAGVAR(ld_shlibs, $1)=no
  22870. + ;;
  22871. + lcc*)
  22872. + # Lucid
  22873. + # FIXME: insert proper C++ library support
  22874. + _LT_TAGVAR(ld_shlibs, $1)=no
  22875. + ;;
  22876. + *)
  22877. + # FIXME: insert proper C++ library support
  22878. + _LT_TAGVAR(ld_shlibs, $1)=no
  22879. + ;;
  22880. + esac
  22881. + ;;
  22882. - msdosdjgpp*)
  22883. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  22884. - # on systems that don't support them.
  22885. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  22886. - enable_shared=no
  22887. - ;;
  22888. + solaris*)
  22889. + case $cc_basename in
  22890. + CC*)
  22891. + # Sun C++ 4.2, 5.x and Centerline C++
  22892. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  22893. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  22894. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  22895. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  22896. + $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'
  22897. +
  22898. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  22899. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  22900. + case $host_os in
  22901. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  22902. + *)
  22903. + # The compiler driver will combine and reorder linker options,
  22904. + # but understands `-z linker_flag'.
  22905. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  22906. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  22907. + ;;
  22908. + esac
  22909. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  22910. - sysv4*MP*)
  22911. - if test -d /usr/nec; then
  22912. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  22913. - fi
  22914. - ;;
  22915. + output_verbose_link_cmd='echo'
  22916. - hpux*)
  22917. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  22918. - # not for PA HP-UX.
  22919. - case $host_cpu in
  22920. - hppa*64*|ia64*)
  22921. - # +Z the default
  22922. - ;;
  22923. - *)
  22924. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  22925. - ;;
  22926. - esac
  22927. - ;;
  22928. + # Archives containing C++ object files must be created using
  22929. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  22930. + # necessary to make sure instantiated templates are included
  22931. + # in the archive.
  22932. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  22933. + ;;
  22934. + gcx*)
  22935. + # Green Hills C++ Compiler
  22936. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  22937. - *)
  22938. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  22939. - ;;
  22940. - esac
  22941. - else
  22942. - # PORTME Check for flag to pass linker flags through the system compiler.
  22943. - case $host_os in
  22944. - aix*)
  22945. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22946. - if test "$host_cpu" = ia64; then
  22947. - # AIX 5 now supports IA64 processor
  22948. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  22949. - else
  22950. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  22951. - fi
  22952. - ;;
  22953. - darwin*)
  22954. - # PIC is the default on this platform
  22955. - # Common symbols not allowed in MH_DYLIB files
  22956. - case $cc_basename in
  22957. - xlc*)
  22958. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  22959. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  22960. - ;;
  22961. - esac
  22962. - ;;
  22963. + # The C++ compiler must be used to create the archive.
  22964. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  22965. + ;;
  22966. + *)
  22967. + # GNU C++ compiler with Solaris linker
  22968. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  22969. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  22970. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  22971. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  22972. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  22973. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  22974. +
  22975. + # Commands to make compiler produce verbose output that lists
  22976. + # what "hidden" libraries, object files and flags are used when
  22977. + # linking a shared library.
  22978. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  22979. + else
  22980. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  22981. + # platform.
  22982. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  22983. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  22984. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  22985. +
  22986. + # Commands to make compiler produce verbose output that lists
  22987. + # what "hidden" libraries, object files and flags are used when
  22988. + # linking a shared library.
  22989. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  22990. + fi
  22991. +
  22992. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  22993. + case $host_os in
  22994. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  22995. + *)
  22996. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  22997. + ;;
  22998. + esac
  22999. + fi
  23000. + ;;
  23001. + esac
  23002. + ;;
  23003. - mingw* | cygwin* | pw32* | os2*)
  23004. - # This hack is so that the source file can tell whether it is being
  23005. - # built for inclusion in a dll (and should export symbols for example).
  23006. - # Although the cygwin gcc ignores -fPIC, still need this for old-style
  23007. - # (--disable-auto-import) libraries
  23008. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  23009. - ;;
  23010. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  23011. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  23012. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  23013. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  23014. + runpath_var='LD_RUN_PATH'
  23015. - hpux9* | hpux10* | hpux11*)
  23016. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23017. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23018. - # not for PA HP-UX.
  23019. - case $host_cpu in
  23020. - hppa*64*|ia64*)
  23021. - # +Z the default
  23022. - ;;
  23023. - *)
  23024. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  23025. - ;;
  23026. + case $cc_basename in
  23027. + CC*)
  23028. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23029. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23030. + ;;
  23031. + *)
  23032. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23033. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23034. + ;;
  23035. esac
  23036. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23037. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  23038. ;;
  23039. - irix5* | irix6* | nonstopux*)
  23040. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23041. - # PIC (with -KPIC) is the default.
  23042. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  23043. - ;;
  23044. + sysv5* | sco3.2v5* | sco5v6*)
  23045. + # Note: We can NOT use -z defs as we might desire, because we do not
  23046. + # link with -lc, and that would cause any symbols used from libc to
  23047. + # always be unresolved, which means just about no library would
  23048. + # ever link correctly. If we're not using GNU ld we use -z text
  23049. + # though, which does catch some bad symbols but isn't as heavy-handed
  23050. + # as -z defs.
  23051. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  23052. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  23053. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  23054. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  23055. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  23056. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  23057. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  23058. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  23059. + runpath_var='LD_RUN_PATH'
  23060. - newsos6)
  23061. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23062. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23063. + case $cc_basename in
  23064. + CC*)
  23065. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23066. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23067. + ;;
  23068. + *)
  23069. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23070. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  23071. + ;;
  23072. + esac
  23073. ;;
  23074. - linux*)
  23075. - case $cc_basename in
  23076. - icc* | ecc*)
  23077. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23078. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23079. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  23080. - ;;
  23081. - pgcc* | pgf77* | pgf90* | pgf95*)
  23082. - # Portland Group compilers (*not* the Pentium gcc compiler,
  23083. - # which looks to be a dead project)
  23084. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23085. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  23086. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23087. - ;;
  23088. - ccc*)
  23089. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23090. - # All Alpha code is PIC.
  23091. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  23092. + tandem*)
  23093. + case $cc_basename in
  23094. + NCC*)
  23095. + # NonStop-UX NCC 3.20
  23096. + # FIXME: insert proper C++ library support
  23097. + _LT_TAGVAR(ld_shlibs, $1)=no
  23098. + ;;
  23099. + *)
  23100. + # FIXME: insert proper C++ library support
  23101. + _LT_TAGVAR(ld_shlibs, $1)=no
  23102. + ;;
  23103. + esac
  23104. ;;
  23105. - como)
  23106. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-lopt='
  23107. +
  23108. + vxworks*)
  23109. + # FIXME: insert proper C++ library support
  23110. + _LT_TAGVAR(ld_shlibs, $1)=no
  23111. ;;
  23112. +
  23113. *)
  23114. - case `$CC -V 2>&1 | sed 5q` in
  23115. - *Sun\ C*)
  23116. - # Sun C 5.9
  23117. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23118. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23119. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23120. - ;;
  23121. - *Sun\ F*)
  23122. - # Sun Fortran 8.3 passes all unrecognized flags to the linker
  23123. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23124. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23125. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  23126. - ;;
  23127. - esac
  23128. - ;;
  23129. - esac
  23130. - ;;
  23131. + # FIXME: insert proper C++ library support
  23132. + _LT_TAGVAR(ld_shlibs, $1)=no
  23133. + ;;
  23134. + esac
  23135. - osf3* | osf4* | osf5*)
  23136. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23137. - # All OSF/1 code is PIC.
  23138. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  23139. - ;;
  23140. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  23141. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  23142. - solaris*)
  23143. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23144. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23145. - case $cc_basename in
  23146. - f77* | f90* | f95*)
  23147. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  23148. - *)
  23149. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  23150. - esac
  23151. - ;;
  23152. + _LT_TAGVAR(GCC, $1)="$GXX"
  23153. + _LT_TAGVAR(LD, $1)="$LD"
  23154. +
  23155. + ## CAVEAT EMPTOR:
  23156. + ## There is no encapsulation within the following macros, do not change
  23157. + ## the running order or otherwise move them around unless you know exactly
  23158. + ## what you are doing...
  23159. + _LT_SYS_HIDDEN_LIBDEPS($1)
  23160. + _LT_COMPILER_PIC($1)
  23161. + _LT_COMPILER_C_O($1)
  23162. + _LT_COMPILER_FILE_LOCKS($1)
  23163. + _LT_LINKER_SHLIBS($1)
  23164. + _LT_SYS_DYNAMIC_LINKER($1)
  23165. + _LT_LINKER_HARDCODE_LIBPATH($1)
  23166. +
  23167. + _LT_CONFIG($1)
  23168. + fi # test -n "$compiler"
  23169. +
  23170. + CC=$lt_save_CC
  23171. + LDCXX=$LD
  23172. + LD=$lt_save_LD
  23173. + GCC=$lt_save_GCC
  23174. + with_gnu_ld=$lt_save_with_gnu_ld
  23175. + lt_cv_path_LDCXX=$lt_cv_path_LD
  23176. + lt_cv_path_LD=$lt_save_path_LD
  23177. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  23178. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  23179. +fi # test "$_lt_caught_CXX_error" != yes
  23180. +
  23181. +AC_LANG_POP
  23182. +])# _LT_LANG_CXX_CONFIG
  23183. +
  23184. +
  23185. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  23186. +# ---------------------------------
  23187. +# Figure out "hidden" library dependencies from verbose
  23188. +# compiler output when linking a shared library.
  23189. +# Parse the compiler output and extract the necessary
  23190. +# objects, libraries and library flags.
  23191. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  23192. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  23193. +# Dependencies to place before and after the object being linked:
  23194. +_LT_TAGVAR(predep_objects, $1)=
  23195. +_LT_TAGVAR(postdep_objects, $1)=
  23196. +_LT_TAGVAR(predeps, $1)=
  23197. +_LT_TAGVAR(postdeps, $1)=
  23198. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  23199. +
  23200. +dnl we can't use the lt_simple_compile_test_code here,
  23201. +dnl because it contains code intended for an executable,
  23202. +dnl not a library. It's possible we should let each
  23203. +dnl tag define a new lt_????_link_test_code variable,
  23204. +dnl but it's only used here...
  23205. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  23206. +int a;
  23207. +void foo (void) { a = 0; }
  23208. +_LT_EOF
  23209. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  23210. +class Foo
  23211. +{
  23212. +public:
  23213. + Foo (void) { a = 0; }
  23214. +private:
  23215. + int a;
  23216. +};
  23217. +_LT_EOF
  23218. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  23219. + subroutine foo
  23220. + implicit none
  23221. + integer*4 a
  23222. + a=0
  23223. + return
  23224. + end
  23225. +_LT_EOF
  23226. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  23227. + subroutine foo
  23228. + implicit none
  23229. + integer a
  23230. + a=0
  23231. + return
  23232. + end
  23233. +_LT_EOF
  23234. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  23235. +public class foo {
  23236. + private int a;
  23237. + public void bar (void) {
  23238. + a = 0;
  23239. + }
  23240. +};
  23241. +_LT_EOF
  23242. +])
  23243. +dnl Parse the compiler output and extract the necessary
  23244. +dnl objects, libraries and library flags.
  23245. +if AC_TRY_EVAL(ac_compile); then
  23246. + # Parse the compiler output and extract the necessary
  23247. + # objects, libraries and library flags.
  23248. +
  23249. + # Sentinel used to keep track of whether or not we are before
  23250. + # the conftest object file.
  23251. + pre_test_object_deps_done=no
  23252. - sunos4*)
  23253. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  23254. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  23255. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23256. - ;;
  23257. + for p in `eval "$output_verbose_link_cmd"`; do
  23258. + case $p in
  23259. - sysv4 | sysv4.2uw2* | sysv4.3*)
  23260. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23261. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23262. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23263. - ;;
  23264. + -L* | -R* | -l*)
  23265. + # Some compilers place space between "-{L,R}" and the path.
  23266. + # Remove the space.
  23267. + if test $p = "-L" ||
  23268. + test $p = "-R"; then
  23269. + prev=$p
  23270. + continue
  23271. + else
  23272. + prev=
  23273. + fi
  23274. - sysv4*MP*)
  23275. - if test -d /usr/nec ;then
  23276. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  23277. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23278. - fi
  23279. - ;;
  23280. + if test "$pre_test_object_deps_done" = no; then
  23281. + case $p in
  23282. + -L* | -R*)
  23283. + # Internal compiler library paths should come after those
  23284. + # provided the user. The postdeps already come after the
  23285. + # user supplied libs so there is no need to process them.
  23286. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  23287. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  23288. + else
  23289. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  23290. + fi
  23291. + ;;
  23292. + # The "-l" case would never come before the object being
  23293. + # linked, so don't bother handling this case.
  23294. + esac
  23295. + else
  23296. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  23297. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  23298. + else
  23299. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  23300. + fi
  23301. + fi
  23302. + ;;
  23303. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  23304. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23305. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  23306. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23307. - ;;
  23308. + *.$objext)
  23309. + # This assumes that the test object file only shows up
  23310. + # once in the compiler output.
  23311. + if test "$p" = "conftest.$objext"; then
  23312. + pre_test_object_deps_done=yes
  23313. + continue
  23314. + fi
  23315. - unicos*)
  23316. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  23317. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  23318. - ;;
  23319. + if test "$pre_test_object_deps_done" = no; then
  23320. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  23321. + _LT_TAGVAR(predep_objects, $1)="$p"
  23322. + else
  23323. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  23324. + fi
  23325. + else
  23326. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  23327. + _LT_TAGVAR(postdep_objects, $1)="$p"
  23328. + else
  23329. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  23330. + fi
  23331. + fi
  23332. + ;;
  23333. - uts4*)
  23334. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  23335. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  23336. - ;;
  23337. + *) ;; # Ignore the rest.
  23338. - *)
  23339. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  23340. - ;;
  23341. esac
  23342. - fi
  23343. -])
  23344. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  23345. + done
  23346. -#
  23347. -# Check to make sure the PIC flag actually works.
  23348. -#
  23349. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  23350. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  23351. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  23352. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  23353. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  23354. - "" | " "*) ;;
  23355. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  23356. - esac],
  23357. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  23358. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  23359. + # Clean up.
  23360. + rm -f a.out a.exe
  23361. +else
  23362. + echo "libtool.m4: error: problem compiling $1 test program"
  23363. fi
  23364. -case $host_os in
  23365. - # For platforms which do not support PIC, -DPIC is meaningless:
  23366. - *djgpp*)
  23367. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  23368. - ;;
  23369. - *)
  23370. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  23371. - ;;
  23372. -esac
  23373. -
  23374. -#
  23375. -# Check to make sure the static flag actually works.
  23376. -#
  23377. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  23378. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  23379. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  23380. - $lt_tmp_static_flag,
  23381. - [],
  23382. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  23383. -])
  23384. +$RM -f confest.$objext
  23385. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  23386. -# ------------------------------------
  23387. -# See if the linker supports building shared libraries.
  23388. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  23389. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  23390. -ifelse([$1],[CXX],[
  23391. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  23392. - case $host_os in
  23393. - aix4* | aix5*)
  23394. - # If we're using GNU nm, then we don't want the "-C" option.
  23395. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  23396. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  23397. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  23398. - else
  23399. - _LT_AC_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'
  23400. - fi
  23401. - ;;
  23402. - pw32*)
  23403. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  23404. - ;;
  23405. - cygwin* | mingw*)
  23406. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  23407. - ;;
  23408. - *)
  23409. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  23410. +# PORTME: override above test on systems where it is broken
  23411. +m4_if([$1], [CXX],
  23412. +[case $host_os in
  23413. +interix[[3-9]]*)
  23414. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  23415. + # hack all around it, let's just trust "g++" to DTRT.
  23416. + _LT_TAGVAR(predep_objects,$1)=
  23417. + _LT_TAGVAR(postdep_objects,$1)=
  23418. + _LT_TAGVAR(postdeps,$1)=
  23419. ;;
  23420. - esac
  23421. -],[
  23422. - runpath_var=
  23423. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  23424. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  23425. - _LT_AC_TAGVAR(archive_cmds, $1)=
  23426. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  23427. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  23428. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  23429. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  23430. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  23431. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  23432. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  23433. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  23434. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  23435. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  23436. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  23437. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  23438. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  23439. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  23440. - _LT_AC_TAGVAR(module_cmds, $1)=
  23441. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  23442. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  23443. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  23444. - # include_expsyms should be a list of space-separated symbols to be *always*
  23445. - # included in the symbol list
  23446. - _LT_AC_TAGVAR(include_expsyms, $1)=
  23447. - # exclude_expsyms can be an extended regexp of symbols to exclude
  23448. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  23449. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  23450. - # as well as any symbol that contains `d'.
  23451. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  23452. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  23453. - # platforms (ab)use it in PIC code, but their linkers get confused if
  23454. - # the symbol is explicitly referenced. Since portable code cannot
  23455. - # rely on this symbol name, it's probably fine to never include it in
  23456. - # preloaded symbol tables.
  23457. - extract_expsyms_cmds=
  23458. - # Just being paranoid about ensuring that cc_basename is set.
  23459. - _LT_CC_BASENAME([$compiler])
  23460. - case $host_os in
  23461. - cygwin* | mingw* | pw32*)
  23462. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  23463. - # When not using gcc, we currently assume that we are using
  23464. - # Microsoft Visual C++.
  23465. - if test "$GCC" != yes; then
  23466. - with_gnu_ld=no
  23467. - fi
  23468. - ;;
  23469. - interix*)
  23470. - # we just hope/assume this is gcc and not c89 (= MSVC++)
  23471. - with_gnu_ld=yes
  23472. - ;;
  23473. - openbsd*)
  23474. - with_gnu_ld=no
  23475. - ;;
  23476. - esac
  23477. -
  23478. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  23479. - if test "$with_gnu_ld" = yes; then
  23480. - # If archive_cmds runs LD, not CC, wlarc should be empty
  23481. - wlarc='${wl}'
  23482. -
  23483. - # Set some defaults for GNU ld with shared library support. These
  23484. - # are reset later if shared libraries are not supported. Putting them
  23485. - # here allows them to be overridden if necessary.
  23486. - runpath_var=LD_RUN_PATH
  23487. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  23488. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  23489. - # ancient GNU ld didn't support --whole-archive et. al.
  23490. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  23491. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  23492. - else
  23493. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  23494. - fi
  23495. - supports_anon_versioning=no
  23496. - case `$LD -v 2>/dev/null` in
  23497. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  23498. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  23499. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  23500. - *\ 2.11.*) ;; # other 2.11 versions
  23501. - *) supports_anon_versioning=yes ;;
  23502. - esac
  23503. -
  23504. - # See if GNU ld supports shared libraries.
  23505. - case $host_os in
  23506. - aix3* | aix4* | aix5*)
  23507. - # On AIX/PPC, the GNU linker is very broken
  23508. - if test "$host_cpu" != ia64; then
  23509. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23510. - cat <<EOF 1>&2
  23511. -
  23512. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  23513. -*** to be unable to reliably create shared libraries on AIX.
  23514. -*** Therefore, libtool is disabling shared libraries support. If you
  23515. -*** really care for shared libraries, you may want to modify your PATH
  23516. -*** so that a non-GNU linker is found, and then restart.
  23517. -
  23518. -EOF
  23519. - fi
  23520. - ;;
  23521. - amigaos*)
  23522. - _LT_AC_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)'
  23523. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  23524. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  23525. -
  23526. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  23527. - # that the semantics of dynamic libraries on AmigaOS, at least up
  23528. - # to version 4, is to share data among multiple programs linked
  23529. - # with the same dynamic library. Since this doesn't match the
  23530. - # behavior of shared libraries on other platforms, we can't use
  23531. - # them.
  23532. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23533. - ;;
  23534. +linux*)
  23535. + case `$CC -V 2>&1 | sed 5q` in
  23536. + *Sun\ C*)
  23537. + # Sun C++ 5.9
  23538. - beos*)
  23539. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23540. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  23541. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  23542. - # support --undefined. This deserves some investigation. FIXME
  23543. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23544. - else
  23545. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23546. - fi
  23547. + # The more standards-conforming stlport4 library is
  23548. + # incompatible with the Cstd library. Avoid specifying
  23549. + # it if it's in CXXFLAGS. Ignore libCrun as
  23550. + # -library=stlport4 depends on it.
  23551. + case " $CXX $CXXFLAGS " in
  23552. + *" -library=stlport4 "*)
  23553. + solaris_use_stlport4=yes
  23554. ;;
  23555. + esac
  23556. - cygwin* | mingw* | pw32*)
  23557. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  23558. - # as there is no search path for DLLs.
  23559. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  23560. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  23561. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  23562. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  23563. - _LT_AC_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'
  23564. -
  23565. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  23566. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  23567. - # If the export-symbols file already is a .def file (1st line
  23568. - # is EXPORTS), use it as is; otherwise, prepend...
  23569. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  23570. - cp $export_symbols $output_objdir/$soname.def;
  23571. - else
  23572. - echo EXPORTS > $output_objdir/$soname.def;
  23573. - cat $export_symbols >> $output_objdir/$soname.def;
  23574. - fi~
  23575. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  23576. - else
  23577. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23578. - fi
  23579. - ;;
  23580. + if test "$solaris_use_stlport4" != yes; then
  23581. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  23582. + fi
  23583. + ;;
  23584. + esac
  23585. + ;;
  23586. - interix3*)
  23587. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  23588. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  23589. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  23590. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  23591. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  23592. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  23593. - # default) and relocated if they conflict, which is a slow very memory
  23594. - # consuming and fragmenting process. To avoid this, we pick a random,
  23595. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  23596. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  23597. - _LT_AC_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'
  23598. - _LT_AC_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'
  23599. +solaris*)
  23600. + case $cc_basename in
  23601. + CC*)
  23602. + # The more standards-conforming stlport4 library is
  23603. + # incompatible with the Cstd library. Avoid specifying
  23604. + # it if it's in CXXFLAGS. Ignore libCrun as
  23605. + # -library=stlport4 depends on it.
  23606. + case " $CXX $CXXFLAGS " in
  23607. + *" -library=stlport4 "*)
  23608. + solaris_use_stlport4=yes
  23609. ;;
  23610. + esac
  23611. - linux*)
  23612. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23613. - tmp_addflag=
  23614. - case $cc_basename,$host_cpu in
  23615. - pgcc*) # Portland Group C compiler
  23616. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  23617. - tmp_addflag=' $pic_flag'
  23618. - ;;
  23619. - pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  23620. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
  23621. - tmp_addflag=' $pic_flag -Mnomain' ;;
  23622. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  23623. - tmp_addflag=' -i_dynamic' ;;
  23624. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  23625. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  23626. - ifc* | ifort*) # Intel Fortran compiler
  23627. - tmp_addflag=' -nofor_main' ;;
  23628. - esac
  23629. - case `$CC -V 2>&1 | sed 5q` in
  23630. - *Sun\ C*) # Sun C 5.9
  23631. - _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive /dev/null'
  23632. - tmp_sharedflag='-G' ;;
  23633. - *Sun\ F*) # Sun Fortran 8.3
  23634. - tmp_sharedflag='-G' ;;
  23635. - *)
  23636. - tmp_sharedflag='-shared' ;;
  23637. - esac
  23638. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23639. + # Adding this requires a known-good setup of shared libraries for
  23640. + # Sun compiler versions before 5.6, else PIC objects from an old
  23641. + # archive will be linked into the output, leading to subtle bugs.
  23642. + if test "$solaris_use_stlport4" != yes; then
  23643. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  23644. + fi
  23645. + ;;
  23646. + esac
  23647. + ;;
  23648. +esac
  23649. +])
  23650. - if test $supports_anon_versioning = yes; then
  23651. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  23652. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  23653. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  23654. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  23655. - fi
  23656. - else
  23657. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23658. - fi
  23659. - ;;
  23660. +case " $_LT_TAGVAR(postdeps, $1) " in
  23661. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  23662. +esac
  23663. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  23664. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  23665. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  23666. +fi
  23667. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  23668. + [The directories searched by this compiler when creating a shared library])
  23669. +_LT_TAGDECL([], [predep_objects], [1],
  23670. + [Dependencies to place before and after the objects being linked to
  23671. + create a shared library])
  23672. +_LT_TAGDECL([], [postdep_objects], [1])
  23673. +_LT_TAGDECL([], [predeps], [1])
  23674. +_LT_TAGDECL([], [postdeps], [1])
  23675. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  23676. + [The library search path used internally by the compiler when linking
  23677. + a shared library])
  23678. +])# _LT_SYS_HIDDEN_LIBDEPS
  23679. +
  23680. +
  23681. +# _LT_PROG_F77
  23682. +# ------------
  23683. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  23684. +# if there is no fortran compiler, we have our own version here.
  23685. +m4_defun([_LT_PROG_F77],
  23686. +[
  23687. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  23688. +AC_PROG_F77
  23689. +if test -z "$F77" || test "X$F77" = "Xno"; then
  23690. + _lt_disable_F77=yes
  23691. +fi
  23692. +popdef([AC_MSG_ERROR])
  23693. +])# _LT_PROG_F77
  23694. - netbsd*)
  23695. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  23696. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  23697. - wlarc=
  23698. - else
  23699. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23700. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  23701. - fi
  23702. - ;;
  23703. +dnl aclocal-1.4 backwards compatibility:
  23704. +dnl AC_DEFUN([_LT_PROG_F77], [])
  23705. - solaris*)
  23706. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  23707. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23708. - cat <<EOF 1>&2
  23709. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  23710. -*** create shared libraries on Solaris systems. Therefore, libtool
  23711. -*** is disabling shared libraries support. We urge you to upgrade GNU
  23712. -*** binutils to release 2.9.1 or newer. Another option is to modify
  23713. -*** your PATH or compiler configuration so that the native linker is
  23714. -*** used, and then restart.
  23715. +# _LT_LANG_F77_CONFIG([TAG])
  23716. +# --------------------------
  23717. +# Ensure that the configuration variables for a Fortran 77 compiler are
  23718. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  23719. +# to write the compiler configuration to `libtool'.
  23720. +m4_defun([_LT_LANG_F77_CONFIG],
  23721. +[AC_REQUIRE([_LT_PROG_F77])dnl
  23722. +AC_LANG_PUSH(Fortran 77)
  23723. -EOF
  23724. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23725. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23726. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  23727. - else
  23728. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23729. - fi
  23730. - ;;
  23731. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  23732. +_LT_TAGVAR(allow_undefined_flag, $1)=
  23733. +_LT_TAGVAR(always_export_symbols, $1)=no
  23734. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  23735. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  23736. +_LT_TAGVAR(hardcode_direct, $1)=no
  23737. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  23738. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  23739. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  23740. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  23741. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  23742. +_LT_TAGVAR(hardcode_automatic, $1)=no
  23743. +_LT_TAGVAR(inherit_rpath, $1)=no
  23744. +_LT_TAGVAR(module_cmds, $1)=
  23745. +_LT_TAGVAR(module_expsym_cmds, $1)=
  23746. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  23747. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  23748. +_LT_TAGVAR(no_undefined_flag, $1)=
  23749. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  23750. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  23751. - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  23752. - case `$LD -v 2>&1` in
  23753. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  23754. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23755. - cat <<_LT_EOF 1>&2
  23756. +# Source file extension for f77 test sources.
  23757. +ac_ext=f
  23758. -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  23759. -*** reliably create shared libraries on SCO systems. Therefore, libtool
  23760. -*** is disabling shared libraries support. We urge you to upgrade GNU
  23761. -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  23762. -*** your PATH or compiler configuration so that the native linker is
  23763. -*** used, and then restart.
  23764. +# Object file extension for compiled f77 test sources.
  23765. +objext=o
  23766. +_LT_TAGVAR(objext, $1)=$objext
  23767. -_LT_EOF
  23768. - ;;
  23769. - *)
  23770. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23771. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  23772. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  23773. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
  23774. - else
  23775. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23776. - fi
  23777. - ;;
  23778. - esac
  23779. - ;;
  23780. +# No sense in running all these tests if we already determined that
  23781. +# the F77 compiler isn't working. Some variables (like enable_shared)
  23782. +# are currently assumed to apply to all compilers on this platform,
  23783. +# and will be corrupted by setting them based on a non-working compiler.
  23784. +if test "$_lt_disable_F77" != yes; then
  23785. + # Code to be used in simple compile tests
  23786. + lt_simple_compile_test_code="\
  23787. + subroutine t
  23788. + return
  23789. + end
  23790. +"
  23791. - sunos4*)
  23792. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  23793. - wlarc=
  23794. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  23795. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  23796. - ;;
  23797. + # Code to be used in simple link tests
  23798. + lt_simple_link_test_code="\
  23799. + program t
  23800. + end
  23801. +"
  23802. - *)
  23803. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23804. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23805. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  23806. - else
  23807. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  23808. - fi
  23809. - ;;
  23810. - esac
  23811. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  23812. + _LT_TAG_COMPILER
  23813. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  23814. - runpath_var=
  23815. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  23816. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  23817. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  23818. - fi
  23819. - else
  23820. - # PORTME fill in a description of your system's linker (not GNU ld)
  23821. - case $host_os in
  23822. - aix3*)
  23823. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  23824. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  23825. - _LT_AC_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'
  23826. - # Note: this linker hardcodes the directories in LIBPATH if there
  23827. - # are no directories specified by -L.
  23828. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  23829. - if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  23830. - # Neither direct hardcoding nor static linking is supported with a
  23831. - # broken collect2.
  23832. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  23833. - fi
  23834. - ;;
  23835. + # save warnings/boilerplate of simple test code
  23836. + _LT_COMPILER_BOILERPLATE
  23837. + _LT_LINKER_BOILERPLATE
  23838. +
  23839. + # Allow CC to be a program name with arguments.
  23840. + lt_save_CC="$CC"
  23841. + lt_save_GCC=$GCC
  23842. + CC=${F77-"f77"}
  23843. + compiler=$CC
  23844. + _LT_TAGVAR(compiler, $1)=$CC
  23845. + _LT_CC_BASENAME([$compiler])
  23846. + GCC=$G77
  23847. + if test -n "$compiler"; then
  23848. + AC_MSG_CHECKING([if libtool supports shared libraries])
  23849. + AC_MSG_RESULT([$can_build_shared])
  23850. - aix4* | aix5*)
  23851. - if test "$host_cpu" = ia64; then
  23852. - # On IA64, the linker does run time linking by default, so we don't
  23853. - # have to do anything special.
  23854. - aix_use_runtimelinking=no
  23855. - exp_sym_flag='-Bexport'
  23856. - no_entry_flag=""
  23857. - else
  23858. - # If we're using GNU nm, then we don't want the "-C" option.
  23859. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  23860. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  23861. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  23862. - else
  23863. - _LT_AC_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'
  23864. + AC_MSG_CHECKING([whether to build shared libraries])
  23865. + test "$can_build_shared" = "no" && enable_shared=no
  23866. +
  23867. + # On AIX, shared libraries and static libraries use the same namespace, and
  23868. + # are all built from PIC.
  23869. + case $host_os in
  23870. + aix3*)
  23871. + test "$enable_shared" = yes && enable_static=no
  23872. + if test -n "$RANLIB"; then
  23873. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  23874. + postinstall_cmds='$RANLIB $lib'
  23875. + fi
  23876. + ;;
  23877. + aix[[4-9]]*)
  23878. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  23879. + test "$enable_shared" = yes && enable_static=no
  23880. fi
  23881. - aix_use_runtimelinking=no
  23882. + ;;
  23883. + esac
  23884. + AC_MSG_RESULT([$enable_shared])
  23885. - # Test if we are trying to use run time linking or normal
  23886. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  23887. - # need to do runtime linking.
  23888. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  23889. - for ld_flag in $LDFLAGS; do
  23890. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  23891. - aix_use_runtimelinking=yes
  23892. - break
  23893. - fi
  23894. - done
  23895. - ;;
  23896. - esac
  23897. + AC_MSG_CHECKING([whether to build static libraries])
  23898. + # Make sure either enable_shared or enable_static is yes.
  23899. + test "$enable_shared" = yes || enable_static=yes
  23900. + AC_MSG_RESULT([$enable_static])
  23901. +
  23902. + _LT_TAGVAR(GCC, $1)="$G77"
  23903. + _LT_TAGVAR(LD, $1)="$LD"
  23904. +
  23905. + ## CAVEAT EMPTOR:
  23906. + ## There is no encapsulation within the following macros, do not change
  23907. + ## the running order or otherwise move them around unless you know exactly
  23908. + ## what you are doing...
  23909. + _LT_COMPILER_PIC($1)
  23910. + _LT_COMPILER_C_O($1)
  23911. + _LT_COMPILER_FILE_LOCKS($1)
  23912. + _LT_LINKER_SHLIBS($1)
  23913. + _LT_SYS_DYNAMIC_LINKER($1)
  23914. + _LT_LINKER_HARDCODE_LIBPATH($1)
  23915. +
  23916. + _LT_CONFIG($1)
  23917. + fi # test -n "$compiler"
  23918. +
  23919. + GCC=$lt_save_GCC
  23920. + CC="$lt_save_CC"
  23921. +fi # test "$_lt_disable_F77" != yes
  23922. - exp_sym_flag='-bexport'
  23923. - no_entry_flag='-bnoentry'
  23924. - fi
  23925. +AC_LANG_POP
  23926. +])# _LT_LANG_F77_CONFIG
  23927. - # When large executables or shared objects are built, AIX ld can
  23928. - # have problems creating the table of contents. If linking a library
  23929. - # or program results in "error TOC overflow" add -mminimal-toc to
  23930. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  23931. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  23932. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  23933. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  23934. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  23935. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  23936. +# _LT_PROG_FC
  23937. +# -----------
  23938. +# Since AC_PROG_FC is broken, in that it returns the empty string
  23939. +# if there is no fortran compiler, we have our own version here.
  23940. +m4_defun([_LT_PROG_FC],
  23941. +[
  23942. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  23943. +AC_PROG_FC
  23944. +if test -z "$FC" || test "X$FC" = "Xno"; then
  23945. + _lt_disable_FC=yes
  23946. +fi
  23947. +popdef([AC_MSG_ERROR])
  23948. +])# _LT_PROG_FC
  23949. - if test "$GCC" = yes; then
  23950. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  23951. - # We only want to do this on AIX 4.2 and lower, the check
  23952. - # below for broken collect2 doesn't work under 4.3+
  23953. - collect2name=`${CC} -print-prog-name=collect2`
  23954. - if test -f "$collect2name" && \
  23955. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  23956. - then
  23957. - # We have reworked collect2
  23958. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  23959. - else
  23960. - # We have old collect2
  23961. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  23962. - # It fails to find uninstalled libraries when the uninstalled
  23963. - # path is not listed in the libpath. Setting hardcode_minus_L
  23964. - # to unsupported forces relinking
  23965. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  23966. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  23967. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  23968. - fi
  23969. - ;;
  23970. - esac
  23971. - shared_flag='-shared'
  23972. - if test "$aix_use_runtimelinking" = yes; then
  23973. - shared_flag="$shared_flag "'${wl}-G'
  23974. - fi
  23975. - else
  23976. - # not using gcc
  23977. - if test "$host_cpu" = ia64; then
  23978. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  23979. - # chokes on -Wl,-G. The following line is correct:
  23980. - shared_flag='-G'
  23981. - else
  23982. - if test "$aix_use_runtimelinking" = yes; then
  23983. - shared_flag='${wl}-G'
  23984. - else
  23985. - shared_flag='${wl}-bM:SRE'
  23986. - fi
  23987. - fi
  23988. - fi
  23989. +dnl aclocal-1.4 backwards compatibility:
  23990. +dnl AC_DEFUN([_LT_PROG_FC], [])
  23991. - # It seems that -bexpall does not export symbols beginning with
  23992. - # underscore (_), so it is better to generate a list of symbols to export.
  23993. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  23994. - if test "$aix_use_runtimelinking" = yes; then
  23995. - # Warning - without using the other runtime loading flags (-brtl),
  23996. - # -berok will link without error, but may produce a broken library.
  23997. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  23998. - # Determine the default libpath from the value encoded in an empty executable.
  23999. - _LT_AC_SYS_LIBPATH_AIX
  24000. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  24001. - _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  24002. - else
  24003. - if test "$host_cpu" = ia64; then
  24004. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  24005. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  24006. - _LT_AC_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"
  24007. - else
  24008. - # Determine the default libpath from the value encoded in an empty executable.
  24009. - _LT_AC_SYS_LIBPATH_AIX
  24010. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  24011. - # Warning - without using the other run time loading flags,
  24012. - # -berok will link without error, but may produce a broken library.
  24013. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  24014. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  24015. - # Exported symbols can be pulled into shared objects from archives
  24016. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  24017. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  24018. - # This is similar to how AIX traditionally builds its shared libraries.
  24019. - _LT_AC_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'
  24020. - fi
  24021. - fi
  24022. - ;;
  24023. - amigaos*)
  24024. - _LT_AC_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)'
  24025. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  24026. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24027. - # see comment about different semantics on the GNU ld section
  24028. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  24029. - ;;
  24030. +# _LT_LANG_FC_CONFIG([TAG])
  24031. +# -------------------------
  24032. +# Ensure that the configuration variables for a Fortran compiler are
  24033. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  24034. +# to write the compiler configuration to `libtool'.
  24035. +m4_defun([_LT_LANG_FC_CONFIG],
  24036. +[AC_REQUIRE([_LT_PROG_FC])dnl
  24037. +AC_LANG_PUSH(Fortran)
  24038. +
  24039. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  24040. +_LT_TAGVAR(allow_undefined_flag, $1)=
  24041. +_LT_TAGVAR(always_export_symbols, $1)=no
  24042. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  24043. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  24044. +_LT_TAGVAR(hardcode_direct, $1)=no
  24045. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  24046. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  24047. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  24048. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  24049. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  24050. +_LT_TAGVAR(hardcode_automatic, $1)=no
  24051. +_LT_TAGVAR(inherit_rpath, $1)=no
  24052. +_LT_TAGVAR(module_cmds, $1)=
  24053. +_LT_TAGVAR(module_expsym_cmds, $1)=
  24054. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  24055. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  24056. +_LT_TAGVAR(no_undefined_flag, $1)=
  24057. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  24058. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  24059. - bsdi[[45]]*)
  24060. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  24061. - ;;
  24062. +# Source file extension for fc test sources.
  24063. +ac_ext=${ac_fc_srcext-f}
  24064. - cygwin* | mingw* | pw32*)
  24065. - # When not using gcc, we currently assume that we are using
  24066. - # Microsoft Visual C++.
  24067. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  24068. - # no search path for DLLs.
  24069. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  24070. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  24071. - # Tell ltmain to make .lib files, not .a files.
  24072. - libext=lib
  24073. - # Tell ltmain to make .dll files, not .so files.
  24074. - shrext_cmds=".dll"
  24075. - # FIXME: Setting linknames here is a bad hack.
  24076. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  24077. - # The linker will automatically build a .lib file if we build a DLL.
  24078. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  24079. - # FIXME: Should let the user specify the lib program.
  24080. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  24081. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  24082. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  24083. - ;;
  24084. +# Object file extension for compiled fc test sources.
  24085. +objext=o
  24086. +_LT_TAGVAR(objext, $1)=$objext
  24087. - darwin* | rhapsody*)
  24088. - case $host_os in
  24089. - rhapsody* | darwin1.[[012]])
  24090. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  24091. - ;;
  24092. - *) # Darwin 1.3 on
  24093. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  24094. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24095. - else
  24096. - case ${MACOSX_DEPLOYMENT_TARGET} in
  24097. - 10.[[012]])
  24098. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  24099. - ;;
  24100. - 10.*)
  24101. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  24102. - ;;
  24103. - esac
  24104. - fi
  24105. - ;;
  24106. - esac
  24107. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  24108. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  24109. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  24110. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  24111. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  24112. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  24113. - if test "$GCC" = yes ; then
  24114. - output_verbose_link_cmd='echo'
  24115. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  24116. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24117. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24118. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24119. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24120. - else
  24121. - case $cc_basename in
  24122. - xlc*)
  24123. - output_verbose_link_cmd='echo'
  24124. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  24125. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24126. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  24127. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24128. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24129. - ;;
  24130. - *)
  24131. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  24132. - ;;
  24133. - esac
  24134. - fi
  24135. - ;;
  24136. +# No sense in running all these tests if we already determined that
  24137. +# the FC compiler isn't working. Some variables (like enable_shared)
  24138. +# are currently assumed to apply to all compilers on this platform,
  24139. +# and will be corrupted by setting them based on a non-working compiler.
  24140. +if test "$_lt_disable_FC" != yes; then
  24141. + # Code to be used in simple compile tests
  24142. + lt_simple_compile_test_code="\
  24143. + subroutine t
  24144. + return
  24145. + end
  24146. +"
  24147. - dgux*)
  24148. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24149. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  24150. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24151. - ;;
  24152. + # Code to be used in simple link tests
  24153. + lt_simple_link_test_code="\
  24154. + program t
  24155. + end
  24156. +"
  24157. - freebsd1*)
  24158. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  24159. - ;;
  24160. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  24161. + _LT_TAG_COMPILER
  24162. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  24163. - # support. Future versions do this automatically, but an explicit c++rt0.o
  24164. - # does not break anything, and helps significantly (at the cost of a little
  24165. - # extra space).
  24166. - freebsd2.2*)
  24167. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  24168. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  24169. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24170. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24171. - ;;
  24172. + # save warnings/boilerplate of simple test code
  24173. + _LT_COMPILER_BOILERPLATE
  24174. + _LT_LINKER_BOILERPLATE
  24175. +
  24176. + # Allow CC to be a program name with arguments.
  24177. + lt_save_CC="$CC"
  24178. + lt_save_GCC=$GCC
  24179. + CC=${FC-"f95"}
  24180. + compiler=$CC
  24181. + GCC=$ac_cv_fc_compiler_gnu
  24182. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  24183. - freebsd2*)
  24184. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24185. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24186. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24187. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24188. - ;;
  24189. + _LT_TAGVAR(compiler, $1)=$CC
  24190. + _LT_CC_BASENAME([$compiler])
  24191. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  24192. - freebsd* | kfreebsd*-gnu | dragonfly*)
  24193. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  24194. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  24195. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24196. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24197. - ;;
  24198. + if test -n "$compiler"; then
  24199. + AC_MSG_CHECKING([if libtool supports shared libraries])
  24200. + AC_MSG_RESULT([$can_build_shared])
  24201. - hpux9*)
  24202. - if test "$GCC" = yes; then
  24203. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  24204. - else
  24205. - _LT_AC_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'
  24206. - fi
  24207. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  24208. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24209. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24210. + AC_MSG_CHECKING([whether to build shared libraries])
  24211. + test "$can_build_shared" = "no" && enable_shared=no
  24212. - # hardcode_minus_L: Not really in the search PATH,
  24213. - # but as the default location of the library.
  24214. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24215. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  24216. - ;;
  24217. + # On AIX, shared libraries and static libraries use the same namespace, and
  24218. + # are all built from PIC.
  24219. + case $host_os in
  24220. + aix3*)
  24221. + test "$enable_shared" = yes && enable_static=no
  24222. + if test -n "$RANLIB"; then
  24223. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  24224. + postinstall_cmds='$RANLIB $lib'
  24225. + fi
  24226. + ;;
  24227. + aix[[4-9]]*)
  24228. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  24229. + test "$enable_shared" = yes && enable_static=no
  24230. + fi
  24231. + ;;
  24232. + esac
  24233. + AC_MSG_RESULT([$enable_shared])
  24234. - hpux10*)
  24235. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24236. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24237. - else
  24238. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  24239. - fi
  24240. - if test "$with_gnu_ld" = no; then
  24241. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  24242. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24243. + AC_MSG_CHECKING([whether to build static libraries])
  24244. + # Make sure either enable_shared or enable_static is yes.
  24245. + test "$enable_shared" = yes || enable_static=yes
  24246. + AC_MSG_RESULT([$enable_static])
  24247. +
  24248. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  24249. + _LT_TAGVAR(LD, $1)="$LD"
  24250. +
  24251. + ## CAVEAT EMPTOR:
  24252. + ## There is no encapsulation within the following macros, do not change
  24253. + ## the running order or otherwise move them around unless you know exactly
  24254. + ## what you are doing...
  24255. + _LT_SYS_HIDDEN_LIBDEPS($1)
  24256. + _LT_COMPILER_PIC($1)
  24257. + _LT_COMPILER_C_O($1)
  24258. + _LT_COMPILER_FILE_LOCKS($1)
  24259. + _LT_LINKER_SHLIBS($1)
  24260. + _LT_SYS_DYNAMIC_LINKER($1)
  24261. + _LT_LINKER_HARDCODE_LIBPATH($1)
  24262. +
  24263. + _LT_CONFIG($1)
  24264. + fi # test -n "$compiler"
  24265. +
  24266. + GCC=$lt_save_GCC
  24267. + CC="$lt_save_CC"
  24268. +fi # test "$_lt_disable_FC" != yes
  24269. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24270. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  24271. +AC_LANG_POP
  24272. +])# _LT_LANG_FC_CONFIG
  24273. - # hardcode_minus_L: Not really in the search PATH,
  24274. - # but as the default location of the library.
  24275. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24276. - fi
  24277. - ;;
  24278. - hpux11*)
  24279. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24280. - case $host_cpu in
  24281. - hppa*64*)
  24282. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24283. - ;;
  24284. - ia64*)
  24285. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  24286. - ;;
  24287. - *)
  24288. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24289. - ;;
  24290. - esac
  24291. - else
  24292. - case $host_cpu in
  24293. - hppa*64*)
  24294. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24295. - ;;
  24296. - ia64*)
  24297. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  24298. - ;;
  24299. - *)
  24300. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24301. - ;;
  24302. - esac
  24303. - fi
  24304. - if test "$with_gnu_ld" = no; then
  24305. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  24306. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24307. +# _LT_LANG_GCJ_CONFIG([TAG])
  24308. +# --------------------------
  24309. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  24310. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  24311. +# to write the compiler configuration to `libtool'.
  24312. +m4_defun([_LT_LANG_GCJ_CONFIG],
  24313. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  24314. +AC_LANG_SAVE
  24315. - case $host_cpu in
  24316. - hppa*64*|ia64*)
  24317. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  24318. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  24319. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24320. - ;;
  24321. - *)
  24322. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24323. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  24324. +# Source file extension for Java test sources.
  24325. +ac_ext=java
  24326. - # hardcode_minus_L: Not really in the search PATH,
  24327. - # but as the default location of the library.
  24328. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24329. - ;;
  24330. - esac
  24331. - fi
  24332. - ;;
  24333. +# Object file extension for compiled Java test sources.
  24334. +objext=o
  24335. +_LT_TAGVAR(objext, $1)=$objext
  24336. - irix5* | irix6* | nonstopux*)
  24337. - if test "$GCC" = yes; then
  24338. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  24339. - else
  24340. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  24341. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  24342. - fi
  24343. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  24344. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24345. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  24346. - ;;
  24347. +# Code to be used in simple compile tests
  24348. +lt_simple_compile_test_code="class foo {}"
  24349. - netbsd*)
  24350. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24351. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  24352. - else
  24353. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  24354. - fi
  24355. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  24356. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24357. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24358. - ;;
  24359. +# Code to be used in simple link tests
  24360. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  24361. - newsos6)
  24362. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24363. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24364. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  24365. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24366. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24367. - ;;
  24368. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  24369. +_LT_TAG_COMPILER
  24370. +
  24371. +# save warnings/boilerplate of simple test code
  24372. +_LT_COMPILER_BOILERPLATE
  24373. +_LT_LINKER_BOILERPLATE
  24374. +
  24375. +# Allow CC to be a program name with arguments.
  24376. +lt_save_CC="$CC"
  24377. +lt_save_GCC=$GCC
  24378. +GCC=yes
  24379. +CC=${GCJ-"gcj"}
  24380. +compiler=$CC
  24381. +_LT_TAGVAR(compiler, $1)=$CC
  24382. +_LT_TAGVAR(LD, $1)="$LD"
  24383. +_LT_CC_BASENAME([$compiler])
  24384. - openbsd*)
  24385. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24386. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24387. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24388. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24389. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  24390. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  24391. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  24392. - else
  24393. - case $host_os in
  24394. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  24395. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24396. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  24397. - ;;
  24398. - *)
  24399. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24400. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  24401. - ;;
  24402. - esac
  24403. - fi
  24404. - ;;
  24405. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  24406. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  24407. - os2*)
  24408. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  24409. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24410. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  24411. - _LT_AC_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'
  24412. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  24413. - ;;
  24414. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  24415. - osf3*)
  24416. - if test "$GCC" = yes; then
  24417. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  24418. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  24419. - else
  24420. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  24421. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  24422. - fi
  24423. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  24424. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24425. - ;;
  24426. +## CAVEAT EMPTOR:
  24427. +## There is no encapsulation within the following macros, do not change
  24428. +## the running order or otherwise move them around unless you know exactly
  24429. +## what you are doing...
  24430. +if test -n "$compiler"; then
  24431. + _LT_COMPILER_NO_RTTI($1)
  24432. + _LT_COMPILER_PIC($1)
  24433. + _LT_COMPILER_C_O($1)
  24434. + _LT_COMPILER_FILE_LOCKS($1)
  24435. + _LT_LINKER_SHLIBS($1)
  24436. + _LT_LINKER_HARDCODE_LIBPATH($1)
  24437. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  24438. - if test "$GCC" = yes; then
  24439. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  24440. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  24441. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  24442. - else
  24443. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  24444. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  24445. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  24446. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
  24447. + _LT_CONFIG($1)
  24448. +fi
  24449. - # Both c and cxx compiler support -rpath directly
  24450. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  24451. - fi
  24452. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  24453. - ;;
  24454. +AC_LANG_RESTORE
  24455. - solaris*)
  24456. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  24457. - if test "$GCC" = yes; then
  24458. - wlarc='${wl}'
  24459. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24460. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24461. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  24462. - else
  24463. - wlarc=''
  24464. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24465. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24466. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  24467. - fi
  24468. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  24469. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24470. - case $host_os in
  24471. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  24472. - *)
  24473. - # The compiler driver will combine linker options so we
  24474. - # cannot just pass the convience library names through
  24475. - # without $wl, iff we do not link with $LD.
  24476. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  24477. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  24478. - case $wlarc in
  24479. - '')
  24480. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  24481. - *)
  24482. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
  24483. - esac ;;
  24484. - esac
  24485. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  24486. - ;;
  24487. +GCC=$lt_save_GCC
  24488. +CC="$lt_save_CC"
  24489. +])# _LT_LANG_GCJ_CONFIG
  24490. - sunos4*)
  24491. - if test "x$host_vendor" = xsequent; then
  24492. - # Use $CC to link under sequent, because it throws in some extra .o
  24493. - # files that make .init and .fini sections work.
  24494. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  24495. - else
  24496. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  24497. - fi
  24498. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  24499. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  24500. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  24501. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24502. - ;;
  24503. - sysv4)
  24504. - case $host_vendor in
  24505. - sni)
  24506. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24507. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  24508. - ;;
  24509. - siemens)
  24510. - ## LD is ld it makes a PLAMLIB
  24511. - ## CC just makes a GrossModule.
  24512. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  24513. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  24514. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  24515. - ;;
  24516. - motorola)
  24517. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24518. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  24519. - ;;
  24520. - esac
  24521. - runpath_var='LD_RUN_PATH'
  24522. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24523. - ;;
  24524. +# _LT_LANG_RC_CONFIG([TAG])
  24525. +# -------------------------
  24526. +# Ensure that the configuration variables for the Windows resource compiler
  24527. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  24528. +# to write the compiler configuration to `libtool'.
  24529. +m4_defun([_LT_LANG_RC_CONFIG],
  24530. +[AC_REQUIRE([LT_PROG_RC])dnl
  24531. +AC_LANG_SAVE
  24532. - sysv4.3*)
  24533. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24534. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24535. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  24536. - ;;
  24537. +# Source file extension for RC test sources.
  24538. +ac_ext=rc
  24539. - sysv4*MP*)
  24540. - if test -d /usr/nec; then
  24541. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24542. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24543. - runpath_var=LD_RUN_PATH
  24544. - hardcode_runpath_var=yes
  24545. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  24546. - fi
  24547. - ;;
  24548. +# Object file extension for compiled RC test sources.
  24549. +objext=o
  24550. +_LT_TAGVAR(objext, $1)=$objext
  24551. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
  24552. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  24553. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  24554. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24555. - runpath_var='LD_RUN_PATH'
  24556. +# Code to be used in simple compile tests
  24557. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  24558. - if test "$GCC" = yes; then
  24559. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24560. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24561. - else
  24562. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24563. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  24564. - fi
  24565. - ;;
  24566. +# Code to be used in simple link tests
  24567. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  24568. - sysv5* | sco3.2v5* | sco5v6*)
  24569. - # Note: We can NOT use -z defs as we might desire, because we do not
  24570. - # link with -lc, and that would cause any symbols used from libc to
  24571. - # always be unresolved, which means just about no library would
  24572. - # ever link correctly. If we're not using GNU ld we use -z text
  24573. - # though, which does catch some bad symbols but isn't as heavy-handed
  24574. - # as -z defs.
  24575. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  24576. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  24577. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  24578. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24579. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  24580. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  24581. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  24582. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  24583. - runpath_var='LD_RUN_PATH'
  24584. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  24585. +_LT_TAG_COMPILER
  24586. - if test "$GCC" = yes; then
  24587. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24588. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24589. - else
  24590. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24591. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24592. - fi
  24593. - ;;
  24594. +# save warnings/boilerplate of simple test code
  24595. +_LT_COMPILER_BOILERPLATE
  24596. +_LT_LINKER_BOILERPLATE
  24597. - uts4*)
  24598. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24599. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  24600. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  24601. - ;;
  24602. +# Allow CC to be a program name with arguments.
  24603. +lt_save_CC="$CC"
  24604. +lt_save_GCC=$GCC
  24605. +GCC=
  24606. +CC=${RC-"windres"}
  24607. +compiler=$CC
  24608. +_LT_TAGVAR(compiler, $1)=$CC
  24609. +_LT_CC_BASENAME([$compiler])
  24610. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  24611. - *)
  24612. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  24613. - ;;
  24614. - esac
  24615. - fi
  24616. -])
  24617. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  24618. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  24619. +if test -n "$compiler"; then
  24620. + :
  24621. + _LT_CONFIG($1)
  24622. +fi
  24623. -#
  24624. -# Do we need to explicitly link libc?
  24625. -#
  24626. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  24627. -x|xyes)
  24628. - # Assume -lc should be added
  24629. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  24630. +GCC=$lt_save_GCC
  24631. +AC_LANG_RESTORE
  24632. +CC="$lt_save_CC"
  24633. +])# _LT_LANG_RC_CONFIG
  24634. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  24635. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  24636. - *'~'*)
  24637. - # FIXME: we may have to deal with multi-command sequences.
  24638. - ;;
  24639. - '$CC '*)
  24640. - # Test whether the compiler implicitly links with -lc since on some
  24641. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  24642. - # to ld, don't add -lc before -lgcc.
  24643. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  24644. - $rm conftest*
  24645. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24646. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  24647. - soname=conftest
  24648. - lib=conftest
  24649. - libobjs=conftest.$ac_objext
  24650. - deplibs=
  24651. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  24652. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  24653. - compiler_flags=-v
  24654. - linker_flags=-v
  24655. - verstring=
  24656. - output_objdir=.
  24657. - libname=conftest
  24658. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  24659. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  24660. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  24661. - then
  24662. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  24663. - else
  24664. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  24665. - fi
  24666. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  24667. - else
  24668. - cat conftest.err 1>&5
  24669. - fi
  24670. - $rm conftest*
  24671. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  24672. - ;;
  24673. - esac
  24674. - fi
  24675. - ;;
  24676. -esac
  24677. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  24678. +# LT_PROG_GCJ
  24679. +# -----------
  24680. +AC_DEFUN([LT_PROG_GCJ],
  24681. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  24682. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  24683. + [AC_CHECK_TOOL(GCJ, gcj,)
  24684. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  24685. + AC_SUBST(GCJFLAGS)])])[]dnl
  24686. +])
  24687. +# Old name:
  24688. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  24689. +dnl aclocal-1.4 backwards compatibility:
  24690. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  24691. -# _LT_AC_FILE_LTDLL_C
  24692. -# -------------------
  24693. -# Be careful that the start marker always follows a newline.
  24694. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  24695. -# /* ltdll.c starts here */
  24696. -# #define WIN32_LEAN_AND_MEAN
  24697. -# #include <windows.h>
  24698. -# #undef WIN32_LEAN_AND_MEAN
  24699. -# #include <stdio.h>
  24700. -#
  24701. -# #ifndef __CYGWIN__
  24702. -# # ifdef __CYGWIN32__
  24703. -# # define __CYGWIN__ __CYGWIN32__
  24704. -# # endif
  24705. -# #endif
  24706. -#
  24707. -# #ifdef __cplusplus
  24708. -# extern "C" {
  24709. -# #endif
  24710. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  24711. -# #ifdef __cplusplus
  24712. -# }
  24713. -# #endif
  24714. -#
  24715. -# #ifdef __CYGWIN__
  24716. -# #include <cygwin/cygwin_dll.h>
  24717. -# DECLARE_CYGWIN_DLL( DllMain );
  24718. -# #endif
  24719. -# HINSTANCE __hDllInstance_base;
  24720. -#
  24721. -# BOOL APIENTRY
  24722. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  24723. -# {
  24724. -# __hDllInstance_base = hInst;
  24725. -# return TRUE;
  24726. -# }
  24727. -# /* ltdll.c ends here */
  24728. -])# _LT_AC_FILE_LTDLL_C
  24729. +# LT_PROG_RC
  24730. +# ----------
  24731. +AC_DEFUN([LT_PROG_RC],
  24732. +[AC_CHECK_TOOL(RC, windres,)
  24733. +])
  24734. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  24735. -# ---------------------------------
  24736. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  24737. +# Old name:
  24738. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  24739. +dnl aclocal-1.4 backwards compatibility:
  24740. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  24741. -# old names
  24742. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  24743. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  24744. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  24745. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  24746. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  24747. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  24748. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  24749. -
  24750. -# This is just to silence aclocal about the macro not being used
  24751. -ifelse([AC_DISABLE_FAST_INSTALL])
  24752. -
  24753. -AC_DEFUN([LT_AC_PROG_GCJ],
  24754. -[AC_CHECK_TOOL(GCJ, gcj, no)
  24755. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  24756. - AC_SUBST(GCJFLAGS)
  24757. +# _LT_DECL_EGREP
  24758. +# --------------
  24759. +# If we don't have a new enough Autoconf to choose the best grep
  24760. +# available, choose the one first in the user's PATH.
  24761. +m4_defun([_LT_DECL_EGREP],
  24762. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  24763. +AC_REQUIRE([AC_PROG_FGREP])dnl
  24764. +test -z "$GREP" && GREP=grep
  24765. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  24766. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  24767. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  24768. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  24769. +AC_SUBST([GREP])
  24770. ])
  24771. -AC_DEFUN([LT_AC_PROG_RC],
  24772. -[AC_CHECK_TOOL(RC, windres, no)
  24773. -])
  24774. +# _LT_DECL_SED
  24775. +# ------------
  24776. +# Check for a fully-functional sed program, that truncates
  24777. +# as few characters as possible. Prefer GNU sed if found.
  24778. +m4_defun([_LT_DECL_SED],
  24779. +[AC_PROG_SED
  24780. +test -z "$SED" && SED=sed
  24781. +Xsed="$SED -e 1s/^X//"
  24782. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  24783. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  24784. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  24785. +])# _LT_DECL_SED
  24786. +
  24787. +m4_ifndef([AC_PROG_SED], [
  24788. ############################################################
  24789. # NOTE: This macro has been submitted for inclusion into #
  24790. # GNU Autoconf as AC_PROG_SED. When it is available in #
  24791. # a released version of Autoconf we should remove this #
  24792. # macro and use it instead. #
  24793. ############################################################
  24794. -# LT_AC_PROG_SED
  24795. -# --------------
  24796. -# Check for a fully-functional sed program, that truncates
  24797. -# as few characters as possible. Prefer GNU sed if found.
  24798. -AC_DEFUN([LT_AC_PROG_SED],
  24799. +
  24800. +m4_defun([AC_PROG_SED],
  24801. [AC_MSG_CHECKING([for a sed that does not truncate output])
  24802. AC_CACHE_VAL(lt_cv_path_SED,
  24803. [# Loop through the user's path and test for sed and gsed.
  24804. @@ -6435,6 +7010,7 @@ do
  24805. done
  24806. done
  24807. done
  24808. +IFS=$as_save_IFS
  24809. lt_ac_max=0
  24810. lt_ac_count=0
  24811. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  24812. @@ -6467,5 +7043,268 @@ for lt_ac_sed in $lt_ac_sed_list /usr/xp
  24813. done
  24814. ])
  24815. SED=$lt_cv_path_SED
  24816. +AC_SUBST([SED])
  24817. AC_MSG_RESULT([$SED])
  24818. +])#AC_PROG_SED
  24819. +])#m4_ifndef
  24820. +
  24821. +# Old name:
  24822. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  24823. +dnl aclocal-1.4 backwards compatibility:
  24824. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  24825. +
  24826. +
  24827. +# _LT_CHECK_SHELL_FEATURES
  24828. +# ------------------------
  24829. +# Find out whether the shell is Bourne or XSI compatible,
  24830. +# or has some other useful features.
  24831. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  24832. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  24833. +# Try some XSI features
  24834. +xsi_shell=no
  24835. +( _lt_dummy="a/b/c"
  24836. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  24837. + = c,a/b,, \
  24838. + && eval 'test $(( 1 + 1 )) -eq 2 \
  24839. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  24840. + && xsi_shell=yes
  24841. +AC_MSG_RESULT([$xsi_shell])
  24842. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  24843. +
  24844. +AC_MSG_CHECKING([whether the shell understands "+="])
  24845. +lt_shell_append=no
  24846. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  24847. + >/dev/null 2>&1 \
  24848. + && lt_shell_append=yes
  24849. +AC_MSG_RESULT([$lt_shell_append])
  24850. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  24851. +
  24852. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24853. + lt_unset=unset
  24854. +else
  24855. + lt_unset=false
  24856. +fi
  24857. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  24858. +
  24859. +# test EBCDIC or ASCII
  24860. +case `echo X|tr X '\101'` in
  24861. + A) # ASCII based system
  24862. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  24863. + lt_SP2NL='tr \040 \012'
  24864. + lt_NL2SP='tr \015\012 \040\040'
  24865. + ;;
  24866. + *) # EBCDIC based system
  24867. + lt_SP2NL='tr \100 \n'
  24868. + lt_NL2SP='tr \r\n \100\100'
  24869. + ;;
  24870. +esac
  24871. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  24872. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  24873. +])# _LT_CHECK_SHELL_FEATURES
  24874. +
  24875. +
  24876. +# _LT_PROG_XSI_SHELLFNS
  24877. +# ---------------------
  24878. +# Bourne and XSI compatible variants of some useful shell functions.
  24879. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  24880. +[case $xsi_shell in
  24881. + yes)
  24882. + cat << \_LT_EOF >> "$cfgfile"
  24883. +
  24884. +# func_dirname file append nondir_replacement
  24885. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24886. +# otherwise set result to NONDIR_REPLACEMENT.
  24887. +func_dirname ()
  24888. +{
  24889. + case ${1} in
  24890. + */*) func_dirname_result="${1%/*}${2}" ;;
  24891. + * ) func_dirname_result="${3}" ;;
  24892. + esac
  24893. +}
  24894. +
  24895. +# func_basename file
  24896. +func_basename ()
  24897. +{
  24898. + func_basename_result="${1##*/}"
  24899. +}
  24900. +
  24901. +# func_dirname_and_basename file append nondir_replacement
  24902. +# perform func_basename and func_dirname in a single function
  24903. +# call:
  24904. +# dirname: Compute the dirname of FILE. If nonempty,
  24905. +# add APPEND to the result, otherwise set result
  24906. +# to NONDIR_REPLACEMENT.
  24907. +# value returned in "$func_dirname_result"
  24908. +# basename: Compute filename of FILE.
  24909. +# value retuned in "$func_basename_result"
  24910. +# Implementation must be kept synchronized with func_dirname
  24911. +# and func_basename. For efficiency, we do not delegate to
  24912. +# those functions but instead duplicate the functionality here.
  24913. +func_dirname_and_basename ()
  24914. +{
  24915. + case ${1} in
  24916. + */*) func_dirname_result="${1%/*}${2}" ;;
  24917. + * ) func_dirname_result="${3}" ;;
  24918. + esac
  24919. + func_basename_result="${1##*/}"
  24920. +}
  24921. +
  24922. +# func_stripname prefix suffix name
  24923. +# strip PREFIX and SUFFIX off of NAME.
  24924. +# PREFIX and SUFFIX must not contain globbing or regex special
  24925. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  24926. +# dot (in which case that matches only a dot).
  24927. +func_stripname ()
  24928. +{
  24929. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  24930. + # positional parameters, so assign one to ordinary parameter first.
  24931. + func_stripname_result=${3}
  24932. + func_stripname_result=${func_stripname_result#"${1}"}
  24933. + func_stripname_result=${func_stripname_result%"${2}"}
  24934. +}
  24935. +
  24936. +# func_opt_split
  24937. +func_opt_split ()
  24938. +{
  24939. + func_opt_split_opt=${1%%=*}
  24940. + func_opt_split_arg=${1#*=}
  24941. +}
  24942. +
  24943. +# func_lo2o object
  24944. +func_lo2o ()
  24945. +{
  24946. + case ${1} in
  24947. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  24948. + *) func_lo2o_result=${1} ;;
  24949. + esac
  24950. +}
  24951. +
  24952. +# func_xform libobj-or-source
  24953. +func_xform ()
  24954. +{
  24955. + func_xform_result=${1%.*}.lo
  24956. +}
  24957. +
  24958. +# func_arith arithmetic-term...
  24959. +func_arith ()
  24960. +{
  24961. + func_arith_result=$(( $[*] ))
  24962. +}
  24963. +
  24964. +# func_len string
  24965. +# STRING may not start with a hyphen.
  24966. +func_len ()
  24967. +{
  24968. + func_len_result=${#1}
  24969. +}
  24970. +
  24971. +_LT_EOF
  24972. + ;;
  24973. + *) # Bourne compatible functions.
  24974. + cat << \_LT_EOF >> "$cfgfile"
  24975. +
  24976. +# func_dirname file append nondir_replacement
  24977. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  24978. +# otherwise set result to NONDIR_REPLACEMENT.
  24979. +func_dirname ()
  24980. +{
  24981. + # Extract subdirectory from the argument.
  24982. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  24983. + if test "X$func_dirname_result" = "X${1}"; then
  24984. + func_dirname_result="${3}"
  24985. + else
  24986. + func_dirname_result="$func_dirname_result${2}"
  24987. + fi
  24988. +}
  24989. +
  24990. +# func_basename file
  24991. +func_basename ()
  24992. +{
  24993. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  24994. +}
  24995. +
  24996. +dnl func_dirname_and_basename
  24997. +dnl A portable version of this function is already defined in general.m4sh
  24998. +dnl so there is no need for it here.
  24999. +
  25000. +# func_stripname prefix suffix name
  25001. +# strip PREFIX and SUFFIX off of NAME.
  25002. +# PREFIX and SUFFIX must not contain globbing or regex special
  25003. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  25004. +# dot (in which case that matches only a dot).
  25005. +# func_strip_suffix prefix name
  25006. +func_stripname ()
  25007. +{
  25008. + case ${2} in
  25009. + .*) func_stripname_result=`$ECHO "X${3}" \
  25010. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  25011. + *) func_stripname_result=`$ECHO "X${3}" \
  25012. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  25013. + esac
  25014. +}
  25015. +
  25016. +# sed scripts:
  25017. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  25018. +my_sed_long_arg='1s/^-[[^=]]*=//'
  25019. +
  25020. +# func_opt_split
  25021. +func_opt_split ()
  25022. +{
  25023. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  25024. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  25025. +}
  25026. +
  25027. +# func_lo2o object
  25028. +func_lo2o ()
  25029. +{
  25030. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  25031. +}
  25032. +
  25033. +# func_xform libobj-or-source
  25034. +func_xform ()
  25035. +{
  25036. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  25037. +}
  25038. +
  25039. +# func_arith arithmetic-term...
  25040. +func_arith ()
  25041. +{
  25042. + func_arith_result=`expr "$[@]"`
  25043. +}
  25044. +
  25045. +# func_len string
  25046. +# STRING may not start with a hyphen.
  25047. +func_len ()
  25048. +{
  25049. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  25050. +}
  25051. +
  25052. +_LT_EOF
  25053. +esac
  25054. +
  25055. +case $lt_shell_append in
  25056. + yes)
  25057. + cat << \_LT_EOF >> "$cfgfile"
  25058. +
  25059. +# func_append var value
  25060. +# Append VALUE to the end of shell variable VAR.
  25061. +func_append ()
  25062. +{
  25063. + eval "$[1]+=\$[2]"
  25064. +}
  25065. +_LT_EOF
  25066. + ;;
  25067. + *)
  25068. + cat << \_LT_EOF >> "$cfgfile"
  25069. +
  25070. +# func_append var value
  25071. +# Append VALUE to the end of shell variable VAR.
  25072. +func_append ()
  25073. +{
  25074. + eval "$[1]=\$$[1]\$[2]"
  25075. +}
  25076. +
  25077. +_LT_EOF
  25078. + ;;
  25079. + esac
  25080. ])