aclocal.m4 331 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414
  1. # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  4. # This file is free software; the Free Software Foundation
  5. # gives unlimited permission to copy and/or distribute it,
  6. # with or without modifications, as long as this notice is preserved.
  7. # This program is distributed in the hope that it will be useful,
  8. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  9. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  10. # PARTICULAR PURPOSE.
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  14. [m4_warning([this file was generated for autoconf 2.68.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. #
  20. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  22. # Inc.
  23. # Written by Gordon Matzigkeit, 1996
  24. #
  25. # This file is free software; the Free Software Foundation gives
  26. # unlimited permission to copy and/or distribute it, with or without
  27. # modifications, as long as this notice is preserved.
  28. m4_define([_LT_COPYING], [dnl
  29. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  31. # Inc.
  32. # Written by Gordon Matzigkeit, 1996
  33. #
  34. # This file is part of GNU Libtool.
  35. #
  36. # GNU Libtool is free software; you can redistribute it and/or
  37. # modify it under the terms of the GNU General Public License as
  38. # published by the Free Software Foundation; either version 2 of
  39. # the License, or (at your option) any later version.
  40. #
  41. # As a special exception to the GNU General Public License,
  42. # if you distribute this file as part of a program or library that
  43. # is built using GNU Libtool, you may include this file under the
  44. # same distribution terms that you use for the rest of that program.
  45. #
  46. # GNU Libtool is distributed in the hope that it will be useful,
  47. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  48. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49. # GNU General Public License for more details.
  50. #
  51. # You should have received a copy of the GNU General Public License
  52. # along with GNU Libtool; see the file COPYING. If not, a copy
  53. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  54. # obtained by writing to the Free Software Foundation, Inc.,
  55. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  56. ])
  57. # serial 57 LT_INIT
  58. # LT_PREREQ(VERSION)
  59. # ------------------
  60. # Complain and exit if this libtool version is less that VERSION.
  61. m4_defun([LT_PREREQ],
  62. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  63. [m4_default([$3],
  64. [m4_fatal([Libtool version $1 or higher is required],
  65. 63)])],
  66. [$2])])
  67. # _LT_CHECK_BUILDDIR
  68. # ------------------
  69. # Complain if the absolute build directory name contains unusual characters
  70. m4_defun([_LT_CHECK_BUILDDIR],
  71. [case `pwd` in
  72. *\ * | *\ *)
  73. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  74. esac
  75. ])
  76. # LT_INIT([OPTIONS])
  77. # ------------------
  78. AC_DEFUN([LT_INIT],
  79. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  80. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  81. AC_BEFORE([$0], [LT_LANG])dnl
  82. AC_BEFORE([$0], [LT_OUTPUT])dnl
  83. AC_BEFORE([$0], [LTDL_INIT])dnl
  84. m4_require([_LT_CHECK_BUILDDIR])dnl
  85. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  86. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  87. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  88. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  89. dnl unless we require an AC_DEFUNed macro:
  90. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  91. AC_REQUIRE([LTSUGAR_VERSION])dnl
  92. AC_REQUIRE([LTVERSION_VERSION])dnl
  93. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  94. m4_require([_LT_PROG_LTMAIN])dnl
  95. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  96. dnl Parse OPTIONS
  97. _LT_SET_OPTIONS([$0], [$1])
  98. # This can be used to rebuild libtool when needed
  99. LIBTOOL_DEPS="$ltmain"
  100. # Always use our own libtool.
  101. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  102. AC_SUBST(LIBTOOL)dnl
  103. _LT_SETUP
  104. # Only expand once:
  105. m4_define([LT_INIT])
  106. ])# LT_INIT
  107. # Old names:
  108. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  109. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  110. dnl aclocal-1.4 backwards compatibility:
  111. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  112. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  113. # _LT_CC_BASENAME(CC)
  114. # -------------------
  115. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  116. m4_defun([_LT_CC_BASENAME],
  117. [for cc_temp in $1""; do
  118. case $cc_temp in
  119. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  120. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  121. \-*) ;;
  122. *) break;;
  123. esac
  124. done
  125. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  126. ])
  127. # _LT_FILEUTILS_DEFAULTS
  128. # ----------------------
  129. # It is okay to use these file commands and assume they have been set
  130. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  131. m4_defun([_LT_FILEUTILS_DEFAULTS],
  132. [: ${CP="cp -f"}
  133. : ${MV="mv -f"}
  134. : ${RM="rm -f"}
  135. ])# _LT_FILEUTILS_DEFAULTS
  136. # _LT_SETUP
  137. # ---------
  138. m4_defun([_LT_SETUP],
  139. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  140. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  141. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  142. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  143. _LT_DECL([], [host_alias], [0], [The host system])dnl
  144. _LT_DECL([], [host], [0])dnl
  145. _LT_DECL([], [host_os], [0])dnl
  146. dnl
  147. _LT_DECL([], [build_alias], [0], [The build system])dnl
  148. _LT_DECL([], [build], [0])dnl
  149. _LT_DECL([], [build_os], [0])dnl
  150. dnl
  151. AC_REQUIRE([AC_PROG_CC])dnl
  152. AC_REQUIRE([LT_PATH_LD])dnl
  153. AC_REQUIRE([LT_PATH_NM])dnl
  154. dnl
  155. AC_REQUIRE([AC_PROG_LN_S])dnl
  156. test -z "$LN_S" && LN_S="ln -s"
  157. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  158. dnl
  159. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  160. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  161. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  162. dnl
  163. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  164. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  165. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  166. m4_require([_LT_CMD_RELOAD])dnl
  167. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  168. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  169. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  170. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  171. m4_require([_LT_WITH_SYSROOT])dnl
  172. _LT_CONFIG_LIBTOOL_INIT([
  173. # See if we are running on zsh, and set the options which allow our
  174. # commands through without removal of \ escapes INIT.
  175. if test -n "\${ZSH_VERSION+set}" ; then
  176. setopt NO_GLOB_SUBST
  177. fi
  178. ])
  179. if test -n "${ZSH_VERSION+set}" ; then
  180. setopt NO_GLOB_SUBST
  181. fi
  182. _LT_CHECK_OBJDIR
  183. m4_require([_LT_TAG_COMPILER])dnl
  184. case $host_os in
  185. aix3*)
  186. # AIX sometimes has problems with the GCC collect2 program. For some
  187. # reason, if we set the COLLECT_NAMES environment variable, the problems
  188. # vanish in a puff of smoke.
  189. if test "X${COLLECT_NAMES+set}" != Xset; then
  190. COLLECT_NAMES=
  191. export COLLECT_NAMES
  192. fi
  193. ;;
  194. esac
  195. # Global variables:
  196. ofile=libtool
  197. can_build_shared=yes
  198. # All known linkers require a `.a' archive for static linking (except MSVC,
  199. # which needs '.lib').
  200. libext=a
  201. with_gnu_ld="$lt_cv_prog_gnu_ld"
  202. old_CC="$CC"
  203. old_CFLAGS="$CFLAGS"
  204. # Set sane defaults for various variables
  205. test -z "$CC" && CC=cc
  206. test -z "$LTCC" && LTCC=$CC
  207. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  208. test -z "$LD" && LD=ld
  209. test -z "$ac_objext" && ac_objext=o
  210. _LT_CC_BASENAME([$compiler])
  211. # Only perform the check for file, if the check method requires it
  212. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  213. case $deplibs_check_method in
  214. file_magic*)
  215. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  216. _LT_PATH_MAGIC
  217. fi
  218. ;;
  219. esac
  220. # Use C for the default configuration in the libtool script
  221. LT_SUPPORTED_TAG([CC])
  222. _LT_LANG_C_CONFIG
  223. _LT_LANG_DEFAULT_CONFIG
  224. _LT_CONFIG_COMMANDS
  225. ])# _LT_SETUP
  226. # _LT_PREPARE_SED_QUOTE_VARS
  227. # --------------------------
  228. # Define a few sed substitution that help us do robust quoting.
  229. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  230. [# Backslashify metacharacters that are still active within
  231. # double-quoted strings.
  232. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  233. # Same as above, but do not quote variable references.
  234. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  235. # Sed substitution to delay expansion of an escaped shell variable in a
  236. # double_quote_subst'ed string.
  237. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  238. # Sed substitution to delay expansion of an escaped single quote.
  239. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  240. # Sed substitution to avoid accidental globbing in evaled expressions
  241. no_glob_subst='s/\*/\\\*/g'
  242. ])
  243. # _LT_PROG_LTMAIN
  244. # ---------------
  245. # Note that this code is called both from `configure', and `config.status'
  246. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  247. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  248. # so we pass a copy along to make sure it has a sensible value anyway.
  249. m4_defun([_LT_PROG_LTMAIN],
  250. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  251. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  252. ltmain="$ac_aux_dir/ltmain.sh"
  253. ])# _LT_PROG_LTMAIN
  254. # So that we can recreate a full libtool script including additional
  255. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  256. # in macros and then make a single call at the end using the `libtool'
  257. # label.
  258. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  259. # ----------------------------------------
  260. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  261. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  262. [m4_ifval([$1],
  263. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  264. [$1
  265. ])])])
  266. # Initialize.
  267. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  268. # _LT_CONFIG_LIBTOOL([COMMANDS])
  269. # ------------------------------
  270. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  271. m4_define([_LT_CONFIG_LIBTOOL],
  272. [m4_ifval([$1],
  273. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  274. [$1
  275. ])])])
  276. # Initialize.
  277. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  278. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  279. # -----------------------------------------------------
  280. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  281. [_LT_CONFIG_LIBTOOL([$1])
  282. _LT_CONFIG_LIBTOOL_INIT([$2])
  283. ])
  284. # _LT_FORMAT_COMMENT([COMMENT])
  285. # -----------------------------
  286. # Add leading comment marks to the start of each line, and a trailing
  287. # full-stop to the whole comment if one is not present already.
  288. m4_define([_LT_FORMAT_COMMENT],
  289. [m4_ifval([$1], [
  290. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  291. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  292. )])
  293. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  294. # -------------------------------------------------------------------
  295. # CONFIGNAME is the name given to the value in the libtool script.
  296. # VARNAME is the (base) name used in the configure script.
  297. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  298. # VARNAME. Any other value will be used directly.
  299. m4_define([_LT_DECL],
  300. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  301. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  302. [m4_ifval([$1], [$1], [$2])])
  303. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  304. m4_ifval([$4],
  305. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  306. lt_dict_add_subkey([lt_decl_dict], [$2],
  307. [tagged?], [m4_ifval([$5], [yes], [no])])])
  308. ])
  309. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  310. # --------------------------------------------------------
  311. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  312. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  313. # ------------------------------------------------
  314. m4_define([lt_decl_tag_varnames],
  315. [_lt_decl_filter([tagged?], [yes], $@)])
  316. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  317. # ---------------------------------------------------------
  318. m4_define([_lt_decl_filter],
  319. [m4_case([$#],
  320. [0], [m4_fatal([$0: too few arguments: $#])],
  321. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  322. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  323. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  324. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  325. ])
  326. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  327. # --------------------------------------------------
  328. m4_define([lt_decl_quote_varnames],
  329. [_lt_decl_filter([value], [1], $@)])
  330. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  331. # ---------------------------------------------------
  332. m4_define([lt_decl_dquote_varnames],
  333. [_lt_decl_filter([value], [2], $@)])
  334. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  335. # ---------------------------------------------------
  336. m4_define([lt_decl_varnames_tagged],
  337. [m4_assert([$# <= 2])dnl
  338. _$0(m4_quote(m4_default([$1], [[, ]])),
  339. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  340. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  341. m4_define([_lt_decl_varnames_tagged],
  342. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  343. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  344. # ------------------------------------------------
  345. m4_define([lt_decl_all_varnames],
  346. [_$0(m4_quote(m4_default([$1], [[, ]])),
  347. m4_if([$2], [],
  348. m4_quote(lt_decl_varnames),
  349. m4_quote(m4_shift($@))))[]dnl
  350. ])
  351. m4_define([_lt_decl_all_varnames],
  352. [lt_join($@, lt_decl_varnames_tagged([$1],
  353. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  354. ])
  355. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  356. # ------------------------------------
  357. # Quote a variable value, and forward it to `config.status' so that its
  358. # declaration there will have the same value as in `configure'. VARNAME
  359. # must have a single quote delimited value for this to work.
  360. m4_define([_LT_CONFIG_STATUS_DECLARE],
  361. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  362. # _LT_CONFIG_STATUS_DECLARATIONS
  363. # ------------------------------
  364. # We delimit libtool config variables with single quotes, so when
  365. # we write them to config.status, we have to be sure to quote all
  366. # embedded single quotes properly. In configure, this macro expands
  367. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  368. #
  369. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  370. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  371. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  372. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  373. # _LT_LIBTOOL_TAGS
  374. # ----------------
  375. # Output comment and list of tags supported by the script
  376. m4_defun([_LT_LIBTOOL_TAGS],
  377. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  378. available_tags="_LT_TAGS"dnl
  379. ])
  380. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  381. # -----------------------------------
  382. # Extract the dictionary values for VARNAME (optionally with TAG) and
  383. # expand to a commented shell variable setting:
  384. #
  385. # # Some comment about what VAR is for.
  386. # visible_name=$lt_internal_name
  387. m4_define([_LT_LIBTOOL_DECLARE],
  388. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  389. [description])))[]dnl
  390. m4_pushdef([_libtool_name],
  391. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  392. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  393. [0], [_libtool_name=[$]$1],
  394. [1], [_libtool_name=$lt_[]$1],
  395. [2], [_libtool_name=$lt_[]$1],
  396. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  397. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  398. ])
  399. # _LT_LIBTOOL_CONFIG_VARS
  400. # -----------------------
  401. # Produce commented declarations of non-tagged libtool config variables
  402. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  403. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  404. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  405. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  406. [m4_foreach([_lt_var],
  407. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  408. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  409. # _LT_LIBTOOL_TAG_VARS(TAG)
  410. # -------------------------
  411. m4_define([_LT_LIBTOOL_TAG_VARS],
  412. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  413. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  414. # _LT_TAGVAR(VARNAME, [TAGNAME])
  415. # ------------------------------
  416. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  417. # _LT_CONFIG_COMMANDS
  418. # -------------------
  419. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  420. # variables for single and double quote escaping we saved from calls
  421. # to _LT_DECL, we can put quote escaped variables declarations
  422. # into `config.status', and then the shell code to quote escape them in
  423. # for loops in `config.status'. Finally, any additional code accumulated
  424. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  425. m4_defun([_LT_CONFIG_COMMANDS],
  426. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  427. dnl If the libtool generation code has been placed in $CONFIG_LT,
  428. dnl instead of duplicating it all over again into config.status,
  429. dnl then we will have config.status run $CONFIG_LT later, so it
  430. dnl needs to know what name is stored there:
  431. [AC_CONFIG_COMMANDS([libtool],
  432. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  433. dnl If the libtool generation code is destined for config.status,
  434. dnl expand the accumulated commands and init code now:
  435. [AC_CONFIG_COMMANDS([libtool],
  436. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  437. ])#_LT_CONFIG_COMMANDS
  438. # Initialize.
  439. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  440. [
  441. # The HP-UX ksh and POSIX shell print the target directory to stdout
  442. # if CDPATH is set.
  443. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  444. sed_quote_subst='$sed_quote_subst'
  445. double_quote_subst='$double_quote_subst'
  446. delay_variable_subst='$delay_variable_subst'
  447. _LT_CONFIG_STATUS_DECLARATIONS
  448. LTCC='$LTCC'
  449. LTCFLAGS='$LTCFLAGS'
  450. compiler='$compiler_DEFAULT'
  451. # A function that is used when there is no print builtin or printf.
  452. func_fallback_echo ()
  453. {
  454. eval 'cat <<_LTECHO_EOF
  455. \$[]1
  456. _LTECHO_EOF'
  457. }
  458. # Quote evaled strings.
  459. for var in lt_decl_all_varnames([[ \
  460. ]], lt_decl_quote_varnames); do
  461. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  462. *[[\\\\\\\`\\"\\\$]]*)
  463. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  464. ;;
  465. *)
  466. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  467. ;;
  468. esac
  469. done
  470. # Double-quote double-evaled strings.
  471. for var in lt_decl_all_varnames([[ \
  472. ]], lt_decl_dquote_varnames); do
  473. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  474. *[[\\\\\\\`\\"\\\$]]*)
  475. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  476. ;;
  477. *)
  478. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  479. ;;
  480. esac
  481. done
  482. _LT_OUTPUT_LIBTOOL_INIT
  483. ])
  484. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  485. # ------------------------------------
  486. # Generate a child script FILE with all initialization necessary to
  487. # reuse the environment learned by the parent script, and make the
  488. # file executable. If COMMENT is supplied, it is inserted after the
  489. # `#!' sequence but before initialization text begins. After this
  490. # macro, additional text can be appended to FILE to form the body of
  491. # the child script. The macro ends with non-zero status if the
  492. # file could not be fully written (such as if the disk is full).
  493. m4_ifdef([AS_INIT_GENERATED],
  494. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  495. [m4_defun([_LT_GENERATED_FILE_INIT],
  496. [m4_require([AS_PREPARE])]dnl
  497. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  498. [lt_write_fail=0
  499. cat >$1 <<_ASEOF || lt_write_fail=1
  500. #! $SHELL
  501. # Generated by $as_me.
  502. $2
  503. SHELL=\${CONFIG_SHELL-$SHELL}
  504. export SHELL
  505. _ASEOF
  506. cat >>$1 <<\_ASEOF || lt_write_fail=1
  507. AS_SHELL_SANITIZE
  508. _AS_PREPARE
  509. exec AS_MESSAGE_FD>&1
  510. _ASEOF
  511. test $lt_write_fail = 0 && chmod +x $1[]dnl
  512. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  513. # LT_OUTPUT
  514. # ---------
  515. # This macro allows early generation of the libtool script (before
  516. # AC_OUTPUT is called), incase it is used in configure for compilation
  517. # tests.
  518. AC_DEFUN([LT_OUTPUT],
  519. [: ${CONFIG_LT=./config.lt}
  520. AC_MSG_NOTICE([creating $CONFIG_LT])
  521. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  522. [# Run this file to recreate a libtool stub with the current configuration.])
  523. cat >>"$CONFIG_LT" <<\_LTEOF
  524. lt_cl_silent=false
  525. exec AS_MESSAGE_LOG_FD>>config.log
  526. {
  527. echo
  528. AS_BOX([Running $as_me.])
  529. } >&AS_MESSAGE_LOG_FD
  530. lt_cl_help="\
  531. \`$as_me' creates a local libtool stub from the current configuration,
  532. for use in further configure time tests before the real libtool is
  533. generated.
  534. Usage: $[0] [[OPTIONS]]
  535. -h, --help print this help, then exit
  536. -V, --version print version number, then exit
  537. -q, --quiet do not print progress messages
  538. -d, --debug don't remove temporary files
  539. Report bugs to <bug-libtool@gnu.org>."
  540. lt_cl_version="\
  541. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  542. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  543. configured by $[0], generated by m4_PACKAGE_STRING.
  544. Copyright (C) 2010 Free Software Foundation, Inc.
  545. This config.lt script is free software; the Free Software Foundation
  546. gives unlimited permision to copy, distribute and modify it."
  547. while test $[#] != 0
  548. do
  549. case $[1] in
  550. --version | --v* | -V )
  551. echo "$lt_cl_version"; exit 0 ;;
  552. --help | --h* | -h )
  553. echo "$lt_cl_help"; exit 0 ;;
  554. --debug | --d* | -d )
  555. debug=: ;;
  556. --quiet | --q* | --silent | --s* | -q )
  557. lt_cl_silent=: ;;
  558. -*) AC_MSG_ERROR([unrecognized option: $[1]
  559. Try \`$[0] --help' for more information.]) ;;
  560. *) AC_MSG_ERROR([unrecognized argument: $[1]
  561. Try \`$[0] --help' for more information.]) ;;
  562. esac
  563. shift
  564. done
  565. if $lt_cl_silent; then
  566. exec AS_MESSAGE_FD>/dev/null
  567. fi
  568. _LTEOF
  569. cat >>"$CONFIG_LT" <<_LTEOF
  570. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  571. _LTEOF
  572. cat >>"$CONFIG_LT" <<\_LTEOF
  573. AC_MSG_NOTICE([creating $ofile])
  574. _LT_OUTPUT_LIBTOOL_COMMANDS
  575. AS_EXIT(0)
  576. _LTEOF
  577. chmod +x "$CONFIG_LT"
  578. # configure is writing to config.log, but config.lt does its own redirection,
  579. # appending to config.log, which fails on DOS, as config.log is still kept
  580. # open by configure. Here we exec the FD to /dev/null, effectively closing
  581. # config.log, so it can be properly (re)opened and appended to by config.lt.
  582. lt_cl_success=:
  583. test "$silent" = yes &&
  584. lt_config_lt_args="$lt_config_lt_args --quiet"
  585. exec AS_MESSAGE_LOG_FD>/dev/null
  586. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  587. exec AS_MESSAGE_LOG_FD>>config.log
  588. $lt_cl_success || AS_EXIT(1)
  589. ])# LT_OUTPUT
  590. # _LT_CONFIG(TAG)
  591. # ---------------
  592. # If TAG is the built-in tag, create an initial libtool script with a
  593. # default configuration from the untagged config vars. Otherwise add code
  594. # to config.status for appending the configuration named by TAG from the
  595. # matching tagged config vars.
  596. m4_defun([_LT_CONFIG],
  597. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  598. _LT_CONFIG_SAVE_COMMANDS([
  599. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  600. m4_if(_LT_TAG, [C], [
  601. # See if we are running on zsh, and set the options which allow our
  602. # commands through without removal of \ escapes.
  603. if test -n "${ZSH_VERSION+set}" ; then
  604. setopt NO_GLOB_SUBST
  605. fi
  606. cfgfile="${ofile}T"
  607. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  608. $RM "$cfgfile"
  609. cat <<_LT_EOF >> "$cfgfile"
  610. #! $SHELL
  611. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  612. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  613. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  614. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  615. #
  616. _LT_COPYING
  617. _LT_LIBTOOL_TAGS
  618. # ### BEGIN LIBTOOL CONFIG
  619. _LT_LIBTOOL_CONFIG_VARS
  620. _LT_LIBTOOL_TAG_VARS
  621. # ### END LIBTOOL CONFIG
  622. _LT_EOF
  623. case $host_os in
  624. aix3*)
  625. cat <<\_LT_EOF >> "$cfgfile"
  626. # AIX sometimes has problems with the GCC collect2 program. For some
  627. # reason, if we set the COLLECT_NAMES environment variable, the problems
  628. # vanish in a puff of smoke.
  629. if test "X${COLLECT_NAMES+set}" != Xset; then
  630. COLLECT_NAMES=
  631. export COLLECT_NAMES
  632. fi
  633. _LT_EOF
  634. ;;
  635. esac
  636. _LT_PROG_LTMAIN
  637. # We use sed instead of cat because bash on DJGPP gets confused if
  638. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  639. # text mode, it properly converts lines to CR/LF. This bash problem
  640. # is reportedly fixed, but why not run on old versions too?
  641. sed '$q' "$ltmain" >> "$cfgfile" \
  642. || (rm -f "$cfgfile"; exit 1)
  643. _LT_PROG_REPLACE_SHELLFNS
  644. mv -f "$cfgfile" "$ofile" ||
  645. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  646. chmod +x "$ofile"
  647. ],
  648. [cat <<_LT_EOF >> "$ofile"
  649. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  650. dnl in a comment (ie after a #).
  651. # ### BEGIN LIBTOOL TAG CONFIG: $1
  652. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  653. # ### END LIBTOOL TAG CONFIG: $1
  654. _LT_EOF
  655. ])dnl /m4_if
  656. ],
  657. [m4_if([$1], [], [
  658. PACKAGE='$PACKAGE'
  659. VERSION='$VERSION'
  660. TIMESTAMP='$TIMESTAMP'
  661. RM='$RM'
  662. ofile='$ofile'], [])
  663. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  664. ])# _LT_CONFIG
  665. # LT_SUPPORTED_TAG(TAG)
  666. # ---------------------
  667. # Trace this macro to discover what tags are supported by the libtool
  668. # --tag option, using:
  669. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  670. AC_DEFUN([LT_SUPPORTED_TAG], [])
  671. # C support is built-in for now
  672. m4_define([_LT_LANG_C_enabled], [])
  673. m4_define([_LT_TAGS], [])
  674. # LT_LANG(LANG)
  675. # -------------
  676. # Enable libtool support for the given language if not already enabled.
  677. AC_DEFUN([LT_LANG],
  678. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  679. m4_case([$1],
  680. [C], [_LT_LANG(C)],
  681. [C++], [_LT_LANG(CXX)],
  682. [Java], [_LT_LANG(GCJ)],
  683. [Fortran 77], [_LT_LANG(F77)],
  684. [Fortran], [_LT_LANG(FC)],
  685. [Windows Resource], [_LT_LANG(RC)],
  686. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  687. [_LT_LANG($1)],
  688. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  689. ])# LT_LANG
  690. # _LT_LANG(LANGNAME)
  691. # ------------------
  692. m4_defun([_LT_LANG],
  693. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  694. [LT_SUPPORTED_TAG([$1])dnl
  695. m4_append([_LT_TAGS], [$1 ])dnl
  696. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  697. _LT_LANG_$1_CONFIG($1)])dnl
  698. ])# _LT_LANG
  699. # _LT_LANG_DEFAULT_CONFIG
  700. # -----------------------
  701. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  702. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  703. [LT_LANG(CXX)],
  704. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  705. AC_PROVIDE_IFELSE([AC_PROG_F77],
  706. [LT_LANG(F77)],
  707. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  708. AC_PROVIDE_IFELSE([AC_PROG_FC],
  709. [LT_LANG(FC)],
  710. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  711. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  712. dnl pulling things in needlessly.
  713. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  714. [LT_LANG(GCJ)],
  715. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  716. [LT_LANG(GCJ)],
  717. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  718. [LT_LANG(GCJ)],
  719. [m4_ifdef([AC_PROG_GCJ],
  720. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  721. m4_ifdef([A][M_PROG_GCJ],
  722. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  723. m4_ifdef([LT_PROG_GCJ],
  724. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  725. AC_PROVIDE_IFELSE([LT_PROG_RC],
  726. [LT_LANG(RC)],
  727. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  728. ])# _LT_LANG_DEFAULT_CONFIG
  729. # Obsolete macros:
  730. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  731. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  732. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  733. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  734. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  735. dnl aclocal-1.4 backwards compatibility:
  736. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  737. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  738. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  739. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  740. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  741. # _LT_TAG_COMPILER
  742. # ----------------
  743. m4_defun([_LT_TAG_COMPILER],
  744. [AC_REQUIRE([AC_PROG_CC])dnl
  745. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  746. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  747. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  748. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  749. # If no C compiler was specified, use CC.
  750. LTCC=${LTCC-"$CC"}
  751. # If no C compiler flags were specified, use CFLAGS.
  752. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  753. # Allow CC to be a program name with arguments.
  754. compiler=$CC
  755. ])# _LT_TAG_COMPILER
  756. # _LT_COMPILER_BOILERPLATE
  757. # ------------------------
  758. # Check for compiler boilerplate output or warnings with
  759. # the simple compiler test code.
  760. m4_defun([_LT_COMPILER_BOILERPLATE],
  761. [m4_require([_LT_DECL_SED])dnl
  762. ac_outfile=conftest.$ac_objext
  763. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  764. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  765. _lt_compiler_boilerplate=`cat conftest.err`
  766. $RM conftest*
  767. ])# _LT_COMPILER_BOILERPLATE
  768. # _LT_LINKER_BOILERPLATE
  769. # ----------------------
  770. # Check for linker boilerplate output or warnings with
  771. # the simple link test code.
  772. m4_defun([_LT_LINKER_BOILERPLATE],
  773. [m4_require([_LT_DECL_SED])dnl
  774. ac_outfile=conftest.$ac_objext
  775. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  776. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  777. _lt_linker_boilerplate=`cat conftest.err`
  778. $RM -r conftest*
  779. ])# _LT_LINKER_BOILERPLATE
  780. # _LT_REQUIRED_DARWIN_CHECKS
  781. # -------------------------
  782. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  783. case $host_os in
  784. rhapsody* | darwin*)
  785. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  786. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  787. AC_CHECK_TOOL([LIPO], [lipo], [:])
  788. AC_CHECK_TOOL([OTOOL], [otool], [:])
  789. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  790. _LT_DECL([], [DSYMUTIL], [1],
  791. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  792. _LT_DECL([], [NMEDIT], [1],
  793. [Tool to change global to local symbols on Mac OS X])
  794. _LT_DECL([], [LIPO], [1],
  795. [Tool to manipulate fat objects and archives on Mac OS X])
  796. _LT_DECL([], [OTOOL], [1],
  797. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  798. _LT_DECL([], [OTOOL64], [1],
  799. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  800. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  801. [lt_cv_apple_cc_single_mod=no
  802. if test -z "${LT_MULTI_MODULE}"; then
  803. # By default we will add the -single_module flag. You can override
  804. # by either setting the environment variable LT_MULTI_MODULE
  805. # non-empty at configure time, or by adding -multi_module to the
  806. # link flags.
  807. rm -rf libconftest.dylib*
  808. echo "int foo(void){return 1;}" > conftest.c
  809. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  810. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  811. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  812. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  813. _lt_result=$?
  814. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  815. lt_cv_apple_cc_single_mod=yes
  816. else
  817. cat conftest.err >&AS_MESSAGE_LOG_FD
  818. fi
  819. rm -rf libconftest.dylib*
  820. rm -f conftest.*
  821. fi])
  822. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  823. [lt_cv_ld_exported_symbols_list],
  824. [lt_cv_ld_exported_symbols_list=no
  825. save_LDFLAGS=$LDFLAGS
  826. echo "_main" > conftest.sym
  827. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  828. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  829. [lt_cv_ld_exported_symbols_list=yes],
  830. [lt_cv_ld_exported_symbols_list=no])
  831. LDFLAGS="$save_LDFLAGS"
  832. ])
  833. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  834. [lt_cv_ld_force_load=no
  835. cat > conftest.c << _LT_EOF
  836. int forced_loaded() { return 2;}
  837. _LT_EOF
  838. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  839. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  840. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  841. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  842. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  843. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  844. cat > conftest.c << _LT_EOF
  845. int main() { return 0;}
  846. _LT_EOF
  847. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  848. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  849. _lt_result=$?
  850. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  851. lt_cv_ld_force_load=yes
  852. else
  853. cat conftest.err >&AS_MESSAGE_LOG_FD
  854. fi
  855. rm -f conftest.err libconftest.a conftest conftest.c
  856. rm -rf conftest.dSYM
  857. ])
  858. case $host_os in
  859. rhapsody* | darwin1.[[012]])
  860. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  861. darwin1.*)
  862. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  863. darwin*) # darwin 5.x on
  864. # if running on 10.5 or later, the deployment target defaults
  865. # to the OS version, if on x86, and 10.4, the deployment
  866. # target defaults to 10.4. Don't you love it?
  867. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  868. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  869. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  870. 10.[[012]]*)
  871. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  872. 10.*)
  873. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  874. esac
  875. ;;
  876. esac
  877. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  878. _lt_dar_single_mod='$single_module'
  879. fi
  880. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  881. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  882. else
  883. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  884. fi
  885. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  886. _lt_dsymutil='~$DSYMUTIL $lib || :'
  887. else
  888. _lt_dsymutil=
  889. fi
  890. ;;
  891. esac
  892. ])
  893. # _LT_DARWIN_LINKER_FEATURES
  894. # --------------------------
  895. # Checks for linker and compiler features on darwin
  896. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  897. [
  898. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  899. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  900. _LT_TAGVAR(hardcode_direct, $1)=no
  901. _LT_TAGVAR(hardcode_automatic, $1)=yes
  902. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  903. if test "$lt_cv_ld_force_load" = "yes"; then
  904. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  905. else
  906. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  907. fi
  908. _LT_TAGVAR(link_all_deplibs, $1)=yes
  909. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  910. case $cc_basename in
  911. ifort*) _lt_dar_can_shared=yes ;;
  912. *) _lt_dar_can_shared=$GCC ;;
  913. esac
  914. if test "$_lt_dar_can_shared" = "yes"; then
  915. output_verbose_link_cmd=func_echo_all
  916. _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}"
  917. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  918. _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}"
  919. _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}"
  920. m4_if([$1], [CXX],
  921. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  922. _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}"
  923. _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}"
  924. fi
  925. ],[])
  926. else
  927. _LT_TAGVAR(ld_shlibs, $1)=no
  928. fi
  929. ])
  930. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  931. # ----------------------------------
  932. # Links a minimal program and checks the executable
  933. # for the system default hardcoded library path. In most cases,
  934. # this is /usr/lib:/lib, but when the MPI compilers are used
  935. # the location of the communication and MPI libs are included too.
  936. # If we don't find anything, use the default library path according
  937. # to the aix ld manual.
  938. # Store the results from the different compilers for each TAGNAME.
  939. # Allow to override them for all tags through lt_cv_aix_libpath.
  940. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  941. [m4_require([_LT_DECL_SED])dnl
  942. if test "${lt_cv_aix_libpath+set}" = set; then
  943. aix_libpath=$lt_cv_aix_libpath
  944. else
  945. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  946. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  947. lt_aix_libpath_sed='[
  948. /Import File Strings/,/^$/ {
  949. /^0/ {
  950. s/^0 *\([^ ]*\) *$/\1/
  951. p
  952. }
  953. }]'
  954. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  955. # Check for a 64-bit object if we didn't find anything.
  956. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  957. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  958. fi],[])
  959. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  960. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  961. fi
  962. ])
  963. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  964. fi
  965. ])# _LT_SYS_MODULE_PATH_AIX
  966. # _LT_SHELL_INIT(ARG)
  967. # -------------------
  968. m4_define([_LT_SHELL_INIT],
  969. [m4_divert_text([M4SH-INIT], [$1
  970. ])])# _LT_SHELL_INIT
  971. # _LT_PROG_ECHO_BACKSLASH
  972. # -----------------------
  973. # Find how we can fake an echo command that does not interpret backslash.
  974. # In particular, with Autoconf 2.60 or later we add some code to the start
  975. # of the generated configure script which will find a shell with a builtin
  976. # printf (which we can use as an echo command).
  977. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  978. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  979. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  980. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  981. AC_MSG_CHECKING([how to print strings])
  982. # Test print first, because it will be a builtin if present.
  983. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  984. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  985. ECHO='print -r --'
  986. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  987. ECHO='printf %s\n'
  988. else
  989. # Use this function as a fallback that always works.
  990. func_fallback_echo ()
  991. {
  992. eval 'cat <<_LTECHO_EOF
  993. $[]1
  994. _LTECHO_EOF'
  995. }
  996. ECHO='func_fallback_echo'
  997. fi
  998. # func_echo_all arg...
  999. # Invoke $ECHO with all args, space-separated.
  1000. func_echo_all ()
  1001. {
  1002. $ECHO "$*"
  1003. }
  1004. case "$ECHO" in
  1005. printf*) AC_MSG_RESULT([printf]) ;;
  1006. print*) AC_MSG_RESULT([print -r]) ;;
  1007. *) AC_MSG_RESULT([cat]) ;;
  1008. esac
  1009. m4_ifdef([_AS_DETECT_SUGGESTED],
  1010. [_AS_DETECT_SUGGESTED([
  1011. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1012. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1013. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1014. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1015. PATH=/empty FPATH=/empty; export PATH FPATH
  1016. test "X`printf %s $ECHO`" = "X$ECHO" \
  1017. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1018. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1019. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1020. ])# _LT_PROG_ECHO_BACKSLASH
  1021. # _LT_WITH_SYSROOT
  1022. # ----------------
  1023. AC_DEFUN([_LT_WITH_SYSROOT],
  1024. [AC_MSG_CHECKING([for sysroot])
  1025. AC_ARG_WITH([sysroot],
  1026. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1027. (or the compiler's sysroot if not specified).],
  1028. [], [with_sysroot=no])
  1029. dnl lt_sysroot will always be passed unquoted. We quote it here
  1030. dnl in case the user passed a directory name.
  1031. lt_sysroot=
  1032. case ${with_sysroot} in #(
  1033. yes)
  1034. if test "$GCC" = yes; then
  1035. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1036. fi
  1037. ;; #(
  1038. /*)
  1039. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1040. ;; #(
  1041. no|'')
  1042. ;; #(
  1043. *)
  1044. AC_MSG_RESULT([${with_sysroot}])
  1045. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1046. ;;
  1047. esac
  1048. AC_MSG_RESULT([${lt_sysroot:-no}])
  1049. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1050. [dependent libraries, and in which our libraries should be installed.])])
  1051. # _LT_ENABLE_LOCK
  1052. # ---------------
  1053. m4_defun([_LT_ENABLE_LOCK],
  1054. [AC_ARG_ENABLE([libtool-lock],
  1055. [AS_HELP_STRING([--disable-libtool-lock],
  1056. [avoid locking (might break parallel builds)])])
  1057. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1058. # Some flags need to be propagated to the compiler or linker for good
  1059. # libtool support.
  1060. case $host in
  1061. ia64-*-hpux*)
  1062. # Find out which ABI we are using.
  1063. echo 'int i;' > conftest.$ac_ext
  1064. if AC_TRY_EVAL(ac_compile); then
  1065. case `/usr/bin/file conftest.$ac_objext` in
  1066. *ELF-32*)
  1067. HPUX_IA64_MODE="32"
  1068. ;;
  1069. *ELF-64*)
  1070. HPUX_IA64_MODE="64"
  1071. ;;
  1072. esac
  1073. fi
  1074. rm -rf conftest*
  1075. ;;
  1076. *-*-irix6*)
  1077. # Find out which ABI we are using.
  1078. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1079. if AC_TRY_EVAL(ac_compile); then
  1080. if test "$lt_cv_prog_gnu_ld" = yes; then
  1081. case `/usr/bin/file conftest.$ac_objext` in
  1082. *32-bit*)
  1083. LD="${LD-ld} -melf32bsmip"
  1084. ;;
  1085. *N32*)
  1086. LD="${LD-ld} -melf32bmipn32"
  1087. ;;
  1088. *64-bit*)
  1089. LD="${LD-ld} -melf64bmip"
  1090. ;;
  1091. esac
  1092. else
  1093. case `/usr/bin/file conftest.$ac_objext` in
  1094. *32-bit*)
  1095. LD="${LD-ld} -32"
  1096. ;;
  1097. *N32*)
  1098. LD="${LD-ld} -n32"
  1099. ;;
  1100. *64-bit*)
  1101. LD="${LD-ld} -64"
  1102. ;;
  1103. esac
  1104. fi
  1105. fi
  1106. rm -rf conftest*
  1107. ;;
  1108. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1109. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1110. # Find out which ABI we are using.
  1111. echo 'int i;' > conftest.$ac_ext
  1112. if AC_TRY_EVAL(ac_compile); then
  1113. case `/usr/bin/file conftest.o` in
  1114. *32-bit*)
  1115. case $host in
  1116. x86_64-*kfreebsd*-gnu)
  1117. LD="${LD-ld} -m elf_i386_fbsd"
  1118. ;;
  1119. x86_64-*linux*)
  1120. LD="${LD-ld} -m elf_i386"
  1121. ;;
  1122. ppc64-*linux*|powerpc64-*linux*)
  1123. LD="${LD-ld} -m elf32ppclinux"
  1124. ;;
  1125. s390x-*linux*)
  1126. LD="${LD-ld} -m elf_s390"
  1127. ;;
  1128. sparc64-*linux*)
  1129. LD="${LD-ld} -m elf32_sparc"
  1130. ;;
  1131. esac
  1132. ;;
  1133. *64-bit*)
  1134. case $host in
  1135. x86_64-*kfreebsd*-gnu)
  1136. LD="${LD-ld} -m elf_x86_64_fbsd"
  1137. ;;
  1138. x86_64-*linux*)
  1139. LD="${LD-ld} -m elf_x86_64"
  1140. ;;
  1141. ppc*-*linux*|powerpc*-*linux*)
  1142. LD="${LD-ld} -m elf64ppc"
  1143. ;;
  1144. s390*-*linux*|s390*-*tpf*)
  1145. LD="${LD-ld} -m elf64_s390"
  1146. ;;
  1147. sparc*-*linux*)
  1148. LD="${LD-ld} -m elf64_sparc"
  1149. ;;
  1150. esac
  1151. ;;
  1152. esac
  1153. fi
  1154. rm -rf conftest*
  1155. ;;
  1156. *-*-sco3.2v5*)
  1157. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1158. SAVE_CFLAGS="$CFLAGS"
  1159. CFLAGS="$CFLAGS -belf"
  1160. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1161. [AC_LANG_PUSH(C)
  1162. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1163. AC_LANG_POP])
  1164. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1165. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1166. CFLAGS="$SAVE_CFLAGS"
  1167. fi
  1168. ;;
  1169. sparc*-*solaris*)
  1170. # Find out which ABI we are using.
  1171. echo 'int i;' > conftest.$ac_ext
  1172. if AC_TRY_EVAL(ac_compile); then
  1173. case `/usr/bin/file conftest.o` in
  1174. *64-bit*)
  1175. case $lt_cv_prog_gnu_ld in
  1176. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1177. *)
  1178. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1179. LD="${LD-ld} -64"
  1180. fi
  1181. ;;
  1182. esac
  1183. ;;
  1184. esac
  1185. fi
  1186. rm -rf conftest*
  1187. ;;
  1188. esac
  1189. need_locks="$enable_libtool_lock"
  1190. ])# _LT_ENABLE_LOCK
  1191. # _LT_PROG_AR
  1192. # -----------
  1193. m4_defun([_LT_PROG_AR],
  1194. [AC_CHECK_TOOLS(AR, [ar], false)
  1195. : ${AR=ar}
  1196. : ${AR_FLAGS=cru}
  1197. _LT_DECL([], [AR], [1], [The archiver])
  1198. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1199. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1200. [lt_cv_ar_at_file=no
  1201. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1202. [echo conftest.$ac_objext > conftest.lst
  1203. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1204. AC_TRY_EVAL([lt_ar_try])
  1205. if test "$ac_status" -eq 0; then
  1206. # Ensure the archiver fails upon bogus file names.
  1207. rm -f conftest.$ac_objext libconftest.a
  1208. AC_TRY_EVAL([lt_ar_try])
  1209. if test "$ac_status" -ne 0; then
  1210. lt_cv_ar_at_file=@
  1211. fi
  1212. fi
  1213. rm -f conftest.* libconftest.a
  1214. ])
  1215. ])
  1216. if test "x$lt_cv_ar_at_file" = xno; then
  1217. archiver_list_spec=
  1218. else
  1219. archiver_list_spec=$lt_cv_ar_at_file
  1220. fi
  1221. _LT_DECL([], [archiver_list_spec], [1],
  1222. [How to feed a file listing to the archiver])
  1223. ])# _LT_PROG_AR
  1224. # _LT_CMD_OLD_ARCHIVE
  1225. # -------------------
  1226. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1227. [_LT_PROG_AR
  1228. AC_CHECK_TOOL(STRIP, strip, :)
  1229. test -z "$STRIP" && STRIP=:
  1230. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1231. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1232. test -z "$RANLIB" && RANLIB=:
  1233. _LT_DECL([], [RANLIB], [1],
  1234. [Commands used to install an old-style archive])
  1235. # Determine commands to create old-style static archives.
  1236. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1237. old_postinstall_cmds='chmod 644 $oldlib'
  1238. old_postuninstall_cmds=
  1239. if test -n "$RANLIB"; then
  1240. case $host_os in
  1241. openbsd*)
  1242. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1243. ;;
  1244. *)
  1245. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1246. ;;
  1247. esac
  1248. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1249. fi
  1250. case $host_os in
  1251. darwin*)
  1252. lock_old_archive_extraction=yes ;;
  1253. *)
  1254. lock_old_archive_extraction=no ;;
  1255. esac
  1256. _LT_DECL([], [old_postinstall_cmds], [2])
  1257. _LT_DECL([], [old_postuninstall_cmds], [2])
  1258. _LT_TAGDECL([], [old_archive_cmds], [2],
  1259. [Commands used to build an old-style archive])
  1260. _LT_DECL([], [lock_old_archive_extraction], [0],
  1261. [Whether to use a lock for old archive extraction])
  1262. ])# _LT_CMD_OLD_ARCHIVE
  1263. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1264. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1265. # ----------------------------------------------------------------
  1266. # Check whether the given compiler option works
  1267. AC_DEFUN([_LT_COMPILER_OPTION],
  1268. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1269. m4_require([_LT_DECL_SED])dnl
  1270. AC_CACHE_CHECK([$1], [$2],
  1271. [$2=no
  1272. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1273. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1274. lt_compiler_flag="$3"
  1275. # Insert the option either (1) after the last *FLAGS variable, or
  1276. # (2) before a word containing "conftest.", or (3) at the end.
  1277. # Note that $ac_compile itself does not contain backslashes and begins
  1278. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1279. # The option is referenced via a variable to avoid confusing sed.
  1280. lt_compile=`echo "$ac_compile" | $SED \
  1281. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1282. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1283. -e 's:$: $lt_compiler_flag:'`
  1284. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1285. (eval "$lt_compile" 2>conftest.err)
  1286. ac_status=$?
  1287. cat conftest.err >&AS_MESSAGE_LOG_FD
  1288. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1289. if (exit $ac_status) && test -s "$ac_outfile"; then
  1290. # The compiler can only warn and ignore the option if not recognized
  1291. # So say no if there are warnings other than the usual output.
  1292. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1293. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1294. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1295. $2=yes
  1296. fi
  1297. fi
  1298. $RM conftest*
  1299. ])
  1300. if test x"[$]$2" = xyes; then
  1301. m4_if([$5], , :, [$5])
  1302. else
  1303. m4_if([$6], , :, [$6])
  1304. fi
  1305. ])# _LT_COMPILER_OPTION
  1306. # Old name:
  1307. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1308. dnl aclocal-1.4 backwards compatibility:
  1309. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1310. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1311. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1312. # ----------------------------------------------------
  1313. # Check whether the given linker option works
  1314. AC_DEFUN([_LT_LINKER_OPTION],
  1315. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1316. m4_require([_LT_DECL_SED])dnl
  1317. AC_CACHE_CHECK([$1], [$2],
  1318. [$2=no
  1319. save_LDFLAGS="$LDFLAGS"
  1320. LDFLAGS="$LDFLAGS $3"
  1321. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1322. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1323. # The linker can only warn and ignore the option if not recognized
  1324. # So say no if there are warnings
  1325. if test -s conftest.err; then
  1326. # Append any errors to the config.log.
  1327. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1328. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1329. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1330. if diff conftest.exp conftest.er2 >/dev/null; then
  1331. $2=yes
  1332. fi
  1333. else
  1334. $2=yes
  1335. fi
  1336. fi
  1337. $RM -r conftest*
  1338. LDFLAGS="$save_LDFLAGS"
  1339. ])
  1340. if test x"[$]$2" = xyes; then
  1341. m4_if([$4], , :, [$4])
  1342. else
  1343. m4_if([$5], , :, [$5])
  1344. fi
  1345. ])# _LT_LINKER_OPTION
  1346. # Old name:
  1347. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1348. dnl aclocal-1.4 backwards compatibility:
  1349. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1350. # LT_CMD_MAX_LEN
  1351. #---------------
  1352. AC_DEFUN([LT_CMD_MAX_LEN],
  1353. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1354. # find the maximum length of command line arguments
  1355. AC_MSG_CHECKING([the maximum length of command line arguments])
  1356. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1357. i=0
  1358. teststring="ABCD"
  1359. case $build_os in
  1360. msdosdjgpp*)
  1361. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1362. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1363. # during glob expansion). Even if it were fixed, the result of this
  1364. # check would be larger than it should be.
  1365. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1366. ;;
  1367. gnu*)
  1368. # Under GNU Hurd, this test is not required because there is
  1369. # no limit to the length of command line arguments.
  1370. # Libtool will interpret -1 as no limit whatsoever
  1371. lt_cv_sys_max_cmd_len=-1;
  1372. ;;
  1373. cygwin* | mingw* | cegcc*)
  1374. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1375. # about 5 minutes as the teststring grows exponentially.
  1376. # Worse, since 9x/ME are not pre-emptively multitasking,
  1377. # you end up with a "frozen" computer, even though with patience
  1378. # the test eventually succeeds (with a max line length of 256k).
  1379. # Instead, let's just punt: use the minimum linelength reported by
  1380. # all of the supported platforms: 8192 (on NT/2K/XP).
  1381. lt_cv_sys_max_cmd_len=8192;
  1382. ;;
  1383. mint*)
  1384. # On MiNT this can take a long time and run out of memory.
  1385. lt_cv_sys_max_cmd_len=8192;
  1386. ;;
  1387. amigaos*)
  1388. # On AmigaOS with pdksh, this test takes hours, literally.
  1389. # So we just punt and use a minimum line length of 8192.
  1390. lt_cv_sys_max_cmd_len=8192;
  1391. ;;
  1392. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1393. # This has been around since 386BSD, at least. Likely further.
  1394. if test -x /sbin/sysctl; then
  1395. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1396. elif test -x /usr/sbin/sysctl; then
  1397. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1398. else
  1399. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1400. fi
  1401. # And add a safety zone
  1402. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1403. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1404. ;;
  1405. interix*)
  1406. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1407. lt_cv_sys_max_cmd_len=196608
  1408. ;;
  1409. osf*)
  1410. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1411. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1412. # nice to cause kernel panics so lets avoid the loop below.
  1413. # First set a reasonable default.
  1414. lt_cv_sys_max_cmd_len=16384
  1415. #
  1416. if test -x /sbin/sysconfig; then
  1417. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1418. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1419. esac
  1420. fi
  1421. ;;
  1422. sco3.2v5*)
  1423. lt_cv_sys_max_cmd_len=102400
  1424. ;;
  1425. sysv5* | sco5v6* | sysv4.2uw2*)
  1426. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1427. if test -n "$kargmax"; then
  1428. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1429. else
  1430. lt_cv_sys_max_cmd_len=32768
  1431. fi
  1432. ;;
  1433. *)
  1434. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1435. if test -n "$lt_cv_sys_max_cmd_len"; then
  1436. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1437. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1438. else
  1439. # Make teststring a little bigger before we do anything with it.
  1440. # a 1K string should be a reasonable start.
  1441. for i in 1 2 3 4 5 6 7 8 ; do
  1442. teststring=$teststring$teststring
  1443. done
  1444. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1445. # If test is not a shell built-in, we'll probably end up computing a
  1446. # maximum length that is only half of the actual maximum length, but
  1447. # we can't tell.
  1448. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  1449. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1450. test $i != 17 # 1/2 MB should be enough
  1451. do
  1452. i=`expr $i + 1`
  1453. teststring=$teststring$teststring
  1454. done
  1455. # Only check the string length outside the loop.
  1456. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1457. teststring=
  1458. # Add a significant safety factor because C++ compilers can tack on
  1459. # massive amounts of additional arguments before passing them to the
  1460. # linker. It appears as though 1/2 is a usable value.
  1461. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1462. fi
  1463. ;;
  1464. esac
  1465. ])
  1466. if test -n $lt_cv_sys_max_cmd_len ; then
  1467. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1468. else
  1469. AC_MSG_RESULT(none)
  1470. fi
  1471. max_cmd_len=$lt_cv_sys_max_cmd_len
  1472. _LT_DECL([], [max_cmd_len], [0],
  1473. [What is the maximum length of a command?])
  1474. ])# LT_CMD_MAX_LEN
  1475. # Old name:
  1476. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1477. dnl aclocal-1.4 backwards compatibility:
  1478. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1479. # _LT_HEADER_DLFCN
  1480. # ----------------
  1481. m4_defun([_LT_HEADER_DLFCN],
  1482. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1483. ])# _LT_HEADER_DLFCN
  1484. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1485. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1486. # ----------------------------------------------------------------
  1487. m4_defun([_LT_TRY_DLOPEN_SELF],
  1488. [m4_require([_LT_HEADER_DLFCN])dnl
  1489. if test "$cross_compiling" = yes; then :
  1490. [$4]
  1491. else
  1492. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1493. lt_status=$lt_dlunknown
  1494. cat > conftest.$ac_ext <<_LT_EOF
  1495. [#line $LINENO "configure"
  1496. #include "confdefs.h"
  1497. #if HAVE_DLFCN_H
  1498. #include <dlfcn.h>
  1499. #endif
  1500. #include <stdio.h>
  1501. #ifdef RTLD_GLOBAL
  1502. # define LT_DLGLOBAL RTLD_GLOBAL
  1503. #else
  1504. # ifdef DL_GLOBAL
  1505. # define LT_DLGLOBAL DL_GLOBAL
  1506. # else
  1507. # define LT_DLGLOBAL 0
  1508. # endif
  1509. #endif
  1510. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1511. find out it does not work in some platform. */
  1512. #ifndef LT_DLLAZY_OR_NOW
  1513. # ifdef RTLD_LAZY
  1514. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1515. # else
  1516. # ifdef DL_LAZY
  1517. # define LT_DLLAZY_OR_NOW DL_LAZY
  1518. # else
  1519. # ifdef RTLD_NOW
  1520. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1521. # else
  1522. # ifdef DL_NOW
  1523. # define LT_DLLAZY_OR_NOW DL_NOW
  1524. # else
  1525. # define LT_DLLAZY_OR_NOW 0
  1526. # endif
  1527. # endif
  1528. # endif
  1529. # endif
  1530. #endif
  1531. /* When -fvisbility=hidden is used, assume the code has been annotated
  1532. correspondingly for the symbols needed. */
  1533. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1534. int fnord () __attribute__((visibility("default")));
  1535. #endif
  1536. int fnord () { return 42; }
  1537. int main ()
  1538. {
  1539. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1540. int status = $lt_dlunknown;
  1541. if (self)
  1542. {
  1543. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1544. else
  1545. {
  1546. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1547. else puts (dlerror ());
  1548. }
  1549. /* dlclose (self); */
  1550. }
  1551. else
  1552. puts (dlerror ());
  1553. return status;
  1554. }]
  1555. _LT_EOF
  1556. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1557. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1558. lt_status=$?
  1559. case x$lt_status in
  1560. x$lt_dlno_uscore) $1 ;;
  1561. x$lt_dlneed_uscore) $2 ;;
  1562. x$lt_dlunknown|x*) $3 ;;
  1563. esac
  1564. else :
  1565. # compilation failed
  1566. $3
  1567. fi
  1568. fi
  1569. rm -fr conftest*
  1570. ])# _LT_TRY_DLOPEN_SELF
  1571. # LT_SYS_DLOPEN_SELF
  1572. # ------------------
  1573. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1574. [m4_require([_LT_HEADER_DLFCN])dnl
  1575. if test "x$enable_dlopen" != xyes; then
  1576. enable_dlopen=unknown
  1577. enable_dlopen_self=unknown
  1578. enable_dlopen_self_static=unknown
  1579. else
  1580. lt_cv_dlopen=no
  1581. lt_cv_dlopen_libs=
  1582. case $host_os in
  1583. beos*)
  1584. lt_cv_dlopen="load_add_on"
  1585. lt_cv_dlopen_libs=
  1586. lt_cv_dlopen_self=yes
  1587. ;;
  1588. mingw* | pw32* | cegcc*)
  1589. lt_cv_dlopen="LoadLibrary"
  1590. lt_cv_dlopen_libs=
  1591. ;;
  1592. cygwin*)
  1593. lt_cv_dlopen="dlopen"
  1594. lt_cv_dlopen_libs=
  1595. ;;
  1596. darwin*)
  1597. # if libdl is installed we need to link against it
  1598. AC_CHECK_LIB([dl], [dlopen],
  1599. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1600. lt_cv_dlopen="dyld"
  1601. lt_cv_dlopen_libs=
  1602. lt_cv_dlopen_self=yes
  1603. ])
  1604. ;;
  1605. *)
  1606. AC_CHECK_FUNC([shl_load],
  1607. [lt_cv_dlopen="shl_load"],
  1608. [AC_CHECK_LIB([dld], [shl_load],
  1609. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1610. [AC_CHECK_FUNC([dlopen],
  1611. [lt_cv_dlopen="dlopen"],
  1612. [AC_CHECK_LIB([dl], [dlopen],
  1613. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1614. [AC_CHECK_LIB([svld], [dlopen],
  1615. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1616. [AC_CHECK_LIB([dld], [dld_link],
  1617. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1618. ])
  1619. ])
  1620. ])
  1621. ])
  1622. ])
  1623. ;;
  1624. esac
  1625. if test "x$lt_cv_dlopen" != xno; then
  1626. enable_dlopen=yes
  1627. else
  1628. enable_dlopen=no
  1629. fi
  1630. case $lt_cv_dlopen in
  1631. dlopen)
  1632. save_CPPFLAGS="$CPPFLAGS"
  1633. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1634. save_LDFLAGS="$LDFLAGS"
  1635. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1636. save_LIBS="$LIBS"
  1637. LIBS="$lt_cv_dlopen_libs $LIBS"
  1638. AC_CACHE_CHECK([whether a program can dlopen itself],
  1639. lt_cv_dlopen_self, [dnl
  1640. _LT_TRY_DLOPEN_SELF(
  1641. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1642. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1643. ])
  1644. if test "x$lt_cv_dlopen_self" = xyes; then
  1645. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1646. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1647. lt_cv_dlopen_self_static, [dnl
  1648. _LT_TRY_DLOPEN_SELF(
  1649. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1650. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1651. ])
  1652. fi
  1653. CPPFLAGS="$save_CPPFLAGS"
  1654. LDFLAGS="$save_LDFLAGS"
  1655. LIBS="$save_LIBS"
  1656. ;;
  1657. esac
  1658. case $lt_cv_dlopen_self in
  1659. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1660. *) enable_dlopen_self=unknown ;;
  1661. esac
  1662. case $lt_cv_dlopen_self_static in
  1663. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1664. *) enable_dlopen_self_static=unknown ;;
  1665. esac
  1666. fi
  1667. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1668. [Whether dlopen is supported])
  1669. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1670. [Whether dlopen of programs is supported])
  1671. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1672. [Whether dlopen of statically linked programs is supported])
  1673. ])# LT_SYS_DLOPEN_SELF
  1674. # Old name:
  1675. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1676. dnl aclocal-1.4 backwards compatibility:
  1677. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1678. # _LT_COMPILER_C_O([TAGNAME])
  1679. # ---------------------------
  1680. # Check to see if options -c and -o are simultaneously supported by compiler.
  1681. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1682. m4_defun([_LT_COMPILER_C_O],
  1683. [m4_require([_LT_DECL_SED])dnl
  1684. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1685. m4_require([_LT_TAG_COMPILER])dnl
  1686. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1687. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1688. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1689. $RM -r conftest 2>/dev/null
  1690. mkdir conftest
  1691. cd conftest
  1692. mkdir out
  1693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1695. # Insert the option either (1) after the last *FLAGS variable, or
  1696. # (2) before a word containing "conftest.", or (3) at the end.
  1697. # Note that $ac_compile itself does not contain backslashes and begins
  1698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1699. lt_compile=`echo "$ac_compile" | $SED \
  1700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1701. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1702. -e 's:$: $lt_compiler_flag:'`
  1703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1704. (eval "$lt_compile" 2>out/conftest.err)
  1705. ac_status=$?
  1706. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1707. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1709. then
  1710. # The compiler can only warn and ignore the option if not recognized
  1711. # So say no if there are warnings
  1712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1715. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1716. fi
  1717. fi
  1718. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1719. $RM conftest*
  1720. # SGI C++ compiler will create directory out/ii_files/ for
  1721. # template instantiation
  1722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1723. $RM out/* && rmdir out
  1724. cd ..
  1725. $RM -r conftest
  1726. $RM conftest*
  1727. ])
  1728. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1729. [Does compiler simultaneously support -c and -o options?])
  1730. ])# _LT_COMPILER_C_O
  1731. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1732. # ----------------------------------
  1733. # Check to see if we can do hard links to lock some files if needed
  1734. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1735. [m4_require([_LT_ENABLE_LOCK])dnl
  1736. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1737. _LT_COMPILER_C_O([$1])
  1738. hard_links="nottested"
  1739. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1740. # do not overwrite the value of need_locks provided by the user
  1741. AC_MSG_CHECKING([if we can lock with hard links])
  1742. hard_links=yes
  1743. $RM conftest*
  1744. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1745. touch conftest.a
  1746. ln conftest.a conftest.b 2>&5 || hard_links=no
  1747. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1748. AC_MSG_RESULT([$hard_links])
  1749. if test "$hard_links" = no; then
  1750. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1751. need_locks=warn
  1752. fi
  1753. else
  1754. need_locks=no
  1755. fi
  1756. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1757. ])# _LT_COMPILER_FILE_LOCKS
  1758. # _LT_CHECK_OBJDIR
  1759. # ----------------
  1760. m4_defun([_LT_CHECK_OBJDIR],
  1761. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1762. [rm -f .libs 2>/dev/null
  1763. mkdir .libs 2>/dev/null
  1764. if test -d .libs; then
  1765. lt_cv_objdir=.libs
  1766. else
  1767. # MS-DOS does not allow filenames that begin with a dot.
  1768. lt_cv_objdir=_libs
  1769. fi
  1770. rmdir .libs 2>/dev/null])
  1771. objdir=$lt_cv_objdir
  1772. _LT_DECL([], [objdir], [0],
  1773. [The name of the directory that contains temporary libtool files])dnl
  1774. m4_pattern_allow([LT_OBJDIR])dnl
  1775. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1776. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1777. ])# _LT_CHECK_OBJDIR
  1778. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1779. # --------------------------------------
  1780. # Check hardcoding attributes.
  1781. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1782. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1783. _LT_TAGVAR(hardcode_action, $1)=
  1784. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1785. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1786. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1787. # We can hardcode non-existent directories.
  1788. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1789. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1790. # have to relink, otherwise we might link with an installed library
  1791. # when we should be linking with a yet-to-be-installed one
  1792. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1793. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1794. # Linking always hardcodes the temporary library directory.
  1795. _LT_TAGVAR(hardcode_action, $1)=relink
  1796. else
  1797. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1798. _LT_TAGVAR(hardcode_action, $1)=immediate
  1799. fi
  1800. else
  1801. # We cannot hardcode anything, or else we can only hardcode existing
  1802. # directories.
  1803. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1804. fi
  1805. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1806. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1807. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1808. # Fast installation is not supported
  1809. enable_fast_install=no
  1810. elif test "$shlibpath_overrides_runpath" = yes ||
  1811. test "$enable_shared" = no; then
  1812. # Fast installation is not necessary
  1813. enable_fast_install=needless
  1814. fi
  1815. _LT_TAGDECL([], [hardcode_action], [0],
  1816. [How to hardcode a shared library path into an executable])
  1817. ])# _LT_LINKER_HARDCODE_LIBPATH
  1818. # _LT_CMD_STRIPLIB
  1819. # ----------------
  1820. m4_defun([_LT_CMD_STRIPLIB],
  1821. [m4_require([_LT_DECL_EGREP])
  1822. striplib=
  1823. old_striplib=
  1824. AC_MSG_CHECKING([whether stripping libraries is possible])
  1825. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1826. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1827. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1828. AC_MSG_RESULT([yes])
  1829. else
  1830. # FIXME - insert some real tests, host_os isn't really good enough
  1831. case $host_os in
  1832. darwin*)
  1833. if test -n "$STRIP" ; then
  1834. striplib="$STRIP -x"
  1835. old_striplib="$STRIP -S"
  1836. AC_MSG_RESULT([yes])
  1837. else
  1838. AC_MSG_RESULT([no])
  1839. fi
  1840. ;;
  1841. *)
  1842. AC_MSG_RESULT([no])
  1843. ;;
  1844. esac
  1845. fi
  1846. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1847. _LT_DECL([], [striplib], [1])
  1848. ])# _LT_CMD_STRIPLIB
  1849. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1850. # -----------------------------
  1851. # PORTME Fill in your ld.so characteristics
  1852. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1853. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1854. m4_require([_LT_DECL_EGREP])dnl
  1855. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1856. m4_require([_LT_DECL_OBJDUMP])dnl
  1857. m4_require([_LT_DECL_SED])dnl
  1858. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1859. AC_MSG_CHECKING([dynamic linker characteristics])
  1860. m4_if([$1],
  1861. [], [
  1862. if test "$GCC" = yes; then
  1863. case $host_os in
  1864. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1865. *) lt_awk_arg="/^libraries:/" ;;
  1866. esac
  1867. case $host_os in
  1868. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1869. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1870. esac
  1871. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1872. case $lt_search_path_spec in
  1873. *\;*)
  1874. # if the path contains ";" then we assume it to be the separator
  1875. # otherwise default to the standard path separator (i.e. ":") - it is
  1876. # assumed that no part of a normal pathname contains ";" but that should
  1877. # okay in the real world where ";" in dirpaths is itself problematic.
  1878. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1879. ;;
  1880. *)
  1881. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1882. ;;
  1883. esac
  1884. # Ok, now we have the path, separated by spaces, we can step through it
  1885. # and add multilib dir if necessary.
  1886. lt_tmp_lt_search_path_spec=
  1887. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1888. for lt_sys_path in $lt_search_path_spec; do
  1889. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1890. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1891. else
  1892. test -d "$lt_sys_path" && \
  1893. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1894. fi
  1895. done
  1896. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1897. BEGIN {RS=" "; FS="/|\n";} {
  1898. lt_foo="";
  1899. lt_count=0;
  1900. for (lt_i = NF; lt_i > 0; lt_i--) {
  1901. if ($lt_i != "" && $lt_i != ".") {
  1902. if ($lt_i == "..") {
  1903. lt_count++;
  1904. } else {
  1905. if (lt_count == 0) {
  1906. lt_foo="/" $lt_i lt_foo;
  1907. } else {
  1908. lt_count--;
  1909. }
  1910. }
  1911. }
  1912. }
  1913. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1914. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1915. }'`
  1916. # AWK program above erroneously prepends '/' to C:/dos/paths
  1917. # for these hosts.
  1918. case $host_os in
  1919. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1920. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1921. esac
  1922. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1923. else
  1924. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1925. fi])
  1926. library_names_spec=
  1927. libname_spec='lib$name'
  1928. soname_spec=
  1929. shrext_cmds=".so"
  1930. postinstall_cmds=
  1931. postuninstall_cmds=
  1932. finish_cmds=
  1933. finish_eval=
  1934. shlibpath_var=
  1935. shlibpath_overrides_runpath=unknown
  1936. version_type=none
  1937. dynamic_linker="$host_os ld.so"
  1938. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1939. need_lib_prefix=unknown
  1940. hardcode_into_libs=no
  1941. # when you set need_version to no, make sure it does not cause -set_version
  1942. # flags to be left without arguments
  1943. need_version=unknown
  1944. case $host_os in
  1945. aix3*)
  1946. version_type=linux
  1947. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  1948. shlibpath_var=LIBPATH
  1949. # AIX 3 has no versioning support, so we append a major version to the name.
  1950. soname_spec='${libname}${release}${shared_ext}$major'
  1951. ;;
  1952. aix[[4-9]]*)
  1953. version_type=linux
  1954. need_lib_prefix=no
  1955. need_version=no
  1956. hardcode_into_libs=yes
  1957. if test "$host_cpu" = ia64; then
  1958. # AIX 5 supports IA64
  1959. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  1960. shlibpath_var=LD_LIBRARY_PATH
  1961. else
  1962. # With GCC up to 2.95.x, collect2 would create an import file
  1963. # for dependence libraries. The import file would start with
  1964. # the line `#! .'. This would cause the generated library to
  1965. # depend on `.', always an invalid library. This was fixed in
  1966. # development snapshots of GCC prior to 3.0.
  1967. case $host_os in
  1968. aix4 | aix4.[[01]] | aix4.[[01]].*)
  1969. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  1970. echo ' yes '
  1971. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  1972. :
  1973. else
  1974. can_build_shared=no
  1975. fi
  1976. ;;
  1977. esac
  1978. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  1979. # soname into executable. Probably we can add versioning support to
  1980. # collect2, so additional links can be useful in future.
  1981. if test "$aix_use_runtimelinking" = yes; then
  1982. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  1983. # instead of lib<name>.a to let people know that these are not
  1984. # typical AIX shared libraries.
  1985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  1986. else
  1987. # We preserve .a as extension for shared libraries through AIX4.2
  1988. # and later when we are not doing run time linking.
  1989. library_names_spec='${libname}${release}.a $libname.a'
  1990. soname_spec='${libname}${release}${shared_ext}$major'
  1991. fi
  1992. shlibpath_var=LIBPATH
  1993. fi
  1994. ;;
  1995. amigaos*)
  1996. case $host_cpu in
  1997. powerpc)
  1998. # Since July 2007 AmigaOS4 officially supports .so libraries.
  1999. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2000. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2001. ;;
  2002. m68k)
  2003. library_names_spec='$libname.ixlibrary $libname.a'
  2004. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2005. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2006. ;;
  2007. esac
  2008. ;;
  2009. beos*)
  2010. library_names_spec='${libname}${shared_ext}'
  2011. dynamic_linker="$host_os ld.so"
  2012. shlibpath_var=LIBRARY_PATH
  2013. ;;
  2014. bsdi[[45]]*)
  2015. version_type=linux
  2016. need_version=no
  2017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2018. soname_spec='${libname}${release}${shared_ext}$major'
  2019. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2020. shlibpath_var=LD_LIBRARY_PATH
  2021. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2022. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2023. # the default ld.so.conf also contains /usr/contrib/lib and
  2024. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2025. # libtool to hard-code these into programs
  2026. ;;
  2027. cygwin* | mingw* | pw32* | cegcc*)
  2028. version_type=windows
  2029. shrext_cmds=".dll"
  2030. need_version=no
  2031. need_lib_prefix=no
  2032. case $GCC,$cc_basename in
  2033. yes,*)
  2034. # gcc
  2035. library_names_spec='$libname.dll.a'
  2036. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2037. postinstall_cmds='base_file=`basename \${file}`~
  2038. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2039. dldir=$destdir/`dirname \$dlpath`~
  2040. test -d \$dldir || mkdir -p \$dldir~
  2041. $install_prog $dir/$dlname \$dldir/$dlname~
  2042. chmod a+x \$dldir/$dlname~
  2043. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2044. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2045. fi'
  2046. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2047. dlpath=$dir/\$dldll~
  2048. $RM \$dlpath'
  2049. shlibpath_overrides_runpath=yes
  2050. case $host_os in
  2051. cygwin*)
  2052. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2053. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2054. m4_if([$1], [],[
  2055. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2056. ;;
  2057. mingw* | cegcc*)
  2058. # MinGW DLLs use traditional 'lib' prefix
  2059. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2060. ;;
  2061. pw32*)
  2062. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2063. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2064. ;;
  2065. esac
  2066. dynamic_linker='Win32 ld.exe'
  2067. ;;
  2068. *,cl*)
  2069. # Native MSVC
  2070. libname_spec='$name'
  2071. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2072. library_names_spec='${libname}.dll.lib'
  2073. case $build_os in
  2074. mingw*)
  2075. sys_lib_search_path_spec=
  2076. lt_save_ifs=$IFS
  2077. IFS=';'
  2078. for lt_path in $LIB
  2079. do
  2080. IFS=$lt_save_ifs
  2081. # Let DOS variable expansion print the short 8.3 style file name.
  2082. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2083. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2084. done
  2085. IFS=$lt_save_ifs
  2086. # Convert to MSYS style.
  2087. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2088. ;;
  2089. cygwin*)
  2090. # Convert to unix form, then to dos form, then back to unix form
  2091. # but this time dos style (no spaces!) so that the unix form looks
  2092. # like /cygdrive/c/PROGRA~1:/cygdr...
  2093. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2094. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2095. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2096. ;;
  2097. *)
  2098. sys_lib_search_path_spec="$LIB"
  2099. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2100. # It is most probably a Windows format PATH.
  2101. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2102. else
  2103. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2104. fi
  2105. # FIXME: find the short name or the path components, as spaces are
  2106. # common. (e.g. "Program Files" -> "PROGRA~1")
  2107. ;;
  2108. esac
  2109. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2110. postinstall_cmds='base_file=`basename \${file}`~
  2111. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2112. dldir=$destdir/`dirname \$dlpath`~
  2113. test -d \$dldir || mkdir -p \$dldir~
  2114. $install_prog $dir/$dlname \$dldir/$dlname'
  2115. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2116. dlpath=$dir/\$dldll~
  2117. $RM \$dlpath'
  2118. shlibpath_overrides_runpath=yes
  2119. dynamic_linker='Win32 link.exe'
  2120. ;;
  2121. *)
  2122. # Assume MSVC wrapper
  2123. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2124. dynamic_linker='Win32 ld.exe'
  2125. ;;
  2126. esac
  2127. # FIXME: first we should search . and the directory the executable is in
  2128. shlibpath_var=PATH
  2129. ;;
  2130. darwin* | rhapsody*)
  2131. dynamic_linker="$host_os dyld"
  2132. version_type=darwin
  2133. need_lib_prefix=no
  2134. need_version=no
  2135. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2136. soname_spec='${libname}${release}${major}$shared_ext'
  2137. shlibpath_overrides_runpath=yes
  2138. shlibpath_var=DYLD_LIBRARY_PATH
  2139. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2140. m4_if([$1], [],[
  2141. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2142. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2143. ;;
  2144. dgux*)
  2145. version_type=linux
  2146. need_lib_prefix=no
  2147. need_version=no
  2148. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2149. soname_spec='${libname}${release}${shared_ext}$major'
  2150. shlibpath_var=LD_LIBRARY_PATH
  2151. ;;
  2152. freebsd1*)
  2153. dynamic_linker=no
  2154. ;;
  2155. freebsd* | dragonfly*)
  2156. # DragonFly does not have aout. When/if they implement a new
  2157. # versioning mechanism, adjust this.
  2158. if test -x /usr/bin/objformat; then
  2159. objformat=`/usr/bin/objformat`
  2160. else
  2161. case $host_os in
  2162. freebsd[[123]]*) objformat=aout ;;
  2163. *) objformat=elf ;;
  2164. esac
  2165. fi
  2166. version_type=freebsd-$objformat
  2167. case $version_type in
  2168. freebsd-elf*)
  2169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2170. need_version=no
  2171. need_lib_prefix=no
  2172. ;;
  2173. freebsd-*)
  2174. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2175. need_version=yes
  2176. ;;
  2177. esac
  2178. shlibpath_var=LD_LIBRARY_PATH
  2179. case $host_os in
  2180. freebsd2*)
  2181. shlibpath_overrides_runpath=yes
  2182. ;;
  2183. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2184. shlibpath_overrides_runpath=yes
  2185. hardcode_into_libs=yes
  2186. ;;
  2187. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2188. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2189. shlibpath_overrides_runpath=no
  2190. hardcode_into_libs=yes
  2191. ;;
  2192. *) # from 4.6 on, and DragonFly
  2193. shlibpath_overrides_runpath=yes
  2194. hardcode_into_libs=yes
  2195. ;;
  2196. esac
  2197. ;;
  2198. gnu*)
  2199. version_type=linux
  2200. need_lib_prefix=no
  2201. need_version=no
  2202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2203. soname_spec='${libname}${release}${shared_ext}$major'
  2204. shlibpath_var=LD_LIBRARY_PATH
  2205. hardcode_into_libs=yes
  2206. ;;
  2207. haiku*)
  2208. version_type=linux
  2209. need_lib_prefix=no
  2210. need_version=no
  2211. dynamic_linker="$host_os runtime_loader"
  2212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2213. soname_spec='${libname}${release}${shared_ext}$major'
  2214. shlibpath_var=LIBRARY_PATH
  2215. shlibpath_overrides_runpath=yes
  2216. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2217. hardcode_into_libs=yes
  2218. ;;
  2219. hpux9* | hpux10* | hpux11*)
  2220. # Give a soname corresponding to the major version so that dld.sl refuses to
  2221. # link against other versions.
  2222. version_type=sunos
  2223. need_lib_prefix=no
  2224. need_version=no
  2225. case $host_cpu in
  2226. ia64*)
  2227. shrext_cmds='.so'
  2228. hardcode_into_libs=yes
  2229. dynamic_linker="$host_os dld.so"
  2230. shlibpath_var=LD_LIBRARY_PATH
  2231. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2232. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2233. soname_spec='${libname}${release}${shared_ext}$major'
  2234. if test "X$HPUX_IA64_MODE" = X32; then
  2235. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2236. else
  2237. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2238. fi
  2239. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2240. ;;
  2241. hppa*64*)
  2242. shrext_cmds='.sl'
  2243. hardcode_into_libs=yes
  2244. dynamic_linker="$host_os dld.sl"
  2245. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2246. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2247. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2248. soname_spec='${libname}${release}${shared_ext}$major'
  2249. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2250. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2251. ;;
  2252. *)
  2253. shrext_cmds='.sl'
  2254. dynamic_linker="$host_os dld.sl"
  2255. shlibpath_var=SHLIB_PATH
  2256. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2257. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2258. soname_spec='${libname}${release}${shared_ext}$major'
  2259. ;;
  2260. esac
  2261. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2262. postinstall_cmds='chmod 555 $lib'
  2263. # or fails outright, so override atomically:
  2264. install_override_mode=555
  2265. ;;
  2266. interix[[3-9]]*)
  2267. version_type=linux
  2268. need_lib_prefix=no
  2269. need_version=no
  2270. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2271. soname_spec='${libname}${release}${shared_ext}$major'
  2272. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2273. shlibpath_var=LD_LIBRARY_PATH
  2274. shlibpath_overrides_runpath=no
  2275. hardcode_into_libs=yes
  2276. ;;
  2277. irix5* | irix6* | nonstopux*)
  2278. case $host_os in
  2279. nonstopux*) version_type=nonstopux ;;
  2280. *)
  2281. if test "$lt_cv_prog_gnu_ld" = yes; then
  2282. version_type=linux
  2283. else
  2284. version_type=irix
  2285. fi ;;
  2286. esac
  2287. need_lib_prefix=no
  2288. need_version=no
  2289. soname_spec='${libname}${release}${shared_ext}$major'
  2290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2291. case $host_os in
  2292. irix5* | nonstopux*)
  2293. libsuff= shlibsuff=
  2294. ;;
  2295. *)
  2296. case $LD in # libtool.m4 will add one of these switches to LD
  2297. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2298. libsuff= shlibsuff= libmagic=32-bit;;
  2299. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2300. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2301. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2302. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2303. *) libsuff= shlibsuff= libmagic=never-match;;
  2304. esac
  2305. ;;
  2306. esac
  2307. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2308. shlibpath_overrides_runpath=no
  2309. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2310. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2311. hardcode_into_libs=yes
  2312. ;;
  2313. # No shared lib support for Linux oldld, aout, or coff.
  2314. linux*oldld* | linux*aout* | linux*coff*)
  2315. dynamic_linker=no
  2316. ;;
  2317. # This must be Linux ELF.
  2318. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2319. version_type=linux
  2320. need_lib_prefix=no
  2321. need_version=no
  2322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2323. soname_spec='${libname}${release}${shared_ext}$major'
  2324. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2325. shlibpath_var=LD_LIBRARY_PATH
  2326. shlibpath_overrides_runpath=no
  2327. # Some binutils ld are patched to set DT_RUNPATH
  2328. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2329. [lt_cv_shlibpath_overrides_runpath=no
  2330. save_LDFLAGS=$LDFLAGS
  2331. save_libdir=$libdir
  2332. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2333. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2334. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2335. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2336. [lt_cv_shlibpath_overrides_runpath=yes])])
  2337. LDFLAGS=$save_LDFLAGS
  2338. libdir=$save_libdir
  2339. ])
  2340. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2341. # This implies no fast_install, which is unacceptable.
  2342. # Some rework will be needed to allow for fast_install
  2343. # before this can be enabled.
  2344. hardcode_into_libs=yes
  2345. # Append ld.so.conf contents to the search path
  2346. if test -f /etc/ld.so.conf; then
  2347. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  2348. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2349. fi
  2350. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2351. # powerpc, because MkLinux only supported shared libraries with the
  2352. # GNU dynamic linker. Since this was broken with cross compilers,
  2353. # most powerpc-linux boxes support dynamic linking these days and
  2354. # people can always --disable-shared, the test was removed, and we
  2355. # assume the GNU/Linux dynamic linker is in use.
  2356. dynamic_linker='GNU/Linux ld.so'
  2357. ;;
  2358. netbsd*)
  2359. version_type=sunos
  2360. need_lib_prefix=no
  2361. need_version=no
  2362. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2364. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2365. dynamic_linker='NetBSD (a.out) ld.so'
  2366. else
  2367. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2368. soname_spec='${libname}${release}${shared_ext}$major'
  2369. dynamic_linker='NetBSD ld.elf_so'
  2370. fi
  2371. shlibpath_var=LD_LIBRARY_PATH
  2372. shlibpath_overrides_runpath=yes
  2373. hardcode_into_libs=yes
  2374. ;;
  2375. newsos6)
  2376. version_type=linux
  2377. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2378. shlibpath_var=LD_LIBRARY_PATH
  2379. shlibpath_overrides_runpath=yes
  2380. ;;
  2381. *nto* | *qnx*)
  2382. version_type=qnx
  2383. need_lib_prefix=no
  2384. need_version=no
  2385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2386. soname_spec='${libname}${release}${shared_ext}$major'
  2387. shlibpath_var=LD_LIBRARY_PATH
  2388. shlibpath_overrides_runpath=no
  2389. hardcode_into_libs=yes
  2390. dynamic_linker='ldqnx.so'
  2391. ;;
  2392. openbsd*)
  2393. version_type=sunos
  2394. sys_lib_dlsearch_path_spec="/usr/lib"
  2395. need_lib_prefix=no
  2396. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2397. case $host_os in
  2398. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2399. *) need_version=no ;;
  2400. esac
  2401. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2402. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2403. shlibpath_var=LD_LIBRARY_PATH
  2404. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2405. case $host_os in
  2406. openbsd2.[[89]] | openbsd2.[[89]].*)
  2407. shlibpath_overrides_runpath=no
  2408. ;;
  2409. *)
  2410. shlibpath_overrides_runpath=yes
  2411. ;;
  2412. esac
  2413. else
  2414. shlibpath_overrides_runpath=yes
  2415. fi
  2416. ;;
  2417. os2*)
  2418. libname_spec='$name'
  2419. shrext_cmds=".dll"
  2420. need_lib_prefix=no
  2421. library_names_spec='$libname${shared_ext} $libname.a'
  2422. dynamic_linker='OS/2 ld.exe'
  2423. shlibpath_var=LIBPATH
  2424. ;;
  2425. osf3* | osf4* | osf5*)
  2426. version_type=osf
  2427. need_lib_prefix=no
  2428. need_version=no
  2429. soname_spec='${libname}${release}${shared_ext}$major'
  2430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2431. shlibpath_var=LD_LIBRARY_PATH
  2432. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2433. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2434. ;;
  2435. rdos*)
  2436. dynamic_linker=no
  2437. ;;
  2438. solaris*)
  2439. version_type=linux
  2440. need_lib_prefix=no
  2441. need_version=no
  2442. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2443. soname_spec='${libname}${release}${shared_ext}$major'
  2444. shlibpath_var=LD_LIBRARY_PATH
  2445. shlibpath_overrides_runpath=yes
  2446. hardcode_into_libs=yes
  2447. # ldd complains unless libraries are executable
  2448. postinstall_cmds='chmod +x $lib'
  2449. ;;
  2450. sunos4*)
  2451. version_type=sunos
  2452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2453. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2454. shlibpath_var=LD_LIBRARY_PATH
  2455. shlibpath_overrides_runpath=yes
  2456. if test "$with_gnu_ld" = yes; then
  2457. need_lib_prefix=no
  2458. fi
  2459. need_version=yes
  2460. ;;
  2461. sysv4 | sysv4.3*)
  2462. version_type=linux
  2463. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2464. soname_spec='${libname}${release}${shared_ext}$major'
  2465. shlibpath_var=LD_LIBRARY_PATH
  2466. case $host_vendor in
  2467. sni)
  2468. shlibpath_overrides_runpath=no
  2469. need_lib_prefix=no
  2470. runpath_var=LD_RUN_PATH
  2471. ;;
  2472. siemens)
  2473. need_lib_prefix=no
  2474. ;;
  2475. motorola)
  2476. need_lib_prefix=no
  2477. need_version=no
  2478. shlibpath_overrides_runpath=no
  2479. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2480. ;;
  2481. esac
  2482. ;;
  2483. sysv4*MP*)
  2484. if test -d /usr/nec ;then
  2485. version_type=linux
  2486. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2487. soname_spec='$libname${shared_ext}.$major'
  2488. shlibpath_var=LD_LIBRARY_PATH
  2489. fi
  2490. ;;
  2491. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2492. version_type=freebsd-elf
  2493. need_lib_prefix=no
  2494. need_version=no
  2495. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2496. soname_spec='${libname}${release}${shared_ext}$major'
  2497. shlibpath_var=LD_LIBRARY_PATH
  2498. shlibpath_overrides_runpath=yes
  2499. hardcode_into_libs=yes
  2500. if test "$with_gnu_ld" = yes; then
  2501. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2502. else
  2503. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2504. case $host_os in
  2505. sco3.2v5*)
  2506. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2507. ;;
  2508. esac
  2509. fi
  2510. sys_lib_dlsearch_path_spec='/usr/lib'
  2511. ;;
  2512. tpf*)
  2513. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2514. version_type=linux
  2515. need_lib_prefix=no
  2516. need_version=no
  2517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2518. shlibpath_var=LD_LIBRARY_PATH
  2519. shlibpath_overrides_runpath=no
  2520. hardcode_into_libs=yes
  2521. ;;
  2522. uts4*)
  2523. version_type=linux
  2524. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2525. soname_spec='${libname}${release}${shared_ext}$major'
  2526. shlibpath_var=LD_LIBRARY_PATH
  2527. ;;
  2528. *)
  2529. dynamic_linker=no
  2530. ;;
  2531. esac
  2532. AC_MSG_RESULT([$dynamic_linker])
  2533. test "$dynamic_linker" = no && can_build_shared=no
  2534. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2535. if test "$GCC" = yes; then
  2536. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2537. fi
  2538. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2539. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2540. fi
  2541. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2542. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2543. fi
  2544. _LT_DECL([], [variables_saved_for_relink], [1],
  2545. [Variables whose values should be saved in libtool wrapper scripts and
  2546. restored at link time])
  2547. _LT_DECL([], [need_lib_prefix], [0],
  2548. [Do we need the "lib" prefix for modules?])
  2549. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2550. _LT_DECL([], [version_type], [0], [Library versioning type])
  2551. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2552. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2553. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2554. [Is shlibpath searched before the hard-coded library search path?])
  2555. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2556. _LT_DECL([], [library_names_spec], [1],
  2557. [[List of archive names. First name is the real one, the rest are links.
  2558. The last name is the one that the linker finds with -lNAME]])
  2559. _LT_DECL([], [soname_spec], [1],
  2560. [[The coded name of the library, if different from the real name]])
  2561. _LT_DECL([], [install_override_mode], [1],
  2562. [Permission mode override for installation of shared libraries])
  2563. _LT_DECL([], [postinstall_cmds], [2],
  2564. [Command to use after installation of a shared archive])
  2565. _LT_DECL([], [postuninstall_cmds], [2],
  2566. [Command to use after uninstallation of a shared archive])
  2567. _LT_DECL([], [finish_cmds], [2],
  2568. [Commands used to finish a libtool library installation in a directory])
  2569. _LT_DECL([], [finish_eval], [1],
  2570. [[As "finish_cmds", except a single script fragment to be evaled but
  2571. not shown]])
  2572. _LT_DECL([], [hardcode_into_libs], [0],
  2573. [Whether we should hardcode library paths into libraries])
  2574. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2575. [Compile-time system search path for libraries])
  2576. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2577. [Run-time system search path for libraries])
  2578. ])# _LT_SYS_DYNAMIC_LINKER
  2579. # _LT_PATH_TOOL_PREFIX(TOOL)
  2580. # --------------------------
  2581. # find a file program which can recognize shared library
  2582. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2583. [m4_require([_LT_DECL_EGREP])dnl
  2584. AC_MSG_CHECKING([for $1])
  2585. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2586. [case $MAGIC_CMD in
  2587. [[\\/*] | ?:[\\/]*])
  2588. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2589. ;;
  2590. *)
  2591. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2592. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2593. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2594. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2595. dnl not every word. This closes a longstanding sh security hole.
  2596. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2597. for ac_dir in $ac_dummy; do
  2598. IFS="$lt_save_ifs"
  2599. test -z "$ac_dir" && ac_dir=.
  2600. if test -f $ac_dir/$1; then
  2601. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2602. if test -n "$file_magic_test_file"; then
  2603. case $deplibs_check_method in
  2604. "file_magic "*)
  2605. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2606. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2607. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2608. $EGREP "$file_magic_regex" > /dev/null; then
  2609. :
  2610. else
  2611. cat <<_LT_EOF 1>&2
  2612. *** Warning: the command libtool uses to detect shared libraries,
  2613. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2614. *** The result is that libtool may fail to recognize shared libraries
  2615. *** as such. This will affect the creation of libtool libraries that
  2616. *** depend on shared libraries, but programs linked with such libtool
  2617. *** libraries will work regardless of this problem. Nevertheless, you
  2618. *** may want to report the problem to your system manager and/or to
  2619. *** bug-libtool@gnu.org
  2620. _LT_EOF
  2621. fi ;;
  2622. esac
  2623. fi
  2624. break
  2625. fi
  2626. done
  2627. IFS="$lt_save_ifs"
  2628. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2629. ;;
  2630. esac])
  2631. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2632. if test -n "$MAGIC_CMD"; then
  2633. AC_MSG_RESULT($MAGIC_CMD)
  2634. else
  2635. AC_MSG_RESULT(no)
  2636. fi
  2637. _LT_DECL([], [MAGIC_CMD], [0],
  2638. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2639. ])# _LT_PATH_TOOL_PREFIX
  2640. # Old name:
  2641. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2642. dnl aclocal-1.4 backwards compatibility:
  2643. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2644. # _LT_PATH_MAGIC
  2645. # --------------
  2646. # find a file program which can recognize a shared library
  2647. m4_defun([_LT_PATH_MAGIC],
  2648. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2649. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2650. if test -n "$ac_tool_prefix"; then
  2651. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2652. else
  2653. MAGIC_CMD=:
  2654. fi
  2655. fi
  2656. ])# _LT_PATH_MAGIC
  2657. # LT_PATH_LD
  2658. # ----------
  2659. # find the pathname to the GNU or non-GNU linker
  2660. AC_DEFUN([LT_PATH_LD],
  2661. [AC_REQUIRE([AC_PROG_CC])dnl
  2662. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2663. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2664. m4_require([_LT_DECL_SED])dnl
  2665. m4_require([_LT_DECL_EGREP])dnl
  2666. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2667. AC_ARG_WITH([gnu-ld],
  2668. [AS_HELP_STRING([--with-gnu-ld],
  2669. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2670. [test "$withval" = no || with_gnu_ld=yes],
  2671. [with_gnu_ld=no])dnl
  2672. ac_prog=ld
  2673. if test "$GCC" = yes; then
  2674. # Check if gcc -print-prog-name=ld gives a path.
  2675. AC_MSG_CHECKING([for ld used by $CC])
  2676. case $host in
  2677. *-*-mingw*)
  2678. # gcc leaves a trailing carriage return which upsets mingw
  2679. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2680. *)
  2681. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2682. esac
  2683. case $ac_prog in
  2684. # Accept absolute paths.
  2685. [[\\/]]* | ?:[[\\/]]*)
  2686. re_direlt='/[[^/]][[^/]]*/\.\./'
  2687. # Canonicalize the pathname of ld
  2688. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2689. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2690. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2691. done
  2692. test -z "$LD" && LD="$ac_prog"
  2693. ;;
  2694. "")
  2695. # If it fails, then pretend we aren't using GCC.
  2696. ac_prog=ld
  2697. ;;
  2698. *)
  2699. # If it is relative, then search for the first ld in PATH.
  2700. with_gnu_ld=unknown
  2701. ;;
  2702. esac
  2703. elif test "$with_gnu_ld" = yes; then
  2704. AC_MSG_CHECKING([for GNU ld])
  2705. else
  2706. AC_MSG_CHECKING([for non-GNU ld])
  2707. fi
  2708. AC_CACHE_VAL(lt_cv_path_LD,
  2709. [if test -z "$LD"; then
  2710. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2711. for ac_dir in $PATH; do
  2712. IFS="$lt_save_ifs"
  2713. test -z "$ac_dir" && ac_dir=.
  2714. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2715. lt_cv_path_LD="$ac_dir/$ac_prog"
  2716. # Check to see if the program is GNU ld. I'd rather use --version,
  2717. # but apparently some variants of GNU ld only accept -v.
  2718. # Break only if it was the GNU/non-GNU ld that we prefer.
  2719. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2720. *GNU* | *'with BFD'*)
  2721. test "$with_gnu_ld" != no && break
  2722. ;;
  2723. *)
  2724. test "$with_gnu_ld" != yes && break
  2725. ;;
  2726. esac
  2727. fi
  2728. done
  2729. IFS="$lt_save_ifs"
  2730. else
  2731. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2732. fi])
  2733. LD="$lt_cv_path_LD"
  2734. if test -n "$LD"; then
  2735. AC_MSG_RESULT($LD)
  2736. else
  2737. AC_MSG_RESULT(no)
  2738. fi
  2739. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2740. _LT_PATH_LD_GNU
  2741. AC_SUBST([LD])
  2742. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2743. ])# LT_PATH_LD
  2744. # Old names:
  2745. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2746. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2747. dnl aclocal-1.4 backwards compatibility:
  2748. dnl AC_DEFUN([AM_PROG_LD], [])
  2749. dnl AC_DEFUN([AC_PROG_LD], [])
  2750. # _LT_PATH_LD_GNU
  2751. #- --------------
  2752. m4_defun([_LT_PATH_LD_GNU],
  2753. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2754. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2755. case `$LD -v 2>&1 </dev/null` in
  2756. *GNU* | *'with BFD'*)
  2757. lt_cv_prog_gnu_ld=yes
  2758. ;;
  2759. *)
  2760. lt_cv_prog_gnu_ld=no
  2761. ;;
  2762. esac])
  2763. with_gnu_ld=$lt_cv_prog_gnu_ld
  2764. ])# _LT_PATH_LD_GNU
  2765. # _LT_CMD_RELOAD
  2766. # --------------
  2767. # find reload flag for linker
  2768. # -- PORTME Some linkers may need a different reload flag.
  2769. m4_defun([_LT_CMD_RELOAD],
  2770. [AC_CACHE_CHECK([for $LD option to reload object files],
  2771. lt_cv_ld_reload_flag,
  2772. [lt_cv_ld_reload_flag='-r'])
  2773. reload_flag=$lt_cv_ld_reload_flag
  2774. case $reload_flag in
  2775. "" | " "*) ;;
  2776. *) reload_flag=" $reload_flag" ;;
  2777. esac
  2778. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2779. case $host_os in
  2780. cygwin* | mingw* | pw32* | cegcc*)
  2781. if test "$GCC" != yes; then
  2782. reload_cmds=false
  2783. fi
  2784. ;;
  2785. darwin*)
  2786. if test "$GCC" = yes; then
  2787. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2788. else
  2789. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2790. fi
  2791. ;;
  2792. esac
  2793. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2794. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2795. ])# _LT_CMD_RELOAD
  2796. # _LT_CHECK_MAGIC_METHOD
  2797. # ----------------------
  2798. # how to check for library dependencies
  2799. # -- PORTME fill in with the dynamic library characteristics
  2800. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2801. [m4_require([_LT_DECL_EGREP])
  2802. m4_require([_LT_DECL_OBJDUMP])
  2803. AC_CACHE_CHECK([how to recognize dependent libraries],
  2804. lt_cv_deplibs_check_method,
  2805. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2806. lt_cv_file_magic_test_file=
  2807. lt_cv_deplibs_check_method='unknown'
  2808. # Need to set the preceding variable on all platforms that support
  2809. # interlibrary dependencies.
  2810. # 'none' -- dependencies not supported.
  2811. # `unknown' -- same as none, but documents that we really don't know.
  2812. # 'pass_all' -- all dependencies passed with no checks.
  2813. # 'test_compile' -- check by making test program.
  2814. # 'file_magic [[regex]]' -- check by looking for files in library path
  2815. # which responds to the $file_magic_cmd with a given extended regex.
  2816. # If you have `file' or equivalent on your system and you're not sure
  2817. # whether `pass_all' will *always* work, you probably want this one.
  2818. case $host_os in
  2819. aix[[4-9]]*)
  2820. lt_cv_deplibs_check_method=pass_all
  2821. ;;
  2822. beos*)
  2823. lt_cv_deplibs_check_method=pass_all
  2824. ;;
  2825. bsdi[[45]]*)
  2826. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2827. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2828. lt_cv_file_magic_test_file=/shlib/libc.so
  2829. ;;
  2830. cygwin*)
  2831. # func_win32_libid is a shell function defined in ltmain.sh
  2832. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2833. lt_cv_file_magic_cmd='func_win32_libid'
  2834. ;;
  2835. mingw* | pw32*)
  2836. # Base MSYS/MinGW do not provide the 'file' command needed by
  2837. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2838. # unless we find 'file', for example because we are cross-compiling.
  2839. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2840. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2841. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2842. lt_cv_file_magic_cmd='func_win32_libid'
  2843. else
  2844. # Keep this pattern in sync with the one in func_win32_libid.
  2845. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2846. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2847. fi
  2848. ;;
  2849. cegcc*)
  2850. # use the weaker test based on 'objdump'. See mingw*.
  2851. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2852. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2853. ;;
  2854. darwin* | rhapsody*)
  2855. lt_cv_deplibs_check_method=pass_all
  2856. ;;
  2857. freebsd* | dragonfly*)
  2858. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2859. case $host_cpu in
  2860. i*86 )
  2861. # Not sure whether the presence of OpenBSD here was a mistake.
  2862. # Let's accept both of them until this is cleared up.
  2863. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2864. lt_cv_file_magic_cmd=/usr/bin/file
  2865. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2866. ;;
  2867. esac
  2868. else
  2869. lt_cv_deplibs_check_method=pass_all
  2870. fi
  2871. ;;
  2872. gnu*)
  2873. lt_cv_deplibs_check_method=pass_all
  2874. ;;
  2875. haiku*)
  2876. lt_cv_deplibs_check_method=pass_all
  2877. ;;
  2878. hpux10.20* | hpux11*)
  2879. lt_cv_file_magic_cmd=/usr/bin/file
  2880. case $host_cpu in
  2881. ia64*)
  2882. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2883. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2884. ;;
  2885. hppa*64*)
  2886. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  2887. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2888. ;;
  2889. *)
  2890. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2891. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2892. ;;
  2893. esac
  2894. ;;
  2895. interix[[3-9]]*)
  2896. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2897. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2898. ;;
  2899. irix5* | irix6* | nonstopux*)
  2900. case $LD in
  2901. *-32|*"-32 ") libmagic=32-bit;;
  2902. *-n32|*"-n32 ") libmagic=N32;;
  2903. *-64|*"-64 ") libmagic=64-bit;;
  2904. *) libmagic=never-match;;
  2905. esac
  2906. lt_cv_deplibs_check_method=pass_all
  2907. ;;
  2908. # This must be Linux ELF.
  2909. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2910. lt_cv_deplibs_check_method=pass_all
  2911. ;;
  2912. netbsd*)
  2913. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2914. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2915. else
  2916. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2917. fi
  2918. ;;
  2919. newos6*)
  2920. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2921. lt_cv_file_magic_cmd=/usr/bin/file
  2922. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2923. ;;
  2924. *nto* | *qnx*)
  2925. lt_cv_deplibs_check_method=pass_all
  2926. ;;
  2927. openbsd*)
  2928. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2929. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2930. else
  2931. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2932. fi
  2933. ;;
  2934. osf3* | osf4* | osf5*)
  2935. lt_cv_deplibs_check_method=pass_all
  2936. ;;
  2937. rdos*)
  2938. lt_cv_deplibs_check_method=pass_all
  2939. ;;
  2940. solaris*)
  2941. lt_cv_deplibs_check_method=pass_all
  2942. ;;
  2943. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2944. lt_cv_deplibs_check_method=pass_all
  2945. ;;
  2946. sysv4 | sysv4.3*)
  2947. case $host_vendor in
  2948. motorola)
  2949. 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]]'
  2950. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  2951. ;;
  2952. ncr)
  2953. lt_cv_deplibs_check_method=pass_all
  2954. ;;
  2955. sequent)
  2956. lt_cv_file_magic_cmd='/bin/file'
  2957. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  2958. ;;
  2959. sni)
  2960. lt_cv_file_magic_cmd='/bin/file'
  2961. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  2962. lt_cv_file_magic_test_file=/lib/libc.so
  2963. ;;
  2964. siemens)
  2965. lt_cv_deplibs_check_method=pass_all
  2966. ;;
  2967. pc)
  2968. lt_cv_deplibs_check_method=pass_all
  2969. ;;
  2970. esac
  2971. ;;
  2972. tpf*)
  2973. lt_cv_deplibs_check_method=pass_all
  2974. ;;
  2975. esac
  2976. ])
  2977. file_magic_glob=
  2978. want_nocaseglob=no
  2979. if test "$build" = "$host"; then
  2980. case $host_os in
  2981. mingw* | pw32*)
  2982. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  2983. want_nocaseglob=yes
  2984. else
  2985. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  2986. fi
  2987. ;;
  2988. esac
  2989. fi
  2990. file_magic_cmd=$lt_cv_file_magic_cmd
  2991. deplibs_check_method=$lt_cv_deplibs_check_method
  2992. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  2993. _LT_DECL([], [deplibs_check_method], [1],
  2994. [Method to check whether dependent libraries are shared objects])
  2995. _LT_DECL([], [file_magic_cmd], [1],
  2996. [Command to use when deplibs_check_method = "file_magic"])
  2997. _LT_DECL([], [file_magic_glob], [1],
  2998. [How to find potential files when deplibs_check_method = "file_magic"])
  2999. _LT_DECL([], [want_nocaseglob], [1],
  3000. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3001. ])# _LT_CHECK_MAGIC_METHOD
  3002. # LT_PATH_NM
  3003. # ----------
  3004. # find the pathname to a BSD- or MS-compatible name lister
  3005. AC_DEFUN([LT_PATH_NM],
  3006. [AC_REQUIRE([AC_PROG_CC])dnl
  3007. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3008. [if test -n "$NM"; then
  3009. # Let the user override the test.
  3010. lt_cv_path_NM="$NM"
  3011. else
  3012. lt_nm_to_check="${ac_tool_prefix}nm"
  3013. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3014. lt_nm_to_check="$lt_nm_to_check nm"
  3015. fi
  3016. for lt_tmp_nm in $lt_nm_to_check; do
  3017. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3018. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3019. IFS="$lt_save_ifs"
  3020. test -z "$ac_dir" && ac_dir=.
  3021. tmp_nm="$ac_dir/$lt_tmp_nm"
  3022. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3023. # Check to see if the nm accepts a BSD-compat flag.
  3024. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3025. # nm: unknown option "B" ignored
  3026. # Tru64's nm complains that /dev/null is an invalid object file
  3027. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3028. */dev/null* | *'Invalid file or object type'*)
  3029. lt_cv_path_NM="$tmp_nm -B"
  3030. break
  3031. ;;
  3032. *)
  3033. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3034. */dev/null*)
  3035. lt_cv_path_NM="$tmp_nm -p"
  3036. break
  3037. ;;
  3038. *)
  3039. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3040. continue # so that we can try to find one that supports BSD flags
  3041. ;;
  3042. esac
  3043. ;;
  3044. esac
  3045. fi
  3046. done
  3047. IFS="$lt_save_ifs"
  3048. done
  3049. : ${lt_cv_path_NM=no}
  3050. fi])
  3051. if test "$lt_cv_path_NM" != "no"; then
  3052. NM="$lt_cv_path_NM"
  3053. else
  3054. # Didn't find any BSD compatible name lister, look for dumpbin.
  3055. if test -n "$DUMPBIN"; then :
  3056. # Let the user override the test.
  3057. else
  3058. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3059. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3060. *COFF*)
  3061. DUMPBIN="$DUMPBIN -symbols"
  3062. ;;
  3063. *)
  3064. DUMPBIN=:
  3065. ;;
  3066. esac
  3067. fi
  3068. AC_SUBST([DUMPBIN])
  3069. if test "$DUMPBIN" != ":"; then
  3070. NM="$DUMPBIN"
  3071. fi
  3072. fi
  3073. test -z "$NM" && NM=nm
  3074. AC_SUBST([NM])
  3075. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3076. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3077. [lt_cv_nm_interface="BSD nm"
  3078. echo "int some_variable = 0;" > conftest.$ac_ext
  3079. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3080. (eval "$ac_compile" 2>conftest.err)
  3081. cat conftest.err >&AS_MESSAGE_LOG_FD
  3082. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3083. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3084. cat conftest.err >&AS_MESSAGE_LOG_FD
  3085. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3086. cat conftest.out >&AS_MESSAGE_LOG_FD
  3087. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3088. lt_cv_nm_interface="MS dumpbin"
  3089. fi
  3090. rm -f conftest*])
  3091. ])# LT_PATH_NM
  3092. # Old names:
  3093. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3094. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3095. dnl aclocal-1.4 backwards compatibility:
  3096. dnl AC_DEFUN([AM_PROG_NM], [])
  3097. dnl AC_DEFUN([AC_PROG_NM], [])
  3098. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3099. # --------------------------------
  3100. # how to determine the name of the shared library
  3101. # associated with a specific link library.
  3102. # -- PORTME fill in with the dynamic library characteristics
  3103. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3104. [m4_require([_LT_DECL_EGREP])
  3105. m4_require([_LT_DECL_OBJDUMP])
  3106. m4_require([_LT_DECL_DLLTOOL])
  3107. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3108. lt_cv_sharedlib_from_linklib_cmd,
  3109. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3110. case $host_os in
  3111. cygwin* | mingw* | pw32* | cegcc*)
  3112. # two different shell functions defined in ltmain.sh
  3113. # decide which to use based on capabilities of $DLLTOOL
  3114. case `$DLLTOOL --help 2>&1` in
  3115. *--identify-strict*)
  3116. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3117. ;;
  3118. *)
  3119. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3120. ;;
  3121. esac
  3122. ;;
  3123. *)
  3124. # fallback: assume linklib IS sharedlib
  3125. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3126. ;;
  3127. esac
  3128. ])
  3129. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3130. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3131. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3132. [Command to associate shared and link libraries])
  3133. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3134. # _LT_PATH_MANIFEST_TOOL
  3135. # ----------------------
  3136. # locate the manifest tool
  3137. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3138. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3139. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3140. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3141. [lt_cv_path_mainfest_tool=no
  3142. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3143. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3144. cat conftest.err >&AS_MESSAGE_LOG_FD
  3145. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3146. lt_cv_path_mainfest_tool=yes
  3147. fi
  3148. rm -f conftest*])
  3149. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3150. MANIFEST_TOOL=:
  3151. fi
  3152. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3153. ])# _LT_PATH_MANIFEST_TOOL
  3154. # LT_LIB_M
  3155. # --------
  3156. # check for math library
  3157. AC_DEFUN([LT_LIB_M],
  3158. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3159. LIBM=
  3160. case $host in
  3161. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3162. # These system don't have libm, or don't need it
  3163. ;;
  3164. *-ncr-sysv4.3*)
  3165. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3166. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3167. ;;
  3168. *)
  3169. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3170. ;;
  3171. esac
  3172. AC_SUBST([LIBM])
  3173. ])# LT_LIB_M
  3174. # Old name:
  3175. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3176. dnl aclocal-1.4 backwards compatibility:
  3177. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3178. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3179. # -------------------------------
  3180. m4_defun([_LT_COMPILER_NO_RTTI],
  3181. [m4_require([_LT_TAG_COMPILER])dnl
  3182. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3183. if test "$GCC" = yes; then
  3184. case $cc_basename in
  3185. nvcc*)
  3186. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3187. *)
  3188. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3189. esac
  3190. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3191. lt_cv_prog_compiler_rtti_exceptions,
  3192. [-fno-rtti -fno-exceptions], [],
  3193. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3194. fi
  3195. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3196. [Compiler flag to turn off builtin functions])
  3197. ])# _LT_COMPILER_NO_RTTI
  3198. # _LT_CMD_GLOBAL_SYMBOLS
  3199. # ----------------------
  3200. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3201. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3202. AC_REQUIRE([AC_PROG_CC])dnl
  3203. AC_REQUIRE([AC_PROG_AWK])dnl
  3204. AC_REQUIRE([LT_PATH_NM])dnl
  3205. AC_REQUIRE([LT_PATH_LD])dnl
  3206. m4_require([_LT_DECL_SED])dnl
  3207. m4_require([_LT_DECL_EGREP])dnl
  3208. m4_require([_LT_TAG_COMPILER])dnl
  3209. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3210. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3211. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3212. [
  3213. # These are sane defaults that work on at least a few old systems.
  3214. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3215. # Character class describing NM global symbol codes.
  3216. symcode='[[BCDEGRST]]'
  3217. # Regexp to match symbols that can be accessed directly from C.
  3218. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3219. # Define system-specific variables.
  3220. case $host_os in
  3221. aix*)
  3222. symcode='[[BCDT]]'
  3223. ;;
  3224. cygwin* | mingw* | pw32* | cegcc*)
  3225. symcode='[[ABCDGISTW]]'
  3226. ;;
  3227. hpux*)
  3228. if test "$host_cpu" = ia64; then
  3229. symcode='[[ABCDEGRST]]'
  3230. fi
  3231. ;;
  3232. irix* | nonstopux*)
  3233. symcode='[[BCDEGRST]]'
  3234. ;;
  3235. osf*)
  3236. symcode='[[BCDEGQRST]]'
  3237. ;;
  3238. solaris*)
  3239. symcode='[[BDRT]]'
  3240. ;;
  3241. sco3.2v5*)
  3242. symcode='[[DT]]'
  3243. ;;
  3244. sysv4.2uw2*)
  3245. symcode='[[DT]]'
  3246. ;;
  3247. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3248. symcode='[[ABDT]]'
  3249. ;;
  3250. sysv4)
  3251. symcode='[[DFNSTU]]'
  3252. ;;
  3253. esac
  3254. # If we're using GNU nm, then use its standard symbol codes.
  3255. case `$NM -V 2>&1` in
  3256. *GNU* | *'with BFD'*)
  3257. symcode='[[ABCDGIRSTW]]' ;;
  3258. esac
  3259. # Transform an extracted symbol line into a proper C declaration.
  3260. # Some systems (esp. on ia64) link data and code symbols differently,
  3261. # so use this general approach.
  3262. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3263. # Transform an extracted symbol line into symbol name and symbol address
  3264. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3265. 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'"
  3266. # Handle CRLF in mingw tool chain
  3267. opt_cr=
  3268. case $build_os in
  3269. mingw*)
  3270. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3271. ;;
  3272. esac
  3273. # Try without a prefix underscore, then with it.
  3274. for ac_symprfx in "" "_"; do
  3275. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3276. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3277. # Write the raw and C identifiers.
  3278. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3279. # Fake it for dumpbin and say T for any non-static function
  3280. # and D for any global variable.
  3281. # Also find C++ and __fastcall symbols from MSVC++,
  3282. # which start with @ or ?.
  3283. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3284. " {last_section=section; section=\$ 3};"\
  3285. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3286. " \$ 0!~/External *\|/{next};"\
  3287. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3288. " {if(hide[section]) next};"\
  3289. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3290. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3291. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3292. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3293. " ' prfx=^$ac_symprfx]"
  3294. else
  3295. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3296. fi
  3297. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3298. # Check to see that the pipe works correctly.
  3299. pipe_works=no
  3300. rm -f conftest*
  3301. cat > conftest.$ac_ext <<_LT_EOF
  3302. #ifdef __cplusplus
  3303. extern "C" {
  3304. #endif
  3305. char nm_test_var;
  3306. void nm_test_func(void);
  3307. void nm_test_func(void){}
  3308. #ifdef __cplusplus
  3309. }
  3310. #endif
  3311. int main(){nm_test_var='a';nm_test_func();return(0);}
  3312. _LT_EOF
  3313. if AC_TRY_EVAL(ac_compile); then
  3314. # Now try to grab the symbols.
  3315. nlist=conftest.nm
  3316. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3317. # Try sorting and uniquifying the output.
  3318. if sort "$nlist" | uniq > "$nlist"T; then
  3319. mv -f "$nlist"T "$nlist"
  3320. else
  3321. rm -f "$nlist"T
  3322. fi
  3323. # Make sure that we snagged all the symbols we need.
  3324. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3325. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3326. cat <<_LT_EOF > conftest.$ac_ext
  3327. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3328. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3329. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3330. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3331. # define LT@&t@_DLSYM_CONST
  3332. #elif defined(__osf__)
  3333. /* This system does not cope well with relocations in const data. */
  3334. # define LT@&t@_DLSYM_CONST
  3335. #else
  3336. # define LT@&t@_DLSYM_CONST const
  3337. #endif
  3338. #ifdef __cplusplus
  3339. extern "C" {
  3340. #endif
  3341. _LT_EOF
  3342. # Now generate the symbol file.
  3343. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3344. cat <<_LT_EOF >> conftest.$ac_ext
  3345. /* The mapping between symbol names and symbols. */
  3346. LT@&t@_DLSYM_CONST struct {
  3347. const char *name;
  3348. void *address;
  3349. }
  3350. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3351. {
  3352. { "@PROGRAM@", (void *) 0 },
  3353. _LT_EOF
  3354. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3355. cat <<\_LT_EOF >> conftest.$ac_ext
  3356. {0, (void *) 0}
  3357. };
  3358. /* This works around a problem in FreeBSD linker */
  3359. #ifdef FREEBSD_WORKAROUND
  3360. static const void *lt_preloaded_setup() {
  3361. return lt__PROGRAM__LTX_preloaded_symbols;
  3362. }
  3363. #endif
  3364. #ifdef __cplusplus
  3365. }
  3366. #endif
  3367. _LT_EOF
  3368. # Now try linking the two files.
  3369. mv conftest.$ac_objext conftstm.$ac_objext
  3370. lt_globsym_save_LIBS=$LIBS
  3371. lt_globsym_save_CFLAGS=$CFLAGS
  3372. LIBS="conftstm.$ac_objext"
  3373. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3374. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3375. pipe_works=yes
  3376. fi
  3377. LIBS=$lt_globsym_save_LIBS
  3378. CFLAGS=$lt_globsym_save_CFLAGS
  3379. else
  3380. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3381. fi
  3382. else
  3383. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3384. fi
  3385. else
  3386. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3387. fi
  3388. else
  3389. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3390. cat conftest.$ac_ext >&5
  3391. fi
  3392. rm -rf conftest* conftst*
  3393. # Do not use the global_symbol_pipe unless it works.
  3394. if test "$pipe_works" = yes; then
  3395. break
  3396. else
  3397. lt_cv_sys_global_symbol_pipe=
  3398. fi
  3399. done
  3400. ])
  3401. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3402. lt_cv_sys_global_symbol_to_cdecl=
  3403. fi
  3404. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3405. AC_MSG_RESULT(failed)
  3406. else
  3407. AC_MSG_RESULT(ok)
  3408. fi
  3409. # Response file support.
  3410. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3411. nm_file_list_spec='@'
  3412. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3413. nm_file_list_spec='@'
  3414. fi
  3415. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3416. [Take the output of nm and produce a listing of raw symbols and C names])
  3417. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3418. [Transform the output of nm in a proper C declaration])
  3419. _LT_DECL([global_symbol_to_c_name_address],
  3420. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3421. [Transform the output of nm in a C name address pair])
  3422. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3423. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3424. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3425. _LT_DECL([], [nm_file_list_spec], [1],
  3426. [Specify filename containing input files for $NM])
  3427. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3428. # _LT_COMPILER_PIC([TAGNAME])
  3429. # ---------------------------
  3430. m4_defun([_LT_COMPILER_PIC],
  3431. [m4_require([_LT_TAG_COMPILER])dnl
  3432. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3433. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3434. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3435. m4_if([$1], [CXX], [
  3436. # C++ specific cases for pic, static, wl, etc.
  3437. if test "$GXX" = yes; then
  3438. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3439. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3440. case $host_os in
  3441. aix*)
  3442. # All AIX code is PIC.
  3443. if test "$host_cpu" = ia64; then
  3444. # AIX 5 now supports IA64 processor
  3445. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3446. fi
  3447. ;;
  3448. amigaos*)
  3449. case $host_cpu in
  3450. powerpc)
  3451. # see comment about AmigaOS4 .so support
  3452. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3453. ;;
  3454. m68k)
  3455. # FIXME: we need at least 68020 code to build shared libraries, but
  3456. # adding the `-m68020' flag to GCC prevents building anything better,
  3457. # like `-m68040'.
  3458. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3459. ;;
  3460. esac
  3461. ;;
  3462. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3463. # PIC is the default for these OSes.
  3464. ;;
  3465. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3466. # This hack is so that the source file can tell whether it is being
  3467. # built for inclusion in a dll (and should export symbols for example).
  3468. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3469. # (--disable-auto-import) libraries
  3470. m4_if([$1], [GCJ], [],
  3471. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3472. ;;
  3473. darwin* | rhapsody*)
  3474. # PIC is the default on this platform
  3475. # Common symbols not allowed in MH_DYLIB files
  3476. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3477. ;;
  3478. *djgpp*)
  3479. # DJGPP does not support shared libraries at all
  3480. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3481. ;;
  3482. haiku*)
  3483. # PIC is the default for Haiku.
  3484. # The "-static" flag exists, but is broken.
  3485. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3486. ;;
  3487. interix[[3-9]]*)
  3488. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3489. # Instead, we relocate shared libraries at runtime.
  3490. ;;
  3491. sysv4*MP*)
  3492. if test -d /usr/nec; then
  3493. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3494. fi
  3495. ;;
  3496. hpux*)
  3497. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3498. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3499. # sets the default TLS model and affects inlining.
  3500. case $host_cpu in
  3501. hppa*64*)
  3502. ;;
  3503. *)
  3504. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3505. ;;
  3506. esac
  3507. ;;
  3508. *qnx* | *nto*)
  3509. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3510. # it will coredump.
  3511. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3512. ;;
  3513. *)
  3514. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3515. ;;
  3516. esac
  3517. else
  3518. case $host_os in
  3519. aix[[4-9]]*)
  3520. # All AIX code is PIC.
  3521. if test "$host_cpu" = ia64; then
  3522. # AIX 5 now supports IA64 processor
  3523. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3524. else
  3525. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3526. fi
  3527. ;;
  3528. chorus*)
  3529. case $cc_basename in
  3530. cxch68*)
  3531. # Green Hills C++ Compiler
  3532. # _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"
  3533. ;;
  3534. esac
  3535. ;;
  3536. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3537. # This hack is so that the source file can tell whether it is being
  3538. # built for inclusion in a dll (and should export symbols for example).
  3539. m4_if([$1], [GCJ], [],
  3540. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3541. ;;
  3542. dgux*)
  3543. case $cc_basename in
  3544. ec++*)
  3545. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3546. ;;
  3547. ghcx*)
  3548. # Green Hills C++ Compiler
  3549. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3550. ;;
  3551. *)
  3552. ;;
  3553. esac
  3554. ;;
  3555. freebsd* | dragonfly*)
  3556. # FreeBSD uses GNU C++
  3557. ;;
  3558. hpux9* | hpux10* | hpux11*)
  3559. case $cc_basename in
  3560. CC*)
  3561. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3562. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3563. if test "$host_cpu" != ia64; then
  3564. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3565. fi
  3566. ;;
  3567. aCC*)
  3568. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3569. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3570. case $host_cpu in
  3571. hppa*64*|ia64*)
  3572. # +Z the default
  3573. ;;
  3574. *)
  3575. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3576. ;;
  3577. esac
  3578. ;;
  3579. *)
  3580. ;;
  3581. esac
  3582. ;;
  3583. interix*)
  3584. # This is c89, which is MS Visual C++ (no shared libs)
  3585. # Anyone wants to do a port?
  3586. ;;
  3587. irix5* | irix6* | nonstopux*)
  3588. case $cc_basename in
  3589. CC*)
  3590. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3591. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3592. # CC pic flag -KPIC is the default.
  3593. ;;
  3594. *)
  3595. ;;
  3596. esac
  3597. ;;
  3598. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3599. case $cc_basename in
  3600. KCC*)
  3601. # KAI C++ Compiler
  3602. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3603. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3604. ;;
  3605. ecpc* )
  3606. # old Intel C++ for x86_64 which still supported -KPIC.
  3607. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3608. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3609. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3610. ;;
  3611. icpc* )
  3612. # Intel C++, used to be incompatible with GCC.
  3613. # ICC 10 doesn't accept -KPIC any more.
  3614. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3615. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3616. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3617. ;;
  3618. pgCC* | pgcpp*)
  3619. # Portland Group C++ compiler
  3620. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3621. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3622. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3623. ;;
  3624. cxx*)
  3625. # Compaq C++
  3626. # Make sure the PIC flag is empty. It appears that all Alpha
  3627. # Linux and Compaq Tru64 Unix objects are PIC.
  3628. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3629. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3630. ;;
  3631. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3632. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3633. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3634. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3635. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3636. ;;
  3637. *)
  3638. case `$CC -V 2>&1 | sed 5q` in
  3639. *Sun\ C*)
  3640. # Sun C++ 5.9
  3641. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3642. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3643. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3644. ;;
  3645. esac
  3646. ;;
  3647. esac
  3648. ;;
  3649. lynxos*)
  3650. ;;
  3651. m88k*)
  3652. ;;
  3653. mvs*)
  3654. case $cc_basename in
  3655. cxx*)
  3656. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3657. ;;
  3658. *)
  3659. ;;
  3660. esac
  3661. ;;
  3662. netbsd*)
  3663. ;;
  3664. *qnx* | *nto*)
  3665. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3666. # it will coredump.
  3667. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3668. ;;
  3669. osf3* | osf4* | osf5*)
  3670. case $cc_basename in
  3671. KCC*)
  3672. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3673. ;;
  3674. RCC*)
  3675. # Rational C++ 2.4.1
  3676. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3677. ;;
  3678. cxx*)
  3679. # Digital/Compaq C++
  3680. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3681. # Make sure the PIC flag is empty. It appears that all Alpha
  3682. # Linux and Compaq Tru64 Unix objects are PIC.
  3683. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3684. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3685. ;;
  3686. *)
  3687. ;;
  3688. esac
  3689. ;;
  3690. psos*)
  3691. ;;
  3692. solaris*)
  3693. case $cc_basename in
  3694. CC* | sunCC*)
  3695. # Sun C++ 4.2, 5.x and Centerline C++
  3696. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3697. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3698. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3699. ;;
  3700. gcx*)
  3701. # Green Hills C++ Compiler
  3702. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3703. ;;
  3704. *)
  3705. ;;
  3706. esac
  3707. ;;
  3708. sunos4*)
  3709. case $cc_basename in
  3710. CC*)
  3711. # Sun C++ 4.x
  3712. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3713. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3714. ;;
  3715. lcc*)
  3716. # Lucid
  3717. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3718. ;;
  3719. *)
  3720. ;;
  3721. esac
  3722. ;;
  3723. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3724. case $cc_basename in
  3725. CC*)
  3726. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3727. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3728. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3729. ;;
  3730. esac
  3731. ;;
  3732. tandem*)
  3733. case $cc_basename in
  3734. NCC*)
  3735. # NonStop-UX NCC 3.20
  3736. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3737. ;;
  3738. *)
  3739. ;;
  3740. esac
  3741. ;;
  3742. vxworks*)
  3743. ;;
  3744. *)
  3745. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3746. ;;
  3747. esac
  3748. fi
  3749. ],
  3750. [
  3751. if test "$GCC" = yes; then
  3752. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3753. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3754. case $host_os in
  3755. aix*)
  3756. # All AIX code is PIC.
  3757. if test "$host_cpu" = ia64; then
  3758. # AIX 5 now supports IA64 processor
  3759. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3760. fi
  3761. ;;
  3762. amigaos*)
  3763. case $host_cpu in
  3764. powerpc)
  3765. # see comment about AmigaOS4 .so support
  3766. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3767. ;;
  3768. m68k)
  3769. # FIXME: we need at least 68020 code to build shared libraries, but
  3770. # adding the `-m68020' flag to GCC prevents building anything better,
  3771. # like `-m68040'.
  3772. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3773. ;;
  3774. esac
  3775. ;;
  3776. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3777. # PIC is the default for these OSes.
  3778. ;;
  3779. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3780. # This hack is so that the source file can tell whether it is being
  3781. # built for inclusion in a dll (and should export symbols for example).
  3782. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3783. # (--disable-auto-import) libraries
  3784. m4_if([$1], [GCJ], [],
  3785. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3786. ;;
  3787. darwin* | rhapsody*)
  3788. # PIC is the default on this platform
  3789. # Common symbols not allowed in MH_DYLIB files
  3790. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3791. ;;
  3792. haiku*)
  3793. # PIC is the default for Haiku.
  3794. # The "-static" flag exists, but is broken.
  3795. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3796. ;;
  3797. hpux*)
  3798. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3799. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3800. # sets the default TLS model and affects inlining.
  3801. case $host_cpu in
  3802. hppa*64*)
  3803. # +Z the default
  3804. ;;
  3805. *)
  3806. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3807. ;;
  3808. esac
  3809. ;;
  3810. interix[[3-9]]*)
  3811. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3812. # Instead, we relocate shared libraries at runtime.
  3813. ;;
  3814. msdosdjgpp*)
  3815. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3816. # on systems that don't support them.
  3817. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3818. enable_shared=no
  3819. ;;
  3820. *nto* | *qnx*)
  3821. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3822. # it will coredump.
  3823. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3824. ;;
  3825. sysv4*MP*)
  3826. if test -d /usr/nec; then
  3827. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3828. fi
  3829. ;;
  3830. *)
  3831. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3832. ;;
  3833. esac
  3834. case $cc_basename in
  3835. nvcc*) # Cuda Compiler Driver 2.2
  3836. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3837. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
  3838. ;;
  3839. esac
  3840. else
  3841. # PORTME Check for flag to pass linker flags through the system compiler.
  3842. case $host_os in
  3843. aix*)
  3844. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3845. if test "$host_cpu" = ia64; then
  3846. # AIX 5 now supports IA64 processor
  3847. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3848. else
  3849. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3850. fi
  3851. ;;
  3852. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3853. # This hack is so that the source file can tell whether it is being
  3854. # built for inclusion in a dll (and should export symbols for example).
  3855. m4_if([$1], [GCJ], [],
  3856. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3857. ;;
  3858. hpux9* | hpux10* | hpux11*)
  3859. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3860. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3861. # not for PA HP-UX.
  3862. case $host_cpu in
  3863. hppa*64*|ia64*)
  3864. # +Z the default
  3865. ;;
  3866. *)
  3867. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3868. ;;
  3869. esac
  3870. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3871. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3872. ;;
  3873. irix5* | irix6* | nonstopux*)
  3874. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3875. # PIC (with -KPIC) is the default.
  3876. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3877. ;;
  3878. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3879. case $cc_basename in
  3880. # old Intel for x86_64 which still supported -KPIC.
  3881. ecc*)
  3882. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3883. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3884. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3885. ;;
  3886. # icc used to be incompatible with GCC.
  3887. # ICC 10 doesn't accept -KPIC any more.
  3888. icc* | ifort*)
  3889. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3890. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3891. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3892. ;;
  3893. # Lahey Fortran 8.1.
  3894. lf95*)
  3895. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3896. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3897. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3898. ;;
  3899. nagfor*)
  3900. # NAG Fortran compiler
  3901. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3902. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3903. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3904. ;;
  3905. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3906. # Portland Group compilers (*not* the Pentium gcc compiler,
  3907. # which looks to be a dead project)
  3908. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3909. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3910. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3911. ;;
  3912. ccc*)
  3913. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3914. # All Alpha code is PIC.
  3915. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3916. ;;
  3917. xl* | bgxl* | bgf* | mpixl*)
  3918. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3919. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3920. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3921. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3922. ;;
  3923. *)
  3924. case `$CC -V 2>&1 | sed 5q` in
  3925. *Sun\ F* | *Sun*Fortran*)
  3926. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3927. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3928. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3929. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3930. ;;
  3931. *Sun\ C*)
  3932. # Sun C 5.9
  3933. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3934. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3935. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3936. ;;
  3937. esac
  3938. ;;
  3939. esac
  3940. ;;
  3941. newsos6)
  3942. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3943. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3944. ;;
  3945. *nto* | *qnx*)
  3946. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3947. # it will coredump.
  3948. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3949. ;;
  3950. osf3* | osf4* | osf5*)
  3951. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3952. # All OSF/1 code is PIC.
  3953. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3954. ;;
  3955. rdos*)
  3956. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3957. ;;
  3958. solaris*)
  3959. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3960. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3961. case $cc_basename in
  3962. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  3963. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  3964. *)
  3965. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  3966. esac
  3967. ;;
  3968. sunos4*)
  3969. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3970. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3971. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3972. ;;
  3973. sysv4 | sysv4.2uw2* | sysv4.3*)
  3974. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3975. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3976. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3977. ;;
  3978. sysv4*MP*)
  3979. if test -d /usr/nec ;then
  3980. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  3981. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3982. fi
  3983. ;;
  3984. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3985. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3986. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3987. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3988. ;;
  3989. unicos*)
  3990. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3991. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3992. ;;
  3993. uts4*)
  3994. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3995. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3996. ;;
  3997. *)
  3998. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3999. ;;
  4000. esac
  4001. fi
  4002. ])
  4003. case $host_os in
  4004. # For platforms which do not support PIC, -DPIC is meaningless:
  4005. *djgpp*)
  4006. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4007. ;;
  4008. *)
  4009. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4010. ;;
  4011. esac
  4012. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4013. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4014. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4015. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4016. #
  4017. # Check to make sure the PIC flag actually works.
  4018. #
  4019. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4020. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4021. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4022. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4023. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4024. "" | " "*) ;;
  4025. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4026. esac],
  4027. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4028. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4029. fi
  4030. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4031. [Additional compiler flags for building library objects])
  4032. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4033. [How to pass a linker flag through the compiler])
  4034. #
  4035. # Check to make sure the static flag actually works.
  4036. #
  4037. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4038. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4039. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4040. $lt_tmp_static_flag,
  4041. [],
  4042. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4043. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4044. [Compiler flag to prevent dynamic linking])
  4045. ])# _LT_COMPILER_PIC
  4046. # _LT_LINKER_SHLIBS([TAGNAME])
  4047. # ----------------------------
  4048. # See if the linker supports building shared libraries.
  4049. m4_defun([_LT_LINKER_SHLIBS],
  4050. [AC_REQUIRE([LT_PATH_LD])dnl
  4051. AC_REQUIRE([LT_PATH_NM])dnl
  4052. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4053. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4054. m4_require([_LT_DECL_EGREP])dnl
  4055. m4_require([_LT_DECL_SED])dnl
  4056. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4057. m4_require([_LT_TAG_COMPILER])dnl
  4058. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4059. m4_if([$1], [CXX], [
  4060. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4061. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4062. case $host_os in
  4063. aix[[4-9]]*)
  4064. # If we're using GNU nm, then we don't want the "-C" option.
  4065. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4066. # Also, AIX nm treats weak defined symbols like other global defined
  4067. # symbols, whereas GNU nm marks them as "W".
  4068. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4069. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4070. else
  4071. _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'
  4072. fi
  4073. ;;
  4074. pw32*)
  4075. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4076. ;;
  4077. cygwin* | mingw* | cegcc*)
  4078. case $cc_basename in
  4079. cl*) ;;
  4080. *)
  4081. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4082. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4083. ;;
  4084. esac
  4085. ;;
  4086. *)
  4087. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4088. ;;
  4089. esac
  4090. ], [
  4091. runpath_var=
  4092. _LT_TAGVAR(allow_undefined_flag, $1)=
  4093. _LT_TAGVAR(always_export_symbols, $1)=no
  4094. _LT_TAGVAR(archive_cmds, $1)=
  4095. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4096. _LT_TAGVAR(compiler_needs_object, $1)=no
  4097. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4098. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4099. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4100. _LT_TAGVAR(hardcode_automatic, $1)=no
  4101. _LT_TAGVAR(hardcode_direct, $1)=no
  4102. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4103. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4104. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4105. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4106. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4107. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4108. _LT_TAGVAR(inherit_rpath, $1)=no
  4109. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4110. _LT_TAGVAR(module_cmds, $1)=
  4111. _LT_TAGVAR(module_expsym_cmds, $1)=
  4112. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4113. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4114. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4115. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4116. # include_expsyms should be a list of space-separated symbols to be *always*
  4117. # included in the symbol list
  4118. _LT_TAGVAR(include_expsyms, $1)=
  4119. # exclude_expsyms can be an extended regexp of symbols to exclude
  4120. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4121. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4122. # as well as any symbol that contains `d'.
  4123. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4124. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4125. # platforms (ab)use it in PIC code, but their linkers get confused if
  4126. # the symbol is explicitly referenced. Since portable code cannot
  4127. # rely on this symbol name, it's probably fine to never include it in
  4128. # preloaded symbol tables.
  4129. # Exclude shared library initialization/finalization symbols.
  4130. dnl Note also adjust exclude_expsyms for C++ above.
  4131. extract_expsyms_cmds=
  4132. case $host_os in
  4133. cygwin* | mingw* | pw32* | cegcc*)
  4134. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4135. # When not using gcc, we currently assume that we are using
  4136. # Microsoft Visual C++.
  4137. if test "$GCC" != yes; then
  4138. with_gnu_ld=no
  4139. fi
  4140. ;;
  4141. interix*)
  4142. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4143. with_gnu_ld=yes
  4144. ;;
  4145. openbsd*)
  4146. with_gnu_ld=no
  4147. ;;
  4148. esac
  4149. _LT_TAGVAR(ld_shlibs, $1)=yes
  4150. # On some targets, GNU ld is compatible enough with the native linker
  4151. # that we're better off using the native interface for both.
  4152. lt_use_gnu_ld_interface=no
  4153. if test "$with_gnu_ld" = yes; then
  4154. case $host_os in
  4155. aix*)
  4156. # The AIX port of GNU ld has always aspired to compatibility
  4157. # with the native linker. However, as the warning in the GNU ld
  4158. # block says, versions before 2.19.5* couldn't really create working
  4159. # shared libraries, regardless of the interface used.
  4160. case `$LD -v 2>&1` in
  4161. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4162. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4163. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4164. *)
  4165. lt_use_gnu_ld_interface=yes
  4166. ;;
  4167. esac
  4168. ;;
  4169. *)
  4170. lt_use_gnu_ld_interface=yes
  4171. ;;
  4172. esac
  4173. fi
  4174. if test "$lt_use_gnu_ld_interface" = yes; then
  4175. # If archive_cmds runs LD, not CC, wlarc should be empty
  4176. wlarc='${wl}'
  4177. # Set some defaults for GNU ld with shared library support. These
  4178. # are reset later if shared libraries are not supported. Putting them
  4179. # here allows them to be overridden if necessary.
  4180. runpath_var=LD_RUN_PATH
  4181. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4182. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4183. # ancient GNU ld didn't support --whole-archive et. al.
  4184. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4185. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4186. else
  4187. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4188. fi
  4189. supports_anon_versioning=no
  4190. case `$LD -v 2>&1` in
  4191. *GNU\ gold*) supports_anon_versioning=yes ;;
  4192. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4193. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4194. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4195. *\ 2.11.*) ;; # other 2.11 versions
  4196. *) supports_anon_versioning=yes ;;
  4197. esac
  4198. # See if GNU ld supports shared libraries.
  4199. case $host_os in
  4200. aix[[3-9]]*)
  4201. # On AIX/PPC, the GNU linker is very broken
  4202. if test "$host_cpu" != ia64; then
  4203. _LT_TAGVAR(ld_shlibs, $1)=no
  4204. cat <<_LT_EOF 1>&2
  4205. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4206. *** to be unable to reliably create shared libraries on AIX.
  4207. *** Therefore, libtool is disabling shared libraries support. If you
  4208. *** really care for shared libraries, you may want to install binutils
  4209. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4210. *** You will then need to restart the configuration process.
  4211. _LT_EOF
  4212. fi
  4213. ;;
  4214. amigaos*)
  4215. case $host_cpu in
  4216. powerpc)
  4217. # see comment about AmigaOS4 .so support
  4218. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4219. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4220. ;;
  4221. m68k)
  4222. _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)'
  4223. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4224. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4225. ;;
  4226. esac
  4227. ;;
  4228. beos*)
  4229. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4230. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4231. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4232. # support --undefined. This deserves some investigation. FIXME
  4233. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4234. else
  4235. _LT_TAGVAR(ld_shlibs, $1)=no
  4236. fi
  4237. ;;
  4238. cygwin* | mingw* | pw32* | cegcc*)
  4239. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4240. # as there is no search path for DLLs.
  4241. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4242. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4243. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4244. _LT_TAGVAR(always_export_symbols, $1)=no
  4245. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4246. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4247. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4248. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4249. _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'
  4250. # If the export-symbols file already is a .def file (1st line
  4251. # is EXPORTS), use it as is; otherwise, prepend...
  4252. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4253. cp $export_symbols $output_objdir/$soname.def;
  4254. else
  4255. echo EXPORTS > $output_objdir/$soname.def;
  4256. cat $export_symbols >> $output_objdir/$soname.def;
  4257. fi~
  4258. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4259. else
  4260. _LT_TAGVAR(ld_shlibs, $1)=no
  4261. fi
  4262. ;;
  4263. haiku*)
  4264. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4265. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4266. ;;
  4267. interix[[3-9]]*)
  4268. _LT_TAGVAR(hardcode_direct, $1)=no
  4269. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4270. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4271. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4272. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4273. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4274. # default) and relocated if they conflict, which is a slow very memory
  4275. # consuming and fragmenting process. To avoid this, we pick a random,
  4276. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4277. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4278. _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'
  4279. _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'
  4280. ;;
  4281. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4282. tmp_diet=no
  4283. if test "$host_os" = linux-dietlibc; then
  4284. case $cc_basename in
  4285. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4286. esac
  4287. fi
  4288. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4289. && test "$tmp_diet" = no
  4290. then
  4291. tmp_addflag=' $pic_flag'
  4292. tmp_sharedflag='-shared'
  4293. case $cc_basename,$host_cpu in
  4294. pgcc*) # Portland Group C compiler
  4295. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4296. tmp_addflag=' $pic_flag'
  4297. ;;
  4298. pgf77* | pgf90* | pgf95* | pgfortran*)
  4299. # Portland Group f77 and f90 compilers
  4300. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4301. tmp_addflag=' $pic_flag -Mnomain' ;;
  4302. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4303. tmp_addflag=' -i_dynamic' ;;
  4304. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4305. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4306. ifc* | ifort*) # Intel Fortran compiler
  4307. tmp_addflag=' -nofor_main' ;;
  4308. lf95*) # Lahey Fortran 8.1
  4309. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4310. tmp_sharedflag='--shared' ;;
  4311. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4312. tmp_sharedflag='-qmkshrobj'
  4313. tmp_addflag= ;;
  4314. nvcc*) # Cuda Compiler Driver 2.2
  4315. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4316. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4317. ;;
  4318. esac
  4319. case `$CC -V 2>&1 | sed 5q` in
  4320. *Sun\ C*) # Sun C 5.9
  4321. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4322. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4323. tmp_sharedflag='-G' ;;
  4324. *Sun\ F*) # Sun Fortran 8.3
  4325. tmp_sharedflag='-G' ;;
  4326. esac
  4327. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4328. if test "x$supports_anon_versioning" = xyes; then
  4329. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4330. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4331. echo "local: *; };" >> $output_objdir/$libname.ver~
  4332. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4333. fi
  4334. case $cc_basename in
  4335. xlf* | bgf* | bgxlf* | mpixlf*)
  4336. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4337. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4338. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4339. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4340. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4341. if test "x$supports_anon_versioning" = xyes; then
  4342. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4343. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4344. echo "local: *; };" >> $output_objdir/$libname.ver~
  4345. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4346. fi
  4347. ;;
  4348. esac
  4349. else
  4350. _LT_TAGVAR(ld_shlibs, $1)=no
  4351. fi
  4352. ;;
  4353. netbsd*)
  4354. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4355. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4356. wlarc=
  4357. else
  4358. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4359. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4360. fi
  4361. ;;
  4362. solaris*)
  4363. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4364. _LT_TAGVAR(ld_shlibs, $1)=no
  4365. cat <<_LT_EOF 1>&2
  4366. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4367. *** create shared libraries on Solaris systems. Therefore, libtool
  4368. *** is disabling shared libraries support. We urge you to upgrade GNU
  4369. *** binutils to release 2.9.1 or newer. Another option is to modify
  4370. *** your PATH or compiler configuration so that the native linker is
  4371. *** used, and then restart.
  4372. _LT_EOF
  4373. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4374. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4375. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4376. else
  4377. _LT_TAGVAR(ld_shlibs, $1)=no
  4378. fi
  4379. ;;
  4380. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4381. case `$LD -v 2>&1` in
  4382. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4383. _LT_TAGVAR(ld_shlibs, $1)=no
  4384. cat <<_LT_EOF 1>&2
  4385. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4386. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4387. *** is disabling shared libraries support. We urge you to upgrade GNU
  4388. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4389. *** your PATH or compiler configuration so that the native linker is
  4390. *** used, and then restart.
  4391. _LT_EOF
  4392. ;;
  4393. *)
  4394. # For security reasons, it is highly recommended that you always
  4395. # use absolute paths for naming shared libraries, and exclude the
  4396. # DT_RUNPATH tag from executables and libraries. But doing so
  4397. # requires that you compile everything twice, which is a pain.
  4398. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4399. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4400. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4401. _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'
  4402. else
  4403. _LT_TAGVAR(ld_shlibs, $1)=no
  4404. fi
  4405. ;;
  4406. esac
  4407. ;;
  4408. sunos4*)
  4409. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4410. wlarc=
  4411. _LT_TAGVAR(hardcode_direct, $1)=yes
  4412. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4413. ;;
  4414. *)
  4415. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4416. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4417. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4418. else
  4419. _LT_TAGVAR(ld_shlibs, $1)=no
  4420. fi
  4421. ;;
  4422. esac
  4423. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4424. runpath_var=
  4425. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4426. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4427. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4428. fi
  4429. else
  4430. # PORTME fill in a description of your system's linker (not GNU ld)
  4431. case $host_os in
  4432. aix3*)
  4433. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4434. _LT_TAGVAR(always_export_symbols, $1)=yes
  4435. _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'
  4436. # Note: this linker hardcodes the directories in LIBPATH if there
  4437. # are no directories specified by -L.
  4438. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4439. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4440. # Neither direct hardcoding nor static linking is supported with a
  4441. # broken collect2.
  4442. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4443. fi
  4444. ;;
  4445. aix[[4-9]]*)
  4446. if test "$host_cpu" = ia64; then
  4447. # On IA64, the linker does run time linking by default, so we don't
  4448. # have to do anything special.
  4449. aix_use_runtimelinking=no
  4450. exp_sym_flag='-Bexport'
  4451. no_entry_flag=""
  4452. else
  4453. # If we're using GNU nm, then we don't want the "-C" option.
  4454. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4455. # Also, AIX nm treats weak defined symbols like other global
  4456. # defined symbols, whereas GNU nm marks them as "W".
  4457. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4458. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4459. else
  4460. _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'
  4461. fi
  4462. aix_use_runtimelinking=no
  4463. # Test if we are trying to use run time linking or normal
  4464. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4465. # need to do runtime linking.
  4466. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4467. for ld_flag in $LDFLAGS; do
  4468. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4469. aix_use_runtimelinking=yes
  4470. break
  4471. fi
  4472. done
  4473. ;;
  4474. esac
  4475. exp_sym_flag='-bexport'
  4476. no_entry_flag='-bnoentry'
  4477. fi
  4478. # When large executables or shared objects are built, AIX ld can
  4479. # have problems creating the table of contents. If linking a library
  4480. # or program results in "error TOC overflow" add -mminimal-toc to
  4481. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4482. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4483. _LT_TAGVAR(archive_cmds, $1)=''
  4484. _LT_TAGVAR(hardcode_direct, $1)=yes
  4485. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4486. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4487. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4488. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4489. if test "$GCC" = yes; then
  4490. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4491. # We only want to do this on AIX 4.2 and lower, the check
  4492. # below for broken collect2 doesn't work under 4.3+
  4493. collect2name=`${CC} -print-prog-name=collect2`
  4494. if test -f "$collect2name" &&
  4495. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4496. then
  4497. # We have reworked collect2
  4498. :
  4499. else
  4500. # We have old collect2
  4501. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4502. # It fails to find uninstalled libraries when the uninstalled
  4503. # path is not listed in the libpath. Setting hardcode_minus_L
  4504. # to unsupported forces relinking
  4505. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4506. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4507. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4508. fi
  4509. ;;
  4510. esac
  4511. shared_flag='-shared'
  4512. if test "$aix_use_runtimelinking" = yes; then
  4513. shared_flag="$shared_flag "'${wl}-G'
  4514. fi
  4515. else
  4516. # not using gcc
  4517. if test "$host_cpu" = ia64; then
  4518. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4519. # chokes on -Wl,-G. The following line is correct:
  4520. shared_flag='-G'
  4521. else
  4522. if test "$aix_use_runtimelinking" = yes; then
  4523. shared_flag='${wl}-G'
  4524. else
  4525. shared_flag='${wl}-bM:SRE'
  4526. fi
  4527. fi
  4528. fi
  4529. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4530. # It seems that -bexpall does not export symbols beginning with
  4531. # underscore (_), so it is better to generate a list of symbols to export.
  4532. _LT_TAGVAR(always_export_symbols, $1)=yes
  4533. if test "$aix_use_runtimelinking" = yes; then
  4534. # Warning - without using the other runtime loading flags (-brtl),
  4535. # -berok will link without error, but may produce a broken library.
  4536. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4537. # Determine the default libpath from the value encoded in an
  4538. # empty executable.
  4539. _LT_SYS_MODULE_PATH_AIX([$1])
  4540. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4541. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4542. else
  4543. if test "$host_cpu" = ia64; then
  4544. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4545. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4546. _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"
  4547. else
  4548. # Determine the default libpath from the value encoded in an
  4549. # empty executable.
  4550. _LT_SYS_MODULE_PATH_AIX([$1])
  4551. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4552. # Warning - without using the other run time loading flags,
  4553. # -berok will link without error, but may produce a broken library.
  4554. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4555. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4556. if test "$with_gnu_ld" = yes; then
  4557. # We only use this code for GNU lds that support --whole-archive.
  4558. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4559. else
  4560. # Exported symbols can be pulled into shared objects from archives
  4561. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4562. fi
  4563. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4564. # This is similar to how AIX traditionally builds its shared libraries.
  4565. _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'
  4566. fi
  4567. fi
  4568. ;;
  4569. amigaos*)
  4570. case $host_cpu in
  4571. powerpc)
  4572. # see comment about AmigaOS4 .so support
  4573. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4574. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4575. ;;
  4576. m68k)
  4577. _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)'
  4578. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4579. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4580. ;;
  4581. esac
  4582. ;;
  4583. bsdi[[45]]*)
  4584. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4585. ;;
  4586. cygwin* | mingw* | pw32* | cegcc*)
  4587. # When not using gcc, we currently assume that we are using
  4588. # Microsoft Visual C++.
  4589. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4590. # no search path for DLLs.
  4591. case $cc_basename in
  4592. cl*)
  4593. # Native MSVC
  4594. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4595. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4596. _LT_TAGVAR(always_export_symbols, $1)=yes
  4597. _LT_TAGVAR(file_list_spec, $1)='@'
  4598. # Tell ltmain to make .lib files, not .a files.
  4599. libext=lib
  4600. # Tell ltmain to make .dll files, not .so files.
  4601. shrext_cmds=".dll"
  4602. # FIXME: Setting linknames here is a bad hack.
  4603. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4604. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4605. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4606. else
  4607. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4608. fi~
  4609. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4610. linknames='
  4611. # The linker will not automatically build a static lib if we build a DLL.
  4612. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4613. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4614. _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'
  4615. # Don't use ranlib
  4616. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4617. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4618. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4619. case $lt_outputfile in
  4620. *.exe|*.EXE) ;;
  4621. *)
  4622. lt_outputfile="$lt_outputfile.exe"
  4623. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4624. ;;
  4625. esac~
  4626. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4627. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4628. $RM "$lt_outputfile.manifest";
  4629. fi'
  4630. ;;
  4631. *)
  4632. # Assume MSVC wrapper
  4633. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4634. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4635. # Tell ltmain to make .lib files, not .a files.
  4636. libext=lib
  4637. # Tell ltmain to make .dll files, not .so files.
  4638. shrext_cmds=".dll"
  4639. # FIXME: Setting linknames here is a bad hack.
  4640. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4641. # The linker will automatically build a .lib file if we build a DLL.
  4642. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4643. # FIXME: Should let the user specify the lib program.
  4644. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4645. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4646. ;;
  4647. esac
  4648. ;;
  4649. darwin* | rhapsody*)
  4650. _LT_DARWIN_LINKER_FEATURES($1)
  4651. ;;
  4652. dgux*)
  4653. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4654. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4655. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4656. ;;
  4657. freebsd1*)
  4658. _LT_TAGVAR(ld_shlibs, $1)=no
  4659. ;;
  4660. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4661. # support. Future versions do this automatically, but an explicit c++rt0.o
  4662. # does not break anything, and helps significantly (at the cost of a little
  4663. # extra space).
  4664. freebsd2.2*)
  4665. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4666. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4667. _LT_TAGVAR(hardcode_direct, $1)=yes
  4668. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4669. ;;
  4670. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4671. freebsd2*)
  4672. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4673. _LT_TAGVAR(hardcode_direct, $1)=yes
  4674. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4675. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4676. ;;
  4677. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4678. freebsd* | dragonfly*)
  4679. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4680. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4681. _LT_TAGVAR(hardcode_direct, $1)=yes
  4682. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4683. ;;
  4684. hpux9*)
  4685. if test "$GCC" = yes; then
  4686. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4687. else
  4688. _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'
  4689. fi
  4690. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4691. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4692. _LT_TAGVAR(hardcode_direct, $1)=yes
  4693. # hardcode_minus_L: Not really in the search PATH,
  4694. # but as the default location of the library.
  4695. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4696. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4697. ;;
  4698. hpux10*)
  4699. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4700. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4701. else
  4702. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4703. fi
  4704. if test "$with_gnu_ld" = no; then
  4705. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4706. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4707. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4708. _LT_TAGVAR(hardcode_direct, $1)=yes
  4709. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4710. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4711. # hardcode_minus_L: Not really in the search PATH,
  4712. # but as the default location of the library.
  4713. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4714. fi
  4715. ;;
  4716. hpux11*)
  4717. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4718. case $host_cpu in
  4719. hppa*64*)
  4720. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4721. ;;
  4722. ia64*)
  4723. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4724. ;;
  4725. *)
  4726. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4727. ;;
  4728. esac
  4729. else
  4730. case $host_cpu in
  4731. hppa*64*)
  4732. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4733. ;;
  4734. ia64*)
  4735. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4736. ;;
  4737. *)
  4738. m4_if($1, [], [
  4739. # Older versions of the 11.00 compiler do not understand -b yet
  4740. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4741. _LT_LINKER_OPTION([if $CC understands -b],
  4742. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4743. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4744. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4745. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4746. ;;
  4747. esac
  4748. fi
  4749. if test "$with_gnu_ld" = no; then
  4750. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4751. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4752. case $host_cpu in
  4753. hppa*64*|ia64*)
  4754. _LT_TAGVAR(hardcode_direct, $1)=no
  4755. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4756. ;;
  4757. *)
  4758. _LT_TAGVAR(hardcode_direct, $1)=yes
  4759. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4760. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4761. # hardcode_minus_L: Not really in the search PATH,
  4762. # but as the default location of the library.
  4763. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4764. ;;
  4765. esac
  4766. fi
  4767. ;;
  4768. irix5* | irix6* | nonstopux*)
  4769. if test "$GCC" = yes; then
  4770. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4771. # Try to use the -exported_symbol ld option, if it does not
  4772. # work, assume that -exports_file does not work either and
  4773. # implicitly export all symbols.
  4774. # This should be the same for all languages, so no per-tag cache variable.
  4775. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4776. [lt_cv_irix_exported_symbol],
  4777. [save_LDFLAGS="$LDFLAGS"
  4778. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4779. AC_LINK_IFELSE(
  4780. [AC_LANG_SOURCE(
  4781. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4782. [C++], [[int foo (void) { return 0; }]],
  4783. [Fortran 77], [[
  4784. subroutine foo
  4785. end]],
  4786. [Fortran], [[
  4787. subroutine foo
  4788. end]])])],
  4789. [lt_cv_irix_exported_symbol=yes],
  4790. [lt_cv_irix_exported_symbol=no])
  4791. LDFLAGS="$save_LDFLAGS"])
  4792. if test "$lt_cv_irix_exported_symbol" = yes; then
  4793. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4794. fi
  4795. else
  4796. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4797. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4798. fi
  4799. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4800. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4801. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4802. _LT_TAGVAR(inherit_rpath, $1)=yes
  4803. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4804. ;;
  4805. netbsd*)
  4806. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4807. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4808. else
  4809. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4810. fi
  4811. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4812. _LT_TAGVAR(hardcode_direct, $1)=yes
  4813. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4814. ;;
  4815. newsos6)
  4816. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4817. _LT_TAGVAR(hardcode_direct, $1)=yes
  4818. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4819. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4820. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4821. ;;
  4822. *nto* | *qnx*)
  4823. ;;
  4824. openbsd*)
  4825. if test -f /usr/libexec/ld.so; then
  4826. _LT_TAGVAR(hardcode_direct, $1)=yes
  4827. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4828. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4829. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4830. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4831. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4832. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4833. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4834. else
  4835. case $host_os in
  4836. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4837. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4838. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4839. ;;
  4840. *)
  4841. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4842. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4843. ;;
  4844. esac
  4845. fi
  4846. else
  4847. _LT_TAGVAR(ld_shlibs, $1)=no
  4848. fi
  4849. ;;
  4850. os2*)
  4851. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4852. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4853. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4854. _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'
  4855. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4856. ;;
  4857. osf3*)
  4858. if test "$GCC" = yes; then
  4859. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4860. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4861. else
  4862. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4863. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4864. fi
  4865. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4866. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4867. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4868. ;;
  4869. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4870. if test "$GCC" = yes; then
  4871. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4872. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4873. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4874. else
  4875. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4876. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4877. _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~
  4878. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4879. # Both c and cxx compiler support -rpath directly
  4880. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4881. fi
  4882. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4883. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4884. ;;
  4885. solaris*)
  4886. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4887. if test "$GCC" = yes; then
  4888. wlarc='${wl}'
  4889. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4890. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4891. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4892. else
  4893. case `$CC -V 2>&1` in
  4894. *"Compilers 5.0"*)
  4895. wlarc=''
  4896. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4897. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4898. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4899. ;;
  4900. *)
  4901. wlarc='${wl}'
  4902. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4903. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4904. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4905. ;;
  4906. esac
  4907. fi
  4908. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4909. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4910. case $host_os in
  4911. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4912. *)
  4913. # The compiler driver will combine and reorder linker options,
  4914. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4915. # but is careful enough not to reorder.
  4916. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4917. if test "$GCC" = yes; then
  4918. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4919. else
  4920. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4921. fi
  4922. ;;
  4923. esac
  4924. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4925. ;;
  4926. sunos4*)
  4927. if test "x$host_vendor" = xsequent; then
  4928. # Use $CC to link under sequent, because it throws in some extra .o
  4929. # files that make .init and .fini sections work.
  4930. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4931. else
  4932. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  4933. fi
  4934. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4935. _LT_TAGVAR(hardcode_direct, $1)=yes
  4936. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4937. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4938. ;;
  4939. sysv4)
  4940. case $host_vendor in
  4941. sni)
  4942. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4943. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  4944. ;;
  4945. siemens)
  4946. ## LD is ld it makes a PLAMLIB
  4947. ## CC just makes a GrossModule.
  4948. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4949. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  4950. _LT_TAGVAR(hardcode_direct, $1)=no
  4951. ;;
  4952. motorola)
  4953. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4954. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  4955. ;;
  4956. esac
  4957. runpath_var='LD_RUN_PATH'
  4958. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4959. ;;
  4960. sysv4.3*)
  4961. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4962. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4963. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  4964. ;;
  4965. sysv4*MP*)
  4966. if test -d /usr/nec; then
  4967. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4968. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4969. runpath_var=LD_RUN_PATH
  4970. hardcode_runpath_var=yes
  4971. _LT_TAGVAR(ld_shlibs, $1)=yes
  4972. fi
  4973. ;;
  4974. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4975. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4976. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4977. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4978. runpath_var='LD_RUN_PATH'
  4979. if test "$GCC" = yes; then
  4980. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4981. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4982. else
  4983. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4984. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4985. fi
  4986. ;;
  4987. sysv5* | sco3.2v5* | sco5v6*)
  4988. # Note: We can NOT use -z defs as we might desire, because we do not
  4989. # link with -lc, and that would cause any symbols used from libc to
  4990. # always be unresolved, which means just about no library would
  4991. # ever link correctly. If we're not using GNU ld we use -z text
  4992. # though, which does catch some bad symbols but isn't as heavy-handed
  4993. # as -z defs.
  4994. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4995. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4996. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  4997. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4998. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  4999. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5000. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5001. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5002. runpath_var='LD_RUN_PATH'
  5003. if test "$GCC" = yes; then
  5004. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5005. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5006. else
  5007. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5008. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5009. fi
  5010. ;;
  5011. uts4*)
  5012. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5013. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5014. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5015. ;;
  5016. *)
  5017. _LT_TAGVAR(ld_shlibs, $1)=no
  5018. ;;
  5019. esac
  5020. if test x$host_vendor = xsni; then
  5021. case $host in
  5022. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5023. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5024. ;;
  5025. esac
  5026. fi
  5027. fi
  5028. ])
  5029. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5030. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5031. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5032. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5033. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5034. _LT_DECL([], [extract_expsyms_cmds], [2],
  5035. [The commands to extract the exported symbol list from a shared archive])
  5036. #
  5037. # Do we need to explicitly link libc?
  5038. #
  5039. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5040. x|xyes)
  5041. # Assume -lc should be added
  5042. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5043. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5044. case $_LT_TAGVAR(archive_cmds, $1) in
  5045. *'~'*)
  5046. # FIXME: we may have to deal with multi-command sequences.
  5047. ;;
  5048. '$CC '*)
  5049. # Test whether the compiler implicitly links with -lc since on some
  5050. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5051. # to ld, don't add -lc before -lgcc.
  5052. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5053. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5054. [$RM conftest*
  5055. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5056. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5057. soname=conftest
  5058. lib=conftest
  5059. libobjs=conftest.$ac_objext
  5060. deplibs=
  5061. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5062. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5063. compiler_flags=-v
  5064. linker_flags=-v
  5065. verstring=
  5066. output_objdir=.
  5067. libname=conftest
  5068. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5069. _LT_TAGVAR(allow_undefined_flag, $1)=
  5070. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5071. then
  5072. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5073. else
  5074. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5075. fi
  5076. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5077. else
  5078. cat conftest.err 1>&5
  5079. fi
  5080. $RM conftest*
  5081. ])
  5082. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5083. ;;
  5084. esac
  5085. fi
  5086. ;;
  5087. esac
  5088. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5089. [Whether or not to add -lc for building shared libraries])
  5090. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5091. [enable_shared_with_static_runtimes], [0],
  5092. [Whether or not to disallow shared libs when runtime libs are static])
  5093. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5094. [Compiler flag to allow reflexive dlopens])
  5095. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5096. [Compiler flag to generate shared objects directly from archives])
  5097. _LT_TAGDECL([], [compiler_needs_object], [1],
  5098. [Whether the compiler copes with passing no objects directly])
  5099. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5100. [Create an old-style archive from a shared archive])
  5101. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5102. [Create a temporary old-style archive to link instead of a shared archive])
  5103. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5104. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5105. _LT_TAGDECL([], [module_cmds], [2],
  5106. [Commands used to build a loadable module if different from building
  5107. a shared archive.])
  5108. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5109. _LT_TAGDECL([], [with_gnu_ld], [1],
  5110. [Whether we are building with GNU ld or not])
  5111. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5112. [Flag that allows shared libraries with undefined symbols to be built])
  5113. _LT_TAGDECL([], [no_undefined_flag], [1],
  5114. [Flag that enforces no undefined symbols])
  5115. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5116. [Flag to hardcode $libdir into a binary during linking.
  5117. This must work even if $libdir does not exist])
  5118. _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5119. [[If ld is used when linking, flag to hardcode $libdir into a binary
  5120. during linking. This must work even if $libdir does not exist]])
  5121. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5122. [Whether we need a single "-rpath" flag with a separated argument])
  5123. _LT_TAGDECL([], [hardcode_direct], [0],
  5124. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5125. DIR into the resulting binary])
  5126. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5127. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5128. DIR into the resulting binary and the resulting library dependency is
  5129. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5130. library is relocated])
  5131. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5132. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5133. into the resulting binary])
  5134. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5135. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5136. into the resulting binary])
  5137. _LT_TAGDECL([], [hardcode_automatic], [0],
  5138. [Set to "yes" if building a shared library automatically hardcodes DIR
  5139. into the library and all subsequent libraries and executables linked
  5140. against it])
  5141. _LT_TAGDECL([], [inherit_rpath], [0],
  5142. [Set to yes if linker adds runtime paths of dependent libraries
  5143. to runtime path list])
  5144. _LT_TAGDECL([], [link_all_deplibs], [0],
  5145. [Whether libtool must link a program against all its dependency libraries])
  5146. _LT_TAGDECL([], [always_export_symbols], [0],
  5147. [Set to "yes" if exported symbols are required])
  5148. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5149. [The commands to list exported symbols])
  5150. _LT_TAGDECL([], [exclude_expsyms], [1],
  5151. [Symbols that should not be listed in the preloaded symbols])
  5152. _LT_TAGDECL([], [include_expsyms], [1],
  5153. [Symbols that must always be exported])
  5154. _LT_TAGDECL([], [prelink_cmds], [2],
  5155. [Commands necessary for linking programs (against libraries) with templates])
  5156. _LT_TAGDECL([], [postlink_cmds], [2],
  5157. [Commands necessary for finishing linking programs])
  5158. _LT_TAGDECL([], [file_list_spec], [1],
  5159. [Specify filename containing input files])
  5160. dnl FIXME: Not yet implemented
  5161. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5162. dnl [Compiler flag to generate thread safe objects])
  5163. ])# _LT_LINKER_SHLIBS
  5164. # _LT_LANG_C_CONFIG([TAG])
  5165. # ------------------------
  5166. # Ensure that the configuration variables for a C compiler are suitably
  5167. # defined. These variables are subsequently used by _LT_CONFIG to write
  5168. # the compiler configuration to `libtool'.
  5169. m4_defun([_LT_LANG_C_CONFIG],
  5170. [m4_require([_LT_DECL_EGREP])dnl
  5171. lt_save_CC="$CC"
  5172. AC_LANG_PUSH(C)
  5173. # Source file extension for C test sources.
  5174. ac_ext=c
  5175. # Object file extension for compiled C test sources.
  5176. objext=o
  5177. _LT_TAGVAR(objext, $1)=$objext
  5178. # Code to be used in simple compile tests
  5179. lt_simple_compile_test_code="int some_variable = 0;"
  5180. # Code to be used in simple link tests
  5181. lt_simple_link_test_code='int main(){return(0);}'
  5182. _LT_TAG_COMPILER
  5183. # Save the default compiler, since it gets overwritten when the other
  5184. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5185. compiler_DEFAULT=$CC
  5186. # save warnings/boilerplate of simple test code
  5187. _LT_COMPILER_BOILERPLATE
  5188. _LT_LINKER_BOILERPLATE
  5189. if test -n "$compiler"; then
  5190. _LT_COMPILER_NO_RTTI($1)
  5191. _LT_COMPILER_PIC($1)
  5192. _LT_COMPILER_C_O($1)
  5193. _LT_COMPILER_FILE_LOCKS($1)
  5194. _LT_LINKER_SHLIBS($1)
  5195. _LT_SYS_DYNAMIC_LINKER($1)
  5196. _LT_LINKER_HARDCODE_LIBPATH($1)
  5197. LT_SYS_DLOPEN_SELF
  5198. _LT_CMD_STRIPLIB
  5199. # Report which library types will actually be built
  5200. AC_MSG_CHECKING([if libtool supports shared libraries])
  5201. AC_MSG_RESULT([$can_build_shared])
  5202. AC_MSG_CHECKING([whether to build shared libraries])
  5203. test "$can_build_shared" = "no" && enable_shared=no
  5204. # On AIX, shared libraries and static libraries use the same namespace, and
  5205. # are all built from PIC.
  5206. case $host_os in
  5207. aix3*)
  5208. test "$enable_shared" = yes && enable_static=no
  5209. if test -n "$RANLIB"; then
  5210. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5211. postinstall_cmds='$RANLIB $lib'
  5212. fi
  5213. ;;
  5214. aix[[4-9]]*)
  5215. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5216. test "$enable_shared" = yes && enable_static=no
  5217. fi
  5218. ;;
  5219. esac
  5220. AC_MSG_RESULT([$enable_shared])
  5221. AC_MSG_CHECKING([whether to build static libraries])
  5222. # Make sure either enable_shared or enable_static is yes.
  5223. test "$enable_shared" = yes || enable_static=yes
  5224. AC_MSG_RESULT([$enable_static])
  5225. _LT_CONFIG($1)
  5226. fi
  5227. AC_LANG_POP
  5228. CC="$lt_save_CC"
  5229. ])# _LT_LANG_C_CONFIG
  5230. # _LT_LANG_CXX_CONFIG([TAG])
  5231. # --------------------------
  5232. # Ensure that the configuration variables for a C++ compiler are suitably
  5233. # defined. These variables are subsequently used by _LT_CONFIG to write
  5234. # the compiler configuration to `libtool'.
  5235. m4_defun([_LT_LANG_CXX_CONFIG],
  5236. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5237. m4_require([_LT_DECL_EGREP])dnl
  5238. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5239. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5240. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5241. (test "X$CXX" != "Xg++"))) ; then
  5242. AC_PROG_CXXCPP
  5243. else
  5244. _lt_caught_CXX_error=yes
  5245. fi
  5246. AC_LANG_PUSH(C++)
  5247. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5248. _LT_TAGVAR(allow_undefined_flag, $1)=
  5249. _LT_TAGVAR(always_export_symbols, $1)=no
  5250. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5251. _LT_TAGVAR(compiler_needs_object, $1)=no
  5252. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5253. _LT_TAGVAR(hardcode_direct, $1)=no
  5254. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5255. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5256. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5257. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5258. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5259. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5260. _LT_TAGVAR(hardcode_automatic, $1)=no
  5261. _LT_TAGVAR(inherit_rpath, $1)=no
  5262. _LT_TAGVAR(module_cmds, $1)=
  5263. _LT_TAGVAR(module_expsym_cmds, $1)=
  5264. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5265. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5266. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5267. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5268. _LT_TAGVAR(no_undefined_flag, $1)=
  5269. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5270. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5271. # Source file extension for C++ test sources.
  5272. ac_ext=cpp
  5273. # Object file extension for compiled C++ test sources.
  5274. objext=o
  5275. _LT_TAGVAR(objext, $1)=$objext
  5276. # No sense in running all these tests if we already determined that
  5277. # the CXX compiler isn't working. Some variables (like enable_shared)
  5278. # are currently assumed to apply to all compilers on this platform,
  5279. # and will be corrupted by setting them based on a non-working compiler.
  5280. if test "$_lt_caught_CXX_error" != yes; then
  5281. # Code to be used in simple compile tests
  5282. lt_simple_compile_test_code="int some_variable = 0;"
  5283. # Code to be used in simple link tests
  5284. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5285. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5286. _LT_TAG_COMPILER
  5287. # save warnings/boilerplate of simple test code
  5288. _LT_COMPILER_BOILERPLATE
  5289. _LT_LINKER_BOILERPLATE
  5290. # Allow CC to be a program name with arguments.
  5291. lt_save_CC=$CC
  5292. lt_save_CFLAGS=$CFLAGS
  5293. lt_save_LD=$LD
  5294. lt_save_GCC=$GCC
  5295. GCC=$GXX
  5296. lt_save_with_gnu_ld=$with_gnu_ld
  5297. lt_save_path_LD=$lt_cv_path_LD
  5298. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5299. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5300. else
  5301. $as_unset lt_cv_prog_gnu_ld
  5302. fi
  5303. if test -n "${lt_cv_path_LDCXX+set}"; then
  5304. lt_cv_path_LD=$lt_cv_path_LDCXX
  5305. else
  5306. $as_unset lt_cv_path_LD
  5307. fi
  5308. test -z "${LDCXX+set}" || LD=$LDCXX
  5309. CC=${CXX-"c++"}
  5310. CFLAGS=$CXXFLAGS
  5311. compiler=$CC
  5312. _LT_TAGVAR(compiler, $1)=$CC
  5313. _LT_CC_BASENAME([$compiler])
  5314. if test -n "$compiler"; then
  5315. # We don't want -fno-exception when compiling C++ code, so set the
  5316. # no_builtin_flag separately
  5317. if test "$GXX" = yes; then
  5318. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5319. else
  5320. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5321. fi
  5322. if test "$GXX" = yes; then
  5323. # Set up default GNU C++ configuration
  5324. LT_PATH_LD
  5325. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5326. # archiving commands below assume that GNU ld is being used.
  5327. if test "$with_gnu_ld" = yes; then
  5328. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5329. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5330. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5331. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5332. # If archive_cmds runs LD, not CC, wlarc should be empty
  5333. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5334. # investigate it a little bit more. (MM)
  5335. wlarc='${wl}'
  5336. # ancient GNU ld didn't support --whole-archive et. al.
  5337. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5338. $GREP 'no-whole-archive' > /dev/null; then
  5339. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5340. else
  5341. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5342. fi
  5343. else
  5344. with_gnu_ld=no
  5345. wlarc=
  5346. # A generic and very simple default shared library creation
  5347. # command for GNU C++ for the case where it uses the native
  5348. # linker, instead of GNU ld. If possible, this setting should
  5349. # overridden to take advantage of the native linker features on
  5350. # the platform it is being used on.
  5351. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5352. fi
  5353. # Commands to make compiler produce verbose output that lists
  5354. # what "hidden" libraries, object files and flags are used when
  5355. # linking a shared library.
  5356. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5357. else
  5358. GXX=no
  5359. with_gnu_ld=no
  5360. wlarc=
  5361. fi
  5362. # PORTME: fill in a description of your system's C++ link characteristics
  5363. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5364. _LT_TAGVAR(ld_shlibs, $1)=yes
  5365. case $host_os in
  5366. aix3*)
  5367. # FIXME: insert proper C++ library support
  5368. _LT_TAGVAR(ld_shlibs, $1)=no
  5369. ;;
  5370. aix[[4-9]]*)
  5371. if test "$host_cpu" = ia64; then
  5372. # On IA64, the linker does run time linking by default, so we don't
  5373. # have to do anything special.
  5374. aix_use_runtimelinking=no
  5375. exp_sym_flag='-Bexport'
  5376. no_entry_flag=""
  5377. else
  5378. aix_use_runtimelinking=no
  5379. # Test if we are trying to use run time linking or normal
  5380. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5381. # need to do runtime linking.
  5382. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5383. for ld_flag in $LDFLAGS; do
  5384. case $ld_flag in
  5385. *-brtl*)
  5386. aix_use_runtimelinking=yes
  5387. break
  5388. ;;
  5389. esac
  5390. done
  5391. ;;
  5392. esac
  5393. exp_sym_flag='-bexport'
  5394. no_entry_flag='-bnoentry'
  5395. fi
  5396. # When large executables or shared objects are built, AIX ld can
  5397. # have problems creating the table of contents. If linking a library
  5398. # or program results in "error TOC overflow" add -mminimal-toc to
  5399. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5400. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5401. _LT_TAGVAR(archive_cmds, $1)=''
  5402. _LT_TAGVAR(hardcode_direct, $1)=yes
  5403. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5404. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5405. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5406. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5407. if test "$GXX" = yes; then
  5408. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5409. # We only want to do this on AIX 4.2 and lower, the check
  5410. # below for broken collect2 doesn't work under 4.3+
  5411. collect2name=`${CC} -print-prog-name=collect2`
  5412. if test -f "$collect2name" &&
  5413. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5414. then
  5415. # We have reworked collect2
  5416. :
  5417. else
  5418. # We have old collect2
  5419. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5420. # It fails to find uninstalled libraries when the uninstalled
  5421. # path is not listed in the libpath. Setting hardcode_minus_L
  5422. # to unsupported forces relinking
  5423. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5424. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5425. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5426. fi
  5427. esac
  5428. shared_flag='-shared'
  5429. if test "$aix_use_runtimelinking" = yes; then
  5430. shared_flag="$shared_flag "'${wl}-G'
  5431. fi
  5432. else
  5433. # not using gcc
  5434. if test "$host_cpu" = ia64; then
  5435. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5436. # chokes on -Wl,-G. The following line is correct:
  5437. shared_flag='-G'
  5438. else
  5439. if test "$aix_use_runtimelinking" = yes; then
  5440. shared_flag='${wl}-G'
  5441. else
  5442. shared_flag='${wl}-bM:SRE'
  5443. fi
  5444. fi
  5445. fi
  5446. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5447. # It seems that -bexpall does not export symbols beginning with
  5448. # underscore (_), so it is better to generate a list of symbols to
  5449. # export.
  5450. _LT_TAGVAR(always_export_symbols, $1)=yes
  5451. if test "$aix_use_runtimelinking" = yes; then
  5452. # Warning - without using the other runtime loading flags (-brtl),
  5453. # -berok will link without error, but may produce a broken library.
  5454. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5455. # Determine the default libpath from the value encoded in an empty
  5456. # executable.
  5457. _LT_SYS_MODULE_PATH_AIX([$1])
  5458. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5459. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5460. else
  5461. if test "$host_cpu" = ia64; then
  5462. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5463. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5464. _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"
  5465. else
  5466. # Determine the default libpath from the value encoded in an
  5467. # empty executable.
  5468. _LT_SYS_MODULE_PATH_AIX([$1])
  5469. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5470. # Warning - without using the other run time loading flags,
  5471. # -berok will link without error, but may produce a broken library.
  5472. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5473. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5474. if test "$with_gnu_ld" = yes; then
  5475. # We only use this code for GNU lds that support --whole-archive.
  5476. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5477. else
  5478. # Exported symbols can be pulled into shared objects from archives
  5479. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5480. fi
  5481. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5482. # This is similar to how AIX traditionally builds its shared
  5483. # libraries.
  5484. _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'
  5485. fi
  5486. fi
  5487. ;;
  5488. beos*)
  5489. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5490. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5491. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5492. # support --undefined. This deserves some investigation. FIXME
  5493. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5494. else
  5495. _LT_TAGVAR(ld_shlibs, $1)=no
  5496. fi
  5497. ;;
  5498. chorus*)
  5499. case $cc_basename in
  5500. *)
  5501. # FIXME: insert proper C++ library support
  5502. _LT_TAGVAR(ld_shlibs, $1)=no
  5503. ;;
  5504. esac
  5505. ;;
  5506. cygwin* | mingw* | pw32* | cegcc*)
  5507. case $GXX,$cc_basename in
  5508. ,cl* | no,cl*)
  5509. # Native MSVC
  5510. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5511. # no search path for DLLs.
  5512. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5513. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5514. _LT_TAGVAR(always_export_symbols, $1)=yes
  5515. _LT_TAGVAR(file_list_spec, $1)='@'
  5516. # Tell ltmain to make .lib files, not .a files.
  5517. libext=lib
  5518. # Tell ltmain to make .dll files, not .so files.
  5519. shrext_cmds=".dll"
  5520. # FIXME: Setting linknames here is a bad hack.
  5521. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5522. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5523. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5524. else
  5525. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5526. fi~
  5527. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5528. linknames='
  5529. # The linker will not automatically build a static lib if we build a DLL.
  5530. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5531. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5532. # Don't use ranlib
  5533. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5534. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5535. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5536. case $lt_outputfile in
  5537. *.exe|*.EXE) ;;
  5538. *)
  5539. lt_outputfile="$lt_outputfile.exe"
  5540. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5541. ;;
  5542. esac~
  5543. func_to_tool_file "$lt_outputfile"~
  5544. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5545. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5546. $RM "$lt_outputfile.manifest";
  5547. fi'
  5548. ;;
  5549. *)
  5550. # g++
  5551. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5552. # as there is no search path for DLLs.
  5553. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5554. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5555. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5556. _LT_TAGVAR(always_export_symbols, $1)=no
  5557. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5558. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5559. _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'
  5560. # If the export-symbols file already is a .def file (1st line
  5561. # is EXPORTS), use it as is; otherwise, prepend...
  5562. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5563. cp $export_symbols $output_objdir/$soname.def;
  5564. else
  5565. echo EXPORTS > $output_objdir/$soname.def;
  5566. cat $export_symbols >> $output_objdir/$soname.def;
  5567. fi~
  5568. $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'
  5569. else
  5570. _LT_TAGVAR(ld_shlibs, $1)=no
  5571. fi
  5572. ;;
  5573. esac
  5574. ;;
  5575. darwin* | rhapsody*)
  5576. _LT_DARWIN_LINKER_FEATURES($1)
  5577. ;;
  5578. dgux*)
  5579. case $cc_basename in
  5580. ec++*)
  5581. # FIXME: insert proper C++ library support
  5582. _LT_TAGVAR(ld_shlibs, $1)=no
  5583. ;;
  5584. ghcx*)
  5585. # Green Hills C++ Compiler
  5586. # FIXME: insert proper C++ library support
  5587. _LT_TAGVAR(ld_shlibs, $1)=no
  5588. ;;
  5589. *)
  5590. # FIXME: insert proper C++ library support
  5591. _LT_TAGVAR(ld_shlibs, $1)=no
  5592. ;;
  5593. esac
  5594. ;;
  5595. freebsd[[12]]*)
  5596. # C++ shared libraries reported to be fairly broken before
  5597. # switch to ELF
  5598. _LT_TAGVAR(ld_shlibs, $1)=no
  5599. ;;
  5600. freebsd-elf*)
  5601. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5602. ;;
  5603. freebsd* | dragonfly*)
  5604. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5605. # conventions
  5606. _LT_TAGVAR(ld_shlibs, $1)=yes
  5607. ;;
  5608. gnu*)
  5609. ;;
  5610. haiku*)
  5611. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5612. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5613. ;;
  5614. hpux9*)
  5615. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5616. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5617. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5618. _LT_TAGVAR(hardcode_direct, $1)=yes
  5619. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5620. # but as the default
  5621. # location of the library.
  5622. case $cc_basename in
  5623. CC*)
  5624. # FIXME: insert proper C++ library support
  5625. _LT_TAGVAR(ld_shlibs, $1)=no
  5626. ;;
  5627. aCC*)
  5628. _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'
  5629. # Commands to make compiler produce verbose output that lists
  5630. # what "hidden" libraries, object files and flags are used when
  5631. # linking a shared library.
  5632. #
  5633. # There doesn't appear to be a way to prevent this compiler from
  5634. # explicitly linking system object files so we need to strip them
  5635. # from the output so that they don't get included in the library
  5636. # dependencies.
  5637. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5638. ;;
  5639. *)
  5640. if test "$GXX" = yes; then
  5641. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5642. else
  5643. # FIXME: insert proper C++ library support
  5644. _LT_TAGVAR(ld_shlibs, $1)=no
  5645. fi
  5646. ;;
  5647. esac
  5648. ;;
  5649. hpux10*|hpux11*)
  5650. if test $with_gnu_ld = no; then
  5651. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5652. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5653. case $host_cpu in
  5654. hppa*64*|ia64*)
  5655. ;;
  5656. *)
  5657. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5658. ;;
  5659. esac
  5660. fi
  5661. case $host_cpu in
  5662. hppa*64*|ia64*)
  5663. _LT_TAGVAR(hardcode_direct, $1)=no
  5664. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5665. ;;
  5666. *)
  5667. _LT_TAGVAR(hardcode_direct, $1)=yes
  5668. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5669. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5670. # but as the default
  5671. # location of the library.
  5672. ;;
  5673. esac
  5674. case $cc_basename in
  5675. CC*)
  5676. # FIXME: insert proper C++ library support
  5677. _LT_TAGVAR(ld_shlibs, $1)=no
  5678. ;;
  5679. aCC*)
  5680. case $host_cpu in
  5681. hppa*64*)
  5682. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5683. ;;
  5684. ia64*)
  5685. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5686. ;;
  5687. *)
  5688. _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'
  5689. ;;
  5690. esac
  5691. # Commands to make compiler produce verbose output that lists
  5692. # what "hidden" libraries, object files and flags are used when
  5693. # linking a shared library.
  5694. #
  5695. # There doesn't appear to be a way to prevent this compiler from
  5696. # explicitly linking system object files so we need to strip them
  5697. # from the output so that they don't get included in the library
  5698. # dependencies.
  5699. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5700. ;;
  5701. *)
  5702. if test "$GXX" = yes; then
  5703. if test $with_gnu_ld = no; then
  5704. case $host_cpu in
  5705. hppa*64*)
  5706. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5707. ;;
  5708. ia64*)
  5709. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5710. ;;
  5711. *)
  5712. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5713. ;;
  5714. esac
  5715. fi
  5716. else
  5717. # FIXME: insert proper C++ library support
  5718. _LT_TAGVAR(ld_shlibs, $1)=no
  5719. fi
  5720. ;;
  5721. esac
  5722. ;;
  5723. interix[[3-9]]*)
  5724. _LT_TAGVAR(hardcode_direct, $1)=no
  5725. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5726. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5727. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5728. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5729. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5730. # default) and relocated if they conflict, which is a slow very memory
  5731. # consuming and fragmenting process. To avoid this, we pick a random,
  5732. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5733. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5734. _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'
  5735. _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'
  5736. ;;
  5737. irix5* | irix6*)
  5738. case $cc_basename in
  5739. CC*)
  5740. # SGI C++
  5741. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5742. # Archives containing C++ object files must be created using
  5743. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5744. # necessary to make sure instantiated templates are included
  5745. # in the archive.
  5746. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5747. ;;
  5748. *)
  5749. if test "$GXX" = yes; then
  5750. if test "$with_gnu_ld" = no; then
  5751. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5752. else
  5753. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  5754. fi
  5755. fi
  5756. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5757. ;;
  5758. esac
  5759. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5760. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5761. _LT_TAGVAR(inherit_rpath, $1)=yes
  5762. ;;
  5763. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5764. case $cc_basename in
  5765. KCC*)
  5766. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5767. # KCC will only create a shared library if the output file
  5768. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5769. # to its proper name (with version) after linking.
  5770. _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'
  5771. _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'
  5772. # Commands to make compiler produce verbose output that lists
  5773. # what "hidden" libraries, object files and flags are used when
  5774. # linking a shared library.
  5775. #
  5776. # There doesn't appear to be a way to prevent this compiler from
  5777. # explicitly linking system object files so we need to strip them
  5778. # from the output so that they don't get included in the library
  5779. # dependencies.
  5780. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  5781. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5782. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5783. # Archives containing C++ object files must be created using
  5784. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5785. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5786. ;;
  5787. icpc* | ecpc* )
  5788. # Intel C++
  5789. with_gnu_ld=yes
  5790. # version 8.0 and above of icpc choke on multiply defined symbols
  5791. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5792. # earlier do not add the objects themselves.
  5793. case `$CC -V 2>&1` in
  5794. *"Version 7."*)
  5795. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5796. _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'
  5797. ;;
  5798. *) # Version 8.0 or newer
  5799. tmp_idyn=
  5800. case $host_cpu in
  5801. ia64*) tmp_idyn=' -i_dynamic';;
  5802. esac
  5803. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5804. _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'
  5805. ;;
  5806. esac
  5807. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5808. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5809. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5810. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5811. ;;
  5812. pgCC* | pgcpp*)
  5813. # Portland Group C++ compiler
  5814. case `$CC -V` in
  5815. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5816. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5817. rm -rf $tpldir~
  5818. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5819. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5820. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5821. rm -rf $tpldir~
  5822. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5823. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5824. $RANLIB $oldlib'
  5825. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5826. rm -rf $tpldir~
  5827. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5828. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5829. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5830. rm -rf $tpldir~
  5831. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5832. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5833. ;;
  5834. *) # Version 6 and above use weak symbols
  5835. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5836. _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'
  5837. ;;
  5838. esac
  5839. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5840. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5841. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5842. ;;
  5843. cxx*)
  5844. # Compaq C++
  5845. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5846. _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'
  5847. runpath_var=LD_RUN_PATH
  5848. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5849. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5850. # Commands to make compiler produce verbose output that lists
  5851. # what "hidden" libraries, object files and flags are used when
  5852. # linking a shared library.
  5853. #
  5854. # There doesn't appear to be a way to prevent this compiler from
  5855. # explicitly linking system object files so we need to strip them
  5856. # from the output so that they don't get included in the library
  5857. # dependencies.
  5858. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  5859. ;;
  5860. xl* | mpixl* | bgxl*)
  5861. # IBM XL 8.0 on PPC, with GNU ld
  5862. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5863. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5864. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5865. if test "x$supports_anon_versioning" = xyes; then
  5866. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5867. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5868. echo "local: *; };" >> $output_objdir/$libname.ver~
  5869. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5870. fi
  5871. ;;
  5872. *)
  5873. case `$CC -V 2>&1 | sed 5q` in
  5874. *Sun\ C*)
  5875. # Sun C++ 5.9
  5876. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5877. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5878. _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'
  5879. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5880. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5881. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5882. # Not sure whether something based on
  5883. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5884. # would be better.
  5885. output_verbose_link_cmd='func_echo_all'
  5886. # Archives containing C++ object files must be created using
  5887. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5888. # necessary to make sure instantiated templates are included
  5889. # in the archive.
  5890. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5891. ;;
  5892. esac
  5893. ;;
  5894. esac
  5895. ;;
  5896. lynxos*)
  5897. # FIXME: insert proper C++ library support
  5898. _LT_TAGVAR(ld_shlibs, $1)=no
  5899. ;;
  5900. m88k*)
  5901. # FIXME: insert proper C++ library support
  5902. _LT_TAGVAR(ld_shlibs, $1)=no
  5903. ;;
  5904. mvs*)
  5905. case $cc_basename in
  5906. cxx*)
  5907. # FIXME: insert proper C++ library support
  5908. _LT_TAGVAR(ld_shlibs, $1)=no
  5909. ;;
  5910. *)
  5911. # FIXME: insert proper C++ library support
  5912. _LT_TAGVAR(ld_shlibs, $1)=no
  5913. ;;
  5914. esac
  5915. ;;
  5916. netbsd*)
  5917. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5918. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5919. wlarc=
  5920. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5921. _LT_TAGVAR(hardcode_direct, $1)=yes
  5922. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5923. fi
  5924. # Workaround some broken pre-1.5 toolchains
  5925. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5926. ;;
  5927. *nto* | *qnx*)
  5928. _LT_TAGVAR(ld_shlibs, $1)=yes
  5929. ;;
  5930. openbsd2*)
  5931. # C++ shared libraries are fairly broken
  5932. _LT_TAGVAR(ld_shlibs, $1)=no
  5933. ;;
  5934. openbsd*)
  5935. if test -f /usr/libexec/ld.so; then
  5936. _LT_TAGVAR(hardcode_direct, $1)=yes
  5937. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5938. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5939. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5940. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5941. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5942. _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'
  5943. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5944. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5945. fi
  5946. output_verbose_link_cmd=func_echo_all
  5947. else
  5948. _LT_TAGVAR(ld_shlibs, $1)=no
  5949. fi
  5950. ;;
  5951. osf3* | osf4* | osf5*)
  5952. case $cc_basename in
  5953. KCC*)
  5954. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5955. # KCC will only create a shared library if the output file
  5956. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5957. # to its proper name (with version) after linking.
  5958. _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'
  5959. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5960. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5961. # Archives containing C++ object files must be created using
  5962. # the KAI C++ compiler.
  5963. case $host in
  5964. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  5965. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  5966. esac
  5967. ;;
  5968. RCC*)
  5969. # Rational C++ 2.4.1
  5970. # FIXME: insert proper C++ library support
  5971. _LT_TAGVAR(ld_shlibs, $1)=no
  5972. ;;
  5973. cxx*)
  5974. case $host in
  5975. osf3*)
  5976. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5977. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5978. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5979. ;;
  5980. *)
  5981. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5982. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5983. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5984. echo "-hidden">> $lib.exp~
  5985. $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~
  5986. $RM $lib.exp'
  5987. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5988. ;;
  5989. esac
  5990. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5991. # Commands to make compiler produce verbose output that lists
  5992. # what "hidden" libraries, object files and flags are used when
  5993. # linking a shared library.
  5994. #
  5995. # There doesn't appear to be a way to prevent this compiler from
  5996. # explicitly linking system object files so we need to strip them
  5997. # from the output so that they don't get included in the library
  5998. # dependencies.
  5999. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  6000. ;;
  6001. *)
  6002. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6003. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6004. case $host in
  6005. osf3*)
  6006. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6007. ;;
  6008. *)
  6009. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6010. ;;
  6011. esac
  6012. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6013. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6014. # Commands to make compiler produce verbose output that lists
  6015. # what "hidden" libraries, object files and flags are used when
  6016. # linking a shared library.
  6017. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6018. else
  6019. # FIXME: insert proper C++ library support
  6020. _LT_TAGVAR(ld_shlibs, $1)=no
  6021. fi
  6022. ;;
  6023. esac
  6024. ;;
  6025. psos*)
  6026. # FIXME: insert proper C++ library support
  6027. _LT_TAGVAR(ld_shlibs, $1)=no
  6028. ;;
  6029. sunos4*)
  6030. case $cc_basename in
  6031. CC*)
  6032. # Sun C++ 4.x
  6033. # FIXME: insert proper C++ library support
  6034. _LT_TAGVAR(ld_shlibs, $1)=no
  6035. ;;
  6036. lcc*)
  6037. # Lucid
  6038. # FIXME: insert proper C++ library support
  6039. _LT_TAGVAR(ld_shlibs, $1)=no
  6040. ;;
  6041. *)
  6042. # FIXME: insert proper C++ library support
  6043. _LT_TAGVAR(ld_shlibs, $1)=no
  6044. ;;
  6045. esac
  6046. ;;
  6047. solaris*)
  6048. case $cc_basename in
  6049. CC* | sunCC*)
  6050. # Sun C++ 4.2, 5.x and Centerline C++
  6051. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6052. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6053. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6054. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6055. $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'
  6056. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6057. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6058. case $host_os in
  6059. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6060. *)
  6061. # The compiler driver will combine and reorder linker options,
  6062. # but understands `-z linker_flag'.
  6063. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6064. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6065. ;;
  6066. esac
  6067. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6068. output_verbose_link_cmd='func_echo_all'
  6069. # Archives containing C++ object files must be created using
  6070. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6071. # necessary to make sure instantiated templates are included
  6072. # in the archive.
  6073. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6074. ;;
  6075. gcx*)
  6076. # Green Hills C++ Compiler
  6077. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6078. # The C++ compiler must be used to create the archive.
  6079. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6080. ;;
  6081. *)
  6082. # GNU C++ compiler with Solaris linker
  6083. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6084. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6085. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6086. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6087. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6088. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6089. # Commands to make compiler produce verbose output that lists
  6090. # what "hidden" libraries, object files and flags are used when
  6091. # linking a shared library.
  6092. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6093. else
  6094. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6095. # platform.
  6096. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6097. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6098. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6099. # Commands to make compiler produce verbose output that lists
  6100. # what "hidden" libraries, object files and flags are used when
  6101. # linking a shared library.
  6102. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6103. fi
  6104. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6105. case $host_os in
  6106. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6107. *)
  6108. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6109. ;;
  6110. esac
  6111. fi
  6112. ;;
  6113. esac
  6114. ;;
  6115. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6116. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6117. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6118. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6119. runpath_var='LD_RUN_PATH'
  6120. case $cc_basename in
  6121. CC*)
  6122. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6123. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6124. ;;
  6125. *)
  6126. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6127. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6128. ;;
  6129. esac
  6130. ;;
  6131. sysv5* | sco3.2v5* | sco5v6*)
  6132. # Note: We can NOT use -z defs as we might desire, because we do not
  6133. # link with -lc, and that would cause any symbols used from libc to
  6134. # always be unresolved, which means just about no library would
  6135. # ever link correctly. If we're not using GNU ld we use -z text
  6136. # though, which does catch some bad symbols but isn't as heavy-handed
  6137. # as -z defs.
  6138. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6139. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6140. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6141. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6142. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6143. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6144. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6145. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6146. runpath_var='LD_RUN_PATH'
  6147. case $cc_basename in
  6148. CC*)
  6149. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6150. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6151. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6152. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6153. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6154. '"$_LT_TAGVAR(reload_cmds, $1)"
  6155. ;;
  6156. *)
  6157. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6158. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6159. ;;
  6160. esac
  6161. ;;
  6162. tandem*)
  6163. case $cc_basename in
  6164. NCC*)
  6165. # NonStop-UX NCC 3.20
  6166. # FIXME: insert proper C++ library support
  6167. _LT_TAGVAR(ld_shlibs, $1)=no
  6168. ;;
  6169. *)
  6170. # FIXME: insert proper C++ library support
  6171. _LT_TAGVAR(ld_shlibs, $1)=no
  6172. ;;
  6173. esac
  6174. ;;
  6175. vxworks*)
  6176. # FIXME: insert proper C++ library support
  6177. _LT_TAGVAR(ld_shlibs, $1)=no
  6178. ;;
  6179. *)
  6180. # FIXME: insert proper C++ library support
  6181. _LT_TAGVAR(ld_shlibs, $1)=no
  6182. ;;
  6183. esac
  6184. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6185. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6186. _LT_TAGVAR(GCC, $1)="$GXX"
  6187. _LT_TAGVAR(LD, $1)="$LD"
  6188. ## CAVEAT EMPTOR:
  6189. ## There is no encapsulation within the following macros, do not change
  6190. ## the running order or otherwise move them around unless you know exactly
  6191. ## what you are doing...
  6192. _LT_SYS_HIDDEN_LIBDEPS($1)
  6193. _LT_COMPILER_PIC($1)
  6194. _LT_COMPILER_C_O($1)
  6195. _LT_COMPILER_FILE_LOCKS($1)
  6196. _LT_LINKER_SHLIBS($1)
  6197. _LT_SYS_DYNAMIC_LINKER($1)
  6198. _LT_LINKER_HARDCODE_LIBPATH($1)
  6199. _LT_CONFIG($1)
  6200. fi # test -n "$compiler"
  6201. CC=$lt_save_CC
  6202. CFLAGS=$lt_save_CFLAGS
  6203. LDCXX=$LD
  6204. LD=$lt_save_LD
  6205. GCC=$lt_save_GCC
  6206. with_gnu_ld=$lt_save_with_gnu_ld
  6207. lt_cv_path_LDCXX=$lt_cv_path_LD
  6208. lt_cv_path_LD=$lt_save_path_LD
  6209. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6210. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6211. fi # test "$_lt_caught_CXX_error" != yes
  6212. AC_LANG_POP
  6213. ])# _LT_LANG_CXX_CONFIG
  6214. # _LT_FUNC_STRIPNAME_CNF
  6215. # ----------------------
  6216. # func_stripname_cnf prefix suffix name
  6217. # strip PREFIX and SUFFIX off of NAME.
  6218. # PREFIX and SUFFIX must not contain globbing or regex special
  6219. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6220. # dot (in which case that matches only a dot).
  6221. #
  6222. # This function is identical to the (non-XSI) version of func_stripname,
  6223. # except this one can be used by m4 code that may be executed by configure,
  6224. # rather than the libtool script.
  6225. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6226. AC_REQUIRE([_LT_DECL_SED])
  6227. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6228. func_stripname_cnf ()
  6229. {
  6230. case ${2} in
  6231. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6232. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6233. esac
  6234. } # func_stripname_cnf
  6235. ])# _LT_FUNC_STRIPNAME_CNF
  6236. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6237. # ---------------------------------
  6238. # Figure out "hidden" library dependencies from verbose
  6239. # compiler output when linking a shared library.
  6240. # Parse the compiler output and extract the necessary
  6241. # objects, libraries and library flags.
  6242. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6243. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6244. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6245. # Dependencies to place before and after the object being linked:
  6246. _LT_TAGVAR(predep_objects, $1)=
  6247. _LT_TAGVAR(postdep_objects, $1)=
  6248. _LT_TAGVAR(predeps, $1)=
  6249. _LT_TAGVAR(postdeps, $1)=
  6250. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6251. dnl we can't use the lt_simple_compile_test_code here,
  6252. dnl because it contains code intended for an executable,
  6253. dnl not a library. It's possible we should let each
  6254. dnl tag define a new lt_????_link_test_code variable,
  6255. dnl but it's only used here...
  6256. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6257. int a;
  6258. void foo (void) { a = 0; }
  6259. _LT_EOF
  6260. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6261. class Foo
  6262. {
  6263. public:
  6264. Foo (void) { a = 0; }
  6265. private:
  6266. int a;
  6267. };
  6268. _LT_EOF
  6269. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6270. subroutine foo
  6271. implicit none
  6272. integer*4 a
  6273. a=0
  6274. return
  6275. end
  6276. _LT_EOF
  6277. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6278. subroutine foo
  6279. implicit none
  6280. integer a
  6281. a=0
  6282. return
  6283. end
  6284. _LT_EOF
  6285. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6286. public class foo {
  6287. private int a;
  6288. public void bar (void) {
  6289. a = 0;
  6290. }
  6291. };
  6292. _LT_EOF
  6293. ])
  6294. _lt_libdeps_save_CFLAGS=$CFLAGS
  6295. case "$CC $CFLAGS " in #(
  6296. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6297. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6298. esac
  6299. dnl Parse the compiler output and extract the necessary
  6300. dnl objects, libraries and library flags.
  6301. if AC_TRY_EVAL(ac_compile); then
  6302. # Parse the compiler output and extract the necessary
  6303. # objects, libraries and library flags.
  6304. # Sentinel used to keep track of whether or not we are before
  6305. # the conftest object file.
  6306. pre_test_object_deps_done=no
  6307. for p in `eval "$output_verbose_link_cmd"`; do
  6308. case ${prev}${p} in
  6309. -L* | -R* | -l*)
  6310. # Some compilers place space between "-{L,R}" and the path.
  6311. # Remove the space.
  6312. if test $p = "-L" ||
  6313. test $p = "-R"; then
  6314. prev=$p
  6315. continue
  6316. fi
  6317. # Expand the sysroot to ease extracting the directories later.
  6318. if test -z "$prev"; then
  6319. case $p in
  6320. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6321. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6322. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6323. esac
  6324. fi
  6325. case $p in
  6326. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6327. esac
  6328. if test "$pre_test_object_deps_done" = no; then
  6329. case ${prev} in
  6330. -L | -R)
  6331. # Internal compiler library paths should come after those
  6332. # provided the user. The postdeps already come after the
  6333. # user supplied libs so there is no need to process them.
  6334. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6335. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6336. else
  6337. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6338. fi
  6339. ;;
  6340. # The "-l" case would never come before the object being
  6341. # linked, so don't bother handling this case.
  6342. esac
  6343. else
  6344. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6345. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6346. else
  6347. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6348. fi
  6349. fi
  6350. prev=
  6351. ;;
  6352. *.lto.$objext) ;; # Ignore GCC LTO objects
  6353. *.$objext)
  6354. # This assumes that the test object file only shows up
  6355. # once in the compiler output.
  6356. if test "$p" = "conftest.$objext"; then
  6357. pre_test_object_deps_done=yes
  6358. continue
  6359. fi
  6360. if test "$pre_test_object_deps_done" = no; then
  6361. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6362. _LT_TAGVAR(predep_objects, $1)="$p"
  6363. else
  6364. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6365. fi
  6366. else
  6367. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6368. _LT_TAGVAR(postdep_objects, $1)="$p"
  6369. else
  6370. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6371. fi
  6372. fi
  6373. ;;
  6374. *) ;; # Ignore the rest.
  6375. esac
  6376. done
  6377. # Clean up.
  6378. rm -f a.out a.exe
  6379. else
  6380. echo "libtool.m4: error: problem compiling $1 test program"
  6381. fi
  6382. $RM -f confest.$objext
  6383. CFLAGS=$_lt_libdeps_save_CFLAGS
  6384. # PORTME: override above test on systems where it is broken
  6385. m4_if([$1], [CXX],
  6386. [case $host_os in
  6387. interix[[3-9]]*)
  6388. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6389. # hack all around it, let's just trust "g++" to DTRT.
  6390. _LT_TAGVAR(predep_objects,$1)=
  6391. _LT_TAGVAR(postdep_objects,$1)=
  6392. _LT_TAGVAR(postdeps,$1)=
  6393. ;;
  6394. linux*)
  6395. case `$CC -V 2>&1 | sed 5q` in
  6396. *Sun\ C*)
  6397. # Sun C++ 5.9
  6398. # The more standards-conforming stlport4 library is
  6399. # incompatible with the Cstd library. Avoid specifying
  6400. # it if it's in CXXFLAGS. Ignore libCrun as
  6401. # -library=stlport4 depends on it.
  6402. case " $CXX $CXXFLAGS " in
  6403. *" -library=stlport4 "*)
  6404. solaris_use_stlport4=yes
  6405. ;;
  6406. esac
  6407. if test "$solaris_use_stlport4" != yes; then
  6408. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6409. fi
  6410. ;;
  6411. esac
  6412. ;;
  6413. solaris*)
  6414. case $cc_basename in
  6415. CC* | sunCC*)
  6416. # The more standards-conforming stlport4 library is
  6417. # incompatible with the Cstd library. Avoid specifying
  6418. # it if it's in CXXFLAGS. Ignore libCrun as
  6419. # -library=stlport4 depends on it.
  6420. case " $CXX $CXXFLAGS " in
  6421. *" -library=stlport4 "*)
  6422. solaris_use_stlport4=yes
  6423. ;;
  6424. esac
  6425. # Adding this requires a known-good setup of shared libraries for
  6426. # Sun compiler versions before 5.6, else PIC objects from an old
  6427. # archive will be linked into the output, leading to subtle bugs.
  6428. if test "$solaris_use_stlport4" != yes; then
  6429. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6430. fi
  6431. ;;
  6432. esac
  6433. ;;
  6434. esac
  6435. ])
  6436. case " $_LT_TAGVAR(postdeps, $1) " in
  6437. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6438. esac
  6439. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6440. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6441. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6442. fi
  6443. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6444. [The directories searched by this compiler when creating a shared library])
  6445. _LT_TAGDECL([], [predep_objects], [1],
  6446. [Dependencies to place before and after the objects being linked to
  6447. create a shared library])
  6448. _LT_TAGDECL([], [postdep_objects], [1])
  6449. _LT_TAGDECL([], [predeps], [1])
  6450. _LT_TAGDECL([], [postdeps], [1])
  6451. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6452. [The library search path used internally by the compiler when linking
  6453. a shared library])
  6454. ])# _LT_SYS_HIDDEN_LIBDEPS
  6455. # _LT_LANG_F77_CONFIG([TAG])
  6456. # --------------------------
  6457. # Ensure that the configuration variables for a Fortran 77 compiler are
  6458. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6459. # to write the compiler configuration to `libtool'.
  6460. m4_defun([_LT_LANG_F77_CONFIG],
  6461. [AC_LANG_PUSH(Fortran 77)
  6462. if test -z "$F77" || test "X$F77" = "Xno"; then
  6463. _lt_disable_F77=yes
  6464. fi
  6465. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6466. _LT_TAGVAR(allow_undefined_flag, $1)=
  6467. _LT_TAGVAR(always_export_symbols, $1)=no
  6468. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6469. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6470. _LT_TAGVAR(hardcode_direct, $1)=no
  6471. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6472. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6473. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6474. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6475. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6476. _LT_TAGVAR(hardcode_automatic, $1)=no
  6477. _LT_TAGVAR(inherit_rpath, $1)=no
  6478. _LT_TAGVAR(module_cmds, $1)=
  6479. _LT_TAGVAR(module_expsym_cmds, $1)=
  6480. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6481. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6482. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6483. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6484. _LT_TAGVAR(no_undefined_flag, $1)=
  6485. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6486. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6487. # Source file extension for f77 test sources.
  6488. ac_ext=f
  6489. # Object file extension for compiled f77 test sources.
  6490. objext=o
  6491. _LT_TAGVAR(objext, $1)=$objext
  6492. # No sense in running all these tests if we already determined that
  6493. # the F77 compiler isn't working. Some variables (like enable_shared)
  6494. # are currently assumed to apply to all compilers on this platform,
  6495. # and will be corrupted by setting them based on a non-working compiler.
  6496. if test "$_lt_disable_F77" != yes; then
  6497. # Code to be used in simple compile tests
  6498. lt_simple_compile_test_code="\
  6499. subroutine t
  6500. return
  6501. end
  6502. "
  6503. # Code to be used in simple link tests
  6504. lt_simple_link_test_code="\
  6505. program t
  6506. end
  6507. "
  6508. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6509. _LT_TAG_COMPILER
  6510. # save warnings/boilerplate of simple test code
  6511. _LT_COMPILER_BOILERPLATE
  6512. _LT_LINKER_BOILERPLATE
  6513. # Allow CC to be a program name with arguments.
  6514. lt_save_CC="$CC"
  6515. lt_save_GCC=$GCC
  6516. lt_save_CFLAGS=$CFLAGS
  6517. CC=${F77-"f77"}
  6518. CFLAGS=$FFLAGS
  6519. compiler=$CC
  6520. _LT_TAGVAR(compiler, $1)=$CC
  6521. _LT_CC_BASENAME([$compiler])
  6522. GCC=$G77
  6523. if test -n "$compiler"; then
  6524. AC_MSG_CHECKING([if libtool supports shared libraries])
  6525. AC_MSG_RESULT([$can_build_shared])
  6526. AC_MSG_CHECKING([whether to build shared libraries])
  6527. test "$can_build_shared" = "no" && enable_shared=no
  6528. # On AIX, shared libraries and static libraries use the same namespace, and
  6529. # are all built from PIC.
  6530. case $host_os in
  6531. aix3*)
  6532. test "$enable_shared" = yes && enable_static=no
  6533. if test -n "$RANLIB"; then
  6534. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6535. postinstall_cmds='$RANLIB $lib'
  6536. fi
  6537. ;;
  6538. aix[[4-9]]*)
  6539. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6540. test "$enable_shared" = yes && enable_static=no
  6541. fi
  6542. ;;
  6543. esac
  6544. AC_MSG_RESULT([$enable_shared])
  6545. AC_MSG_CHECKING([whether to build static libraries])
  6546. # Make sure either enable_shared or enable_static is yes.
  6547. test "$enable_shared" = yes || enable_static=yes
  6548. AC_MSG_RESULT([$enable_static])
  6549. _LT_TAGVAR(GCC, $1)="$G77"
  6550. _LT_TAGVAR(LD, $1)="$LD"
  6551. ## CAVEAT EMPTOR:
  6552. ## There is no encapsulation within the following macros, do not change
  6553. ## the running order or otherwise move them around unless you know exactly
  6554. ## what you are doing...
  6555. _LT_COMPILER_PIC($1)
  6556. _LT_COMPILER_C_O($1)
  6557. _LT_COMPILER_FILE_LOCKS($1)
  6558. _LT_LINKER_SHLIBS($1)
  6559. _LT_SYS_DYNAMIC_LINKER($1)
  6560. _LT_LINKER_HARDCODE_LIBPATH($1)
  6561. _LT_CONFIG($1)
  6562. fi # test -n "$compiler"
  6563. GCC=$lt_save_GCC
  6564. CC="$lt_save_CC"
  6565. CFLAGS="$lt_save_CFLAGS"
  6566. fi # test "$_lt_disable_F77" != yes
  6567. AC_LANG_POP
  6568. ])# _LT_LANG_F77_CONFIG
  6569. # _LT_LANG_FC_CONFIG([TAG])
  6570. # -------------------------
  6571. # Ensure that the configuration variables for a Fortran compiler are
  6572. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6573. # to write the compiler configuration to `libtool'.
  6574. m4_defun([_LT_LANG_FC_CONFIG],
  6575. [AC_LANG_PUSH(Fortran)
  6576. if test -z "$FC" || test "X$FC" = "Xno"; then
  6577. _lt_disable_FC=yes
  6578. fi
  6579. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6580. _LT_TAGVAR(allow_undefined_flag, $1)=
  6581. _LT_TAGVAR(always_export_symbols, $1)=no
  6582. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6583. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6584. _LT_TAGVAR(hardcode_direct, $1)=no
  6585. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6586. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6587. _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6588. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6589. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6590. _LT_TAGVAR(hardcode_automatic, $1)=no
  6591. _LT_TAGVAR(inherit_rpath, $1)=no
  6592. _LT_TAGVAR(module_cmds, $1)=
  6593. _LT_TAGVAR(module_expsym_cmds, $1)=
  6594. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6595. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6596. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6597. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6598. _LT_TAGVAR(no_undefined_flag, $1)=
  6599. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6600. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6601. # Source file extension for fc test sources.
  6602. ac_ext=${ac_fc_srcext-f}
  6603. # Object file extension for compiled fc test sources.
  6604. objext=o
  6605. _LT_TAGVAR(objext, $1)=$objext
  6606. # No sense in running all these tests if we already determined that
  6607. # the FC compiler isn't working. Some variables (like enable_shared)
  6608. # are currently assumed to apply to all compilers on this platform,
  6609. # and will be corrupted by setting them based on a non-working compiler.
  6610. if test "$_lt_disable_FC" != yes; then
  6611. # Code to be used in simple compile tests
  6612. lt_simple_compile_test_code="\
  6613. subroutine t
  6614. return
  6615. end
  6616. "
  6617. # Code to be used in simple link tests
  6618. lt_simple_link_test_code="\
  6619. program t
  6620. end
  6621. "
  6622. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6623. _LT_TAG_COMPILER
  6624. # save warnings/boilerplate of simple test code
  6625. _LT_COMPILER_BOILERPLATE
  6626. _LT_LINKER_BOILERPLATE
  6627. # Allow CC to be a program name with arguments.
  6628. lt_save_CC="$CC"
  6629. lt_save_GCC=$GCC
  6630. lt_save_CFLAGS=$CFLAGS
  6631. CC=${FC-"f95"}
  6632. CFLAGS=$FCFLAGS
  6633. compiler=$CC
  6634. GCC=$ac_cv_fc_compiler_gnu
  6635. _LT_TAGVAR(compiler, $1)=$CC
  6636. _LT_CC_BASENAME([$compiler])
  6637. if test -n "$compiler"; then
  6638. AC_MSG_CHECKING([if libtool supports shared libraries])
  6639. AC_MSG_RESULT([$can_build_shared])
  6640. AC_MSG_CHECKING([whether to build shared libraries])
  6641. test "$can_build_shared" = "no" && enable_shared=no
  6642. # On AIX, shared libraries and static libraries use the same namespace, and
  6643. # are all built from PIC.
  6644. case $host_os in
  6645. aix3*)
  6646. test "$enable_shared" = yes && enable_static=no
  6647. if test -n "$RANLIB"; then
  6648. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6649. postinstall_cmds='$RANLIB $lib'
  6650. fi
  6651. ;;
  6652. aix[[4-9]]*)
  6653. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6654. test "$enable_shared" = yes && enable_static=no
  6655. fi
  6656. ;;
  6657. esac
  6658. AC_MSG_RESULT([$enable_shared])
  6659. AC_MSG_CHECKING([whether to build static libraries])
  6660. # Make sure either enable_shared or enable_static is yes.
  6661. test "$enable_shared" = yes || enable_static=yes
  6662. AC_MSG_RESULT([$enable_static])
  6663. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6664. _LT_TAGVAR(LD, $1)="$LD"
  6665. ## CAVEAT EMPTOR:
  6666. ## There is no encapsulation within the following macros, do not change
  6667. ## the running order or otherwise move them around unless you know exactly
  6668. ## what you are doing...
  6669. _LT_SYS_HIDDEN_LIBDEPS($1)
  6670. _LT_COMPILER_PIC($1)
  6671. _LT_COMPILER_C_O($1)
  6672. _LT_COMPILER_FILE_LOCKS($1)
  6673. _LT_LINKER_SHLIBS($1)
  6674. _LT_SYS_DYNAMIC_LINKER($1)
  6675. _LT_LINKER_HARDCODE_LIBPATH($1)
  6676. _LT_CONFIG($1)
  6677. fi # test -n "$compiler"
  6678. GCC=$lt_save_GCC
  6679. CC=$lt_save_CC
  6680. CFLAGS=$lt_save_CFLAGS
  6681. fi # test "$_lt_disable_FC" != yes
  6682. AC_LANG_POP
  6683. ])# _LT_LANG_FC_CONFIG
  6684. # _LT_LANG_GCJ_CONFIG([TAG])
  6685. # --------------------------
  6686. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6687. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6688. # to write the compiler configuration to `libtool'.
  6689. m4_defun([_LT_LANG_GCJ_CONFIG],
  6690. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6691. AC_LANG_SAVE
  6692. # Source file extension for Java test sources.
  6693. ac_ext=java
  6694. # Object file extension for compiled Java test sources.
  6695. objext=o
  6696. _LT_TAGVAR(objext, $1)=$objext
  6697. # Code to be used in simple compile tests
  6698. lt_simple_compile_test_code="class foo {}"
  6699. # Code to be used in simple link tests
  6700. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6701. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6702. _LT_TAG_COMPILER
  6703. # save warnings/boilerplate of simple test code
  6704. _LT_COMPILER_BOILERPLATE
  6705. _LT_LINKER_BOILERPLATE
  6706. # Allow CC to be a program name with arguments.
  6707. lt_save_CC=$CC
  6708. lt_save_CFLAGS=$CFLAGS
  6709. lt_save_GCC=$GCC
  6710. GCC=yes
  6711. CC=${GCJ-"gcj"}
  6712. CFLAGS=$GCJFLAGS
  6713. compiler=$CC
  6714. _LT_TAGVAR(compiler, $1)=$CC
  6715. _LT_TAGVAR(LD, $1)="$LD"
  6716. _LT_CC_BASENAME([$compiler])
  6717. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6718. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6719. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6720. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6721. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6722. if test -n "$compiler"; then
  6723. _LT_COMPILER_NO_RTTI($1)
  6724. _LT_COMPILER_PIC($1)
  6725. _LT_COMPILER_C_O($1)
  6726. _LT_COMPILER_FILE_LOCKS($1)
  6727. _LT_LINKER_SHLIBS($1)
  6728. _LT_LINKER_HARDCODE_LIBPATH($1)
  6729. _LT_CONFIG($1)
  6730. fi
  6731. AC_LANG_RESTORE
  6732. GCC=$lt_save_GCC
  6733. CC=$lt_save_CC
  6734. CFLAGS=$lt_save_CFLAGS
  6735. ])# _LT_LANG_GCJ_CONFIG
  6736. # _LT_LANG_RC_CONFIG([TAG])
  6737. # -------------------------
  6738. # Ensure that the configuration variables for the Windows resource compiler
  6739. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6740. # to write the compiler configuration to `libtool'.
  6741. m4_defun([_LT_LANG_RC_CONFIG],
  6742. [AC_REQUIRE([LT_PROG_RC])dnl
  6743. AC_LANG_SAVE
  6744. # Source file extension for RC test sources.
  6745. ac_ext=rc
  6746. # Object file extension for compiled RC test sources.
  6747. objext=o
  6748. _LT_TAGVAR(objext, $1)=$objext
  6749. # Code to be used in simple compile tests
  6750. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6751. # Code to be used in simple link tests
  6752. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6753. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6754. _LT_TAG_COMPILER
  6755. # save warnings/boilerplate of simple test code
  6756. _LT_COMPILER_BOILERPLATE
  6757. _LT_LINKER_BOILERPLATE
  6758. # Allow CC to be a program name with arguments.
  6759. lt_save_CC="$CC"
  6760. lt_save_CFLAGS=$CFLAGS
  6761. lt_save_GCC=$GCC
  6762. GCC=
  6763. CC=${RC-"windres"}
  6764. CFLAGS=
  6765. compiler=$CC
  6766. _LT_TAGVAR(compiler, $1)=$CC
  6767. _LT_CC_BASENAME([$compiler])
  6768. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6769. if test -n "$compiler"; then
  6770. :
  6771. _LT_CONFIG($1)
  6772. fi
  6773. GCC=$lt_save_GCC
  6774. AC_LANG_RESTORE
  6775. CC=$lt_save_CC
  6776. CFLAGS=$lt_save_CFLAGS
  6777. ])# _LT_LANG_RC_CONFIG
  6778. # LT_PROG_GCJ
  6779. # -----------
  6780. AC_DEFUN([LT_PROG_GCJ],
  6781. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6782. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6783. [AC_CHECK_TOOL(GCJ, gcj,)
  6784. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6785. AC_SUBST(GCJFLAGS)])])[]dnl
  6786. ])
  6787. # Old name:
  6788. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6789. dnl aclocal-1.4 backwards compatibility:
  6790. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6791. # LT_PROG_RC
  6792. # ----------
  6793. AC_DEFUN([LT_PROG_RC],
  6794. [AC_CHECK_TOOL(RC, windres,)
  6795. ])
  6796. # Old name:
  6797. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6798. dnl aclocal-1.4 backwards compatibility:
  6799. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6800. # _LT_DECL_EGREP
  6801. # --------------
  6802. # If we don't have a new enough Autoconf to choose the best grep
  6803. # available, choose the one first in the user's PATH.
  6804. m4_defun([_LT_DECL_EGREP],
  6805. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6806. AC_REQUIRE([AC_PROG_FGREP])dnl
  6807. test -z "$GREP" && GREP=grep
  6808. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6809. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6810. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6811. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6812. AC_SUBST([GREP])
  6813. ])
  6814. # _LT_DECL_OBJDUMP
  6815. # --------------
  6816. # If we don't have a new enough Autoconf to choose the best objdump
  6817. # available, choose the one first in the user's PATH.
  6818. m4_defun([_LT_DECL_OBJDUMP],
  6819. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6820. test -z "$OBJDUMP" && OBJDUMP=objdump
  6821. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6822. AC_SUBST([OBJDUMP])
  6823. ])
  6824. # _LT_DECL_DLLTOOL
  6825. # ----------------
  6826. # Ensure DLLTOOL variable is set.
  6827. m4_defun([_LT_DECL_DLLTOOL],
  6828. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6829. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6830. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6831. AC_SUBST([DLLTOOL])
  6832. ])
  6833. # _LT_DECL_SED
  6834. # ------------
  6835. # Check for a fully-functional sed program, that truncates
  6836. # as few characters as possible. Prefer GNU sed if found.
  6837. m4_defun([_LT_DECL_SED],
  6838. [AC_PROG_SED
  6839. test -z "$SED" && SED=sed
  6840. Xsed="$SED -e 1s/^X//"
  6841. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6842. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6843. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6844. ])# _LT_DECL_SED
  6845. m4_ifndef([AC_PROG_SED], [
  6846. # NOTE: This macro has been submitted for inclusion into #
  6847. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6848. # a released version of Autoconf we should remove this #
  6849. # macro and use it instead. #
  6850. m4_defun([AC_PROG_SED],
  6851. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6852. AC_CACHE_VAL(lt_cv_path_SED,
  6853. [# Loop through the user's path and test for sed and gsed.
  6854. # Then use that list of sed's as ones to test for truncation.
  6855. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6856. for as_dir in $PATH
  6857. do
  6858. IFS=$as_save_IFS
  6859. test -z "$as_dir" && as_dir=.
  6860. for lt_ac_prog in sed gsed; do
  6861. for ac_exec_ext in '' $ac_executable_extensions; do
  6862. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6863. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6864. fi
  6865. done
  6866. done
  6867. done
  6868. IFS=$as_save_IFS
  6869. lt_ac_max=0
  6870. lt_ac_count=0
  6871. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6872. # along with /bin/sed that truncates output.
  6873. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  6874. test ! -f $lt_ac_sed && continue
  6875. cat /dev/null > conftest.in
  6876. lt_ac_count=0
  6877. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  6878. # Check for GNU sed and select it if it is found.
  6879. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  6880. lt_cv_path_SED=$lt_ac_sed
  6881. break
  6882. fi
  6883. while true; do
  6884. cat conftest.in conftest.in >conftest.tmp
  6885. mv conftest.tmp conftest.in
  6886. cp conftest.in conftest.nl
  6887. echo >>conftest.nl
  6888. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  6889. cmp -s conftest.out conftest.nl || break
  6890. # 10000 chars as input seems more than enough
  6891. test $lt_ac_count -gt 10 && break
  6892. lt_ac_count=`expr $lt_ac_count + 1`
  6893. if test $lt_ac_count -gt $lt_ac_max; then
  6894. lt_ac_max=$lt_ac_count
  6895. lt_cv_path_SED=$lt_ac_sed
  6896. fi
  6897. done
  6898. done
  6899. ])
  6900. SED=$lt_cv_path_SED
  6901. AC_SUBST([SED])
  6902. AC_MSG_RESULT([$SED])
  6903. ])#AC_PROG_SED
  6904. ])#m4_ifndef
  6905. # Old name:
  6906. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  6907. dnl aclocal-1.4 backwards compatibility:
  6908. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  6909. # _LT_CHECK_SHELL_FEATURES
  6910. # ------------------------
  6911. # Find out whether the shell is Bourne or XSI compatible,
  6912. # or has some other useful features.
  6913. m4_defun([_LT_CHECK_SHELL_FEATURES],
  6914. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  6915. # Try some XSI features
  6916. xsi_shell=no
  6917. ( _lt_dummy="a/b/c"
  6918. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  6919. = c,a/b,b/c, \
  6920. && eval 'test $(( 1 + 1 )) -eq 2 \
  6921. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6922. && xsi_shell=yes
  6923. AC_MSG_RESULT([$xsi_shell])
  6924. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  6925. AC_MSG_CHECKING([whether the shell understands "+="])
  6926. lt_shell_append=no
  6927. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  6928. >/dev/null 2>&1 \
  6929. && lt_shell_append=yes
  6930. AC_MSG_RESULT([$lt_shell_append])
  6931. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  6932. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6933. lt_unset=unset
  6934. else
  6935. lt_unset=false
  6936. fi
  6937. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  6938. # test EBCDIC or ASCII
  6939. case `echo X|tr X '\101'` in
  6940. A) # ASCII based system
  6941. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6942. lt_SP2NL='tr \040 \012'
  6943. lt_NL2SP='tr \015\012 \040\040'
  6944. ;;
  6945. *) # EBCDIC based system
  6946. lt_SP2NL='tr \100 \n'
  6947. lt_NL2SP='tr \r\n \100\100'
  6948. ;;
  6949. esac
  6950. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  6951. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  6952. ])# _LT_CHECK_SHELL_FEATURES
  6953. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  6954. # ------------------------------------------------------
  6955. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  6956. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  6957. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  6958. [dnl {
  6959. sed -e '/^$1 ()$/,/^} # $1 /c\
  6960. $1 ()\
  6961. {\
  6962. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  6963. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  6964. && mv -f "$cfgfile.tmp" "$cfgfile" \
  6965. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  6966. test 0 -eq $? || _lt_function_replace_fail=:
  6967. ])
  6968. # _LT_PROG_REPLACE_SHELLFNS
  6969. # -------------------------
  6970. # Replace existing portable implementations of several shell functions with
  6971. # equivalent extended shell implementations where those features are available..
  6972. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  6973. [if test x"$xsi_shell" = xyes; then
  6974. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  6975. case ${1} in
  6976. */*) func_dirname_result="${1%/*}${2}" ;;
  6977. * ) func_dirname_result="${3}" ;;
  6978. esac])
  6979. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  6980. func_basename_result="${1##*/}"])
  6981. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  6982. case ${1} in
  6983. */*) func_dirname_result="${1%/*}${2}" ;;
  6984. * ) func_dirname_result="${3}" ;;
  6985. esac
  6986. func_basename_result="${1##*/}"])
  6987. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  6988. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  6989. # positional parameters, so assign one to ordinary parameter first.
  6990. func_stripname_result=${3}
  6991. func_stripname_result=${func_stripname_result#"${1}"}
  6992. func_stripname_result=${func_stripname_result%"${2}"}])
  6993. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  6994. func_split_long_opt_name=${1%%=*}
  6995. func_split_long_opt_arg=${1#*=}])
  6996. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  6997. func_split_short_opt_arg=${1#??}
  6998. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  6999. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7000. case ${1} in
  7001. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7002. *) func_lo2o_result=${1} ;;
  7003. esac])
  7004. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7005. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7006. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7007. fi
  7008. if test x"$lt_shell_append" = xyes; then
  7009. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7010. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7011. func_quote_for_eval "${2}"
  7012. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7013. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7014. # Save a `func_append' function call where possible by direct use of '+='
  7015. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7016. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7017. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7018. test 0 -eq $? || _lt_function_replace_fail=:
  7019. else
  7020. # Save a `func_append' function call even when '+=' is not available
  7021. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7022. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7023. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7024. test 0 -eq $? || _lt_function_replace_fail=:
  7025. fi
  7026. if test x"$_lt_function_replace_fail" = x":"; then
  7027. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7028. fi
  7029. ])
  7030. # _LT_PATH_CONVERSION_FUNCTIONS
  7031. # -----------------------------
  7032. # Determine which file name conversion functions should be used by
  7033. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7034. # for certain cross-compile configurations and native mingw.
  7035. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7036. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7037. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7038. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7039. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7040. [case $host in
  7041. *-*-mingw* )
  7042. case $build in
  7043. *-*-mingw* ) # actually msys
  7044. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7045. ;;
  7046. *-*-cygwin* )
  7047. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7048. ;;
  7049. * ) # otherwise, assume *nix
  7050. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7051. ;;
  7052. esac
  7053. ;;
  7054. *-*-cygwin* )
  7055. case $build in
  7056. *-*-mingw* ) # actually msys
  7057. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7058. ;;
  7059. *-*-cygwin* )
  7060. lt_cv_to_host_file_cmd=func_convert_file_noop
  7061. ;;
  7062. * ) # otherwise, assume *nix
  7063. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7064. ;;
  7065. esac
  7066. ;;
  7067. * ) # unhandled hosts (and "normal" native builds)
  7068. lt_cv_to_host_file_cmd=func_convert_file_noop
  7069. ;;
  7070. esac
  7071. ])
  7072. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7073. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7074. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7075. [0], [convert $build file names to $host format])dnl
  7076. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7077. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7078. [#assume ordinary cross tools, or native build.
  7079. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7080. case $host in
  7081. *-*-mingw* )
  7082. case $build in
  7083. *-*-mingw* ) # actually msys
  7084. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7085. ;;
  7086. esac
  7087. ;;
  7088. esac
  7089. ])
  7090. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7091. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7092. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7093. [0], [convert $build files to toolchain format])dnl
  7094. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7095. # Helper functions for option handling. -*- Autoconf -*-
  7096. #
  7097. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7098. # Inc.
  7099. # Written by Gary V. Vaughan, 2004
  7100. #
  7101. # This file is free software; the Free Software Foundation gives
  7102. # unlimited permission to copy and/or distribute it, with or without
  7103. # modifications, as long as this notice is preserved.
  7104. # serial 7 ltoptions.m4
  7105. # This is to help aclocal find these macros, as it can't see m4_define.
  7106. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7107. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7108. # ------------------------------------------
  7109. m4_define([_LT_MANGLE_OPTION],
  7110. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7111. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7112. # ---------------------------------------
  7113. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7114. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7115. # saved as a flag.
  7116. m4_define([_LT_SET_OPTION],
  7117. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7118. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7119. _LT_MANGLE_DEFUN([$1], [$2]),
  7120. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7121. ])
  7122. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7123. # ------------------------------------------------------------
  7124. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7125. m4_define([_LT_IF_OPTION],
  7126. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7127. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7128. # -------------------------------------------------------
  7129. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7130. # are set.
  7131. m4_define([_LT_UNLESS_OPTIONS],
  7132. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7133. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7134. [m4_define([$0_found])])])[]dnl
  7135. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7136. ])[]dnl
  7137. ])
  7138. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7139. # ----------------------------------------
  7140. # OPTION-LIST is a space-separated list of Libtool options associated
  7141. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7142. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7143. # the unknown option and exit.
  7144. m4_defun([_LT_SET_OPTIONS],
  7145. [# Set options
  7146. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7147. [_LT_SET_OPTION([$1], _LT_Option)])
  7148. m4_if([$1],[LT_INIT],[
  7149. dnl
  7150. dnl Simply set some default values (i.e off) if boolean options were not
  7151. dnl specified:
  7152. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7153. ])
  7154. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7155. ])
  7156. dnl
  7157. dnl If no reference was made to various pairs of opposing options, then
  7158. dnl we run the default mode handler for the pair. For example, if neither
  7159. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7160. dnl archives by default:
  7161. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7162. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7163. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7164. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7165. [_LT_ENABLE_FAST_INSTALL])
  7166. ])
  7167. ])# _LT_SET_OPTIONS
  7168. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7169. # -----------------------------------------
  7170. m4_define([_LT_MANGLE_DEFUN],
  7171. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7172. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7173. # -----------------------------------------------
  7174. m4_define([LT_OPTION_DEFINE],
  7175. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7176. ])# LT_OPTION_DEFINE
  7177. # dlopen
  7178. # ------
  7179. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7180. ])
  7181. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7182. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7183. AC_DIAGNOSE([obsolete],
  7184. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7185. put the `dlopen' option into LT_INIT's first parameter.])
  7186. ])
  7187. dnl aclocal-1.4 backwards compatibility:
  7188. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7189. # win32-dll
  7190. # ---------
  7191. # Declare package support for building win32 dll's.
  7192. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7193. [enable_win32_dll=yes
  7194. case $host in
  7195. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7196. AC_CHECK_TOOL(AS, as, false)
  7197. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7198. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7199. ;;
  7200. esac
  7201. test -z "$AS" && AS=as
  7202. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7203. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7204. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7205. test -z "$OBJDUMP" && OBJDUMP=objdump
  7206. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7207. ])# win32-dll
  7208. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7209. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7210. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7211. AC_DIAGNOSE([obsolete],
  7212. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7213. put the `win32-dll' option into LT_INIT's first parameter.])
  7214. ])
  7215. dnl aclocal-1.4 backwards compatibility:
  7216. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7217. # _LT_ENABLE_SHARED([DEFAULT])
  7218. # ----------------------------
  7219. # implement the --enable-shared flag, and supports the `shared' and
  7220. # `disable-shared' LT_INIT options.
  7221. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7222. m4_define([_LT_ENABLE_SHARED],
  7223. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7224. AC_ARG_ENABLE([shared],
  7225. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7226. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7227. [p=${PACKAGE-default}
  7228. case $enableval in
  7229. yes) enable_shared=yes ;;
  7230. no) enable_shared=no ;;
  7231. *)
  7232. enable_shared=no
  7233. # Look at the argument we got. We use all the common list separators.
  7234. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7235. for pkg in $enableval; do
  7236. IFS="$lt_save_ifs"
  7237. if test "X$pkg" = "X$p"; then
  7238. enable_shared=yes
  7239. fi
  7240. done
  7241. IFS="$lt_save_ifs"
  7242. ;;
  7243. esac],
  7244. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7245. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7246. [Whether or not to build shared libraries])
  7247. ])# _LT_ENABLE_SHARED
  7248. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7249. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7250. # Old names:
  7251. AC_DEFUN([AC_ENABLE_SHARED],
  7252. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7253. ])
  7254. AC_DEFUN([AC_DISABLE_SHARED],
  7255. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7256. ])
  7257. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7258. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7259. dnl aclocal-1.4 backwards compatibility:
  7260. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7261. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7262. # _LT_ENABLE_STATIC([DEFAULT])
  7263. # ----------------------------
  7264. # implement the --enable-static flag, and support the `static' and
  7265. # `disable-static' LT_INIT options.
  7266. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7267. m4_define([_LT_ENABLE_STATIC],
  7268. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7269. AC_ARG_ENABLE([static],
  7270. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7271. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7272. [p=${PACKAGE-default}
  7273. case $enableval in
  7274. yes) enable_static=yes ;;
  7275. no) enable_static=no ;;
  7276. *)
  7277. enable_static=no
  7278. # Look at the argument we got. We use all the common list separators.
  7279. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7280. for pkg in $enableval; do
  7281. IFS="$lt_save_ifs"
  7282. if test "X$pkg" = "X$p"; then
  7283. enable_static=yes
  7284. fi
  7285. done
  7286. IFS="$lt_save_ifs"
  7287. ;;
  7288. esac],
  7289. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7290. _LT_DECL([build_old_libs], [enable_static], [0],
  7291. [Whether or not to build static libraries])
  7292. ])# _LT_ENABLE_STATIC
  7293. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7294. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7295. # Old names:
  7296. AC_DEFUN([AC_ENABLE_STATIC],
  7297. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7298. ])
  7299. AC_DEFUN([AC_DISABLE_STATIC],
  7300. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7301. ])
  7302. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7303. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7304. dnl aclocal-1.4 backwards compatibility:
  7305. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7306. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7307. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7308. # ----------------------------------
  7309. # implement the --enable-fast-install flag, and support the `fast-install'
  7310. # and `disable-fast-install' LT_INIT options.
  7311. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7312. m4_define([_LT_ENABLE_FAST_INSTALL],
  7313. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7314. AC_ARG_ENABLE([fast-install],
  7315. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7316. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7317. [p=${PACKAGE-default}
  7318. case $enableval in
  7319. yes) enable_fast_install=yes ;;
  7320. no) enable_fast_install=no ;;
  7321. *)
  7322. enable_fast_install=no
  7323. # Look at the argument we got. We use all the common list separators.
  7324. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7325. for pkg in $enableval; do
  7326. IFS="$lt_save_ifs"
  7327. if test "X$pkg" = "X$p"; then
  7328. enable_fast_install=yes
  7329. fi
  7330. done
  7331. IFS="$lt_save_ifs"
  7332. ;;
  7333. esac],
  7334. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7335. _LT_DECL([fast_install], [enable_fast_install], [0],
  7336. [Whether or not to optimize for fast installation])dnl
  7337. ])# _LT_ENABLE_FAST_INSTALL
  7338. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7339. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7340. # Old names:
  7341. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7342. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7343. AC_DIAGNOSE([obsolete],
  7344. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7345. the `fast-install' option into LT_INIT's first parameter.])
  7346. ])
  7347. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7348. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7349. AC_DIAGNOSE([obsolete],
  7350. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7351. the `disable-fast-install' option into LT_INIT's first parameter.])
  7352. ])
  7353. dnl aclocal-1.4 backwards compatibility:
  7354. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7355. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7356. # _LT_WITH_PIC([MODE])
  7357. # --------------------
  7358. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7359. # LT_INIT options.
  7360. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7361. m4_define([_LT_WITH_PIC],
  7362. [AC_ARG_WITH([pic],
  7363. [AS_HELP_STRING([--with-pic],
  7364. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7365. [pic_mode="$withval"],
  7366. [pic_mode=default])
  7367. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7368. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7369. ])# _LT_WITH_PIC
  7370. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7371. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7372. # Old name:
  7373. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7374. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7375. AC_DIAGNOSE([obsolete],
  7376. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7377. put the `pic-only' option into LT_INIT's first parameter.])
  7378. ])
  7379. dnl aclocal-1.4 backwards compatibility:
  7380. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7381. m4_define([_LTDL_MODE], [])
  7382. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7383. [m4_define([_LTDL_MODE], [nonrecursive])])
  7384. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7385. [m4_define([_LTDL_MODE], [recursive])])
  7386. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7387. [m4_define([_LTDL_MODE], [subproject])])
  7388. m4_define([_LTDL_TYPE], [])
  7389. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7390. [m4_define([_LTDL_TYPE], [installable])])
  7391. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7392. [m4_define([_LTDL_TYPE], [convenience])])
  7393. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7394. #
  7395. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7396. # Written by Gary V. Vaughan, 2004
  7397. #
  7398. # This file is free software; the Free Software Foundation gives
  7399. # unlimited permission to copy and/or distribute it, with or without
  7400. # modifications, as long as this notice is preserved.
  7401. # serial 6 ltsugar.m4
  7402. # This is to help aclocal find these macros, as it can't see m4_define.
  7403. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7404. # lt_join(SEP, ARG1, [ARG2...])
  7405. # -----------------------------
  7406. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7407. # associated separator.
  7408. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7409. # versions in m4sugar had bugs.
  7410. m4_define([lt_join],
  7411. [m4_if([$#], [1], [],
  7412. [$#], [2], [[$2]],
  7413. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7414. m4_define([_lt_join],
  7415. [m4_if([$#$2], [2], [],
  7416. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7417. # lt_car(LIST)
  7418. # lt_cdr(LIST)
  7419. # ------------
  7420. # Manipulate m4 lists.
  7421. # These macros are necessary as long as will still need to support
  7422. # Autoconf-2.59 which quotes differently.
  7423. m4_define([lt_car], [[$1]])
  7424. m4_define([lt_cdr],
  7425. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7426. [$#], 1, [],
  7427. [m4_dquote(m4_shift($@))])])
  7428. m4_define([lt_unquote], $1)
  7429. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7430. # ------------------------------------------
  7431. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7432. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7433. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7434. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7435. # than defined and empty).
  7436. #
  7437. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7438. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7439. m4_define([lt_append],
  7440. [m4_define([$1],
  7441. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7442. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7443. # ----------------------------------------------------------
  7444. # Produce a SEP delimited list of all paired combinations of elements of
  7445. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7446. # has the form PREFIXmINFIXSUFFIXn.
  7447. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7448. m4_define([lt_combine],
  7449. [m4_if(m4_eval([$# > 3]), [1],
  7450. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7451. [[m4_foreach([_Lt_prefix], [$2],
  7452. [m4_foreach([_Lt_suffix],
  7453. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7454. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7455. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7456. # -----------------------------------------------------------------------
  7457. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7458. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7459. m4_define([lt_if_append_uniq],
  7460. [m4_ifdef([$1],
  7461. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7462. [lt_append([$1], [$2], [$3])$4],
  7463. [$5])],
  7464. [lt_append([$1], [$2], [$3])$4])])
  7465. # lt_dict_add(DICT, KEY, VALUE)
  7466. # -----------------------------
  7467. m4_define([lt_dict_add],
  7468. [m4_define([$1($2)], [$3])])
  7469. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7470. # --------------------------------------------
  7471. m4_define([lt_dict_add_subkey],
  7472. [m4_define([$1($2:$3)], [$4])])
  7473. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7474. # ----------------------------------
  7475. m4_define([lt_dict_fetch],
  7476. [m4_ifval([$3],
  7477. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7478. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7479. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7480. # -----------------------------------------------------------------
  7481. m4_define([lt_if_dict_fetch],
  7482. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7483. [$5],
  7484. [$6])])
  7485. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7486. # --------------------------------------------------------------
  7487. m4_define([lt_dict_filter],
  7488. [m4_if([$5], [], [],
  7489. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7490. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7491. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7492. ])
  7493. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7494. #
  7495. # Copyright (C) 2004 Free Software Foundation, Inc.
  7496. # Written by Scott James Remnant, 2004
  7497. #
  7498. # This file is free software; the Free Software Foundation gives
  7499. # unlimited permission to copy and/or distribute it, with or without
  7500. # modifications, as long as this notice is preserved.
  7501. # @configure_input@
  7502. # serial 3293 ltversion.m4
  7503. # This file is part of GNU Libtool
  7504. m4_define([LT_PACKAGE_VERSION], [2.4])
  7505. m4_define([LT_PACKAGE_REVISION], [1.3293])
  7506. AC_DEFUN([LTVERSION_VERSION],
  7507. [macro_version='2.4'
  7508. macro_revision='1.3293'
  7509. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7510. _LT_DECL(, macro_revision, 0)
  7511. ])
  7512. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7513. #
  7514. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7515. # Written by Scott James Remnant, 2004.
  7516. #
  7517. # This file is free software; the Free Software Foundation gives
  7518. # unlimited permission to copy and/or distribute it, with or without
  7519. # modifications, as long as this notice is preserved.
  7520. # serial 5 lt~obsolete.m4
  7521. # These exist entirely to fool aclocal when bootstrapping libtool.
  7522. #
  7523. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7524. # which have later been changed to m4_define as they aren't part of the
  7525. # exported API, or moved to Autoconf or Automake where they belong.
  7526. #
  7527. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7528. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7529. # using a macro with the same name in our local m4/libtool.m4 it'll
  7530. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7531. # and doesn't know about Autoconf macros at all.)
  7532. #
  7533. # So we provide this file, which has a silly filename so it's always
  7534. # included after everything else. This provides aclocal with the
  7535. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7536. # because those macros already exist, or will be overwritten later.
  7537. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7538. #
  7539. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7540. # Yes, that means every name once taken will need to remain here until
  7541. # we give up compatibility with versions before 1.7, at which point
  7542. # we need to keep only those names which we still refer to.
  7543. # This is to help aclocal find these macros, as it can't see m4_define.
  7544. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7545. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7546. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7547. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7548. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7549. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7550. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7551. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7552. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7553. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7554. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7555. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7556. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7557. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7558. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7559. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7560. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7561. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7562. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7563. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7564. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7565. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7566. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7567. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7568. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7569. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7570. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7571. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7572. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7573. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7574. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7575. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7576. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7577. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7578. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7579. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7580. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7581. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7582. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7583. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7584. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7585. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7586. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7587. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7588. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7589. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7590. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7591. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7592. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7593. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7594. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7595. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7596. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7597. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7598. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7599. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7600. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7601. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7602. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7603. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7604. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7605. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7606. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  7607. #
  7608. # This file is free software; the Free Software Foundation
  7609. # gives unlimited permission to copy and/or distribute it,
  7610. # with or without modifications, as long as this notice is preserved.
  7611. # AM_AUTOMAKE_VERSION(VERSION)
  7612. # ----------------------------
  7613. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7614. # generated from the m4 files accompanying Automake X.Y.
  7615. # (This private macro should not be called outside this file.)
  7616. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7617. [am__api_version='1.11'
  7618. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7619. dnl require some minimum version. Point them to the right macro.
  7620. m4_if([$1], [1.11.1], [],
  7621. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7622. ])
  7623. # _AM_AUTOCONF_VERSION(VERSION)
  7624. # -----------------------------
  7625. # aclocal traces this macro to find the Autoconf version.
  7626. # This is a private macro too. Using m4_define simplifies
  7627. # the logic in aclocal, which can simply ignore this definition.
  7628. m4_define([_AM_AUTOCONF_VERSION], [])
  7629. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7630. # -------------------------------
  7631. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7632. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7633. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7634. [AM_AUTOMAKE_VERSION([1.11.1])dnl
  7635. m4_ifndef([AC_AUTOCONF_VERSION],
  7636. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7637. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7638. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7639. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  7640. #
  7641. # This file is free software; the Free Software Foundation
  7642. # gives unlimited permission to copy and/or distribute it,
  7643. # with or without modifications, as long as this notice is preserved.
  7644. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7645. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7646. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7647. #
  7648. # Of course, Automake must honor this variable whenever it calls a
  7649. # tool from the auxiliary directory. The problem is that $srcdir (and
  7650. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7651. # depending on how configure is run. This is pretty annoying, since
  7652. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7653. # source directory, any form will work fine, but in subdirectories a
  7654. # relative path needs to be adjusted first.
  7655. #
  7656. # $ac_aux_dir/missing
  7657. # fails when called from a subdirectory if $ac_aux_dir is relative
  7658. # $top_srcdir/$ac_aux_dir/missing
  7659. # fails if $ac_aux_dir is absolute,
  7660. # fails when called from a subdirectory in a VPATH build with
  7661. # a relative $ac_aux_dir
  7662. #
  7663. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7664. # are both prefixed by $srcdir. In an in-source build this is usually
  7665. # harmless because $srcdir is `.', but things will broke when you
  7666. # start a VPATH build or use an absolute $srcdir.
  7667. #
  7668. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7669. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7670. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7671. # and then we would define $MISSING as
  7672. # MISSING="\${SHELL} $am_aux_dir/missing"
  7673. # This will work as long as MISSING is not called from configure, because
  7674. # unfortunately $(top_srcdir) has no meaning in configure.
  7675. # However there are other variables, like CC, which are often used in
  7676. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7677. #
  7678. # Another solution, used here, is to always expand $ac_aux_dir to an
  7679. # absolute PATH. The drawback is that using absolute paths prevent a
  7680. # configured tree to be moved without reconfiguration.
  7681. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7682. [dnl Rely on autoconf to set up CDPATH properly.
  7683. AC_PREREQ([2.50])dnl
  7684. # expand $ac_aux_dir to an absolute path
  7685. am_aux_dir=`cd $ac_aux_dir && pwd`
  7686. ])
  7687. # AM_CONDITIONAL -*- Autoconf -*-
  7688. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  7689. # Free Software Foundation, Inc.
  7690. #
  7691. # This file is free software; the Free Software Foundation
  7692. # gives unlimited permission to copy and/or distribute it,
  7693. # with or without modifications, as long as this notice is preserved.
  7694. # serial 9
  7695. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7696. # -------------------------------------
  7697. # Define a conditional.
  7698. AC_DEFUN([AM_CONDITIONAL],
  7699. [AC_PREREQ(2.52)dnl
  7700. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7701. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7702. AC_SUBST([$1_TRUE])dnl
  7703. AC_SUBST([$1_FALSE])dnl
  7704. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7705. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7706. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7707. if $2; then
  7708. $1_TRUE=
  7709. $1_FALSE='#'
  7710. else
  7711. $1_TRUE='#'
  7712. $1_FALSE=
  7713. fi
  7714. AC_CONFIG_COMMANDS_PRE(
  7715. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7716. AC_MSG_ERROR([[conditional "$1" was never defined.
  7717. Usually this means the macro was only invoked conditionally.]])
  7718. fi])])
  7719. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  7720. # Free Software Foundation, Inc.
  7721. #
  7722. # This file is free software; the Free Software Foundation
  7723. # gives unlimited permission to copy and/or distribute it,
  7724. # with or without modifications, as long as this notice is preserved.
  7725. # serial 10
  7726. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  7727. # written in clear, in which case automake, when reading aclocal.m4,
  7728. # will think it sees a *use*, and therefore will trigger all it's
  7729. # C support machinery. Also note that it means that autoscan, seeing
  7730. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7731. # _AM_DEPENDENCIES(NAME)
  7732. # ----------------------
  7733. # See how the compiler implements dependency checking.
  7734. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  7735. # We try a few techniques and use that to set a single cache variable.
  7736. #
  7737. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7738. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7739. # dependency, and given that the user is not expected to run this macro,
  7740. # just rely on AC_PROG_CC.
  7741. AC_DEFUN([_AM_DEPENDENCIES],
  7742. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7743. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7744. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7745. AC_REQUIRE([AM_DEP_TRACK])dnl
  7746. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  7747. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  7748. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7749. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  7750. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7751. [depcc="$$1" am_compiler_list=])
  7752. AC_CACHE_CHECK([dependency style of $depcc],
  7753. [am_cv_$1_dependencies_compiler_type],
  7754. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7755. # We make a subdir and do the tests there. Otherwise we can end up
  7756. # making bogus files that we don't know about and never remove. For
  7757. # instance it was reported that on HP-UX the gcc test will end up
  7758. # making a dummy file named `D' -- because `-MD' means `put the output
  7759. # in D'.
  7760. mkdir conftest.dir
  7761. # Copy depcomp to subdir because otherwise we won't find it if we're
  7762. # using a relative directory.
  7763. cp "$am_depcomp" conftest.dir
  7764. cd conftest.dir
  7765. # We will build objects and dependencies in a subdirectory because
  7766. # it helps to detect inapplicable dependency modes. For instance
  7767. # both Tru64's cc and ICC support -MD to output dependencies as a
  7768. # side effect of compilation, but ICC will put the dependencies in
  7769. # the current directory while Tru64 will put them in the object
  7770. # directory.
  7771. mkdir sub
  7772. am_cv_$1_dependencies_compiler_type=none
  7773. if test "$am_compiler_list" = ""; then
  7774. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7775. fi
  7776. am__universal=false
  7777. m4_case([$1], [CC],
  7778. [case " $depcc " in #(
  7779. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7780. esac],
  7781. [CXX],
  7782. [case " $depcc " in #(
  7783. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7784. esac])
  7785. for depmode in $am_compiler_list; do
  7786. # Setup a source with many dependencies, because some compilers
  7787. # like to wrap large dependency lists on column 80 (with \), and
  7788. # we should not choose a depcomp mode which is confused by this.
  7789. #
  7790. # We need to recreate these files for each test, as the compiler may
  7791. # overwrite some of them when testing with obscure command lines.
  7792. # This happens at least with the AIX C compiler.
  7793. : > sub/conftest.c
  7794. for i in 1 2 3 4 5 6; do
  7795. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7796. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  7797. # Solaris 8's {/usr,}/bin/sh.
  7798. touch sub/conftst$i.h
  7799. done
  7800. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7801. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  7802. # mode. It turns out that the SunPro C++ compiler does not properly
  7803. # handle `-M -o', and we need to detect this. Also, some Intel
  7804. # versions had trouble with output in subdirs
  7805. am__obj=sub/conftest.${OBJEXT-o}
  7806. am__minus_obj="-o $am__obj"
  7807. case $depmode in
  7808. gcc)
  7809. # This depmode causes a compiler race in universal mode.
  7810. test "$am__universal" = false || continue
  7811. ;;
  7812. nosideeffect)
  7813. # after this tag, mechanisms are not by side-effect, so they'll
  7814. # only be used when explicitly requested
  7815. if test "x$enable_dependency_tracking" = xyes; then
  7816. continue
  7817. else
  7818. break
  7819. fi
  7820. ;;
  7821. msvisualcpp | msvcmsys)
  7822. # This compiler won't grok `-c -o', but also, the minuso test has
  7823. # not run yet. These depmodes are late enough in the game, and
  7824. # so weak that their functioning should not be impacted.
  7825. am__obj=conftest.${OBJEXT-o}
  7826. am__minus_obj=
  7827. ;;
  7828. none) break ;;
  7829. esac
  7830. if depmode=$depmode \
  7831. source=sub/conftest.c object=$am__obj \
  7832. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7833. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7834. >/dev/null 2>conftest.err &&
  7835. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7836. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7837. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7838. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7839. # icc doesn't choke on unknown options, it will just issue warnings
  7840. # or remarks (even with -Werror). So we grep stderr for any message
  7841. # that says an option was ignored or not supported.
  7842. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7843. # icc: Command line warning: ignoring option '-M'; no argument required
  7844. # The diagnosis changed in icc 8.0:
  7845. # icc: Command line remark: option '-MP' not supported
  7846. if (grep 'ignoring option' conftest.err ||
  7847. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7848. am_cv_$1_dependencies_compiler_type=$depmode
  7849. break
  7850. fi
  7851. fi
  7852. done
  7853. cd ..
  7854. rm -rf conftest.dir
  7855. else
  7856. am_cv_$1_dependencies_compiler_type=none
  7857. fi
  7858. ])
  7859. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  7860. AM_CONDITIONAL([am__fastdep$1], [
  7861. test "x$enable_dependency_tracking" != xno \
  7862. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  7863. ])
  7864. # AM_SET_DEPDIR
  7865. # -------------
  7866. # Choose a directory name for dependency files.
  7867. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  7868. AC_DEFUN([AM_SET_DEPDIR],
  7869. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  7870. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  7871. ])
  7872. # AM_DEP_TRACK
  7873. # ------------
  7874. AC_DEFUN([AM_DEP_TRACK],
  7875. [AC_ARG_ENABLE(dependency-tracking,
  7876. [ --disable-dependency-tracking speeds up one-time build
  7877. --enable-dependency-tracking do not reject slow dependency extractors])
  7878. if test "x$enable_dependency_tracking" != xno; then
  7879. am_depcomp="$ac_aux_dir/depcomp"
  7880. AMDEPBACKSLASH='\'
  7881. fi
  7882. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  7883. AC_SUBST([AMDEPBACKSLASH])dnl
  7884. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  7885. ])
  7886. # Generate code to set up dependency tracking. -*- Autoconf -*-
  7887. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  7888. # Free Software Foundation, Inc.
  7889. #
  7890. # This file is free software; the Free Software Foundation
  7891. # gives unlimited permission to copy and/or distribute it,
  7892. # with or without modifications, as long as this notice is preserved.
  7893. #serial 5
  7894. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  7895. # ------------------------------
  7896. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  7897. [{
  7898. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  7899. # are listed without --file. Let's play safe and only enable the eval
  7900. # if we detect the quoting.
  7901. case $CONFIG_FILES in
  7902. *\'*) eval set x "$CONFIG_FILES" ;;
  7903. *) set x $CONFIG_FILES ;;
  7904. esac
  7905. shift
  7906. for mf
  7907. do
  7908. # Strip MF so we end up with the name of the file.
  7909. mf=`echo "$mf" | sed -e 's/:.*$//'`
  7910. # Check whether this is an Automake generated Makefile or not.
  7911. # We used to match only the files named `Makefile.in', but
  7912. # some people rename them; so instead we look at the file content.
  7913. # Grep'ing the first line is not enough: some people post-process
  7914. # each Makefile.in and add a new line on top of each file to say so.
  7915. # Grep'ing the whole file is not good either: AIX grep has a line
  7916. # limit of 2048, but all sed's we know have understand at least 4000.
  7917. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  7918. dirpart=`AS_DIRNAME("$mf")`
  7919. else
  7920. continue
  7921. fi
  7922. # Extract the definition of DEPDIR, am__include, and am__quote
  7923. # from the Makefile without running `make'.
  7924. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  7925. test -z "$DEPDIR" && continue
  7926. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  7927. test -z "am__include" && continue
  7928. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  7929. # When using ansi2knr, U may be empty or an underscore; expand it
  7930. U=`sed -n 's/^U = //p' < "$mf"`
  7931. # Find all dependency output files, they are included files with
  7932. # $(DEPDIR) in their names. We invoke sed twice because it is the
  7933. # simplest approach to changing $(DEPDIR) to its actual value in the
  7934. # expansion.
  7935. for file in `sed -n "
  7936. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  7937. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  7938. # Make sure the directory exists.
  7939. test -f "$dirpart/$file" && continue
  7940. fdir=`AS_DIRNAME(["$file"])`
  7941. AS_MKDIR_P([$dirpart/$fdir])
  7942. # echo "creating $dirpart/$file"
  7943. echo '# dummy' > "$dirpart/$file"
  7944. done
  7945. done
  7946. }
  7947. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  7948. # AM_OUTPUT_DEPENDENCY_COMMANDS
  7949. # -----------------------------
  7950. # This macro should only be invoked once -- use via AC_REQUIRE.
  7951. #
  7952. # This code is only required when automatic dependency tracking
  7953. # is enabled. FIXME. This creates each `.P' file that we will
  7954. # need in order to bootstrap the dependency handling code.
  7955. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  7956. [AC_CONFIG_COMMANDS([depfiles],
  7957. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  7958. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  7959. ])
  7960. # Do all the work for Automake. -*- Autoconf -*-
  7961. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  7962. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  7963. #
  7964. # This file is free software; the Free Software Foundation
  7965. # gives unlimited permission to copy and/or distribute it,
  7966. # with or without modifications, as long as this notice is preserved.
  7967. # serial 16
  7968. # This macro actually does too much. Some checks are only needed if
  7969. # your package does certain things. But this isn't really a big deal.
  7970. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  7971. # AM_INIT_AUTOMAKE([OPTIONS])
  7972. # -----------------------------------------------
  7973. # The call with PACKAGE and VERSION arguments is the old style
  7974. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  7975. # and VERSION should now be passed to AC_INIT and removed from
  7976. # the call to AM_INIT_AUTOMAKE.
  7977. # We support both call styles for the transition. After
  7978. # the next Automake release, Autoconf can make the AC_INIT
  7979. # arguments mandatory, and then we can depend on a new Autoconf
  7980. # release and drop the old call support.
  7981. AC_DEFUN([AM_INIT_AUTOMAKE],
  7982. [AC_PREREQ([2.62])dnl
  7983. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  7984. dnl the ones we care about.
  7985. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  7986. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  7987. AC_REQUIRE([AC_PROG_INSTALL])dnl
  7988. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  7989. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  7990. # is not polluted with repeated "-I."
  7991. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  7992. # test to see if srcdir already configured
  7993. if test -f $srcdir/config.status; then
  7994. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  7995. fi
  7996. fi
  7997. # test whether we have cygpath
  7998. if test -z "$CYGPATH_W"; then
  7999. if (cygpath --version) >/dev/null 2>/dev/null; then
  8000. CYGPATH_W='cygpath -w'
  8001. else
  8002. CYGPATH_W=echo
  8003. fi
  8004. fi
  8005. AC_SUBST([CYGPATH_W])
  8006. # Define the identity of the package.
  8007. dnl Distinguish between old-style and new-style calls.
  8008. m4_ifval([$2],
  8009. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8010. AC_SUBST([PACKAGE], [$1])dnl
  8011. AC_SUBST([VERSION], [$2])],
  8012. [_AM_SET_OPTIONS([$1])dnl
  8013. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8014. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8015. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8016. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8017. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8018. _AM_IF_OPTION([no-define],,
  8019. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8020. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8021. # Some tools Automake needs.
  8022. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8023. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8024. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8025. AM_MISSING_PROG(AUTOCONF, autoconf)
  8026. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8027. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8028. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8029. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8030. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8031. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8032. # We need awk for the "check" target. The system "awk" is bad on
  8033. # some platforms.
  8034. AC_REQUIRE([AC_PROG_AWK])dnl
  8035. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8036. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8037. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8038. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8039. [_AM_PROG_TAR([v7])])])
  8040. _AM_IF_OPTION([no-dependencies],,
  8041. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8042. [_AM_DEPENDENCIES(CC)],
  8043. [define([AC_PROG_CC],
  8044. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8045. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8046. [_AM_DEPENDENCIES(CXX)],
  8047. [define([AC_PROG_CXX],
  8048. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8049. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8050. [_AM_DEPENDENCIES(OBJC)],
  8051. [define([AC_PROG_OBJC],
  8052. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8053. ])
  8054. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8055. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8056. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8057. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8058. AC_CONFIG_COMMANDS_PRE(dnl
  8059. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8060. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8061. ])
  8062. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8063. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8064. dnl mangled by Autoconf and run in a shell conditional statement.
  8065. m4_define([_AC_COMPILER_EXEEXT],
  8066. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8067. # When config.status generates a header, we must update the stamp-h file.
  8068. # This file resides in the same directory as the config header
  8069. # that is generated. The stamp files are numbered to have different names.
  8070. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8071. # loop where config.status creates the headers, so we can generate
  8072. # our stamp files there.
  8073. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8074. [# Compute $1's index in $config_headers.
  8075. _am_arg=$1
  8076. _am_stamp_count=1
  8077. for _am_header in $config_headers :; do
  8078. case $_am_header in
  8079. $_am_arg | $_am_arg:* )
  8080. break ;;
  8081. * )
  8082. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8083. esac
  8084. done
  8085. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8086. # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  8087. #
  8088. # This file is free software; the Free Software Foundation
  8089. # gives unlimited permission to copy and/or distribute it,
  8090. # with or without modifications, as long as this notice is preserved.
  8091. # AM_PROG_INSTALL_SH
  8092. # ------------------
  8093. # Define $install_sh.
  8094. AC_DEFUN([AM_PROG_INSTALL_SH],
  8095. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8096. if test x"${install_sh}" != xset; then
  8097. case $am_aux_dir in
  8098. *\ * | *\ *)
  8099. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8100. *)
  8101. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8102. esac
  8103. fi
  8104. AC_SUBST(install_sh)])
  8105. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8106. #
  8107. # This file is free software; the Free Software Foundation
  8108. # gives unlimited permission to copy and/or distribute it,
  8109. # with or without modifications, as long as this notice is preserved.
  8110. # serial 2
  8111. # Check whether the underlying file-system supports filenames
  8112. # with a leading dot. For instance MS-DOS doesn't.
  8113. AC_DEFUN([AM_SET_LEADING_DOT],
  8114. [rm -rf .tst 2>/dev/null
  8115. mkdir .tst 2>/dev/null
  8116. if test -d .tst; then
  8117. am__leading_dot=.
  8118. else
  8119. am__leading_dot=_
  8120. fi
  8121. rmdir .tst 2>/dev/null
  8122. AC_SUBST([am__leading_dot])])
  8123. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8124. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8125. #
  8126. # This file is free software; the Free Software Foundation
  8127. # gives unlimited permission to copy and/or distribute it,
  8128. # with or without modifications, as long as this notice is preserved.
  8129. # serial 4
  8130. # AM_MAKE_INCLUDE()
  8131. # -----------------
  8132. # Check to see how make treats includes.
  8133. AC_DEFUN([AM_MAKE_INCLUDE],
  8134. [am_make=${MAKE-make}
  8135. cat > confinc << 'END'
  8136. am__doit:
  8137. @echo this is the am__doit target
  8138. .PHONY: am__doit
  8139. END
  8140. # If we don't find an include directive, just comment out the code.
  8141. AC_MSG_CHECKING([for style of include used by $am_make])
  8142. am__include="#"
  8143. am__quote=
  8144. _am_result=none
  8145. # First try GNU make style include.
  8146. echo "include confinc" > confmf
  8147. # Ignore all kinds of additional output from `make'.
  8148. case `$am_make -s -f confmf 2> /dev/null` in #(
  8149. *the\ am__doit\ target*)
  8150. am__include=include
  8151. am__quote=
  8152. _am_result=GNU
  8153. ;;
  8154. esac
  8155. # Now try BSD make style include.
  8156. if test "$am__include" = "#"; then
  8157. echo '.include "confinc"' > confmf
  8158. case `$am_make -s -f confmf 2> /dev/null` in #(
  8159. *the\ am__doit\ target*)
  8160. am__include=.include
  8161. am__quote="\""
  8162. _am_result=BSD
  8163. ;;
  8164. esac
  8165. fi
  8166. AC_SUBST([am__include])
  8167. AC_SUBST([am__quote])
  8168. AC_MSG_RESULT([$_am_result])
  8169. rm -f confinc confmf
  8170. ])
  8171. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8172. # Free Software Foundation, Inc.
  8173. #
  8174. # This file is free software; the Free Software Foundation
  8175. # gives unlimited permission to copy and/or distribute it,
  8176. # with or without modifications, as long as this notice is preserved.
  8177. # serial 6
  8178. # AM_PROG_CC_C_O
  8179. # --------------
  8180. # Like AC_PROG_CC_C_O, but changed for automake.
  8181. AC_DEFUN([AM_PROG_CC_C_O],
  8182. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8183. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8184. AC_REQUIRE_AUX_FILE([compile])dnl
  8185. # FIXME: we rely on the cache variable name because
  8186. # there is no other way.
  8187. set dummy $CC
  8188. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8189. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8190. if test "$am_t" != yes; then
  8191. # Losing compiler, so override with the script.
  8192. # FIXME: It is wrong to rewrite CC.
  8193. # But if we don't then we get into trouble of one sort or another.
  8194. # A longer-term fix would be to have automake use am__CC in this case,
  8195. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8196. CC="$am_aux_dir/compile $CC"
  8197. fi
  8198. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8199. dnl setting of CC.
  8200. m4_define([AC_PROG_CC],
  8201. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8202. ])
  8203. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8204. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8205. # Free Software Foundation, Inc.
  8206. #
  8207. # This file is free software; the Free Software Foundation
  8208. # gives unlimited permission to copy and/or distribute it,
  8209. # with or without modifications, as long as this notice is preserved.
  8210. # serial 6
  8211. # AM_MISSING_PROG(NAME, PROGRAM)
  8212. # ------------------------------
  8213. AC_DEFUN([AM_MISSING_PROG],
  8214. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8215. $1=${$1-"${am_missing_run}$2"}
  8216. AC_SUBST($1)])
  8217. # AM_MISSING_HAS_RUN
  8218. # ------------------
  8219. # Define MISSING if not defined so far and test if it supports --run.
  8220. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8221. AC_DEFUN([AM_MISSING_HAS_RUN],
  8222. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8223. AC_REQUIRE_AUX_FILE([missing])dnl
  8224. if test x"${MISSING+set}" != xset; then
  8225. case $am_aux_dir in
  8226. *\ * | *\ *)
  8227. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8228. *)
  8229. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8230. esac
  8231. fi
  8232. # Use eval to expand $SHELL
  8233. if eval "$MISSING --run true"; then
  8234. am_missing_run="$MISSING --run "
  8235. else
  8236. am_missing_run=
  8237. AC_MSG_WARN([`missing' script is too old or missing])
  8238. fi
  8239. ])
  8240. # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8241. #
  8242. # This file is free software; the Free Software Foundation
  8243. # gives unlimited permission to copy and/or distribute it,
  8244. # with or without modifications, as long as this notice is preserved.
  8245. # AM_PROG_MKDIR_P
  8246. # ---------------
  8247. # Check for `mkdir -p'.
  8248. AC_DEFUN([AM_PROG_MKDIR_P],
  8249. [AC_PREREQ([2.60])dnl
  8250. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8251. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8252. dnl while keeping a definition of mkdir_p for backward compatibility.
  8253. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8254. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8255. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8256. dnl adjustment using top_builddir (which is defined more often than
  8257. dnl MKDIR_P).
  8258. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8259. case $mkdir_p in
  8260. [[\\/$]]* | ?:[[\\/]]*) ;;
  8261. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8262. esac
  8263. ])
  8264. # Helper functions for option handling. -*- Autoconf -*-
  8265. # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  8266. #
  8267. # This file is free software; the Free Software Foundation
  8268. # gives unlimited permission to copy and/or distribute it,
  8269. # with or without modifications, as long as this notice is preserved.
  8270. # serial 4
  8271. # _AM_MANGLE_OPTION(NAME)
  8272. # -----------------------
  8273. AC_DEFUN([_AM_MANGLE_OPTION],
  8274. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8275. # _AM_SET_OPTION(NAME)
  8276. # ------------------------------
  8277. # Set option NAME. Presently that only means defining a flag for this option.
  8278. AC_DEFUN([_AM_SET_OPTION],
  8279. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8280. # _AM_SET_OPTIONS(OPTIONS)
  8281. # ----------------------------------
  8282. # OPTIONS is a space-separated list of Automake options.
  8283. AC_DEFUN([_AM_SET_OPTIONS],
  8284. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8285. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8286. # -------------------------------------------
  8287. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8288. AC_DEFUN([_AM_IF_OPTION],
  8289. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8290. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8291. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8292. # Free Software Foundation, Inc.
  8293. #
  8294. # This file is free software; the Free Software Foundation
  8295. # gives unlimited permission to copy and/or distribute it,
  8296. # with or without modifications, as long as this notice is preserved.
  8297. # serial 5
  8298. # AM_SANITY_CHECK
  8299. # ---------------
  8300. AC_DEFUN([AM_SANITY_CHECK],
  8301. [AC_MSG_CHECKING([whether build environment is sane])
  8302. # Just in case
  8303. sleep 1
  8304. echo timestamp > conftest.file
  8305. # Reject unsafe characters in $srcdir or the absolute working directory
  8306. # name. Accept space and tab only in the latter.
  8307. am_lf='
  8308. '
  8309. case `pwd` in
  8310. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8311. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8312. esac
  8313. case $srcdir in
  8314. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8315. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8316. esac
  8317. # Do `set' in a subshell so we don't clobber the current shell's
  8318. # arguments. Must try -L first in case configure is actually a
  8319. # symlink; some systems play weird games with the mod time of symlinks
  8320. # (eg FreeBSD returns the mod time of the symlink's containing
  8321. # directory).
  8322. if (
  8323. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8324. if test "$[*]" = "X"; then
  8325. # -L didn't work.
  8326. set X `ls -t "$srcdir/configure" conftest.file`
  8327. fi
  8328. rm -f conftest.file
  8329. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8330. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8331. # If neither matched, then we have a broken ls. This can happen
  8332. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8333. # broken ls alias from the environment. This has actually
  8334. # happened. Such a system could not be considered "sane".
  8335. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8336. alias in your environment])
  8337. fi
  8338. test "$[2]" = conftest.file
  8339. )
  8340. then
  8341. # Ok.
  8342. :
  8343. else
  8344. AC_MSG_ERROR([newly created file is older than distributed files!
  8345. Check your system clock])
  8346. fi
  8347. AC_MSG_RESULT(yes)])
  8348. # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  8349. #
  8350. # This file is free software; the Free Software Foundation
  8351. # gives unlimited permission to copy and/or distribute it,
  8352. # with or without modifications, as long as this notice is preserved.
  8353. # AM_PROG_INSTALL_STRIP
  8354. # ---------------------
  8355. # One issue with vendor `install' (even GNU) is that you can't
  8356. # specify the program used to strip binaries. This is especially
  8357. # annoying in cross-compiling environments, where the build's strip
  8358. # is unlikely to handle the host's binaries.
  8359. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8360. # always use install-sh in `make install-strip', and initialize
  8361. # STRIPPROG with the value of the STRIP variable (set by the user).
  8362. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8363. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8364. # Installed binaries are usually stripped using `strip' when the user
  8365. # run `make install-strip'. However `strip' might not be the right
  8366. # tool to use in cross-compilation environments, therefore Automake
  8367. # will honor the `STRIP' environment variable to overrule this program.
  8368. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8369. if test "$cross_compiling" != no; then
  8370. AC_CHECK_TOOL([STRIP], [strip], :)
  8371. fi
  8372. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8373. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8374. # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  8375. #
  8376. # This file is free software; the Free Software Foundation
  8377. # gives unlimited permission to copy and/or distribute it,
  8378. # with or without modifications, as long as this notice is preserved.
  8379. # serial 2
  8380. # _AM_SUBST_NOTMAKE(VARIABLE)
  8381. # ---------------------------
  8382. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8383. # This macro is traced by Automake.
  8384. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8385. # AM_SUBST_NOTMAKE(VARIABLE)
  8386. # ---------------------------
  8387. # Public sister of _AM_SUBST_NOTMAKE.
  8388. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8389. # Check how to create a tarball. -*- Autoconf -*-
  8390. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  8391. #
  8392. # This file is free software; the Free Software Foundation
  8393. # gives unlimited permission to copy and/or distribute it,
  8394. # with or without modifications, as long as this notice is preserved.
  8395. # serial 2
  8396. # _AM_PROG_TAR(FORMAT)
  8397. # --------------------
  8398. # Check how to create a tarball in format FORMAT.
  8399. # FORMAT should be one of `v7', `ustar', or `pax'.
  8400. #
  8401. # Substitute a variable $(am__tar) that is a command
  8402. # writing to stdout a FORMAT-tarball containing the directory
  8403. # $tardir.
  8404. # tardir=directory && $(am__tar) > result.tar
  8405. #
  8406. # Substitute a variable $(am__untar) that extract such
  8407. # a tarball read from stdin.
  8408. # $(am__untar) < result.tar
  8409. AC_DEFUN([_AM_PROG_TAR],
  8410. [# Always define AMTAR for backward compatibility.
  8411. AM_MISSING_PROG([AMTAR], [tar])
  8412. m4_if([$1], [v7],
  8413. [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  8414. [m4_case([$1], [ustar],, [pax],,
  8415. [m4_fatal([Unknown tar format])])
  8416. AC_MSG_CHECKING([how to create a $1 tar archive])
  8417. # Loop over all known methods to create a tar archive until one works.
  8418. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8419. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8420. # Do not fold the above two line into one, because Tru64 sh and
  8421. # Solaris sh will not grok spaces in the rhs of `-'.
  8422. for _am_tool in $_am_tools
  8423. do
  8424. case $_am_tool in
  8425. gnutar)
  8426. for _am_tar in tar gnutar gtar;
  8427. do
  8428. AM_RUN_LOG([$_am_tar --version]) && break
  8429. done
  8430. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8431. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8432. am__untar="$_am_tar -xf -"
  8433. ;;
  8434. plaintar)
  8435. # Must skip GNU tar: if it does not support --format= it doesn't create
  8436. # ustar tarball either.
  8437. (tar --version) >/dev/null 2>&1 && continue
  8438. am__tar='tar chf - "$$tardir"'
  8439. am__tar_='tar chf - "$tardir"'
  8440. am__untar='tar xf -'
  8441. ;;
  8442. pax)
  8443. am__tar='pax -L -x $1 -w "$$tardir"'
  8444. am__tar_='pax -L -x $1 -w "$tardir"'
  8445. am__untar='pax -r'
  8446. ;;
  8447. cpio)
  8448. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8449. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8450. am__untar='cpio -i -H $1 -d'
  8451. ;;
  8452. none)
  8453. am__tar=false
  8454. am__tar_=false
  8455. am__untar=false
  8456. ;;
  8457. esac
  8458. # If the value was cached, stop now. We just wanted to have am__tar
  8459. # and am__untar set.
  8460. test -n "${am_cv_prog_tar_$1}" && break
  8461. # tar/untar a dummy directory, and stop if the command works
  8462. rm -rf conftest.dir
  8463. mkdir conftest.dir
  8464. echo GrepMe > conftest.dir/file
  8465. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8466. rm -rf conftest.dir
  8467. if test -s conftest.tar; then
  8468. AM_RUN_LOG([$am__untar <conftest.tar])
  8469. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8470. fi
  8471. done
  8472. rm -rf conftest.dir
  8473. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8474. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8475. AC_SUBST([am__tar])
  8476. AC_SUBST([am__untar])
  8477. ]) # _AM_PROG_TAR