aclocal.m4 344 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813
  1. # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
  2. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  3. # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
  4. # Inc.
  5. # This file is free software; the Free Software Foundation
  6. # gives unlimited permission to copy and/or distribute it,
  7. # with or without modifications, as long as this notice is preserved.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  10. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  11. # PARTICULAR PURPOSE.
  12. m4_ifndef([AC_AUTOCONF_VERSION],
  13. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  14. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
  15. [m4_warning([this file was generated for autoconf 2.68.
  16. You have another version of autoconf. It may work, but is not guaranteed to.
  17. If you have problems, you may need to regenerate the build system entirely.
  18. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  19. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  20. #
  21. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  22. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  23. # Foundation, Inc.
  24. # Written by Gordon Matzigkeit, 1996
  25. #
  26. # This file is free software; the Free Software Foundation gives
  27. # unlimited permission to copy and/or distribute it, with or without
  28. # modifications, as long as this notice is preserved.
  29. m4_define([_LT_COPYING], [dnl
  30. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  32. # Foundation, Inc.
  33. # Written by Gordon Matzigkeit, 1996
  34. #
  35. # This file is part of GNU Libtool.
  36. #
  37. # GNU Libtool is free software; you can redistribute it and/or
  38. # modify it under the terms of the GNU General Public License as
  39. # published by the Free Software Foundation; either version 2 of
  40. # the License, or (at your option) any later version.
  41. #
  42. # As a special exception to the GNU General Public License,
  43. # if you distribute this file as part of a program or library that
  44. # is built using GNU Libtool, you may include this file under the
  45. # same distribution terms that you use for the rest of that program.
  46. #
  47. # GNU Libtool is distributed in the hope that it will be useful,
  48. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  49. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  50. # GNU General Public License for more details.
  51. #
  52. # You should have received a copy of the GNU General Public License
  53. # along with GNU Libtool; see the file COPYING. If not, a copy
  54. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  55. # obtained by writing to the Free Software Foundation, Inc.,
  56. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  57. ])
  58. # serial 57 LT_INIT
  59. # LT_PREREQ(VERSION)
  60. # ------------------
  61. # Complain and exit if this libtool version is less that VERSION.
  62. m4_defun([LT_PREREQ],
  63. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  64. [m4_default([$3],
  65. [m4_fatal([Libtool version $1 or higher is required],
  66. 63)])],
  67. [$2])])
  68. # _LT_CHECK_BUILDDIR
  69. # ------------------
  70. # Complain if the absolute build directory name contains unusual characters
  71. m4_defun([_LT_CHECK_BUILDDIR],
  72. [case `pwd` in
  73. *\ * | *\ *)
  74. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  75. esac
  76. ])
  77. # LT_INIT([OPTIONS])
  78. # ------------------
  79. AC_DEFUN([LT_INIT],
  80. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  81. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  82. AC_BEFORE([$0], [LT_LANG])dnl
  83. AC_BEFORE([$0], [LT_OUTPUT])dnl
  84. AC_BEFORE([$0], [LTDL_INIT])dnl
  85. m4_require([_LT_CHECK_BUILDDIR])dnl
  86. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  87. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  88. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  89. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  90. dnl unless we require an AC_DEFUNed macro:
  91. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  92. AC_REQUIRE([LTSUGAR_VERSION])dnl
  93. AC_REQUIRE([LTVERSION_VERSION])dnl
  94. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  95. m4_require([_LT_PROG_LTMAIN])dnl
  96. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  97. dnl Parse OPTIONS
  98. _LT_SET_OPTIONS([$0], [$1])
  99. # This can be used to rebuild libtool when needed
  100. LIBTOOL_DEPS="$ltmain"
  101. # Always use our own libtool.
  102. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  103. AC_SUBST(LIBTOOL)dnl
  104. _LT_SETUP
  105. # Only expand once:
  106. m4_define([LT_INIT])
  107. ])# LT_INIT
  108. # Old names:
  109. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  110. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  111. dnl aclocal-1.4 backwards compatibility:
  112. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  113. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  114. # _LT_CC_BASENAME(CC)
  115. # -------------------
  116. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  117. m4_defun([_LT_CC_BASENAME],
  118. [for cc_temp in $1""; do
  119. case $cc_temp in
  120. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  121. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  122. \-*) ;;
  123. *) break;;
  124. esac
  125. done
  126. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  127. ])
  128. # _LT_FILEUTILS_DEFAULTS
  129. # ----------------------
  130. # It is okay to use these file commands and assume they have been set
  131. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  132. m4_defun([_LT_FILEUTILS_DEFAULTS],
  133. [: ${CP="cp -f"}
  134. : ${MV="mv -f"}
  135. : ${RM="rm -f"}
  136. ])# _LT_FILEUTILS_DEFAULTS
  137. # _LT_SETUP
  138. # ---------
  139. m4_defun([_LT_SETUP],
  140. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  141. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  142. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  143. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  144. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  145. dnl
  146. _LT_DECL([], [host_alias], [0], [The host system])dnl
  147. _LT_DECL([], [host], [0])dnl
  148. _LT_DECL([], [host_os], [0])dnl
  149. dnl
  150. _LT_DECL([], [build_alias], [0], [The build system])dnl
  151. _LT_DECL([], [build], [0])dnl
  152. _LT_DECL([], [build_os], [0])dnl
  153. dnl
  154. AC_REQUIRE([AC_PROG_CC])dnl
  155. AC_REQUIRE([LT_PATH_LD])dnl
  156. AC_REQUIRE([LT_PATH_NM])dnl
  157. dnl
  158. AC_REQUIRE([AC_PROG_LN_S])dnl
  159. test -z "$LN_S" && LN_S="ln -s"
  160. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  161. dnl
  162. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  163. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  164. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  165. dnl
  166. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  167. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  168. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  169. m4_require([_LT_CMD_RELOAD])dnl
  170. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  171. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  172. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  173. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  174. m4_require([_LT_WITH_SYSROOT])dnl
  175. _LT_CONFIG_LIBTOOL_INIT([
  176. # See if we are running on zsh, and set the options which allow our
  177. # commands through without removal of \ escapes INIT.
  178. if test -n "\${ZSH_VERSION+set}" ; then
  179. setopt NO_GLOB_SUBST
  180. fi
  181. ])
  182. if test -n "${ZSH_VERSION+set}" ; then
  183. setopt NO_GLOB_SUBST
  184. fi
  185. _LT_CHECK_OBJDIR
  186. m4_require([_LT_TAG_COMPILER])dnl
  187. case $host_os in
  188. aix3*)
  189. # AIX sometimes has problems with the GCC collect2 program. For some
  190. # reason, if we set the COLLECT_NAMES environment variable, the problems
  191. # vanish in a puff of smoke.
  192. if test "X${COLLECT_NAMES+set}" != Xset; then
  193. COLLECT_NAMES=
  194. export COLLECT_NAMES
  195. fi
  196. ;;
  197. esac
  198. # Global variables:
  199. ofile=libtool
  200. can_build_shared=yes
  201. # All known linkers require a `.a' archive for static linking (except MSVC,
  202. # which needs '.lib').
  203. libext=a
  204. with_gnu_ld="$lt_cv_prog_gnu_ld"
  205. old_CC="$CC"
  206. old_CFLAGS="$CFLAGS"
  207. # Set sane defaults for various variables
  208. test -z "$CC" && CC=cc
  209. test -z "$LTCC" && LTCC=$CC
  210. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  211. test -z "$LD" && LD=ld
  212. test -z "$ac_objext" && ac_objext=o
  213. _LT_CC_BASENAME([$compiler])
  214. # Only perform the check for file, if the check method requires it
  215. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  216. case $deplibs_check_method in
  217. file_magic*)
  218. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  219. _LT_PATH_MAGIC
  220. fi
  221. ;;
  222. esac
  223. # Use C for the default configuration in the libtool script
  224. LT_SUPPORTED_TAG([CC])
  225. _LT_LANG_C_CONFIG
  226. _LT_LANG_DEFAULT_CONFIG
  227. _LT_CONFIG_COMMANDS
  228. ])# _LT_SETUP
  229. # _LT_PREPARE_SED_QUOTE_VARS
  230. # --------------------------
  231. # Define a few sed substitution that help us do robust quoting.
  232. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  233. [# Backslashify metacharacters that are still active within
  234. # double-quoted strings.
  235. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  236. # Same as above, but do not quote variable references.
  237. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  238. # Sed substitution to delay expansion of an escaped shell variable in a
  239. # double_quote_subst'ed string.
  240. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  241. # Sed substitution to delay expansion of an escaped single quote.
  242. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  243. # Sed substitution to avoid accidental globbing in evaled expressions
  244. no_glob_subst='s/\*/\\\*/g'
  245. ])
  246. # _LT_PROG_LTMAIN
  247. # ---------------
  248. # Note that this code is called both from `configure', and `config.status'
  249. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  250. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  251. # so we pass a copy along to make sure it has a sensible value anyway.
  252. m4_defun([_LT_PROG_LTMAIN],
  253. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  254. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  255. ltmain="$ac_aux_dir/ltmain.sh"
  256. ])# _LT_PROG_LTMAIN
  257. # So that we can recreate a full libtool script including additional
  258. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  259. # in macros and then make a single call at the end using the `libtool'
  260. # label.
  261. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  262. # ----------------------------------------
  263. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  264. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  265. [m4_ifval([$1],
  266. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  267. [$1
  268. ])])])
  269. # Initialize.
  270. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  271. # _LT_CONFIG_LIBTOOL([COMMANDS])
  272. # ------------------------------
  273. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  274. m4_define([_LT_CONFIG_LIBTOOL],
  275. [m4_ifval([$1],
  276. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  277. [$1
  278. ])])])
  279. # Initialize.
  280. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  281. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  282. # -----------------------------------------------------
  283. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  284. [_LT_CONFIG_LIBTOOL([$1])
  285. _LT_CONFIG_LIBTOOL_INIT([$2])
  286. ])
  287. # _LT_FORMAT_COMMENT([COMMENT])
  288. # -----------------------------
  289. # Add leading comment marks to the start of each line, and a trailing
  290. # full-stop to the whole comment if one is not present already.
  291. m4_define([_LT_FORMAT_COMMENT],
  292. [m4_ifval([$1], [
  293. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  294. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  295. )])
  296. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  297. # -------------------------------------------------------------------
  298. # CONFIGNAME is the name given to the value in the libtool script.
  299. # VARNAME is the (base) name used in the configure script.
  300. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  301. # VARNAME. Any other value will be used directly.
  302. m4_define([_LT_DECL],
  303. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  304. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  305. [m4_ifval([$1], [$1], [$2])])
  306. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  307. m4_ifval([$4],
  308. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  309. lt_dict_add_subkey([lt_decl_dict], [$2],
  310. [tagged?], [m4_ifval([$5], [yes], [no])])])
  311. ])
  312. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  313. # --------------------------------------------------------
  314. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  315. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  316. # ------------------------------------------------
  317. m4_define([lt_decl_tag_varnames],
  318. [_lt_decl_filter([tagged?], [yes], $@)])
  319. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  320. # ---------------------------------------------------------
  321. m4_define([_lt_decl_filter],
  322. [m4_case([$#],
  323. [0], [m4_fatal([$0: too few arguments: $#])],
  324. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  325. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  326. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  327. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  328. ])
  329. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  330. # --------------------------------------------------
  331. m4_define([lt_decl_quote_varnames],
  332. [_lt_decl_filter([value], [1], $@)])
  333. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  334. # ---------------------------------------------------
  335. m4_define([lt_decl_dquote_varnames],
  336. [_lt_decl_filter([value], [2], $@)])
  337. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  338. # ---------------------------------------------------
  339. m4_define([lt_decl_varnames_tagged],
  340. [m4_assert([$# <= 2])dnl
  341. _$0(m4_quote(m4_default([$1], [[, ]])),
  342. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  343. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  344. m4_define([_lt_decl_varnames_tagged],
  345. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  346. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  347. # ------------------------------------------------
  348. m4_define([lt_decl_all_varnames],
  349. [_$0(m4_quote(m4_default([$1], [[, ]])),
  350. m4_if([$2], [],
  351. m4_quote(lt_decl_varnames),
  352. m4_quote(m4_shift($@))))[]dnl
  353. ])
  354. m4_define([_lt_decl_all_varnames],
  355. [lt_join($@, lt_decl_varnames_tagged([$1],
  356. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  357. ])
  358. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  359. # ------------------------------------
  360. # Quote a variable value, and forward it to `config.status' so that its
  361. # declaration there will have the same value as in `configure'. VARNAME
  362. # must have a single quote delimited value for this to work.
  363. m4_define([_LT_CONFIG_STATUS_DECLARE],
  364. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  365. # _LT_CONFIG_STATUS_DECLARATIONS
  366. # ------------------------------
  367. # We delimit libtool config variables with single quotes, so when
  368. # we write them to config.status, we have to be sure to quote all
  369. # embedded single quotes properly. In configure, this macro expands
  370. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  371. #
  372. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  373. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  374. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  375. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  376. # _LT_LIBTOOL_TAGS
  377. # ----------------
  378. # Output comment and list of tags supported by the script
  379. m4_defun([_LT_LIBTOOL_TAGS],
  380. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  381. available_tags="_LT_TAGS"dnl
  382. ])
  383. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  384. # -----------------------------------
  385. # Extract the dictionary values for VARNAME (optionally with TAG) and
  386. # expand to a commented shell variable setting:
  387. #
  388. # # Some comment about what VAR is for.
  389. # visible_name=$lt_internal_name
  390. m4_define([_LT_LIBTOOL_DECLARE],
  391. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  392. [description])))[]dnl
  393. m4_pushdef([_libtool_name],
  394. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  395. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  396. [0], [_libtool_name=[$]$1],
  397. [1], [_libtool_name=$lt_[]$1],
  398. [2], [_libtool_name=$lt_[]$1],
  399. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  400. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  401. ])
  402. # _LT_LIBTOOL_CONFIG_VARS
  403. # -----------------------
  404. # Produce commented declarations of non-tagged libtool config variables
  405. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  406. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  407. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  408. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  409. [m4_foreach([_lt_var],
  410. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  411. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  412. # _LT_LIBTOOL_TAG_VARS(TAG)
  413. # -------------------------
  414. m4_define([_LT_LIBTOOL_TAG_VARS],
  415. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  416. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  417. # _LT_TAGVAR(VARNAME, [TAGNAME])
  418. # ------------------------------
  419. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  420. # _LT_CONFIG_COMMANDS
  421. # -------------------
  422. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  423. # variables for single and double quote escaping we saved from calls
  424. # to _LT_DECL, we can put quote escaped variables declarations
  425. # into `config.status', and then the shell code to quote escape them in
  426. # for loops in `config.status'. Finally, any additional code accumulated
  427. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  428. m4_defun([_LT_CONFIG_COMMANDS],
  429. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  430. dnl If the libtool generation code has been placed in $CONFIG_LT,
  431. dnl instead of duplicating it all over again into config.status,
  432. dnl then we will have config.status run $CONFIG_LT later, so it
  433. dnl needs to know what name is stored there:
  434. [AC_CONFIG_COMMANDS([libtool],
  435. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  436. dnl If the libtool generation code is destined for config.status,
  437. dnl expand the accumulated commands and init code now:
  438. [AC_CONFIG_COMMANDS([libtool],
  439. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  440. ])#_LT_CONFIG_COMMANDS
  441. # Initialize.
  442. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  443. [
  444. # The HP-UX ksh and POSIX shell print the target directory to stdout
  445. # if CDPATH is set.
  446. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  447. sed_quote_subst='$sed_quote_subst'
  448. double_quote_subst='$double_quote_subst'
  449. delay_variable_subst='$delay_variable_subst'
  450. _LT_CONFIG_STATUS_DECLARATIONS
  451. LTCC='$LTCC'
  452. LTCFLAGS='$LTCFLAGS'
  453. compiler='$compiler_DEFAULT'
  454. # A function that is used when there is no print builtin or printf.
  455. func_fallback_echo ()
  456. {
  457. eval 'cat <<_LTECHO_EOF
  458. \$[]1
  459. _LTECHO_EOF'
  460. }
  461. # Quote evaled strings.
  462. for var in lt_decl_all_varnames([[ \
  463. ]], lt_decl_quote_varnames); do
  464. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  465. *[[\\\\\\\`\\"\\\$]]*)
  466. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  467. ;;
  468. *)
  469. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  470. ;;
  471. esac
  472. done
  473. # Double-quote double-evaled strings.
  474. for var in lt_decl_all_varnames([[ \
  475. ]], lt_decl_dquote_varnames); do
  476. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  477. *[[\\\\\\\`\\"\\\$]]*)
  478. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  479. ;;
  480. *)
  481. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  482. ;;
  483. esac
  484. done
  485. _LT_OUTPUT_LIBTOOL_INIT
  486. ])
  487. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  488. # ------------------------------------
  489. # Generate a child script FILE with all initialization necessary to
  490. # reuse the environment learned by the parent script, and make the
  491. # file executable. If COMMENT is supplied, it is inserted after the
  492. # `#!' sequence but before initialization text begins. After this
  493. # macro, additional text can be appended to FILE to form the body of
  494. # the child script. The macro ends with non-zero status if the
  495. # file could not be fully written (such as if the disk is full).
  496. m4_ifdef([AS_INIT_GENERATED],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  498. [m4_defun([_LT_GENERATED_FILE_INIT],
  499. [m4_require([AS_PREPARE])]dnl
  500. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  501. [lt_write_fail=0
  502. cat >$1 <<_ASEOF || lt_write_fail=1
  503. #! $SHELL
  504. # Generated by $as_me.
  505. $2
  506. SHELL=\${CONFIG_SHELL-$SHELL}
  507. export SHELL
  508. _ASEOF
  509. cat >>$1 <<\_ASEOF || lt_write_fail=1
  510. AS_SHELL_SANITIZE
  511. _AS_PREPARE
  512. exec AS_MESSAGE_FD>&1
  513. _ASEOF
  514. test $lt_write_fail = 0 && chmod +x $1[]dnl
  515. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  516. # LT_OUTPUT
  517. # ---------
  518. # This macro allows early generation of the libtool script (before
  519. # AC_OUTPUT is called), incase it is used in configure for compilation
  520. # tests.
  521. AC_DEFUN([LT_OUTPUT],
  522. [: ${CONFIG_LT=./config.lt}
  523. AC_MSG_NOTICE([creating $CONFIG_LT])
  524. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  525. [# Run this file to recreate a libtool stub with the current configuration.])
  526. cat >>"$CONFIG_LT" <<\_LTEOF
  527. lt_cl_silent=false
  528. exec AS_MESSAGE_LOG_FD>>config.log
  529. {
  530. echo
  531. AS_BOX([Running $as_me.])
  532. } >&AS_MESSAGE_LOG_FD
  533. lt_cl_help="\
  534. \`$as_me' creates a local libtool stub from the current configuration,
  535. for use in further configure time tests before the real libtool is
  536. generated.
  537. Usage: $[0] [[OPTIONS]]
  538. -h, --help print this help, then exit
  539. -V, --version print version number, then exit
  540. -q, --quiet do not print progress messages
  541. -d, --debug don't remove temporary files
  542. Report bugs to <bug-libtool@gnu.org>."
  543. lt_cl_version="\
  544. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  545. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  546. configured by $[0], generated by m4_PACKAGE_STRING.
  547. Copyright (C) 2011 Free Software Foundation, Inc.
  548. This config.lt script is free software; the Free Software Foundation
  549. gives unlimited permision to copy, distribute and modify it."
  550. while test $[#] != 0
  551. do
  552. case $[1] in
  553. --version | --v* | -V )
  554. echo "$lt_cl_version"; exit 0 ;;
  555. --help | --h* | -h )
  556. echo "$lt_cl_help"; exit 0 ;;
  557. --debug | --d* | -d )
  558. debug=: ;;
  559. --quiet | --q* | --silent | --s* | -q )
  560. lt_cl_silent=: ;;
  561. -*) AC_MSG_ERROR([unrecognized option: $[1]
  562. Try \`$[0] --help' for more information.]) ;;
  563. *) AC_MSG_ERROR([unrecognized argument: $[1]
  564. Try \`$[0] --help' for more information.]) ;;
  565. esac
  566. shift
  567. done
  568. if $lt_cl_silent; then
  569. exec AS_MESSAGE_FD>/dev/null
  570. fi
  571. _LTEOF
  572. cat >>"$CONFIG_LT" <<_LTEOF
  573. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  574. _LTEOF
  575. cat >>"$CONFIG_LT" <<\_LTEOF
  576. AC_MSG_NOTICE([creating $ofile])
  577. _LT_OUTPUT_LIBTOOL_COMMANDS
  578. AS_EXIT(0)
  579. _LTEOF
  580. chmod +x "$CONFIG_LT"
  581. # configure is writing to config.log, but config.lt does its own redirection,
  582. # appending to config.log, which fails on DOS, as config.log is still kept
  583. # open by configure. Here we exec the FD to /dev/null, effectively closing
  584. # config.log, so it can be properly (re)opened and appended to by config.lt.
  585. lt_cl_success=:
  586. test "$silent" = yes &&
  587. lt_config_lt_args="$lt_config_lt_args --quiet"
  588. exec AS_MESSAGE_LOG_FD>/dev/null
  589. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  590. exec AS_MESSAGE_LOG_FD>>config.log
  591. $lt_cl_success || AS_EXIT(1)
  592. ])# LT_OUTPUT
  593. # _LT_CONFIG(TAG)
  594. # ---------------
  595. # If TAG is the built-in tag, create an initial libtool script with a
  596. # default configuration from the untagged config vars. Otherwise add code
  597. # to config.status for appending the configuration named by TAG from the
  598. # matching tagged config vars.
  599. m4_defun([_LT_CONFIG],
  600. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  601. _LT_CONFIG_SAVE_COMMANDS([
  602. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  603. m4_if(_LT_TAG, [C], [
  604. # See if we are running on zsh, and set the options which allow our
  605. # commands through without removal of \ escapes.
  606. if test -n "${ZSH_VERSION+set}" ; then
  607. setopt NO_GLOB_SUBST
  608. fi
  609. cfgfile="${ofile}T"
  610. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  611. $RM "$cfgfile"
  612. cat <<_LT_EOF >> "$cfgfile"
  613. #! $SHELL
  614. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  615. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  616. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  617. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  618. #
  619. _LT_COPYING
  620. _LT_LIBTOOL_TAGS
  621. # ### BEGIN LIBTOOL CONFIG
  622. _LT_LIBTOOL_CONFIG_VARS
  623. _LT_LIBTOOL_TAG_VARS
  624. # ### END LIBTOOL CONFIG
  625. _LT_EOF
  626. case $host_os in
  627. aix3*)
  628. cat <<\_LT_EOF >> "$cfgfile"
  629. # AIX sometimes has problems with the GCC collect2 program. For some
  630. # reason, if we set the COLLECT_NAMES environment variable, the problems
  631. # vanish in a puff of smoke.
  632. if test "X${COLLECT_NAMES+set}" != Xset; then
  633. COLLECT_NAMES=
  634. export COLLECT_NAMES
  635. fi
  636. _LT_EOF
  637. ;;
  638. esac
  639. _LT_PROG_LTMAIN
  640. # We use sed instead of cat because bash on DJGPP gets confused if
  641. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  642. # text mode, it properly converts lines to CR/LF. This bash problem
  643. # is reportedly fixed, but why not run on old versions too?
  644. sed '$q' "$ltmain" >> "$cfgfile" \
  645. || (rm -f "$cfgfile"; exit 1)
  646. _LT_PROG_REPLACE_SHELLFNS
  647. mv -f "$cfgfile" "$ofile" ||
  648. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  649. chmod +x "$ofile"
  650. ],
  651. [cat <<_LT_EOF >> "$ofile"
  652. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  653. dnl in a comment (ie after a #).
  654. # ### BEGIN LIBTOOL TAG CONFIG: $1
  655. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  656. # ### END LIBTOOL TAG CONFIG: $1
  657. _LT_EOF
  658. ])dnl /m4_if
  659. ],
  660. [m4_if([$1], [], [
  661. PACKAGE='$PACKAGE'
  662. VERSION='$VERSION'
  663. TIMESTAMP='$TIMESTAMP'
  664. RM='$RM'
  665. ofile='$ofile'], [])
  666. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  667. ])# _LT_CONFIG
  668. # LT_SUPPORTED_TAG(TAG)
  669. # ---------------------
  670. # Trace this macro to discover what tags are supported by the libtool
  671. # --tag option, using:
  672. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  673. AC_DEFUN([LT_SUPPORTED_TAG], [])
  674. # C support is built-in for now
  675. m4_define([_LT_LANG_C_enabled], [])
  676. m4_define([_LT_TAGS], [])
  677. # LT_LANG(LANG)
  678. # -------------
  679. # Enable libtool support for the given language if not already enabled.
  680. AC_DEFUN([LT_LANG],
  681. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  682. m4_case([$1],
  683. [C], [_LT_LANG(C)],
  684. [C++], [_LT_LANG(CXX)],
  685. [Go], [_LT_LANG(GO)],
  686. [Java], [_LT_LANG(GCJ)],
  687. [Fortran 77], [_LT_LANG(F77)],
  688. [Fortran], [_LT_LANG(FC)],
  689. [Windows Resource], [_LT_LANG(RC)],
  690. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  691. [_LT_LANG($1)],
  692. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  693. ])# LT_LANG
  694. # _LT_LANG(LANGNAME)
  695. # ------------------
  696. m4_defun([_LT_LANG],
  697. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  698. [LT_SUPPORTED_TAG([$1])dnl
  699. m4_append([_LT_TAGS], [$1 ])dnl
  700. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  701. _LT_LANG_$1_CONFIG($1)])dnl
  702. ])# _LT_LANG
  703. m4_ifndef([AC_PROG_GO], [
  704. # NOTE: This macro has been submitted for inclusion into #
  705. # GNU Autoconf as AC_PROG_GO. When it is available in #
  706. # a released version of Autoconf we should remove this #
  707. # macro and use it instead. #
  708. m4_defun([AC_PROG_GO],
  709. [AC_LANG_PUSH(Go)dnl
  710. AC_ARG_VAR([GOC], [Go compiler command])dnl
  711. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  712. _AC_ARG_VAR_LDFLAGS()dnl
  713. AC_CHECK_TOOL(GOC, gccgo)
  714. if test -z "$GOC"; then
  715. if test -n "$ac_tool_prefix"; then
  716. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  717. fi
  718. fi
  719. if test -z "$GOC"; then
  720. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  721. fi
  722. ])#m4_defun
  723. ])#m4_ifndef
  724. # _LT_LANG_DEFAULT_CONFIG
  725. # -----------------------
  726. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  727. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  728. [LT_LANG(CXX)],
  729. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  730. AC_PROVIDE_IFELSE([AC_PROG_F77],
  731. [LT_LANG(F77)],
  732. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  733. AC_PROVIDE_IFELSE([AC_PROG_FC],
  734. [LT_LANG(FC)],
  735. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  736. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  737. dnl pulling things in needlessly.
  738. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  739. [LT_LANG(GCJ)],
  740. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  741. [LT_LANG(GCJ)],
  742. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  743. [LT_LANG(GCJ)],
  744. [m4_ifdef([AC_PROG_GCJ],
  745. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  746. m4_ifdef([A][M_PROG_GCJ],
  747. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  748. m4_ifdef([LT_PROG_GCJ],
  749. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  750. AC_PROVIDE_IFELSE([AC_PROG_GO],
  751. [LT_LANG(GO)],
  752. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  753. AC_PROVIDE_IFELSE([LT_PROG_RC],
  754. [LT_LANG(RC)],
  755. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  756. ])# _LT_LANG_DEFAULT_CONFIG
  757. # Obsolete macros:
  758. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  759. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  760. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  761. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  762. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  763. dnl aclocal-1.4 backwards compatibility:
  764. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  765. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  766. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  767. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  768. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  769. # _LT_TAG_COMPILER
  770. # ----------------
  771. m4_defun([_LT_TAG_COMPILER],
  772. [AC_REQUIRE([AC_PROG_CC])dnl
  773. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  774. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  775. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  776. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  777. # If no C compiler was specified, use CC.
  778. LTCC=${LTCC-"$CC"}
  779. # If no C compiler flags were specified, use CFLAGS.
  780. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  781. # Allow CC to be a program name with arguments.
  782. compiler=$CC
  783. ])# _LT_TAG_COMPILER
  784. # _LT_COMPILER_BOILERPLATE
  785. # ------------------------
  786. # Check for compiler boilerplate output or warnings with
  787. # the simple compiler test code.
  788. m4_defun([_LT_COMPILER_BOILERPLATE],
  789. [m4_require([_LT_DECL_SED])dnl
  790. ac_outfile=conftest.$ac_objext
  791. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  792. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  793. _lt_compiler_boilerplate=`cat conftest.err`
  794. $RM conftest*
  795. ])# _LT_COMPILER_BOILERPLATE
  796. # _LT_LINKER_BOILERPLATE
  797. # ----------------------
  798. # Check for linker boilerplate output or warnings with
  799. # the simple link test code.
  800. m4_defun([_LT_LINKER_BOILERPLATE],
  801. [m4_require([_LT_DECL_SED])dnl
  802. ac_outfile=conftest.$ac_objext
  803. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  804. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  805. _lt_linker_boilerplate=`cat conftest.err`
  806. $RM -r conftest*
  807. ])# _LT_LINKER_BOILERPLATE
  808. # _LT_REQUIRED_DARWIN_CHECKS
  809. # -------------------------
  810. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  811. case $host_os in
  812. rhapsody* | darwin*)
  813. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  814. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  815. AC_CHECK_TOOL([LIPO], [lipo], [:])
  816. AC_CHECK_TOOL([OTOOL], [otool], [:])
  817. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  818. _LT_DECL([], [DSYMUTIL], [1],
  819. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  820. _LT_DECL([], [NMEDIT], [1],
  821. [Tool to change global to local symbols on Mac OS X])
  822. _LT_DECL([], [LIPO], [1],
  823. [Tool to manipulate fat objects and archives on Mac OS X])
  824. _LT_DECL([], [OTOOL], [1],
  825. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  826. _LT_DECL([], [OTOOL64], [1],
  827. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  828. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  829. [lt_cv_apple_cc_single_mod=no
  830. if test -z "${LT_MULTI_MODULE}"; then
  831. # By default we will add the -single_module flag. You can override
  832. # by either setting the environment variable LT_MULTI_MODULE
  833. # non-empty at configure time, or by adding -multi_module to the
  834. # link flags.
  835. rm -rf libconftest.dylib*
  836. echo "int foo(void){return 1;}" > conftest.c
  837. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  838. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  839. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  840. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  841. _lt_result=$?
  842. # If there is a non-empty error log, and "single_module"
  843. # appears in it, assume the flag caused a linker warning
  844. if test -s conftest.err && $GREP single_module conftest.err; then
  845. cat conftest.err >&AS_MESSAGE_LOG_FD
  846. # Otherwise, if the output was created with a 0 exit code from
  847. # the compiler, it worked.
  848. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  849. lt_cv_apple_cc_single_mod=yes
  850. else
  851. cat conftest.err >&AS_MESSAGE_LOG_FD
  852. fi
  853. rm -rf libconftest.dylib*
  854. rm -f conftest.*
  855. fi])
  856. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  857. [lt_cv_ld_exported_symbols_list],
  858. [lt_cv_ld_exported_symbols_list=no
  859. save_LDFLAGS=$LDFLAGS
  860. echo "_main" > conftest.sym
  861. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  862. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  863. [lt_cv_ld_exported_symbols_list=yes],
  864. [lt_cv_ld_exported_symbols_list=no])
  865. LDFLAGS="$save_LDFLAGS"
  866. ])
  867. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  868. [lt_cv_ld_force_load=no
  869. cat > conftest.c << _LT_EOF
  870. int forced_loaded() { return 2;}
  871. _LT_EOF
  872. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  873. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  874. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  875. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  876. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  877. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  878. cat > conftest.c << _LT_EOF
  879. int main() { return 0;}
  880. _LT_EOF
  881. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  882. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  883. _lt_result=$?
  884. if test -s conftest.err && $GREP force_load conftest.err; then
  885. cat conftest.err >&AS_MESSAGE_LOG_FD
  886. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  887. lt_cv_ld_force_load=yes
  888. else
  889. cat conftest.err >&AS_MESSAGE_LOG_FD
  890. fi
  891. rm -f conftest.err libconftest.a conftest conftest.c
  892. rm -rf conftest.dSYM
  893. ])
  894. case $host_os in
  895. rhapsody* | darwin1.[[012]])
  896. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  897. darwin1.*)
  898. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  899. darwin*) # darwin 5.x on
  900. # if running on 10.5 or later, the deployment target defaults
  901. # to the OS version, if on x86, and 10.4, the deployment
  902. # target defaults to 10.4. Don't you love it?
  903. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  904. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  905. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  906. 10.[[012]]*)
  907. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  908. 10.*)
  909. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  910. esac
  911. ;;
  912. esac
  913. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  914. _lt_dar_single_mod='$single_module'
  915. fi
  916. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  917. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  918. else
  919. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  920. fi
  921. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  922. _lt_dsymutil='~$DSYMUTIL $lib || :'
  923. else
  924. _lt_dsymutil=
  925. fi
  926. ;;
  927. esac
  928. ])
  929. # _LT_DARWIN_LINKER_FEATURES([TAG])
  930. # ---------------------------------
  931. # Checks for linker and compiler features on darwin
  932. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  933. [
  934. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  935. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  936. _LT_TAGVAR(hardcode_direct, $1)=no
  937. _LT_TAGVAR(hardcode_automatic, $1)=yes
  938. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  939. if test "$lt_cv_ld_force_load" = "yes"; then
  940. _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\"`'
  941. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  942. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  943. else
  944. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  945. fi
  946. _LT_TAGVAR(link_all_deplibs, $1)=yes
  947. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  948. case $cc_basename in
  949. ifort*) _lt_dar_can_shared=yes ;;
  950. *) _lt_dar_can_shared=$GCC ;;
  951. esac
  952. if test "$_lt_dar_can_shared" = "yes"; then
  953. output_verbose_link_cmd=func_echo_all
  954. _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}"
  955. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  956. _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}"
  957. _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}"
  958. m4_if([$1], [CXX],
  959. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  960. _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}"
  961. _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}"
  962. fi
  963. ],[])
  964. else
  965. _LT_TAGVAR(ld_shlibs, $1)=no
  966. fi
  967. ])
  968. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  969. # ----------------------------------
  970. # Links a minimal program and checks the executable
  971. # for the system default hardcoded library path. In most cases,
  972. # this is /usr/lib:/lib, but when the MPI compilers are used
  973. # the location of the communication and MPI libs are included too.
  974. # If we don't find anything, use the default library path according
  975. # to the aix ld manual.
  976. # Store the results from the different compilers for each TAGNAME.
  977. # Allow to override them for all tags through lt_cv_aix_libpath.
  978. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  979. [m4_require([_LT_DECL_SED])dnl
  980. if test "${lt_cv_aix_libpath+set}" = set; then
  981. aix_libpath=$lt_cv_aix_libpath
  982. else
  983. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  984. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  985. lt_aix_libpath_sed='[
  986. /Import File Strings/,/^$/ {
  987. /^0/ {
  988. s/^0 *\([^ ]*\) *$/\1/
  989. p
  990. }
  991. }]'
  992. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  993. # Check for a 64-bit object if we didn't find anything.
  994. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  995. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  996. fi],[])
  997. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  998. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  999. fi
  1000. ])
  1001. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1002. fi
  1003. ])# _LT_SYS_MODULE_PATH_AIX
  1004. # _LT_SHELL_INIT(ARG)
  1005. # -------------------
  1006. m4_define([_LT_SHELL_INIT],
  1007. [m4_divert_text([M4SH-INIT], [$1
  1008. ])])# _LT_SHELL_INIT
  1009. # _LT_PROG_ECHO_BACKSLASH
  1010. # -----------------------
  1011. # Find how we can fake an echo command that does not interpret backslash.
  1012. # In particular, with Autoconf 2.60 or later we add some code to the start
  1013. # of the generated configure script which will find a shell with a builtin
  1014. # printf (which we can use as an echo command).
  1015. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1016. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1017. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1018. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1019. AC_MSG_CHECKING([how to print strings])
  1020. # Test print first, because it will be a builtin if present.
  1021. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1022. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1023. ECHO='print -r --'
  1024. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1025. ECHO='printf %s\n'
  1026. else
  1027. # Use this function as a fallback that always works.
  1028. func_fallback_echo ()
  1029. {
  1030. eval 'cat <<_LTECHO_EOF
  1031. $[]1
  1032. _LTECHO_EOF'
  1033. }
  1034. ECHO='func_fallback_echo'
  1035. fi
  1036. # func_echo_all arg...
  1037. # Invoke $ECHO with all args, space-separated.
  1038. func_echo_all ()
  1039. {
  1040. $ECHO "$*"
  1041. }
  1042. case "$ECHO" in
  1043. printf*) AC_MSG_RESULT([printf]) ;;
  1044. print*) AC_MSG_RESULT([print -r]) ;;
  1045. *) AC_MSG_RESULT([cat]) ;;
  1046. esac
  1047. m4_ifdef([_AS_DETECT_SUGGESTED],
  1048. [_AS_DETECT_SUGGESTED([
  1049. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1050. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1051. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1052. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1053. PATH=/empty FPATH=/empty; export PATH FPATH
  1054. test "X`printf %s $ECHO`" = "X$ECHO" \
  1055. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1056. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1057. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1058. ])# _LT_PROG_ECHO_BACKSLASH
  1059. # _LT_WITH_SYSROOT
  1060. # ----------------
  1061. AC_DEFUN([_LT_WITH_SYSROOT],
  1062. [AC_MSG_CHECKING([for sysroot])
  1063. AC_ARG_WITH([sysroot],
  1064. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1065. (or the compiler's sysroot if not specified).],
  1066. [], [with_sysroot=no])
  1067. dnl lt_sysroot will always be passed unquoted. We quote it here
  1068. dnl in case the user passed a directory name.
  1069. lt_sysroot=
  1070. case ${with_sysroot} in #(
  1071. yes)
  1072. if test "$GCC" = yes; then
  1073. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1074. fi
  1075. ;; #(
  1076. /*)
  1077. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1078. ;; #(
  1079. no|'')
  1080. ;; #(
  1081. *)
  1082. AC_MSG_RESULT([${with_sysroot}])
  1083. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1084. ;;
  1085. esac
  1086. AC_MSG_RESULT([${lt_sysroot:-no}])
  1087. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1088. [dependent libraries, and in which our libraries should be installed.])])
  1089. # _LT_ENABLE_LOCK
  1090. # ---------------
  1091. m4_defun([_LT_ENABLE_LOCK],
  1092. [AC_ARG_ENABLE([libtool-lock],
  1093. [AS_HELP_STRING([--disable-libtool-lock],
  1094. [avoid locking (might break parallel builds)])])
  1095. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1096. # Some flags need to be propagated to the compiler or linker for good
  1097. # libtool support.
  1098. case $host in
  1099. ia64-*-hpux*)
  1100. # Find out which ABI we are using.
  1101. echo 'int i;' > conftest.$ac_ext
  1102. if AC_TRY_EVAL(ac_compile); then
  1103. case `/usr/bin/file conftest.$ac_objext` in
  1104. *ELF-32*)
  1105. HPUX_IA64_MODE="32"
  1106. ;;
  1107. *ELF-64*)
  1108. HPUX_IA64_MODE="64"
  1109. ;;
  1110. esac
  1111. fi
  1112. rm -rf conftest*
  1113. ;;
  1114. *-*-irix6*)
  1115. # Find out which ABI we are using.
  1116. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1117. if AC_TRY_EVAL(ac_compile); then
  1118. if test "$lt_cv_prog_gnu_ld" = yes; then
  1119. case `/usr/bin/file conftest.$ac_objext` in
  1120. *32-bit*)
  1121. LD="${LD-ld} -melf32bsmip"
  1122. ;;
  1123. *N32*)
  1124. LD="${LD-ld} -melf32bmipn32"
  1125. ;;
  1126. *64-bit*)
  1127. LD="${LD-ld} -melf64bmip"
  1128. ;;
  1129. esac
  1130. else
  1131. case `/usr/bin/file conftest.$ac_objext` in
  1132. *32-bit*)
  1133. LD="${LD-ld} -32"
  1134. ;;
  1135. *N32*)
  1136. LD="${LD-ld} -n32"
  1137. ;;
  1138. *64-bit*)
  1139. LD="${LD-ld} -64"
  1140. ;;
  1141. esac
  1142. fi
  1143. fi
  1144. rm -rf conftest*
  1145. ;;
  1146. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1147. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1148. # Find out which ABI we are using.
  1149. echo 'int i;' > conftest.$ac_ext
  1150. if AC_TRY_EVAL(ac_compile); then
  1151. case `/usr/bin/file conftest.o` in
  1152. *32-bit*)
  1153. case $host in
  1154. x86_64-*kfreebsd*-gnu)
  1155. LD="${LD-ld} -m elf_i386_fbsd"
  1156. ;;
  1157. x86_64-*linux*)
  1158. LD="${LD-ld} -m elf_i386"
  1159. ;;
  1160. ppc64-*linux*|powerpc64-*linux*)
  1161. LD="${LD-ld} -m elf32ppclinux"
  1162. ;;
  1163. s390x-*linux*)
  1164. LD="${LD-ld} -m elf_s390"
  1165. ;;
  1166. sparc64-*linux*)
  1167. LD="${LD-ld} -m elf32_sparc"
  1168. ;;
  1169. esac
  1170. ;;
  1171. *64-bit*)
  1172. case $host in
  1173. x86_64-*kfreebsd*-gnu)
  1174. LD="${LD-ld} -m elf_x86_64_fbsd"
  1175. ;;
  1176. x86_64-*linux*)
  1177. LD="${LD-ld} -m elf_x86_64"
  1178. ;;
  1179. ppc*-*linux*|powerpc*-*linux*)
  1180. LD="${LD-ld} -m elf64ppc"
  1181. ;;
  1182. s390*-*linux*|s390*-*tpf*)
  1183. LD="${LD-ld} -m elf64_s390"
  1184. ;;
  1185. sparc*-*linux*)
  1186. LD="${LD-ld} -m elf64_sparc"
  1187. ;;
  1188. esac
  1189. ;;
  1190. esac
  1191. fi
  1192. rm -rf conftest*
  1193. ;;
  1194. *-*-sco3.2v5*)
  1195. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1196. SAVE_CFLAGS="$CFLAGS"
  1197. CFLAGS="$CFLAGS -belf"
  1198. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1199. [AC_LANG_PUSH(C)
  1200. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1201. AC_LANG_POP])
  1202. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1203. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1204. CFLAGS="$SAVE_CFLAGS"
  1205. fi
  1206. ;;
  1207. *-*solaris*)
  1208. # Find out which ABI we are using.
  1209. echo 'int i;' > conftest.$ac_ext
  1210. if AC_TRY_EVAL(ac_compile); then
  1211. case `/usr/bin/file conftest.o` in
  1212. *64-bit*)
  1213. case $lt_cv_prog_gnu_ld in
  1214. yes*)
  1215. case $host in
  1216. i?86-*-solaris*)
  1217. LD="${LD-ld} -m elf_x86_64"
  1218. ;;
  1219. sparc*-*-solaris*)
  1220. LD="${LD-ld} -m elf64_sparc"
  1221. ;;
  1222. esac
  1223. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1224. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1225. LD="${LD-ld}_sol2"
  1226. fi
  1227. ;;
  1228. *)
  1229. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1230. LD="${LD-ld} -64"
  1231. fi
  1232. ;;
  1233. esac
  1234. ;;
  1235. esac
  1236. fi
  1237. rm -rf conftest*
  1238. ;;
  1239. esac
  1240. need_locks="$enable_libtool_lock"
  1241. ])# _LT_ENABLE_LOCK
  1242. # _LT_PROG_AR
  1243. # -----------
  1244. m4_defun([_LT_PROG_AR],
  1245. [AC_CHECK_TOOLS(AR, [ar], false)
  1246. : ${AR=ar}
  1247. : ${AR_FLAGS=cru}
  1248. _LT_DECL([], [AR], [1], [The archiver])
  1249. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1250. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1251. [lt_cv_ar_at_file=no
  1252. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1253. [echo conftest.$ac_objext > conftest.lst
  1254. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1255. AC_TRY_EVAL([lt_ar_try])
  1256. if test "$ac_status" -eq 0; then
  1257. # Ensure the archiver fails upon bogus file names.
  1258. rm -f conftest.$ac_objext libconftest.a
  1259. AC_TRY_EVAL([lt_ar_try])
  1260. if test "$ac_status" -ne 0; then
  1261. lt_cv_ar_at_file=@
  1262. fi
  1263. fi
  1264. rm -f conftest.* libconftest.a
  1265. ])
  1266. ])
  1267. if test "x$lt_cv_ar_at_file" = xno; then
  1268. archiver_list_spec=
  1269. else
  1270. archiver_list_spec=$lt_cv_ar_at_file
  1271. fi
  1272. _LT_DECL([], [archiver_list_spec], [1],
  1273. [How to feed a file listing to the archiver])
  1274. ])# _LT_PROG_AR
  1275. # _LT_CMD_OLD_ARCHIVE
  1276. # -------------------
  1277. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1278. [_LT_PROG_AR
  1279. AC_CHECK_TOOL(STRIP, strip, :)
  1280. test -z "$STRIP" && STRIP=:
  1281. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1282. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1283. test -z "$RANLIB" && RANLIB=:
  1284. _LT_DECL([], [RANLIB], [1],
  1285. [Commands used to install an old-style archive])
  1286. # Determine commands to create old-style static archives.
  1287. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1288. old_postinstall_cmds='chmod 644 $oldlib'
  1289. old_postuninstall_cmds=
  1290. if test -n "$RANLIB"; then
  1291. case $host_os in
  1292. openbsd*)
  1293. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1294. ;;
  1295. *)
  1296. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1297. ;;
  1298. esac
  1299. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1300. fi
  1301. case $host_os in
  1302. darwin*)
  1303. lock_old_archive_extraction=yes ;;
  1304. *)
  1305. lock_old_archive_extraction=no ;;
  1306. esac
  1307. _LT_DECL([], [old_postinstall_cmds], [2])
  1308. _LT_DECL([], [old_postuninstall_cmds], [2])
  1309. _LT_TAGDECL([], [old_archive_cmds], [2],
  1310. [Commands used to build an old-style archive])
  1311. _LT_DECL([], [lock_old_archive_extraction], [0],
  1312. [Whether to use a lock for old archive extraction])
  1313. ])# _LT_CMD_OLD_ARCHIVE
  1314. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1315. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1316. # ----------------------------------------------------------------
  1317. # Check whether the given compiler option works
  1318. AC_DEFUN([_LT_COMPILER_OPTION],
  1319. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1320. m4_require([_LT_DECL_SED])dnl
  1321. AC_CACHE_CHECK([$1], [$2],
  1322. [$2=no
  1323. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1324. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1325. lt_compiler_flag="$3"
  1326. # Insert the option either (1) after the last *FLAGS variable, or
  1327. # (2) before a word containing "conftest.", or (3) at the end.
  1328. # Note that $ac_compile itself does not contain backslashes and begins
  1329. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1330. # The option is referenced via a variable to avoid confusing sed.
  1331. lt_compile=`echo "$ac_compile" | $SED \
  1332. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1333. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1334. -e 's:$: $lt_compiler_flag:'`
  1335. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1336. (eval "$lt_compile" 2>conftest.err)
  1337. ac_status=$?
  1338. cat conftest.err >&AS_MESSAGE_LOG_FD
  1339. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1340. if (exit $ac_status) && test -s "$ac_outfile"; then
  1341. # The compiler can only warn and ignore the option if not recognized
  1342. # So say no if there are warnings other than the usual output.
  1343. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1344. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1345. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1346. $2=yes
  1347. fi
  1348. fi
  1349. $RM conftest*
  1350. ])
  1351. if test x"[$]$2" = xyes; then
  1352. m4_if([$5], , :, [$5])
  1353. else
  1354. m4_if([$6], , :, [$6])
  1355. fi
  1356. ])# _LT_COMPILER_OPTION
  1357. # Old name:
  1358. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1359. dnl aclocal-1.4 backwards compatibility:
  1360. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1361. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1362. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1363. # ----------------------------------------------------
  1364. # Check whether the given linker option works
  1365. AC_DEFUN([_LT_LINKER_OPTION],
  1366. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1367. m4_require([_LT_DECL_SED])dnl
  1368. AC_CACHE_CHECK([$1], [$2],
  1369. [$2=no
  1370. save_LDFLAGS="$LDFLAGS"
  1371. LDFLAGS="$LDFLAGS $3"
  1372. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1373. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1374. # The linker can only warn and ignore the option if not recognized
  1375. # So say no if there are warnings
  1376. if test -s conftest.err; then
  1377. # Append any errors to the config.log.
  1378. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1379. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1380. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1381. if diff conftest.exp conftest.er2 >/dev/null; then
  1382. $2=yes
  1383. fi
  1384. else
  1385. $2=yes
  1386. fi
  1387. fi
  1388. $RM -r conftest*
  1389. LDFLAGS="$save_LDFLAGS"
  1390. ])
  1391. if test x"[$]$2" = xyes; then
  1392. m4_if([$4], , :, [$4])
  1393. else
  1394. m4_if([$5], , :, [$5])
  1395. fi
  1396. ])# _LT_LINKER_OPTION
  1397. # Old name:
  1398. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1399. dnl aclocal-1.4 backwards compatibility:
  1400. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1401. # LT_CMD_MAX_LEN
  1402. #---------------
  1403. AC_DEFUN([LT_CMD_MAX_LEN],
  1404. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1405. # find the maximum length of command line arguments
  1406. AC_MSG_CHECKING([the maximum length of command line arguments])
  1407. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1408. i=0
  1409. teststring="ABCD"
  1410. case $build_os in
  1411. msdosdjgpp*)
  1412. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1413. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1414. # during glob expansion). Even if it were fixed, the result of this
  1415. # check would be larger than it should be.
  1416. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1417. ;;
  1418. gnu*)
  1419. # Under GNU Hurd, this test is not required because there is
  1420. # no limit to the length of command line arguments.
  1421. # Libtool will interpret -1 as no limit whatsoever
  1422. lt_cv_sys_max_cmd_len=-1;
  1423. ;;
  1424. cygwin* | mingw* | cegcc*)
  1425. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1426. # about 5 minutes as the teststring grows exponentially.
  1427. # Worse, since 9x/ME are not pre-emptively multitasking,
  1428. # you end up with a "frozen" computer, even though with patience
  1429. # the test eventually succeeds (with a max line length of 256k).
  1430. # Instead, let's just punt: use the minimum linelength reported by
  1431. # all of the supported platforms: 8192 (on NT/2K/XP).
  1432. lt_cv_sys_max_cmd_len=8192;
  1433. ;;
  1434. mint*)
  1435. # On MiNT this can take a long time and run out of memory.
  1436. lt_cv_sys_max_cmd_len=8192;
  1437. ;;
  1438. amigaos*)
  1439. # On AmigaOS with pdksh, this test takes hours, literally.
  1440. # So we just punt and use a minimum line length of 8192.
  1441. lt_cv_sys_max_cmd_len=8192;
  1442. ;;
  1443. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1444. # This has been around since 386BSD, at least. Likely further.
  1445. if test -x /sbin/sysctl; then
  1446. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1447. elif test -x /usr/sbin/sysctl; then
  1448. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1449. else
  1450. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1451. fi
  1452. # And add a safety zone
  1453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1454. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1455. ;;
  1456. interix*)
  1457. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1458. lt_cv_sys_max_cmd_len=196608
  1459. ;;
  1460. os2*)
  1461. # The test takes a long time on OS/2.
  1462. lt_cv_sys_max_cmd_len=8192
  1463. ;;
  1464. osf*)
  1465. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1466. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1467. # nice to cause kernel panics so lets avoid the loop below.
  1468. # First set a reasonable default.
  1469. lt_cv_sys_max_cmd_len=16384
  1470. #
  1471. if test -x /sbin/sysconfig; then
  1472. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1473. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1474. esac
  1475. fi
  1476. ;;
  1477. sco3.2v5*)
  1478. lt_cv_sys_max_cmd_len=102400
  1479. ;;
  1480. sysv5* | sco5v6* | sysv4.2uw2*)
  1481. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1482. if test -n "$kargmax"; then
  1483. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1484. else
  1485. lt_cv_sys_max_cmd_len=32768
  1486. fi
  1487. ;;
  1488. *)
  1489. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1490. if test -n "$lt_cv_sys_max_cmd_len"; then
  1491. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1492. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1493. else
  1494. # Make teststring a little bigger before we do anything with it.
  1495. # a 1K string should be a reasonable start.
  1496. for i in 1 2 3 4 5 6 7 8 ; do
  1497. teststring=$teststring$teststring
  1498. done
  1499. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1500. # If test is not a shell built-in, we'll probably end up computing a
  1501. # maximum length that is only half of the actual maximum length, but
  1502. # we can't tell.
  1503. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1504. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1505. test $i != 17 # 1/2 MB should be enough
  1506. do
  1507. i=`expr $i + 1`
  1508. teststring=$teststring$teststring
  1509. done
  1510. # Only check the string length outside the loop.
  1511. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1512. teststring=
  1513. # Add a significant safety factor because C++ compilers can tack on
  1514. # massive amounts of additional arguments before passing them to the
  1515. # linker. It appears as though 1/2 is a usable value.
  1516. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1517. fi
  1518. ;;
  1519. esac
  1520. ])
  1521. if test -n $lt_cv_sys_max_cmd_len ; then
  1522. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1523. else
  1524. AC_MSG_RESULT(none)
  1525. fi
  1526. max_cmd_len=$lt_cv_sys_max_cmd_len
  1527. _LT_DECL([], [max_cmd_len], [0],
  1528. [What is the maximum length of a command?])
  1529. ])# LT_CMD_MAX_LEN
  1530. # Old name:
  1531. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1532. dnl aclocal-1.4 backwards compatibility:
  1533. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1534. # _LT_HEADER_DLFCN
  1535. # ----------------
  1536. m4_defun([_LT_HEADER_DLFCN],
  1537. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1538. ])# _LT_HEADER_DLFCN
  1539. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1540. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1541. # ----------------------------------------------------------------
  1542. m4_defun([_LT_TRY_DLOPEN_SELF],
  1543. [m4_require([_LT_HEADER_DLFCN])dnl
  1544. if test "$cross_compiling" = yes; then :
  1545. [$4]
  1546. else
  1547. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1548. lt_status=$lt_dlunknown
  1549. cat > conftest.$ac_ext <<_LT_EOF
  1550. [#line $LINENO "configure"
  1551. #include "confdefs.h"
  1552. #if HAVE_DLFCN_H
  1553. #include <dlfcn.h>
  1554. #endif
  1555. #include <stdio.h>
  1556. #ifdef RTLD_GLOBAL
  1557. # define LT_DLGLOBAL RTLD_GLOBAL
  1558. #else
  1559. # ifdef DL_GLOBAL
  1560. # define LT_DLGLOBAL DL_GLOBAL
  1561. # else
  1562. # define LT_DLGLOBAL 0
  1563. # endif
  1564. #endif
  1565. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1566. find out it does not work in some platform. */
  1567. #ifndef LT_DLLAZY_OR_NOW
  1568. # ifdef RTLD_LAZY
  1569. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1570. # else
  1571. # ifdef DL_LAZY
  1572. # define LT_DLLAZY_OR_NOW DL_LAZY
  1573. # else
  1574. # ifdef RTLD_NOW
  1575. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1576. # else
  1577. # ifdef DL_NOW
  1578. # define LT_DLLAZY_OR_NOW DL_NOW
  1579. # else
  1580. # define LT_DLLAZY_OR_NOW 0
  1581. # endif
  1582. # endif
  1583. # endif
  1584. # endif
  1585. #endif
  1586. /* When -fvisbility=hidden is used, assume the code has been annotated
  1587. correspondingly for the symbols needed. */
  1588. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1589. int fnord () __attribute__((visibility("default")));
  1590. #endif
  1591. int fnord () { return 42; }
  1592. int main ()
  1593. {
  1594. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1595. int status = $lt_dlunknown;
  1596. if (self)
  1597. {
  1598. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1599. else
  1600. {
  1601. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1602. else puts (dlerror ());
  1603. }
  1604. /* dlclose (self); */
  1605. }
  1606. else
  1607. puts (dlerror ());
  1608. return status;
  1609. }]
  1610. _LT_EOF
  1611. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1612. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1613. lt_status=$?
  1614. case x$lt_status in
  1615. x$lt_dlno_uscore) $1 ;;
  1616. x$lt_dlneed_uscore) $2 ;;
  1617. x$lt_dlunknown|x*) $3 ;;
  1618. esac
  1619. else :
  1620. # compilation failed
  1621. $3
  1622. fi
  1623. fi
  1624. rm -fr conftest*
  1625. ])# _LT_TRY_DLOPEN_SELF
  1626. # LT_SYS_DLOPEN_SELF
  1627. # ------------------
  1628. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1629. [m4_require([_LT_HEADER_DLFCN])dnl
  1630. if test "x$enable_dlopen" != xyes; then
  1631. enable_dlopen=unknown
  1632. enable_dlopen_self=unknown
  1633. enable_dlopen_self_static=unknown
  1634. else
  1635. lt_cv_dlopen=no
  1636. lt_cv_dlopen_libs=
  1637. case $host_os in
  1638. beos*)
  1639. lt_cv_dlopen="load_add_on"
  1640. lt_cv_dlopen_libs=
  1641. lt_cv_dlopen_self=yes
  1642. ;;
  1643. mingw* | pw32* | cegcc*)
  1644. lt_cv_dlopen="LoadLibrary"
  1645. lt_cv_dlopen_libs=
  1646. ;;
  1647. cygwin*)
  1648. lt_cv_dlopen="dlopen"
  1649. lt_cv_dlopen_libs=
  1650. ;;
  1651. darwin*)
  1652. # if libdl is installed we need to link against it
  1653. AC_CHECK_LIB([dl], [dlopen],
  1654. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1655. lt_cv_dlopen="dyld"
  1656. lt_cv_dlopen_libs=
  1657. lt_cv_dlopen_self=yes
  1658. ])
  1659. ;;
  1660. *)
  1661. AC_CHECK_FUNC([shl_load],
  1662. [lt_cv_dlopen="shl_load"],
  1663. [AC_CHECK_LIB([dld], [shl_load],
  1664. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1665. [AC_CHECK_FUNC([dlopen],
  1666. [lt_cv_dlopen="dlopen"],
  1667. [AC_CHECK_LIB([dl], [dlopen],
  1668. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1669. [AC_CHECK_LIB([svld], [dlopen],
  1670. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1671. [AC_CHECK_LIB([dld], [dld_link],
  1672. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1673. ])
  1674. ])
  1675. ])
  1676. ])
  1677. ])
  1678. ;;
  1679. esac
  1680. if test "x$lt_cv_dlopen" != xno; then
  1681. enable_dlopen=yes
  1682. else
  1683. enable_dlopen=no
  1684. fi
  1685. case $lt_cv_dlopen in
  1686. dlopen)
  1687. save_CPPFLAGS="$CPPFLAGS"
  1688. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1689. save_LDFLAGS="$LDFLAGS"
  1690. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1691. save_LIBS="$LIBS"
  1692. LIBS="$lt_cv_dlopen_libs $LIBS"
  1693. AC_CACHE_CHECK([whether a program can dlopen itself],
  1694. lt_cv_dlopen_self, [dnl
  1695. _LT_TRY_DLOPEN_SELF(
  1696. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1697. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1698. ])
  1699. if test "x$lt_cv_dlopen_self" = xyes; then
  1700. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1701. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1702. lt_cv_dlopen_self_static, [dnl
  1703. _LT_TRY_DLOPEN_SELF(
  1704. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1705. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1706. ])
  1707. fi
  1708. CPPFLAGS="$save_CPPFLAGS"
  1709. LDFLAGS="$save_LDFLAGS"
  1710. LIBS="$save_LIBS"
  1711. ;;
  1712. esac
  1713. case $lt_cv_dlopen_self in
  1714. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1715. *) enable_dlopen_self=unknown ;;
  1716. esac
  1717. case $lt_cv_dlopen_self_static in
  1718. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1719. *) enable_dlopen_self_static=unknown ;;
  1720. esac
  1721. fi
  1722. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1723. [Whether dlopen is supported])
  1724. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1725. [Whether dlopen of programs is supported])
  1726. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1727. [Whether dlopen of statically linked programs is supported])
  1728. ])# LT_SYS_DLOPEN_SELF
  1729. # Old name:
  1730. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1731. dnl aclocal-1.4 backwards compatibility:
  1732. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1733. # _LT_COMPILER_C_O([TAGNAME])
  1734. # ---------------------------
  1735. # Check to see if options -c and -o are simultaneously supported by compiler.
  1736. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1737. m4_defun([_LT_COMPILER_C_O],
  1738. [m4_require([_LT_DECL_SED])dnl
  1739. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1740. m4_require([_LT_TAG_COMPILER])dnl
  1741. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1742. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1743. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1744. $RM -r conftest 2>/dev/null
  1745. mkdir conftest
  1746. cd conftest
  1747. mkdir out
  1748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1749. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1750. # Insert the option either (1) after the last *FLAGS variable, or
  1751. # (2) before a word containing "conftest.", or (3) at the end.
  1752. # Note that $ac_compile itself does not contain backslashes and begins
  1753. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1754. lt_compile=`echo "$ac_compile" | $SED \
  1755. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1756. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1757. -e 's:$: $lt_compiler_flag:'`
  1758. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1759. (eval "$lt_compile" 2>out/conftest.err)
  1760. ac_status=$?
  1761. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1762. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1763. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1764. then
  1765. # The compiler can only warn and ignore the option if not recognized
  1766. # So say no if there are warnings
  1767. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1768. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1769. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1770. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1771. fi
  1772. fi
  1773. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1774. $RM conftest*
  1775. # SGI C++ compiler will create directory out/ii_files/ for
  1776. # template instantiation
  1777. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1778. $RM out/* && rmdir out
  1779. cd ..
  1780. $RM -r conftest
  1781. $RM conftest*
  1782. ])
  1783. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1784. [Does compiler simultaneously support -c and -o options?])
  1785. ])# _LT_COMPILER_C_O
  1786. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1787. # ----------------------------------
  1788. # Check to see if we can do hard links to lock some files if needed
  1789. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1790. [m4_require([_LT_ENABLE_LOCK])dnl
  1791. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1792. _LT_COMPILER_C_O([$1])
  1793. hard_links="nottested"
  1794. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1795. # do not overwrite the value of need_locks provided by the user
  1796. AC_MSG_CHECKING([if we can lock with hard links])
  1797. hard_links=yes
  1798. $RM conftest*
  1799. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1800. touch conftest.a
  1801. ln conftest.a conftest.b 2>&5 || hard_links=no
  1802. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1803. AC_MSG_RESULT([$hard_links])
  1804. if test "$hard_links" = no; then
  1805. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1806. need_locks=warn
  1807. fi
  1808. else
  1809. need_locks=no
  1810. fi
  1811. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1812. ])# _LT_COMPILER_FILE_LOCKS
  1813. # _LT_CHECK_OBJDIR
  1814. # ----------------
  1815. m4_defun([_LT_CHECK_OBJDIR],
  1816. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1817. [rm -f .libs 2>/dev/null
  1818. mkdir .libs 2>/dev/null
  1819. if test -d .libs; then
  1820. lt_cv_objdir=.libs
  1821. else
  1822. # MS-DOS does not allow filenames that begin with a dot.
  1823. lt_cv_objdir=_libs
  1824. fi
  1825. rmdir .libs 2>/dev/null])
  1826. objdir=$lt_cv_objdir
  1827. _LT_DECL([], [objdir], [0],
  1828. [The name of the directory that contains temporary libtool files])dnl
  1829. m4_pattern_allow([LT_OBJDIR])dnl
  1830. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1831. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1832. ])# _LT_CHECK_OBJDIR
  1833. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1834. # --------------------------------------
  1835. # Check hardcoding attributes.
  1836. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1837. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1838. _LT_TAGVAR(hardcode_action, $1)=
  1839. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1840. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1841. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1842. # We can hardcode non-existent directories.
  1843. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1844. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1845. # have to relink, otherwise we might link with an installed library
  1846. # when we should be linking with a yet-to-be-installed one
  1847. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1848. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1849. # Linking always hardcodes the temporary library directory.
  1850. _LT_TAGVAR(hardcode_action, $1)=relink
  1851. else
  1852. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1853. _LT_TAGVAR(hardcode_action, $1)=immediate
  1854. fi
  1855. else
  1856. # We cannot hardcode anything, or else we can only hardcode existing
  1857. # directories.
  1858. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1859. fi
  1860. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1861. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1862. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1863. # Fast installation is not supported
  1864. enable_fast_install=no
  1865. elif test "$shlibpath_overrides_runpath" = yes ||
  1866. test "$enable_shared" = no; then
  1867. # Fast installation is not necessary
  1868. enable_fast_install=needless
  1869. fi
  1870. _LT_TAGDECL([], [hardcode_action], [0],
  1871. [How to hardcode a shared library path into an executable])
  1872. ])# _LT_LINKER_HARDCODE_LIBPATH
  1873. # _LT_CMD_STRIPLIB
  1874. # ----------------
  1875. m4_defun([_LT_CMD_STRIPLIB],
  1876. [m4_require([_LT_DECL_EGREP])
  1877. striplib=
  1878. old_striplib=
  1879. AC_MSG_CHECKING([whether stripping libraries is possible])
  1880. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1881. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1882. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1883. AC_MSG_RESULT([yes])
  1884. else
  1885. # FIXME - insert some real tests, host_os isn't really good enough
  1886. case $host_os in
  1887. darwin*)
  1888. if test -n "$STRIP" ; then
  1889. striplib="$STRIP -x"
  1890. old_striplib="$STRIP -S"
  1891. AC_MSG_RESULT([yes])
  1892. else
  1893. AC_MSG_RESULT([no])
  1894. fi
  1895. ;;
  1896. *)
  1897. AC_MSG_RESULT([no])
  1898. ;;
  1899. esac
  1900. fi
  1901. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1902. _LT_DECL([], [striplib], [1])
  1903. ])# _LT_CMD_STRIPLIB
  1904. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1905. # -----------------------------
  1906. # PORTME Fill in your ld.so characteristics
  1907. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1908. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1909. m4_require([_LT_DECL_EGREP])dnl
  1910. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1911. m4_require([_LT_DECL_OBJDUMP])dnl
  1912. m4_require([_LT_DECL_SED])dnl
  1913. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1914. AC_MSG_CHECKING([dynamic linker characteristics])
  1915. m4_if([$1],
  1916. [], [
  1917. if test "$GCC" = yes; then
  1918. case $host_os in
  1919. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1920. *) lt_awk_arg="/^libraries:/" ;;
  1921. esac
  1922. case $host_os in
  1923. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1924. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1925. esac
  1926. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1927. case $lt_search_path_spec in
  1928. *\;*)
  1929. # if the path contains ";" then we assume it to be the separator
  1930. # otherwise default to the standard path separator (i.e. ":") - it is
  1931. # assumed that no part of a normal pathname contains ";" but that should
  1932. # okay in the real world where ";" in dirpaths is itself problematic.
  1933. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1934. ;;
  1935. *)
  1936. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1937. ;;
  1938. esac
  1939. # Ok, now we have the path, separated by spaces, we can step through it
  1940. # and add multilib dir if necessary.
  1941. lt_tmp_lt_search_path_spec=
  1942. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1943. for lt_sys_path in $lt_search_path_spec; do
  1944. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1945. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1946. else
  1947. test -d "$lt_sys_path" && \
  1948. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1949. fi
  1950. done
  1951. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1952. BEGIN {RS=" "; FS="/|\n";} {
  1953. lt_foo="";
  1954. lt_count=0;
  1955. for (lt_i = NF; lt_i > 0; lt_i--) {
  1956. if ($lt_i != "" && $lt_i != ".") {
  1957. if ($lt_i == "..") {
  1958. lt_count++;
  1959. } else {
  1960. if (lt_count == 0) {
  1961. lt_foo="/" $lt_i lt_foo;
  1962. } else {
  1963. lt_count--;
  1964. }
  1965. }
  1966. }
  1967. }
  1968. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1969. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1970. }'`
  1971. # AWK program above erroneously prepends '/' to C:/dos/paths
  1972. # for these hosts.
  1973. case $host_os in
  1974. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1975. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1976. esac
  1977. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1978. else
  1979. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1980. fi])
  1981. library_names_spec=
  1982. libname_spec='lib$name'
  1983. soname_spec=
  1984. shrext_cmds=".so"
  1985. postinstall_cmds=
  1986. postuninstall_cmds=
  1987. finish_cmds=
  1988. finish_eval=
  1989. shlibpath_var=
  1990. shlibpath_overrides_runpath=unknown
  1991. version_type=none
  1992. dynamic_linker="$host_os ld.so"
  1993. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1994. need_lib_prefix=unknown
  1995. hardcode_into_libs=no
  1996. # when you set need_version to no, make sure it does not cause -set_version
  1997. # flags to be left without arguments
  1998. need_version=unknown
  1999. case $host_os in
  2000. aix3*)
  2001. version_type=linux # correct to gnu/linux during the next big refactor
  2002. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2003. shlibpath_var=LIBPATH
  2004. # AIX 3 has no versioning support, so we append a major version to the name.
  2005. soname_spec='${libname}${release}${shared_ext}$major'
  2006. ;;
  2007. aix[[4-9]]*)
  2008. version_type=linux # correct to gnu/linux during the next big refactor
  2009. need_lib_prefix=no
  2010. need_version=no
  2011. hardcode_into_libs=yes
  2012. if test "$host_cpu" = ia64; then
  2013. # AIX 5 supports IA64
  2014. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2015. shlibpath_var=LD_LIBRARY_PATH
  2016. else
  2017. # With GCC up to 2.95.x, collect2 would create an import file
  2018. # for dependence libraries. The import file would start with
  2019. # the line `#! .'. This would cause the generated library to
  2020. # depend on `.', always an invalid library. This was fixed in
  2021. # development snapshots of GCC prior to 3.0.
  2022. case $host_os in
  2023. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2024. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2025. echo ' yes '
  2026. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2027. :
  2028. else
  2029. can_build_shared=no
  2030. fi
  2031. ;;
  2032. esac
  2033. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2034. # soname into executable. Probably we can add versioning support to
  2035. # collect2, so additional links can be useful in future.
  2036. if test "$aix_use_runtimelinking" = yes; then
  2037. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2038. # instead of lib<name>.a to let people know that these are not
  2039. # typical AIX shared libraries.
  2040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2041. else
  2042. # We preserve .a as extension for shared libraries through AIX4.2
  2043. # and later when we are not doing run time linking.
  2044. library_names_spec='${libname}${release}.a $libname.a'
  2045. soname_spec='${libname}${release}${shared_ext}$major'
  2046. fi
  2047. shlibpath_var=LIBPATH
  2048. fi
  2049. ;;
  2050. amigaos*)
  2051. case $host_cpu in
  2052. powerpc)
  2053. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2054. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2056. ;;
  2057. m68k)
  2058. library_names_spec='$libname.ixlibrary $libname.a'
  2059. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2060. 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'
  2061. ;;
  2062. esac
  2063. ;;
  2064. beos*)
  2065. library_names_spec='${libname}${shared_ext}'
  2066. dynamic_linker="$host_os ld.so"
  2067. shlibpath_var=LIBRARY_PATH
  2068. ;;
  2069. bsdi[[45]]*)
  2070. version_type=linux # correct to gnu/linux during the next big refactor
  2071. need_version=no
  2072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2073. soname_spec='${libname}${release}${shared_ext}$major'
  2074. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2075. shlibpath_var=LD_LIBRARY_PATH
  2076. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2077. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2078. # the default ld.so.conf also contains /usr/contrib/lib and
  2079. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2080. # libtool to hard-code these into programs
  2081. ;;
  2082. cygwin* | mingw* | pw32* | cegcc*)
  2083. version_type=windows
  2084. shrext_cmds=".dll"
  2085. need_version=no
  2086. need_lib_prefix=no
  2087. case $GCC,$cc_basename in
  2088. yes,*)
  2089. # gcc
  2090. library_names_spec='$libname.dll.a'
  2091. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2092. postinstall_cmds='base_file=`basename \${file}`~
  2093. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2094. dldir=$destdir/`dirname \$dlpath`~
  2095. test -d \$dldir || mkdir -p \$dldir~
  2096. $install_prog $dir/$dlname \$dldir/$dlname~
  2097. chmod a+x \$dldir/$dlname~
  2098. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2099. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2100. fi'
  2101. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2102. dlpath=$dir/\$dldll~
  2103. $RM \$dlpath'
  2104. shlibpath_overrides_runpath=yes
  2105. case $host_os in
  2106. cygwin*)
  2107. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2108. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2109. m4_if([$1], [],[
  2110. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2111. ;;
  2112. mingw* | cegcc*)
  2113. # MinGW DLLs use traditional 'lib' prefix
  2114. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2115. ;;
  2116. pw32*)
  2117. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2118. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2119. ;;
  2120. esac
  2121. dynamic_linker='Win32 ld.exe'
  2122. ;;
  2123. *,cl*)
  2124. # Native MSVC
  2125. libname_spec='$name'
  2126. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2127. library_names_spec='${libname}.dll.lib'
  2128. case $build_os in
  2129. mingw*)
  2130. sys_lib_search_path_spec=
  2131. lt_save_ifs=$IFS
  2132. IFS=';'
  2133. for lt_path in $LIB
  2134. do
  2135. IFS=$lt_save_ifs
  2136. # Let DOS variable expansion print the short 8.3 style file name.
  2137. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2138. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2139. done
  2140. IFS=$lt_save_ifs
  2141. # Convert to MSYS style.
  2142. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2143. ;;
  2144. cygwin*)
  2145. # Convert to unix form, then to dos form, then back to unix form
  2146. # but this time dos style (no spaces!) so that the unix form looks
  2147. # like /cygdrive/c/PROGRA~1:/cygdr...
  2148. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2149. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2150. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2151. ;;
  2152. *)
  2153. sys_lib_search_path_spec="$LIB"
  2154. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2155. # It is most probably a Windows format PATH.
  2156. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2157. else
  2158. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2159. fi
  2160. # FIXME: find the short name or the path components, as spaces are
  2161. # common. (e.g. "Program Files" -> "PROGRA~1")
  2162. ;;
  2163. esac
  2164. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2165. postinstall_cmds='base_file=`basename \${file}`~
  2166. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2167. dldir=$destdir/`dirname \$dlpath`~
  2168. test -d \$dldir || mkdir -p \$dldir~
  2169. $install_prog $dir/$dlname \$dldir/$dlname'
  2170. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2171. dlpath=$dir/\$dldll~
  2172. $RM \$dlpath'
  2173. shlibpath_overrides_runpath=yes
  2174. dynamic_linker='Win32 link.exe'
  2175. ;;
  2176. *)
  2177. # Assume MSVC wrapper
  2178. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2179. dynamic_linker='Win32 ld.exe'
  2180. ;;
  2181. esac
  2182. # FIXME: first we should search . and the directory the executable is in
  2183. shlibpath_var=PATH
  2184. ;;
  2185. darwin* | rhapsody*)
  2186. dynamic_linker="$host_os dyld"
  2187. version_type=darwin
  2188. need_lib_prefix=no
  2189. need_version=no
  2190. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2191. soname_spec='${libname}${release}${major}$shared_ext'
  2192. shlibpath_overrides_runpath=yes
  2193. shlibpath_var=DYLD_LIBRARY_PATH
  2194. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2195. m4_if([$1], [],[
  2196. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2197. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2198. ;;
  2199. dgux*)
  2200. version_type=linux # correct to gnu/linux during the next big refactor
  2201. need_lib_prefix=no
  2202. need_version=no
  2203. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2204. soname_spec='${libname}${release}${shared_ext}$major'
  2205. shlibpath_var=LD_LIBRARY_PATH
  2206. ;;
  2207. freebsd* | dragonfly*)
  2208. # DragonFly does not have aout. When/if they implement a new
  2209. # versioning mechanism, adjust this.
  2210. if test -x /usr/bin/objformat; then
  2211. objformat=`/usr/bin/objformat`
  2212. else
  2213. case $host_os in
  2214. freebsd[[23]].*) objformat=aout ;;
  2215. *) objformat=elf ;;
  2216. esac
  2217. fi
  2218. version_type=freebsd-$objformat
  2219. case $version_type in
  2220. freebsd-elf*)
  2221. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2222. need_version=no
  2223. need_lib_prefix=no
  2224. ;;
  2225. freebsd-*)
  2226. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2227. need_version=yes
  2228. ;;
  2229. esac
  2230. shlibpath_var=LD_LIBRARY_PATH
  2231. case $host_os in
  2232. freebsd2.*)
  2233. shlibpath_overrides_runpath=yes
  2234. ;;
  2235. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2236. shlibpath_overrides_runpath=yes
  2237. hardcode_into_libs=yes
  2238. ;;
  2239. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2240. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2241. shlibpath_overrides_runpath=no
  2242. hardcode_into_libs=yes
  2243. ;;
  2244. *) # from 4.6 on, and DragonFly
  2245. shlibpath_overrides_runpath=yes
  2246. hardcode_into_libs=yes
  2247. ;;
  2248. esac
  2249. ;;
  2250. gnu*)
  2251. version_type=linux # correct to gnu/linux during the next big refactor
  2252. need_lib_prefix=no
  2253. need_version=no
  2254. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2255. soname_spec='${libname}${release}${shared_ext}$major'
  2256. shlibpath_var=LD_LIBRARY_PATH
  2257. shlibpath_overrides_runpath=no
  2258. hardcode_into_libs=yes
  2259. ;;
  2260. haiku*)
  2261. version_type=linux # correct to gnu/linux during the next big refactor
  2262. need_lib_prefix=no
  2263. need_version=no
  2264. dynamic_linker="$host_os runtime_loader"
  2265. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2266. soname_spec='${libname}${release}${shared_ext}$major'
  2267. shlibpath_var=LIBRARY_PATH
  2268. shlibpath_overrides_runpath=yes
  2269. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2270. hardcode_into_libs=yes
  2271. ;;
  2272. hpux9* | hpux10* | hpux11*)
  2273. # Give a soname corresponding to the major version so that dld.sl refuses to
  2274. # link against other versions.
  2275. version_type=sunos
  2276. need_lib_prefix=no
  2277. need_version=no
  2278. case $host_cpu in
  2279. ia64*)
  2280. shrext_cmds='.so'
  2281. hardcode_into_libs=yes
  2282. dynamic_linker="$host_os dld.so"
  2283. shlibpath_var=LD_LIBRARY_PATH
  2284. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2285. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2286. soname_spec='${libname}${release}${shared_ext}$major'
  2287. if test "X$HPUX_IA64_MODE" = X32; then
  2288. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2289. else
  2290. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2291. fi
  2292. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2293. ;;
  2294. hppa*64*)
  2295. shrext_cmds='.sl'
  2296. hardcode_into_libs=yes
  2297. dynamic_linker="$host_os dld.sl"
  2298. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2299. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2301. soname_spec='${libname}${release}${shared_ext}$major'
  2302. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2303. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2304. ;;
  2305. *)
  2306. shrext_cmds='.sl'
  2307. dynamic_linker="$host_os dld.sl"
  2308. shlibpath_var=SHLIB_PATH
  2309. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2310. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2311. soname_spec='${libname}${release}${shared_ext}$major'
  2312. ;;
  2313. esac
  2314. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2315. postinstall_cmds='chmod 555 $lib'
  2316. # or fails outright, so override atomically:
  2317. install_override_mode=555
  2318. ;;
  2319. interix[[3-9]]*)
  2320. version_type=linux # correct to gnu/linux during the next big refactor
  2321. need_lib_prefix=no
  2322. need_version=no
  2323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2324. soname_spec='${libname}${release}${shared_ext}$major'
  2325. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2326. shlibpath_var=LD_LIBRARY_PATH
  2327. shlibpath_overrides_runpath=no
  2328. hardcode_into_libs=yes
  2329. ;;
  2330. irix5* | irix6* | nonstopux*)
  2331. case $host_os in
  2332. nonstopux*) version_type=nonstopux ;;
  2333. *)
  2334. if test "$lt_cv_prog_gnu_ld" = yes; then
  2335. version_type=linux # correct to gnu/linux during the next big refactor
  2336. else
  2337. version_type=irix
  2338. fi ;;
  2339. esac
  2340. need_lib_prefix=no
  2341. need_version=no
  2342. soname_spec='${libname}${release}${shared_ext}$major'
  2343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2344. case $host_os in
  2345. irix5* | nonstopux*)
  2346. libsuff= shlibsuff=
  2347. ;;
  2348. *)
  2349. case $LD in # libtool.m4 will add one of these switches to LD
  2350. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2351. libsuff= shlibsuff= libmagic=32-bit;;
  2352. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2353. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2354. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2355. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2356. *) libsuff= shlibsuff= libmagic=never-match;;
  2357. esac
  2358. ;;
  2359. esac
  2360. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2361. shlibpath_overrides_runpath=no
  2362. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2363. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2364. hardcode_into_libs=yes
  2365. ;;
  2366. # No shared lib support for Linux oldld, aout, or coff.
  2367. linux*oldld* | linux*aout* | linux*coff*)
  2368. dynamic_linker=no
  2369. ;;
  2370. # This must be glibc/ELF.
  2371. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2372. version_type=linux # correct to gnu/linux during the next big refactor
  2373. need_lib_prefix=no
  2374. need_version=no
  2375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2376. soname_spec='${libname}${release}${shared_ext}$major'
  2377. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2378. shlibpath_var=LD_LIBRARY_PATH
  2379. shlibpath_overrides_runpath=no
  2380. # Some binutils ld are patched to set DT_RUNPATH
  2381. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2382. [lt_cv_shlibpath_overrides_runpath=no
  2383. save_LDFLAGS=$LDFLAGS
  2384. save_libdir=$libdir
  2385. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2386. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2387. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2388. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2389. [lt_cv_shlibpath_overrides_runpath=yes])])
  2390. LDFLAGS=$save_LDFLAGS
  2391. libdir=$save_libdir
  2392. ])
  2393. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2394. # This implies no fast_install, which is unacceptable.
  2395. # Some rework will be needed to allow for fast_install
  2396. # before this can be enabled.
  2397. hardcode_into_libs=yes
  2398. # Append ld.so.conf contents to the search path
  2399. if test -f /etc/ld.so.conf; then
  2400. 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' ' '`
  2401. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2402. fi
  2403. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2404. # powerpc, because MkLinux only supported shared libraries with the
  2405. # GNU dynamic linker. Since this was broken with cross compilers,
  2406. # most powerpc-linux boxes support dynamic linking these days and
  2407. # people can always --disable-shared, the test was removed, and we
  2408. # assume the GNU/Linux dynamic linker is in use.
  2409. dynamic_linker='GNU/Linux ld.so'
  2410. ;;
  2411. netbsdelf*-gnu)
  2412. version_type=linux
  2413. need_lib_prefix=no
  2414. need_version=no
  2415. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2416. soname_spec='${libname}${release}${shared_ext}$major'
  2417. shlibpath_var=LD_LIBRARY_PATH
  2418. shlibpath_overrides_runpath=no
  2419. hardcode_into_libs=yes
  2420. dynamic_linker='NetBSD ld.elf_so'
  2421. ;;
  2422. netbsd*)
  2423. version_type=sunos
  2424. need_lib_prefix=no
  2425. need_version=no
  2426. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2427. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2428. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2429. dynamic_linker='NetBSD (a.out) ld.so'
  2430. else
  2431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2432. soname_spec='${libname}${release}${shared_ext}$major'
  2433. dynamic_linker='NetBSD ld.elf_so'
  2434. fi
  2435. shlibpath_var=LD_LIBRARY_PATH
  2436. shlibpath_overrides_runpath=yes
  2437. hardcode_into_libs=yes
  2438. ;;
  2439. newsos6)
  2440. version_type=linux # correct to gnu/linux during the next big refactor
  2441. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2442. shlibpath_var=LD_LIBRARY_PATH
  2443. shlibpath_overrides_runpath=yes
  2444. ;;
  2445. *nto* | *qnx*)
  2446. version_type=qnx
  2447. need_lib_prefix=no
  2448. need_version=no
  2449. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2450. soname_spec='${libname}${release}${shared_ext}$major'
  2451. shlibpath_var=LD_LIBRARY_PATH
  2452. shlibpath_overrides_runpath=no
  2453. hardcode_into_libs=yes
  2454. dynamic_linker='ldqnx.so'
  2455. ;;
  2456. openbsd*)
  2457. version_type=sunos
  2458. sys_lib_dlsearch_path_spec="/usr/lib"
  2459. need_lib_prefix=no
  2460. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2461. case $host_os in
  2462. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2463. *) need_version=no ;;
  2464. esac
  2465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2466. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2467. shlibpath_var=LD_LIBRARY_PATH
  2468. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2469. case $host_os in
  2470. openbsd2.[[89]] | openbsd2.[[89]].*)
  2471. shlibpath_overrides_runpath=no
  2472. ;;
  2473. *)
  2474. shlibpath_overrides_runpath=yes
  2475. ;;
  2476. esac
  2477. else
  2478. shlibpath_overrides_runpath=yes
  2479. fi
  2480. ;;
  2481. os2*)
  2482. libname_spec='$name'
  2483. shrext_cmds=".dll"
  2484. need_lib_prefix=no
  2485. library_names_spec='$libname${shared_ext} $libname.a'
  2486. dynamic_linker='OS/2 ld.exe'
  2487. shlibpath_var=LIBPATH
  2488. ;;
  2489. osf3* | osf4* | osf5*)
  2490. version_type=osf
  2491. need_lib_prefix=no
  2492. need_version=no
  2493. soname_spec='${libname}${release}${shared_ext}$major'
  2494. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2495. shlibpath_var=LD_LIBRARY_PATH
  2496. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2497. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2498. ;;
  2499. rdos*)
  2500. dynamic_linker=no
  2501. ;;
  2502. solaris*)
  2503. version_type=linux # correct to gnu/linux during the next big refactor
  2504. need_lib_prefix=no
  2505. need_version=no
  2506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2507. soname_spec='${libname}${release}${shared_ext}$major'
  2508. shlibpath_var=LD_LIBRARY_PATH
  2509. shlibpath_overrides_runpath=yes
  2510. hardcode_into_libs=yes
  2511. # ldd complains unless libraries are executable
  2512. postinstall_cmds='chmod +x $lib'
  2513. ;;
  2514. sunos4*)
  2515. version_type=sunos
  2516. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2517. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2518. shlibpath_var=LD_LIBRARY_PATH
  2519. shlibpath_overrides_runpath=yes
  2520. if test "$with_gnu_ld" = yes; then
  2521. need_lib_prefix=no
  2522. fi
  2523. need_version=yes
  2524. ;;
  2525. sysv4 | sysv4.3*)
  2526. version_type=linux # correct to gnu/linux during the next big refactor
  2527. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2528. soname_spec='${libname}${release}${shared_ext}$major'
  2529. shlibpath_var=LD_LIBRARY_PATH
  2530. case $host_vendor in
  2531. sni)
  2532. shlibpath_overrides_runpath=no
  2533. need_lib_prefix=no
  2534. runpath_var=LD_RUN_PATH
  2535. ;;
  2536. siemens)
  2537. need_lib_prefix=no
  2538. ;;
  2539. motorola)
  2540. need_lib_prefix=no
  2541. need_version=no
  2542. shlibpath_overrides_runpath=no
  2543. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2544. ;;
  2545. esac
  2546. ;;
  2547. sysv4*MP*)
  2548. if test -d /usr/nec ;then
  2549. version_type=linux # correct to gnu/linux during the next big refactor
  2550. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2551. soname_spec='$libname${shared_ext}.$major'
  2552. shlibpath_var=LD_LIBRARY_PATH
  2553. fi
  2554. ;;
  2555. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2556. version_type=freebsd-elf
  2557. need_lib_prefix=no
  2558. need_version=no
  2559. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2560. soname_spec='${libname}${release}${shared_ext}$major'
  2561. shlibpath_var=LD_LIBRARY_PATH
  2562. shlibpath_overrides_runpath=yes
  2563. hardcode_into_libs=yes
  2564. if test "$with_gnu_ld" = yes; then
  2565. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2566. else
  2567. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2568. case $host_os in
  2569. sco3.2v5*)
  2570. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2571. ;;
  2572. esac
  2573. fi
  2574. sys_lib_dlsearch_path_spec='/usr/lib'
  2575. ;;
  2576. tpf*)
  2577. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2578. version_type=linux # correct to gnu/linux during the next big refactor
  2579. need_lib_prefix=no
  2580. need_version=no
  2581. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2582. shlibpath_var=LD_LIBRARY_PATH
  2583. shlibpath_overrides_runpath=no
  2584. hardcode_into_libs=yes
  2585. ;;
  2586. uts4*)
  2587. version_type=linux # correct to gnu/linux during the next big refactor
  2588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2589. soname_spec='${libname}${release}${shared_ext}$major'
  2590. shlibpath_var=LD_LIBRARY_PATH
  2591. ;;
  2592. *)
  2593. dynamic_linker=no
  2594. ;;
  2595. esac
  2596. AC_MSG_RESULT([$dynamic_linker])
  2597. test "$dynamic_linker" = no && can_build_shared=no
  2598. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2599. if test "$GCC" = yes; then
  2600. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2601. fi
  2602. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2603. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2604. fi
  2605. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2606. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2607. fi
  2608. _LT_DECL([], [variables_saved_for_relink], [1],
  2609. [Variables whose values should be saved in libtool wrapper scripts and
  2610. restored at link time])
  2611. _LT_DECL([], [need_lib_prefix], [0],
  2612. [Do we need the "lib" prefix for modules?])
  2613. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2614. _LT_DECL([], [version_type], [0], [Library versioning type])
  2615. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2616. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2617. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2618. [Is shlibpath searched before the hard-coded library search path?])
  2619. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2620. _LT_DECL([], [library_names_spec], [1],
  2621. [[List of archive names. First name is the real one, the rest are links.
  2622. The last name is the one that the linker finds with -lNAME]])
  2623. _LT_DECL([], [soname_spec], [1],
  2624. [[The coded name of the library, if different from the real name]])
  2625. _LT_DECL([], [install_override_mode], [1],
  2626. [Permission mode override for installation of shared libraries])
  2627. _LT_DECL([], [postinstall_cmds], [2],
  2628. [Command to use after installation of a shared archive])
  2629. _LT_DECL([], [postuninstall_cmds], [2],
  2630. [Command to use after uninstallation of a shared archive])
  2631. _LT_DECL([], [finish_cmds], [2],
  2632. [Commands used to finish a libtool library installation in a directory])
  2633. _LT_DECL([], [finish_eval], [1],
  2634. [[As "finish_cmds", except a single script fragment to be evaled but
  2635. not shown]])
  2636. _LT_DECL([], [hardcode_into_libs], [0],
  2637. [Whether we should hardcode library paths into libraries])
  2638. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2639. [Compile-time system search path for libraries])
  2640. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2641. [Run-time system search path for libraries])
  2642. ])# _LT_SYS_DYNAMIC_LINKER
  2643. # _LT_PATH_TOOL_PREFIX(TOOL)
  2644. # --------------------------
  2645. # find a file program which can recognize shared library
  2646. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2647. [m4_require([_LT_DECL_EGREP])dnl
  2648. AC_MSG_CHECKING([for $1])
  2649. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2650. [case $MAGIC_CMD in
  2651. [[\\/*] | ?:[\\/]*])
  2652. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2653. ;;
  2654. *)
  2655. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2656. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2657. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2658. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2659. dnl not every word. This closes a longstanding sh security hole.
  2660. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2661. for ac_dir in $ac_dummy; do
  2662. IFS="$lt_save_ifs"
  2663. test -z "$ac_dir" && ac_dir=.
  2664. if test -f $ac_dir/$1; then
  2665. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2666. if test -n "$file_magic_test_file"; then
  2667. case $deplibs_check_method in
  2668. "file_magic "*)
  2669. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2670. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2671. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2672. $EGREP "$file_magic_regex" > /dev/null; then
  2673. :
  2674. else
  2675. cat <<_LT_EOF 1>&2
  2676. *** Warning: the command libtool uses to detect shared libraries,
  2677. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2678. *** The result is that libtool may fail to recognize shared libraries
  2679. *** as such. This will affect the creation of libtool libraries that
  2680. *** depend on shared libraries, but programs linked with such libtool
  2681. *** libraries will work regardless of this problem. Nevertheless, you
  2682. *** may want to report the problem to your system manager and/or to
  2683. *** bug-libtool@gnu.org
  2684. _LT_EOF
  2685. fi ;;
  2686. esac
  2687. fi
  2688. break
  2689. fi
  2690. done
  2691. IFS="$lt_save_ifs"
  2692. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2693. ;;
  2694. esac])
  2695. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2696. if test -n "$MAGIC_CMD"; then
  2697. AC_MSG_RESULT($MAGIC_CMD)
  2698. else
  2699. AC_MSG_RESULT(no)
  2700. fi
  2701. _LT_DECL([], [MAGIC_CMD], [0],
  2702. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2703. ])# _LT_PATH_TOOL_PREFIX
  2704. # Old name:
  2705. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2706. dnl aclocal-1.4 backwards compatibility:
  2707. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2708. # _LT_PATH_MAGIC
  2709. # --------------
  2710. # find a file program which can recognize a shared library
  2711. m4_defun([_LT_PATH_MAGIC],
  2712. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2713. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2714. if test -n "$ac_tool_prefix"; then
  2715. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2716. else
  2717. MAGIC_CMD=:
  2718. fi
  2719. fi
  2720. ])# _LT_PATH_MAGIC
  2721. # LT_PATH_LD
  2722. # ----------
  2723. # find the pathname to the GNU or non-GNU linker
  2724. AC_DEFUN([LT_PATH_LD],
  2725. [AC_REQUIRE([AC_PROG_CC])dnl
  2726. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2727. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2728. m4_require([_LT_DECL_SED])dnl
  2729. m4_require([_LT_DECL_EGREP])dnl
  2730. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2731. AC_ARG_WITH([gnu-ld],
  2732. [AS_HELP_STRING([--with-gnu-ld],
  2733. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2734. [test "$withval" = no || with_gnu_ld=yes],
  2735. [with_gnu_ld=no])dnl
  2736. ac_prog=ld
  2737. if test "$GCC" = yes; then
  2738. # Check if gcc -print-prog-name=ld gives a path.
  2739. AC_MSG_CHECKING([for ld used by $CC])
  2740. case $host in
  2741. *-*-mingw*)
  2742. # gcc leaves a trailing carriage return which upsets mingw
  2743. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2744. *)
  2745. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2746. esac
  2747. case $ac_prog in
  2748. # Accept absolute paths.
  2749. [[\\/]]* | ?:[[\\/]]*)
  2750. re_direlt='/[[^/]][[^/]]*/\.\./'
  2751. # Canonicalize the pathname of ld
  2752. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2753. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2754. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2755. done
  2756. test -z "$LD" && LD="$ac_prog"
  2757. ;;
  2758. "")
  2759. # If it fails, then pretend we aren't using GCC.
  2760. ac_prog=ld
  2761. ;;
  2762. *)
  2763. # If it is relative, then search for the first ld in PATH.
  2764. with_gnu_ld=unknown
  2765. ;;
  2766. esac
  2767. elif test "$with_gnu_ld" = yes; then
  2768. AC_MSG_CHECKING([for GNU ld])
  2769. else
  2770. AC_MSG_CHECKING([for non-GNU ld])
  2771. fi
  2772. AC_CACHE_VAL(lt_cv_path_LD,
  2773. [if test -z "$LD"; then
  2774. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2775. for ac_dir in $PATH; do
  2776. IFS="$lt_save_ifs"
  2777. test -z "$ac_dir" && ac_dir=.
  2778. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2779. lt_cv_path_LD="$ac_dir/$ac_prog"
  2780. # Check to see if the program is GNU ld. I'd rather use --version,
  2781. # but apparently some variants of GNU ld only accept -v.
  2782. # Break only if it was the GNU/non-GNU ld that we prefer.
  2783. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2784. *GNU* | *'with BFD'*)
  2785. test "$with_gnu_ld" != no && break
  2786. ;;
  2787. *)
  2788. test "$with_gnu_ld" != yes && break
  2789. ;;
  2790. esac
  2791. fi
  2792. done
  2793. IFS="$lt_save_ifs"
  2794. else
  2795. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2796. fi])
  2797. LD="$lt_cv_path_LD"
  2798. if test -n "$LD"; then
  2799. AC_MSG_RESULT($LD)
  2800. else
  2801. AC_MSG_RESULT(no)
  2802. fi
  2803. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2804. _LT_PATH_LD_GNU
  2805. AC_SUBST([LD])
  2806. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2807. ])# LT_PATH_LD
  2808. # Old names:
  2809. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2810. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2811. dnl aclocal-1.4 backwards compatibility:
  2812. dnl AC_DEFUN([AM_PROG_LD], [])
  2813. dnl AC_DEFUN([AC_PROG_LD], [])
  2814. # _LT_PATH_LD_GNU
  2815. #- --------------
  2816. m4_defun([_LT_PATH_LD_GNU],
  2817. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2818. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2819. case `$LD -v 2>&1 </dev/null` in
  2820. *GNU* | *'with BFD'*)
  2821. lt_cv_prog_gnu_ld=yes
  2822. ;;
  2823. *)
  2824. lt_cv_prog_gnu_ld=no
  2825. ;;
  2826. esac])
  2827. with_gnu_ld=$lt_cv_prog_gnu_ld
  2828. ])# _LT_PATH_LD_GNU
  2829. # _LT_CMD_RELOAD
  2830. # --------------
  2831. # find reload flag for linker
  2832. # -- PORTME Some linkers may need a different reload flag.
  2833. m4_defun([_LT_CMD_RELOAD],
  2834. [AC_CACHE_CHECK([for $LD option to reload object files],
  2835. lt_cv_ld_reload_flag,
  2836. [lt_cv_ld_reload_flag='-r'])
  2837. reload_flag=$lt_cv_ld_reload_flag
  2838. case $reload_flag in
  2839. "" | " "*) ;;
  2840. *) reload_flag=" $reload_flag" ;;
  2841. esac
  2842. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2843. case $host_os in
  2844. cygwin* | mingw* | pw32* | cegcc*)
  2845. if test "$GCC" != yes; then
  2846. reload_cmds=false
  2847. fi
  2848. ;;
  2849. darwin*)
  2850. if test "$GCC" = yes; then
  2851. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2852. else
  2853. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2854. fi
  2855. ;;
  2856. esac
  2857. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2858. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2859. ])# _LT_CMD_RELOAD
  2860. # _LT_CHECK_MAGIC_METHOD
  2861. # ----------------------
  2862. # how to check for library dependencies
  2863. # -- PORTME fill in with the dynamic library characteristics
  2864. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2865. [m4_require([_LT_DECL_EGREP])
  2866. m4_require([_LT_DECL_OBJDUMP])
  2867. AC_CACHE_CHECK([how to recognize dependent libraries],
  2868. lt_cv_deplibs_check_method,
  2869. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2870. lt_cv_file_magic_test_file=
  2871. lt_cv_deplibs_check_method='unknown'
  2872. # Need to set the preceding variable on all platforms that support
  2873. # interlibrary dependencies.
  2874. # 'none' -- dependencies not supported.
  2875. # `unknown' -- same as none, but documents that we really don't know.
  2876. # 'pass_all' -- all dependencies passed with no checks.
  2877. # 'test_compile' -- check by making test program.
  2878. # 'file_magic [[regex]]' -- check by looking for files in library path
  2879. # which responds to the $file_magic_cmd with a given extended regex.
  2880. # If you have `file' or equivalent on your system and you're not sure
  2881. # whether `pass_all' will *always* work, you probably want this one.
  2882. case $host_os in
  2883. aix[[4-9]]*)
  2884. lt_cv_deplibs_check_method=pass_all
  2885. ;;
  2886. beos*)
  2887. lt_cv_deplibs_check_method=pass_all
  2888. ;;
  2889. bsdi[[45]]*)
  2890. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2891. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2892. lt_cv_file_magic_test_file=/shlib/libc.so
  2893. ;;
  2894. cygwin*)
  2895. # func_win32_libid is a shell function defined in ltmain.sh
  2896. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2897. lt_cv_file_magic_cmd='func_win32_libid'
  2898. ;;
  2899. mingw* | pw32*)
  2900. # Base MSYS/MinGW do not provide the 'file' command needed by
  2901. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2902. # unless we find 'file', for example because we are cross-compiling.
  2903. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2904. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2905. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2906. lt_cv_file_magic_cmd='func_win32_libid'
  2907. else
  2908. # Keep this pattern in sync with the one in func_win32_libid.
  2909. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2910. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2911. fi
  2912. ;;
  2913. cegcc*)
  2914. # use the weaker test based on 'objdump'. See mingw*.
  2915. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2916. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2917. ;;
  2918. darwin* | rhapsody*)
  2919. lt_cv_deplibs_check_method=pass_all
  2920. ;;
  2921. freebsd* | dragonfly*)
  2922. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2923. case $host_cpu in
  2924. i*86 )
  2925. # Not sure whether the presence of OpenBSD here was a mistake.
  2926. # Let's accept both of them until this is cleared up.
  2927. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2928. lt_cv_file_magic_cmd=/usr/bin/file
  2929. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2930. ;;
  2931. esac
  2932. else
  2933. lt_cv_deplibs_check_method=pass_all
  2934. fi
  2935. ;;
  2936. gnu*)
  2937. lt_cv_deplibs_check_method=pass_all
  2938. ;;
  2939. haiku*)
  2940. lt_cv_deplibs_check_method=pass_all
  2941. ;;
  2942. hpux10.20* | hpux11*)
  2943. lt_cv_file_magic_cmd=/usr/bin/file
  2944. case $host_cpu in
  2945. ia64*)
  2946. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2947. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2948. ;;
  2949. hppa*64*)
  2950. [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]']
  2951. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2952. ;;
  2953. *)
  2954. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2955. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2956. ;;
  2957. esac
  2958. ;;
  2959. interix[[3-9]]*)
  2960. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2961. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2962. ;;
  2963. irix5* | irix6* | nonstopux*)
  2964. case $LD in
  2965. *-32|*"-32 ") libmagic=32-bit;;
  2966. *-n32|*"-n32 ") libmagic=N32;;
  2967. *-64|*"-64 ") libmagic=64-bit;;
  2968. *) libmagic=never-match;;
  2969. esac
  2970. lt_cv_deplibs_check_method=pass_all
  2971. ;;
  2972. # This must be glibc/ELF.
  2973. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2974. lt_cv_deplibs_check_method=pass_all
  2975. ;;
  2976. netbsd* | netbsdelf*-gnu)
  2977. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2978. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2979. else
  2980. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2981. fi
  2982. ;;
  2983. newos6*)
  2984. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2985. lt_cv_file_magic_cmd=/usr/bin/file
  2986. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2987. ;;
  2988. *nto* | *qnx*)
  2989. lt_cv_deplibs_check_method=pass_all
  2990. ;;
  2991. openbsd*)
  2992. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2993. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2994. else
  2995. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2996. fi
  2997. ;;
  2998. osf3* | osf4* | osf5*)
  2999. lt_cv_deplibs_check_method=pass_all
  3000. ;;
  3001. rdos*)
  3002. lt_cv_deplibs_check_method=pass_all
  3003. ;;
  3004. solaris*)
  3005. lt_cv_deplibs_check_method=pass_all
  3006. ;;
  3007. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3008. lt_cv_deplibs_check_method=pass_all
  3009. ;;
  3010. sysv4 | sysv4.3*)
  3011. case $host_vendor in
  3012. motorola)
  3013. 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]]'
  3014. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3015. ;;
  3016. ncr)
  3017. lt_cv_deplibs_check_method=pass_all
  3018. ;;
  3019. sequent)
  3020. lt_cv_file_magic_cmd='/bin/file'
  3021. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3022. ;;
  3023. sni)
  3024. lt_cv_file_magic_cmd='/bin/file'
  3025. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3026. lt_cv_file_magic_test_file=/lib/libc.so
  3027. ;;
  3028. siemens)
  3029. lt_cv_deplibs_check_method=pass_all
  3030. ;;
  3031. pc)
  3032. lt_cv_deplibs_check_method=pass_all
  3033. ;;
  3034. esac
  3035. ;;
  3036. tpf*)
  3037. lt_cv_deplibs_check_method=pass_all
  3038. ;;
  3039. esac
  3040. ])
  3041. file_magic_glob=
  3042. want_nocaseglob=no
  3043. if test "$build" = "$host"; then
  3044. case $host_os in
  3045. mingw* | pw32*)
  3046. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3047. want_nocaseglob=yes
  3048. else
  3049. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3050. fi
  3051. ;;
  3052. esac
  3053. fi
  3054. file_magic_cmd=$lt_cv_file_magic_cmd
  3055. deplibs_check_method=$lt_cv_deplibs_check_method
  3056. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3057. _LT_DECL([], [deplibs_check_method], [1],
  3058. [Method to check whether dependent libraries are shared objects])
  3059. _LT_DECL([], [file_magic_cmd], [1],
  3060. [Command to use when deplibs_check_method = "file_magic"])
  3061. _LT_DECL([], [file_magic_glob], [1],
  3062. [How to find potential files when deplibs_check_method = "file_magic"])
  3063. _LT_DECL([], [want_nocaseglob], [1],
  3064. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3065. ])# _LT_CHECK_MAGIC_METHOD
  3066. # LT_PATH_NM
  3067. # ----------
  3068. # find the pathname to a BSD- or MS-compatible name lister
  3069. AC_DEFUN([LT_PATH_NM],
  3070. [AC_REQUIRE([AC_PROG_CC])dnl
  3071. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3072. [if test -n "$NM"; then
  3073. # Let the user override the test.
  3074. lt_cv_path_NM="$NM"
  3075. else
  3076. lt_nm_to_check="${ac_tool_prefix}nm"
  3077. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3078. lt_nm_to_check="$lt_nm_to_check nm"
  3079. fi
  3080. for lt_tmp_nm in $lt_nm_to_check; do
  3081. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3082. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3083. IFS="$lt_save_ifs"
  3084. test -z "$ac_dir" && ac_dir=.
  3085. tmp_nm="$ac_dir/$lt_tmp_nm"
  3086. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3087. # Check to see if the nm accepts a BSD-compat flag.
  3088. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3089. # nm: unknown option "B" ignored
  3090. # Tru64's nm complains that /dev/null is an invalid object file
  3091. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3092. */dev/null* | *'Invalid file or object type'*)
  3093. lt_cv_path_NM="$tmp_nm -B"
  3094. break
  3095. ;;
  3096. *)
  3097. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3098. */dev/null*)
  3099. lt_cv_path_NM="$tmp_nm -p"
  3100. break
  3101. ;;
  3102. *)
  3103. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3104. continue # so that we can try to find one that supports BSD flags
  3105. ;;
  3106. esac
  3107. ;;
  3108. esac
  3109. fi
  3110. done
  3111. IFS="$lt_save_ifs"
  3112. done
  3113. : ${lt_cv_path_NM=no}
  3114. fi])
  3115. if test "$lt_cv_path_NM" != "no"; then
  3116. NM="$lt_cv_path_NM"
  3117. else
  3118. # Didn't find any BSD compatible name lister, look for dumpbin.
  3119. if test -n "$DUMPBIN"; then :
  3120. # Let the user override the test.
  3121. else
  3122. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3123. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3124. *COFF*)
  3125. DUMPBIN="$DUMPBIN -symbols"
  3126. ;;
  3127. *)
  3128. DUMPBIN=:
  3129. ;;
  3130. esac
  3131. fi
  3132. AC_SUBST([DUMPBIN])
  3133. if test "$DUMPBIN" != ":"; then
  3134. NM="$DUMPBIN"
  3135. fi
  3136. fi
  3137. test -z "$NM" && NM=nm
  3138. AC_SUBST([NM])
  3139. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3140. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3141. [lt_cv_nm_interface="BSD nm"
  3142. echo "int some_variable = 0;" > conftest.$ac_ext
  3143. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3144. (eval "$ac_compile" 2>conftest.err)
  3145. cat conftest.err >&AS_MESSAGE_LOG_FD
  3146. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3147. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3148. cat conftest.err >&AS_MESSAGE_LOG_FD
  3149. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3150. cat conftest.out >&AS_MESSAGE_LOG_FD
  3151. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3152. lt_cv_nm_interface="MS dumpbin"
  3153. fi
  3154. rm -f conftest*])
  3155. ])# LT_PATH_NM
  3156. # Old names:
  3157. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3158. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3159. dnl aclocal-1.4 backwards compatibility:
  3160. dnl AC_DEFUN([AM_PROG_NM], [])
  3161. dnl AC_DEFUN([AC_PROG_NM], [])
  3162. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3163. # --------------------------------
  3164. # how to determine the name of the shared library
  3165. # associated with a specific link library.
  3166. # -- PORTME fill in with the dynamic library characteristics
  3167. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3168. [m4_require([_LT_DECL_EGREP])
  3169. m4_require([_LT_DECL_OBJDUMP])
  3170. m4_require([_LT_DECL_DLLTOOL])
  3171. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3172. lt_cv_sharedlib_from_linklib_cmd,
  3173. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3174. case $host_os in
  3175. cygwin* | mingw* | pw32* | cegcc*)
  3176. # two different shell functions defined in ltmain.sh
  3177. # decide which to use based on capabilities of $DLLTOOL
  3178. case `$DLLTOOL --help 2>&1` in
  3179. *--identify-strict*)
  3180. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3181. ;;
  3182. *)
  3183. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3184. ;;
  3185. esac
  3186. ;;
  3187. *)
  3188. # fallback: assume linklib IS sharedlib
  3189. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3190. ;;
  3191. esac
  3192. ])
  3193. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3194. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3195. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3196. [Command to associate shared and link libraries])
  3197. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3198. # _LT_PATH_MANIFEST_TOOL
  3199. # ----------------------
  3200. # locate the manifest tool
  3201. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3202. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3203. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3204. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3205. [lt_cv_path_mainfest_tool=no
  3206. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3207. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3208. cat conftest.err >&AS_MESSAGE_LOG_FD
  3209. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3210. lt_cv_path_mainfest_tool=yes
  3211. fi
  3212. rm -f conftest*])
  3213. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3214. MANIFEST_TOOL=:
  3215. fi
  3216. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3217. ])# _LT_PATH_MANIFEST_TOOL
  3218. # LT_LIB_M
  3219. # --------
  3220. # check for math library
  3221. AC_DEFUN([LT_LIB_M],
  3222. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3223. LIBM=
  3224. case $host in
  3225. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3226. # These system don't have libm, or don't need it
  3227. ;;
  3228. *-ncr-sysv4.3*)
  3229. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3230. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3231. ;;
  3232. *)
  3233. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3234. ;;
  3235. esac
  3236. AC_SUBST([LIBM])
  3237. ])# LT_LIB_M
  3238. # Old name:
  3239. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3240. dnl aclocal-1.4 backwards compatibility:
  3241. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3242. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3243. # -------------------------------
  3244. m4_defun([_LT_COMPILER_NO_RTTI],
  3245. [m4_require([_LT_TAG_COMPILER])dnl
  3246. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3247. if test "$GCC" = yes; then
  3248. case $cc_basename in
  3249. nvcc*)
  3250. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3251. *)
  3252. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3253. esac
  3254. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3255. lt_cv_prog_compiler_rtti_exceptions,
  3256. [-fno-rtti -fno-exceptions], [],
  3257. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3258. fi
  3259. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3260. [Compiler flag to turn off builtin functions])
  3261. ])# _LT_COMPILER_NO_RTTI
  3262. # _LT_CMD_GLOBAL_SYMBOLS
  3263. # ----------------------
  3264. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3265. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3266. AC_REQUIRE([AC_PROG_CC])dnl
  3267. AC_REQUIRE([AC_PROG_AWK])dnl
  3268. AC_REQUIRE([LT_PATH_NM])dnl
  3269. AC_REQUIRE([LT_PATH_LD])dnl
  3270. m4_require([_LT_DECL_SED])dnl
  3271. m4_require([_LT_DECL_EGREP])dnl
  3272. m4_require([_LT_TAG_COMPILER])dnl
  3273. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3274. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3275. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3276. [
  3277. # These are sane defaults that work on at least a few old systems.
  3278. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3279. # Character class describing NM global symbol codes.
  3280. symcode='[[BCDEGRST]]'
  3281. # Regexp to match symbols that can be accessed directly from C.
  3282. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3283. # Define system-specific variables.
  3284. case $host_os in
  3285. aix*)
  3286. symcode='[[BCDT]]'
  3287. ;;
  3288. cygwin* | mingw* | pw32* | cegcc*)
  3289. symcode='[[ABCDGISTW]]'
  3290. ;;
  3291. hpux*)
  3292. if test "$host_cpu" = ia64; then
  3293. symcode='[[ABCDEGRST]]'
  3294. fi
  3295. ;;
  3296. irix* | nonstopux*)
  3297. symcode='[[BCDEGRST]]'
  3298. ;;
  3299. osf*)
  3300. symcode='[[BCDEGQRST]]'
  3301. ;;
  3302. solaris*)
  3303. symcode='[[BDRT]]'
  3304. ;;
  3305. sco3.2v5*)
  3306. symcode='[[DT]]'
  3307. ;;
  3308. sysv4.2uw2*)
  3309. symcode='[[DT]]'
  3310. ;;
  3311. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3312. symcode='[[ABDT]]'
  3313. ;;
  3314. sysv4)
  3315. symcode='[[DFNSTU]]'
  3316. ;;
  3317. esac
  3318. # If we're using GNU nm, then use its standard symbol codes.
  3319. case `$NM -V 2>&1` in
  3320. *GNU* | *'with BFD'*)
  3321. symcode='[[ABCDGIRSTW]]' ;;
  3322. esac
  3323. # Transform an extracted symbol line into a proper C declaration.
  3324. # Some systems (esp. on ia64) link data and code symbols differently,
  3325. # so use this general approach.
  3326. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3327. # Transform an extracted symbol line into symbol name and symbol address
  3328. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3329. 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'"
  3330. # Handle CRLF in mingw tool chain
  3331. opt_cr=
  3332. case $build_os in
  3333. mingw*)
  3334. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3335. ;;
  3336. esac
  3337. # Try without a prefix underscore, then with it.
  3338. for ac_symprfx in "" "_"; do
  3339. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3340. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3341. # Write the raw and C identifiers.
  3342. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3343. # Fake it for dumpbin and say T for any non-static function
  3344. # and D for any global variable.
  3345. # Also find C++ and __fastcall symbols from MSVC++,
  3346. # which start with @ or ?.
  3347. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3348. " {last_section=section; section=\$ 3};"\
  3349. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3350. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3351. " \$ 0!~/External *\|/{next};"\
  3352. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3353. " {if(hide[section]) next};"\
  3354. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3355. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3356. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3357. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3358. " ' prfx=^$ac_symprfx]"
  3359. else
  3360. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3361. fi
  3362. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3363. # Check to see that the pipe works correctly.
  3364. pipe_works=no
  3365. rm -f conftest*
  3366. cat > conftest.$ac_ext <<_LT_EOF
  3367. #ifdef __cplusplus
  3368. extern "C" {
  3369. #endif
  3370. char nm_test_var;
  3371. void nm_test_func(void);
  3372. void nm_test_func(void){}
  3373. #ifdef __cplusplus
  3374. }
  3375. #endif
  3376. int main(){nm_test_var='a';nm_test_func();return(0);}
  3377. _LT_EOF
  3378. if AC_TRY_EVAL(ac_compile); then
  3379. # Now try to grab the symbols.
  3380. nlist=conftest.nm
  3381. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3382. # Try sorting and uniquifying the output.
  3383. if sort "$nlist" | uniq > "$nlist"T; then
  3384. mv -f "$nlist"T "$nlist"
  3385. else
  3386. rm -f "$nlist"T
  3387. fi
  3388. # Make sure that we snagged all the symbols we need.
  3389. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3390. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3391. cat <<_LT_EOF > conftest.$ac_ext
  3392. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3393. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3394. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3395. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3396. # define LT@&t@_DLSYM_CONST
  3397. #elif defined(__osf__)
  3398. /* This system does not cope well with relocations in const data. */
  3399. # define LT@&t@_DLSYM_CONST
  3400. #else
  3401. # define LT@&t@_DLSYM_CONST const
  3402. #endif
  3403. #ifdef __cplusplus
  3404. extern "C" {
  3405. #endif
  3406. _LT_EOF
  3407. # Now generate the symbol file.
  3408. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3409. cat <<_LT_EOF >> conftest.$ac_ext
  3410. /* The mapping between symbol names and symbols. */
  3411. LT@&t@_DLSYM_CONST struct {
  3412. const char *name;
  3413. void *address;
  3414. }
  3415. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3416. {
  3417. { "@PROGRAM@", (void *) 0 },
  3418. _LT_EOF
  3419. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3420. cat <<\_LT_EOF >> conftest.$ac_ext
  3421. {0, (void *) 0}
  3422. };
  3423. /* This works around a problem in FreeBSD linker */
  3424. #ifdef FREEBSD_WORKAROUND
  3425. static const void *lt_preloaded_setup() {
  3426. return lt__PROGRAM__LTX_preloaded_symbols;
  3427. }
  3428. #endif
  3429. #ifdef __cplusplus
  3430. }
  3431. #endif
  3432. _LT_EOF
  3433. # Now try linking the two files.
  3434. mv conftest.$ac_objext conftstm.$ac_objext
  3435. lt_globsym_save_LIBS=$LIBS
  3436. lt_globsym_save_CFLAGS=$CFLAGS
  3437. LIBS="conftstm.$ac_objext"
  3438. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3439. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3440. pipe_works=yes
  3441. fi
  3442. LIBS=$lt_globsym_save_LIBS
  3443. CFLAGS=$lt_globsym_save_CFLAGS
  3444. else
  3445. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3446. fi
  3447. else
  3448. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3449. fi
  3450. else
  3451. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3452. fi
  3453. else
  3454. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3455. cat conftest.$ac_ext >&5
  3456. fi
  3457. rm -rf conftest* conftst*
  3458. # Do not use the global_symbol_pipe unless it works.
  3459. if test "$pipe_works" = yes; then
  3460. break
  3461. else
  3462. lt_cv_sys_global_symbol_pipe=
  3463. fi
  3464. done
  3465. ])
  3466. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3467. lt_cv_sys_global_symbol_to_cdecl=
  3468. fi
  3469. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3470. AC_MSG_RESULT(failed)
  3471. else
  3472. AC_MSG_RESULT(ok)
  3473. fi
  3474. # Response file support.
  3475. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3476. nm_file_list_spec='@'
  3477. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3478. nm_file_list_spec='@'
  3479. fi
  3480. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3481. [Take the output of nm and produce a listing of raw symbols and C names])
  3482. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3483. [Transform the output of nm in a proper C declaration])
  3484. _LT_DECL([global_symbol_to_c_name_address],
  3485. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3486. [Transform the output of nm in a C name address pair])
  3487. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3488. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3489. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3490. _LT_DECL([], [nm_file_list_spec], [1],
  3491. [Specify filename containing input files for $NM])
  3492. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3493. # _LT_COMPILER_PIC([TAGNAME])
  3494. # ---------------------------
  3495. m4_defun([_LT_COMPILER_PIC],
  3496. [m4_require([_LT_TAG_COMPILER])dnl
  3497. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3498. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3499. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3500. m4_if([$1], [CXX], [
  3501. # C++ specific cases for pic, static, wl, etc.
  3502. if test "$GXX" = yes; then
  3503. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3504. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3505. case $host_os in
  3506. aix*)
  3507. # All AIX code is PIC.
  3508. if test "$host_cpu" = ia64; then
  3509. # AIX 5 now supports IA64 processor
  3510. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3511. fi
  3512. ;;
  3513. amigaos*)
  3514. case $host_cpu in
  3515. powerpc)
  3516. # see comment about AmigaOS4 .so support
  3517. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3518. ;;
  3519. m68k)
  3520. # FIXME: we need at least 68020 code to build shared libraries, but
  3521. # adding the `-m68020' flag to GCC prevents building anything better,
  3522. # like `-m68040'.
  3523. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3524. ;;
  3525. esac
  3526. ;;
  3527. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3528. # PIC is the default for these OSes.
  3529. ;;
  3530. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3531. # This hack is so that the source file can tell whether it is being
  3532. # built for inclusion in a dll (and should export symbols for example).
  3533. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3534. # (--disable-auto-import) libraries
  3535. m4_if([$1], [GCJ], [],
  3536. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3537. ;;
  3538. darwin* | rhapsody*)
  3539. # PIC is the default on this platform
  3540. # Common symbols not allowed in MH_DYLIB files
  3541. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3542. ;;
  3543. *djgpp*)
  3544. # DJGPP does not support shared libraries at all
  3545. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3546. ;;
  3547. haiku*)
  3548. # PIC is the default for Haiku.
  3549. # The "-static" flag exists, but is broken.
  3550. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3551. ;;
  3552. interix[[3-9]]*)
  3553. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3554. # Instead, we relocate shared libraries at runtime.
  3555. ;;
  3556. sysv4*MP*)
  3557. if test -d /usr/nec; then
  3558. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3559. fi
  3560. ;;
  3561. hpux*)
  3562. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3563. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3564. # sets the default TLS model and affects inlining.
  3565. case $host_cpu in
  3566. hppa*64*)
  3567. ;;
  3568. *)
  3569. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3570. ;;
  3571. esac
  3572. ;;
  3573. *qnx* | *nto*)
  3574. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3575. # it will coredump.
  3576. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3577. ;;
  3578. *)
  3579. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3580. ;;
  3581. esac
  3582. else
  3583. case $host_os in
  3584. aix[[4-9]]*)
  3585. # All AIX code is PIC.
  3586. if test "$host_cpu" = ia64; then
  3587. # AIX 5 now supports IA64 processor
  3588. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3589. else
  3590. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3591. fi
  3592. ;;
  3593. chorus*)
  3594. case $cc_basename in
  3595. cxch68*)
  3596. # Green Hills C++ Compiler
  3597. # _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"
  3598. ;;
  3599. esac
  3600. ;;
  3601. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3602. # This hack is so that the source file can tell whether it is being
  3603. # built for inclusion in a dll (and should export symbols for example).
  3604. m4_if([$1], [GCJ], [],
  3605. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3606. ;;
  3607. dgux*)
  3608. case $cc_basename in
  3609. ec++*)
  3610. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3611. ;;
  3612. ghcx*)
  3613. # Green Hills C++ Compiler
  3614. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3615. ;;
  3616. *)
  3617. ;;
  3618. esac
  3619. ;;
  3620. freebsd* | dragonfly*)
  3621. # FreeBSD uses GNU C++
  3622. ;;
  3623. hpux9* | hpux10* | hpux11*)
  3624. case $cc_basename in
  3625. CC*)
  3626. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3627. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3628. if test "$host_cpu" != ia64; then
  3629. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3630. fi
  3631. ;;
  3632. aCC*)
  3633. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3634. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3635. case $host_cpu in
  3636. hppa*64*|ia64*)
  3637. # +Z the default
  3638. ;;
  3639. *)
  3640. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3641. ;;
  3642. esac
  3643. ;;
  3644. *)
  3645. ;;
  3646. esac
  3647. ;;
  3648. interix*)
  3649. # This is c89, which is MS Visual C++ (no shared libs)
  3650. # Anyone wants to do a port?
  3651. ;;
  3652. irix5* | irix6* | nonstopux*)
  3653. case $cc_basename in
  3654. CC*)
  3655. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3656. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3657. # CC pic flag -KPIC is the default.
  3658. ;;
  3659. *)
  3660. ;;
  3661. esac
  3662. ;;
  3663. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3664. case $cc_basename in
  3665. KCC*)
  3666. # KAI C++ Compiler
  3667. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3668. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3669. ;;
  3670. ecpc* )
  3671. # old Intel C++ for x86_64 which still supported -KPIC.
  3672. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3673. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3674. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3675. ;;
  3676. icpc* )
  3677. # Intel C++, used to be incompatible with GCC.
  3678. # ICC 10 doesn't accept -KPIC any more.
  3679. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3680. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3681. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3682. ;;
  3683. pgCC* | pgcpp*)
  3684. # Portland Group C++ compiler
  3685. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3686. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3687. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3688. ;;
  3689. cxx*)
  3690. # Compaq C++
  3691. # Make sure the PIC flag is empty. It appears that all Alpha
  3692. # Linux and Compaq Tru64 Unix objects are PIC.
  3693. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3694. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3695. ;;
  3696. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3697. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3698. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3699. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3700. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3701. ;;
  3702. *)
  3703. case `$CC -V 2>&1 | sed 5q` in
  3704. *Sun\ C*)
  3705. # Sun C++ 5.9
  3706. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3707. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3708. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3709. ;;
  3710. esac
  3711. ;;
  3712. esac
  3713. ;;
  3714. lynxos*)
  3715. ;;
  3716. m88k*)
  3717. ;;
  3718. mvs*)
  3719. case $cc_basename in
  3720. cxx*)
  3721. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3722. ;;
  3723. *)
  3724. ;;
  3725. esac
  3726. ;;
  3727. netbsd* | netbsdelf*-gnu)
  3728. ;;
  3729. *qnx* | *nto*)
  3730. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3731. # it will coredump.
  3732. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3733. ;;
  3734. osf3* | osf4* | osf5*)
  3735. case $cc_basename in
  3736. KCC*)
  3737. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3738. ;;
  3739. RCC*)
  3740. # Rational C++ 2.4.1
  3741. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3742. ;;
  3743. cxx*)
  3744. # Digital/Compaq C++
  3745. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3746. # Make sure the PIC flag is empty. It appears that all Alpha
  3747. # Linux and Compaq Tru64 Unix objects are PIC.
  3748. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3749. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3750. ;;
  3751. *)
  3752. ;;
  3753. esac
  3754. ;;
  3755. psos*)
  3756. ;;
  3757. solaris*)
  3758. case $cc_basename in
  3759. CC* | sunCC*)
  3760. # Sun C++ 4.2, 5.x and Centerline C++
  3761. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3762. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3763. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3764. ;;
  3765. gcx*)
  3766. # Green Hills C++ Compiler
  3767. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3768. ;;
  3769. *)
  3770. ;;
  3771. esac
  3772. ;;
  3773. sunos4*)
  3774. case $cc_basename in
  3775. CC*)
  3776. # Sun C++ 4.x
  3777. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3778. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3779. ;;
  3780. lcc*)
  3781. # Lucid
  3782. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3783. ;;
  3784. *)
  3785. ;;
  3786. esac
  3787. ;;
  3788. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3789. case $cc_basename in
  3790. CC*)
  3791. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3792. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3793. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3794. ;;
  3795. esac
  3796. ;;
  3797. tandem*)
  3798. case $cc_basename in
  3799. NCC*)
  3800. # NonStop-UX NCC 3.20
  3801. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3802. ;;
  3803. *)
  3804. ;;
  3805. esac
  3806. ;;
  3807. vxworks*)
  3808. ;;
  3809. *)
  3810. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3811. ;;
  3812. esac
  3813. fi
  3814. ],
  3815. [
  3816. if test "$GCC" = yes; then
  3817. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3818. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3819. case $host_os in
  3820. aix*)
  3821. # All AIX code is PIC.
  3822. if test "$host_cpu" = ia64; then
  3823. # AIX 5 now supports IA64 processor
  3824. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3825. fi
  3826. ;;
  3827. amigaos*)
  3828. case $host_cpu in
  3829. powerpc)
  3830. # see comment about AmigaOS4 .so support
  3831. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3832. ;;
  3833. m68k)
  3834. # FIXME: we need at least 68020 code to build shared libraries, but
  3835. # adding the `-m68020' flag to GCC prevents building anything better,
  3836. # like `-m68040'.
  3837. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3838. ;;
  3839. esac
  3840. ;;
  3841. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3842. # PIC is the default for these OSes.
  3843. ;;
  3844. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3845. # This hack is so that the source file can tell whether it is being
  3846. # built for inclusion in a dll (and should export symbols for example).
  3847. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3848. # (--disable-auto-import) libraries
  3849. m4_if([$1], [GCJ], [],
  3850. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3851. ;;
  3852. darwin* | rhapsody*)
  3853. # PIC is the default on this platform
  3854. # Common symbols not allowed in MH_DYLIB files
  3855. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3856. ;;
  3857. haiku*)
  3858. # PIC is the default for Haiku.
  3859. # The "-static" flag exists, but is broken.
  3860. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3861. ;;
  3862. hpux*)
  3863. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3864. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3865. # sets the default TLS model and affects inlining.
  3866. case $host_cpu in
  3867. hppa*64*)
  3868. # +Z the default
  3869. ;;
  3870. *)
  3871. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3872. ;;
  3873. esac
  3874. ;;
  3875. interix[[3-9]]*)
  3876. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3877. # Instead, we relocate shared libraries at runtime.
  3878. ;;
  3879. msdosdjgpp*)
  3880. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3881. # on systems that don't support them.
  3882. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3883. enable_shared=no
  3884. ;;
  3885. *nto* | *qnx*)
  3886. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3887. # it will coredump.
  3888. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3889. ;;
  3890. sysv4*MP*)
  3891. if test -d /usr/nec; then
  3892. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3893. fi
  3894. ;;
  3895. *)
  3896. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3897. ;;
  3898. esac
  3899. case $cc_basename in
  3900. nvcc*) # Cuda Compiler Driver 2.2
  3901. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3902. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3903. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3904. fi
  3905. ;;
  3906. esac
  3907. else
  3908. # PORTME Check for flag to pass linker flags through the system compiler.
  3909. case $host_os in
  3910. aix*)
  3911. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3912. if test "$host_cpu" = ia64; then
  3913. # AIX 5 now supports IA64 processor
  3914. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3915. else
  3916. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3917. fi
  3918. ;;
  3919. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3920. # This hack is so that the source file can tell whether it is being
  3921. # built for inclusion in a dll (and should export symbols for example).
  3922. m4_if([$1], [GCJ], [],
  3923. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3924. ;;
  3925. hpux9* | hpux10* | hpux11*)
  3926. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3927. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3928. # not for PA HP-UX.
  3929. case $host_cpu in
  3930. hppa*64*|ia64*)
  3931. # +Z the default
  3932. ;;
  3933. *)
  3934. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3935. ;;
  3936. esac
  3937. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3938. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3939. ;;
  3940. irix5* | irix6* | nonstopux*)
  3941. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3942. # PIC (with -KPIC) is the default.
  3943. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3944. ;;
  3945. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3946. case $cc_basename in
  3947. # old Intel for x86_64 which still supported -KPIC.
  3948. ecc*)
  3949. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3950. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3951. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3952. ;;
  3953. # icc used to be incompatible with GCC.
  3954. # ICC 10 doesn't accept -KPIC any more.
  3955. icc* | ifort*)
  3956. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3957. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3958. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3959. ;;
  3960. # Lahey Fortran 8.1.
  3961. lf95*)
  3962. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3963. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3964. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3965. ;;
  3966. nagfor*)
  3967. # NAG Fortran compiler
  3968. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3969. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3970. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3971. ;;
  3972. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3973. # Portland Group compilers (*not* the Pentium gcc compiler,
  3974. # which looks to be a dead project)
  3975. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3976. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3977. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3978. ;;
  3979. ccc*)
  3980. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3981. # All Alpha code is PIC.
  3982. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3983. ;;
  3984. xl* | bgxl* | bgf* | mpixl*)
  3985. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3986. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3987. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3988. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3989. ;;
  3990. *)
  3991. case `$CC -V 2>&1 | sed 5q` in
  3992. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  3993. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3994. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3995. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3996. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3997. ;;
  3998. *Sun\ F* | *Sun*Fortran*)
  3999. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4000. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4001. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4002. ;;
  4003. *Sun\ C*)
  4004. # Sun C 5.9
  4005. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4006. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4007. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4008. ;;
  4009. *Intel*\ [[CF]]*Compiler*)
  4010. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4011. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4012. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4013. ;;
  4014. *Portland\ Group*)
  4015. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4016. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4017. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4018. ;;
  4019. esac
  4020. ;;
  4021. esac
  4022. ;;
  4023. newsos6)
  4024. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4025. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4026. ;;
  4027. *nto* | *qnx*)
  4028. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4029. # it will coredump.
  4030. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4031. ;;
  4032. osf3* | osf4* | osf5*)
  4033. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4034. # All OSF/1 code is PIC.
  4035. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4036. ;;
  4037. rdos*)
  4038. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4039. ;;
  4040. solaris*)
  4041. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4042. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4043. case $cc_basename in
  4044. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4045. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4046. *)
  4047. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4048. esac
  4049. ;;
  4050. sunos4*)
  4051. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4052. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4053. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4054. ;;
  4055. sysv4 | sysv4.2uw2* | sysv4.3*)
  4056. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4057. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4058. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4059. ;;
  4060. sysv4*MP*)
  4061. if test -d /usr/nec ;then
  4062. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4063. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4064. fi
  4065. ;;
  4066. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4067. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4068. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4069. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4070. ;;
  4071. unicos*)
  4072. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4073. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4074. ;;
  4075. uts4*)
  4076. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4077. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4078. ;;
  4079. *)
  4080. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4081. ;;
  4082. esac
  4083. fi
  4084. ])
  4085. case $host_os in
  4086. # For platforms which do not support PIC, -DPIC is meaningless:
  4087. *djgpp*)
  4088. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4089. ;;
  4090. *)
  4091. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4092. ;;
  4093. esac
  4094. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4095. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4096. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4097. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4098. #
  4099. # Check to make sure the PIC flag actually works.
  4100. #
  4101. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4102. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4103. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4104. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4105. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4106. "" | " "*) ;;
  4107. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4108. esac],
  4109. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4110. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4111. fi
  4112. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4113. [Additional compiler flags for building library objects])
  4114. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4115. [How to pass a linker flag through the compiler])
  4116. #
  4117. # Check to make sure the static flag actually works.
  4118. #
  4119. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4120. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4121. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4122. $lt_tmp_static_flag,
  4123. [],
  4124. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4125. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4126. [Compiler flag to prevent dynamic linking])
  4127. ])# _LT_COMPILER_PIC
  4128. # _LT_LINKER_SHLIBS([TAGNAME])
  4129. # ----------------------------
  4130. # See if the linker supports building shared libraries.
  4131. m4_defun([_LT_LINKER_SHLIBS],
  4132. [AC_REQUIRE([LT_PATH_LD])dnl
  4133. AC_REQUIRE([LT_PATH_NM])dnl
  4134. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4135. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4136. m4_require([_LT_DECL_EGREP])dnl
  4137. m4_require([_LT_DECL_SED])dnl
  4138. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4139. m4_require([_LT_TAG_COMPILER])dnl
  4140. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4141. m4_if([$1], [CXX], [
  4142. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4143. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4144. case $host_os in
  4145. aix[[4-9]]*)
  4146. # If we're using GNU nm, then we don't want the "-C" option.
  4147. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4148. # Also, AIX nm treats weak defined symbols like other global defined
  4149. # symbols, whereas GNU nm marks them as "W".
  4150. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4151. _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'
  4152. else
  4153. _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'
  4154. fi
  4155. ;;
  4156. pw32*)
  4157. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4158. ;;
  4159. cygwin* | mingw* | cegcc*)
  4160. case $cc_basename in
  4161. cl*)
  4162. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4163. ;;
  4164. *)
  4165. _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'
  4166. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4167. ;;
  4168. esac
  4169. ;;
  4170. linux* | k*bsd*-gnu | gnu*)
  4171. _LT_TAGVAR(link_all_deplibs, $1)=no
  4172. ;;
  4173. *)
  4174. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4175. ;;
  4176. esac
  4177. ], [
  4178. runpath_var=
  4179. _LT_TAGVAR(allow_undefined_flag, $1)=
  4180. _LT_TAGVAR(always_export_symbols, $1)=no
  4181. _LT_TAGVAR(archive_cmds, $1)=
  4182. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4183. _LT_TAGVAR(compiler_needs_object, $1)=no
  4184. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4185. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4186. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4187. _LT_TAGVAR(hardcode_automatic, $1)=no
  4188. _LT_TAGVAR(hardcode_direct, $1)=no
  4189. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4190. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4191. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4192. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4193. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4194. _LT_TAGVAR(inherit_rpath, $1)=no
  4195. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4196. _LT_TAGVAR(module_cmds, $1)=
  4197. _LT_TAGVAR(module_expsym_cmds, $1)=
  4198. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4199. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4200. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4201. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4202. # include_expsyms should be a list of space-separated symbols to be *always*
  4203. # included in the symbol list
  4204. _LT_TAGVAR(include_expsyms, $1)=
  4205. # exclude_expsyms can be an extended regexp of symbols to exclude
  4206. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4207. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4208. # as well as any symbol that contains `d'.
  4209. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4210. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4211. # platforms (ab)use it in PIC code, but their linkers get confused if
  4212. # the symbol is explicitly referenced. Since portable code cannot
  4213. # rely on this symbol name, it's probably fine to never include it in
  4214. # preloaded symbol tables.
  4215. # Exclude shared library initialization/finalization symbols.
  4216. dnl Note also adjust exclude_expsyms for C++ above.
  4217. extract_expsyms_cmds=
  4218. case $host_os in
  4219. cygwin* | mingw* | pw32* | cegcc*)
  4220. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4221. # When not using gcc, we currently assume that we are using
  4222. # Microsoft Visual C++.
  4223. if test "$GCC" != yes; then
  4224. with_gnu_ld=no
  4225. fi
  4226. ;;
  4227. interix*)
  4228. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4229. with_gnu_ld=yes
  4230. ;;
  4231. openbsd*)
  4232. with_gnu_ld=no
  4233. ;;
  4234. linux* | k*bsd*-gnu | gnu*)
  4235. _LT_TAGVAR(link_all_deplibs, $1)=no
  4236. ;;
  4237. esac
  4238. _LT_TAGVAR(ld_shlibs, $1)=yes
  4239. # On some targets, GNU ld is compatible enough with the native linker
  4240. # that we're better off using the native interface for both.
  4241. lt_use_gnu_ld_interface=no
  4242. if test "$with_gnu_ld" = yes; then
  4243. case $host_os in
  4244. aix*)
  4245. # The AIX port of GNU ld has always aspired to compatibility
  4246. # with the native linker. However, as the warning in the GNU ld
  4247. # block says, versions before 2.19.5* couldn't really create working
  4248. # shared libraries, regardless of the interface used.
  4249. case `$LD -v 2>&1` in
  4250. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4251. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4252. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4253. *)
  4254. lt_use_gnu_ld_interface=yes
  4255. ;;
  4256. esac
  4257. ;;
  4258. *)
  4259. lt_use_gnu_ld_interface=yes
  4260. ;;
  4261. esac
  4262. fi
  4263. if test "$lt_use_gnu_ld_interface" = yes; then
  4264. # If archive_cmds runs LD, not CC, wlarc should be empty
  4265. wlarc='${wl}'
  4266. # Set some defaults for GNU ld with shared library support. These
  4267. # are reset later if shared libraries are not supported. Putting them
  4268. # here allows them to be overridden if necessary.
  4269. runpath_var=LD_RUN_PATH
  4270. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4271. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4272. # ancient GNU ld didn't support --whole-archive et. al.
  4273. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4274. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4275. else
  4276. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4277. fi
  4278. supports_anon_versioning=no
  4279. case `$LD -v 2>&1` in
  4280. *GNU\ gold*) supports_anon_versioning=yes ;;
  4281. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4282. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4283. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4284. *\ 2.11.*) ;; # other 2.11 versions
  4285. *) supports_anon_versioning=yes ;;
  4286. esac
  4287. # See if GNU ld supports shared libraries.
  4288. case $host_os in
  4289. aix[[3-9]]*)
  4290. # On AIX/PPC, the GNU linker is very broken
  4291. if test "$host_cpu" != ia64; then
  4292. _LT_TAGVAR(ld_shlibs, $1)=no
  4293. cat <<_LT_EOF 1>&2
  4294. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4295. *** to be unable to reliably create shared libraries on AIX.
  4296. *** Therefore, libtool is disabling shared libraries support. If you
  4297. *** really care for shared libraries, you may want to install binutils
  4298. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4299. *** You will then need to restart the configuration process.
  4300. _LT_EOF
  4301. fi
  4302. ;;
  4303. amigaos*)
  4304. case $host_cpu in
  4305. powerpc)
  4306. # see comment about AmigaOS4 .so support
  4307. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4308. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4309. ;;
  4310. m68k)
  4311. _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)'
  4312. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4313. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4314. ;;
  4315. esac
  4316. ;;
  4317. beos*)
  4318. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4319. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4320. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4321. # support --undefined. This deserves some investigation. FIXME
  4322. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4323. else
  4324. _LT_TAGVAR(ld_shlibs, $1)=no
  4325. fi
  4326. ;;
  4327. cygwin* | mingw* | pw32* | cegcc*)
  4328. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4329. # as there is no search path for DLLs.
  4330. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4331. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4332. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4333. _LT_TAGVAR(always_export_symbols, $1)=no
  4334. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4335. _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'
  4336. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4337. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4338. _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'
  4339. # If the export-symbols file already is a .def file (1st line
  4340. # is EXPORTS), use it as is; otherwise, prepend...
  4341. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4342. cp $export_symbols $output_objdir/$soname.def;
  4343. else
  4344. echo EXPORTS > $output_objdir/$soname.def;
  4345. cat $export_symbols >> $output_objdir/$soname.def;
  4346. fi~
  4347. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4348. else
  4349. _LT_TAGVAR(ld_shlibs, $1)=no
  4350. fi
  4351. ;;
  4352. haiku*)
  4353. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4354. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4355. ;;
  4356. interix[[3-9]]*)
  4357. _LT_TAGVAR(hardcode_direct, $1)=no
  4358. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4359. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4360. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4361. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4362. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4363. # default) and relocated if they conflict, which is a slow very memory
  4364. # consuming and fragmenting process. To avoid this, we pick a random,
  4365. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4366. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4367. _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'
  4368. _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'
  4369. ;;
  4370. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4371. tmp_diet=no
  4372. if test "$host_os" = linux-dietlibc; then
  4373. case $cc_basename in
  4374. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4375. esac
  4376. fi
  4377. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4378. && test "$tmp_diet" = no
  4379. then
  4380. tmp_addflag=' $pic_flag'
  4381. tmp_sharedflag='-shared'
  4382. case $cc_basename,$host_cpu in
  4383. pgcc*) # Portland Group C compiler
  4384. _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'
  4385. tmp_addflag=' $pic_flag'
  4386. ;;
  4387. pgf77* | pgf90* | pgf95* | pgfortran*)
  4388. # Portland Group f77 and f90 compilers
  4389. _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'
  4390. tmp_addflag=' $pic_flag -Mnomain' ;;
  4391. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4392. tmp_addflag=' -i_dynamic' ;;
  4393. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4394. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4395. ifc* | ifort*) # Intel Fortran compiler
  4396. tmp_addflag=' -nofor_main' ;;
  4397. lf95*) # Lahey Fortran 8.1
  4398. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4399. tmp_sharedflag='--shared' ;;
  4400. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4401. tmp_sharedflag='-qmkshrobj'
  4402. tmp_addflag= ;;
  4403. nvcc*) # Cuda Compiler Driver 2.2
  4404. _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'
  4405. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4406. ;;
  4407. esac
  4408. case `$CC -V 2>&1 | sed 5q` in
  4409. *Sun\ C*) # Sun C 5.9
  4410. _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'
  4411. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4412. tmp_sharedflag='-G' ;;
  4413. *Sun\ F*) # Sun Fortran 8.3
  4414. tmp_sharedflag='-G' ;;
  4415. esac
  4416. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4417. if test "x$supports_anon_versioning" = xyes; then
  4418. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4419. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4420. echo "local: *; };" >> $output_objdir/$libname.ver~
  4421. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4422. fi
  4423. case $cc_basename in
  4424. xlf* | bgf* | bgxlf* | mpixlf*)
  4425. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4426. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4427. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4428. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4429. if test "x$supports_anon_versioning" = xyes; then
  4430. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4431. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4432. echo "local: *; };" >> $output_objdir/$libname.ver~
  4433. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4434. fi
  4435. ;;
  4436. esac
  4437. else
  4438. _LT_TAGVAR(ld_shlibs, $1)=no
  4439. fi
  4440. ;;
  4441. netbsd* | netbsdelf*-gnu)
  4442. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4443. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4444. wlarc=
  4445. else
  4446. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4447. _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'
  4448. fi
  4449. ;;
  4450. solaris*)
  4451. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4452. _LT_TAGVAR(ld_shlibs, $1)=no
  4453. cat <<_LT_EOF 1>&2
  4454. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4455. *** create shared libraries on Solaris systems. Therefore, libtool
  4456. *** is disabling shared libraries support. We urge you to upgrade GNU
  4457. *** binutils to release 2.9.1 or newer. Another option is to modify
  4458. *** your PATH or compiler configuration so that the native linker is
  4459. *** used, and then restart.
  4460. _LT_EOF
  4461. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4462. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4463. _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'
  4464. else
  4465. _LT_TAGVAR(ld_shlibs, $1)=no
  4466. fi
  4467. ;;
  4468. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4469. case `$LD -v 2>&1` in
  4470. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4471. _LT_TAGVAR(ld_shlibs, $1)=no
  4472. cat <<_LT_EOF 1>&2
  4473. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4474. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4475. *** is disabling shared libraries support. We urge you to upgrade GNU
  4476. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4477. *** your PATH or compiler configuration so that the native linker is
  4478. *** used, and then restart.
  4479. _LT_EOF
  4480. ;;
  4481. *)
  4482. # For security reasons, it is highly recommended that you always
  4483. # use absolute paths for naming shared libraries, and exclude the
  4484. # DT_RUNPATH tag from executables and libraries. But doing so
  4485. # requires that you compile everything twice, which is a pain.
  4486. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4487. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4488. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4489. _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'
  4490. else
  4491. _LT_TAGVAR(ld_shlibs, $1)=no
  4492. fi
  4493. ;;
  4494. esac
  4495. ;;
  4496. sunos4*)
  4497. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4498. wlarc=
  4499. _LT_TAGVAR(hardcode_direct, $1)=yes
  4500. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4501. ;;
  4502. *)
  4503. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4504. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4505. _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'
  4506. else
  4507. _LT_TAGVAR(ld_shlibs, $1)=no
  4508. fi
  4509. ;;
  4510. esac
  4511. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4512. runpath_var=
  4513. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4514. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4515. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4516. fi
  4517. else
  4518. # PORTME fill in a description of your system's linker (not GNU ld)
  4519. case $host_os in
  4520. aix3*)
  4521. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4522. _LT_TAGVAR(always_export_symbols, $1)=yes
  4523. _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'
  4524. # Note: this linker hardcodes the directories in LIBPATH if there
  4525. # are no directories specified by -L.
  4526. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4527. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4528. # Neither direct hardcoding nor static linking is supported with a
  4529. # broken collect2.
  4530. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4531. fi
  4532. ;;
  4533. aix[[4-9]]*)
  4534. if test "$host_cpu" = ia64; then
  4535. # On IA64, the linker does run time linking by default, so we don't
  4536. # have to do anything special.
  4537. aix_use_runtimelinking=no
  4538. exp_sym_flag='-Bexport'
  4539. no_entry_flag=""
  4540. else
  4541. # If we're using GNU nm, then we don't want the "-C" option.
  4542. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4543. # Also, AIX nm treats weak defined symbols like other global
  4544. # defined symbols, whereas GNU nm marks them as "W".
  4545. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4546. _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'
  4547. else
  4548. _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'
  4549. fi
  4550. aix_use_runtimelinking=no
  4551. # Test if we are trying to use run time linking or normal
  4552. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4553. # need to do runtime linking.
  4554. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4555. for ld_flag in $LDFLAGS; do
  4556. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4557. aix_use_runtimelinking=yes
  4558. break
  4559. fi
  4560. done
  4561. ;;
  4562. esac
  4563. exp_sym_flag='-bexport'
  4564. no_entry_flag='-bnoentry'
  4565. fi
  4566. # When large executables or shared objects are built, AIX ld can
  4567. # have problems creating the table of contents. If linking a library
  4568. # or program results in "error TOC overflow" add -mminimal-toc to
  4569. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4570. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4571. _LT_TAGVAR(archive_cmds, $1)=''
  4572. _LT_TAGVAR(hardcode_direct, $1)=yes
  4573. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4574. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4575. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4576. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4577. if test "$GCC" = yes; then
  4578. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4579. # We only want to do this on AIX 4.2 and lower, the check
  4580. # below for broken collect2 doesn't work under 4.3+
  4581. collect2name=`${CC} -print-prog-name=collect2`
  4582. if test -f "$collect2name" &&
  4583. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4584. then
  4585. # We have reworked collect2
  4586. :
  4587. else
  4588. # We have old collect2
  4589. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4590. # It fails to find uninstalled libraries when the uninstalled
  4591. # path is not listed in the libpath. Setting hardcode_minus_L
  4592. # to unsupported forces relinking
  4593. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4594. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4595. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4596. fi
  4597. ;;
  4598. esac
  4599. shared_flag='-shared'
  4600. if test "$aix_use_runtimelinking" = yes; then
  4601. shared_flag="$shared_flag "'${wl}-G'
  4602. fi
  4603. _LT_TAGVAR(link_all_deplibs, $1)=no
  4604. else
  4605. # not using gcc
  4606. if test "$host_cpu" = ia64; then
  4607. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4608. # chokes on -Wl,-G. The following line is correct:
  4609. shared_flag='-G'
  4610. else
  4611. if test "$aix_use_runtimelinking" = yes; then
  4612. shared_flag='${wl}-G'
  4613. else
  4614. shared_flag='${wl}-bM:SRE'
  4615. fi
  4616. fi
  4617. fi
  4618. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4619. # It seems that -bexpall does not export symbols beginning with
  4620. # underscore (_), so it is better to generate a list of symbols to export.
  4621. _LT_TAGVAR(always_export_symbols, $1)=yes
  4622. if test "$aix_use_runtimelinking" = yes; then
  4623. # Warning - without using the other runtime loading flags (-brtl),
  4624. # -berok will link without error, but may produce a broken library.
  4625. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4626. # Determine the default libpath from the value encoded in an
  4627. # empty executable.
  4628. _LT_SYS_MODULE_PATH_AIX([$1])
  4629. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4630. _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"
  4631. else
  4632. if test "$host_cpu" = ia64; then
  4633. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4634. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4635. _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"
  4636. else
  4637. # Determine the default libpath from the value encoded in an
  4638. # empty executable.
  4639. _LT_SYS_MODULE_PATH_AIX([$1])
  4640. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4641. # Warning - without using the other run time loading flags,
  4642. # -berok will link without error, but may produce a broken library.
  4643. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4644. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4645. if test "$with_gnu_ld" = yes; then
  4646. # We only use this code for GNU lds that support --whole-archive.
  4647. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4648. else
  4649. # Exported symbols can be pulled into shared objects from archives
  4650. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4651. fi
  4652. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4653. # This is similar to how AIX traditionally builds its shared libraries.
  4654. _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'
  4655. fi
  4656. fi
  4657. ;;
  4658. amigaos*)
  4659. case $host_cpu in
  4660. powerpc)
  4661. # see comment about AmigaOS4 .so support
  4662. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4663. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4664. ;;
  4665. m68k)
  4666. _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)'
  4667. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4668. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4669. ;;
  4670. esac
  4671. ;;
  4672. bsdi[[45]]*)
  4673. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4674. ;;
  4675. cygwin* | mingw* | pw32* | cegcc*)
  4676. # When not using gcc, we currently assume that we are using
  4677. # Microsoft Visual C++.
  4678. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4679. # no search path for DLLs.
  4680. case $cc_basename in
  4681. cl*)
  4682. # Native MSVC
  4683. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4684. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4685. _LT_TAGVAR(always_export_symbols, $1)=yes
  4686. _LT_TAGVAR(file_list_spec, $1)='@'
  4687. # Tell ltmain to make .lib files, not .a files.
  4688. libext=lib
  4689. # Tell ltmain to make .dll files, not .so files.
  4690. shrext_cmds=".dll"
  4691. # FIXME: Setting linknames here is a bad hack.
  4692. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4693. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4694. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4695. else
  4696. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4697. fi~
  4698. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4699. linknames='
  4700. # The linker will not automatically build a static lib if we build a DLL.
  4701. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4702. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4703. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4704. _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'
  4705. # Don't use ranlib
  4706. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4707. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4708. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4709. case $lt_outputfile in
  4710. *.exe|*.EXE) ;;
  4711. *)
  4712. lt_outputfile="$lt_outputfile.exe"
  4713. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4714. ;;
  4715. esac~
  4716. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4717. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4718. $RM "$lt_outputfile.manifest";
  4719. fi'
  4720. ;;
  4721. *)
  4722. # Assume MSVC wrapper
  4723. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4724. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4725. # Tell ltmain to make .lib files, not .a files.
  4726. libext=lib
  4727. # Tell ltmain to make .dll files, not .so files.
  4728. shrext_cmds=".dll"
  4729. # FIXME: Setting linknames here is a bad hack.
  4730. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4731. # The linker will automatically build a .lib file if we build a DLL.
  4732. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4733. # FIXME: Should let the user specify the lib program.
  4734. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4735. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4736. ;;
  4737. esac
  4738. ;;
  4739. darwin* | rhapsody*)
  4740. _LT_DARWIN_LINKER_FEATURES($1)
  4741. ;;
  4742. dgux*)
  4743. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4744. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4745. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4746. ;;
  4747. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4748. # support. Future versions do this automatically, but an explicit c++rt0.o
  4749. # does not break anything, and helps significantly (at the cost of a little
  4750. # extra space).
  4751. freebsd2.2*)
  4752. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4753. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4754. _LT_TAGVAR(hardcode_direct, $1)=yes
  4755. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4756. ;;
  4757. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4758. freebsd2.*)
  4759. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4760. _LT_TAGVAR(hardcode_direct, $1)=yes
  4761. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4762. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4763. ;;
  4764. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4765. freebsd* | dragonfly*)
  4766. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4767. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4768. _LT_TAGVAR(hardcode_direct, $1)=yes
  4769. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4770. ;;
  4771. hpux9*)
  4772. if test "$GCC" = yes; then
  4773. _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'
  4774. else
  4775. _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'
  4776. fi
  4777. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4778. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4779. _LT_TAGVAR(hardcode_direct, $1)=yes
  4780. # hardcode_minus_L: Not really in the search PATH,
  4781. # but as the default location of the library.
  4782. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4783. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4784. ;;
  4785. hpux10*)
  4786. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4787. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4788. else
  4789. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4790. fi
  4791. if test "$with_gnu_ld" = no; then
  4792. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4793. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4794. _LT_TAGVAR(hardcode_direct, $1)=yes
  4795. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4796. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4797. # hardcode_minus_L: Not really in the search PATH,
  4798. # but as the default location of the library.
  4799. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4800. fi
  4801. ;;
  4802. hpux11*)
  4803. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4804. case $host_cpu in
  4805. hppa*64*)
  4806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4807. ;;
  4808. ia64*)
  4809. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4810. ;;
  4811. *)
  4812. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4813. ;;
  4814. esac
  4815. else
  4816. case $host_cpu in
  4817. hppa*64*)
  4818. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4819. ;;
  4820. ia64*)
  4821. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4822. ;;
  4823. *)
  4824. m4_if($1, [], [
  4825. # Older versions of the 11.00 compiler do not understand -b yet
  4826. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4827. _LT_LINKER_OPTION([if $CC understands -b],
  4828. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4829. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4830. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4831. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4832. ;;
  4833. esac
  4834. fi
  4835. if test "$with_gnu_ld" = no; then
  4836. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4837. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4838. case $host_cpu in
  4839. hppa*64*|ia64*)
  4840. _LT_TAGVAR(hardcode_direct, $1)=no
  4841. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4842. ;;
  4843. *)
  4844. _LT_TAGVAR(hardcode_direct, $1)=yes
  4845. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4846. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4847. # hardcode_minus_L: Not really in the search PATH,
  4848. # but as the default location of the library.
  4849. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4850. ;;
  4851. esac
  4852. fi
  4853. ;;
  4854. irix5* | irix6* | nonstopux*)
  4855. if test "$GCC" = yes; then
  4856. _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'
  4857. # Try to use the -exported_symbol ld option, if it does not
  4858. # work, assume that -exports_file does not work either and
  4859. # implicitly export all symbols.
  4860. # This should be the same for all languages, so no per-tag cache variable.
  4861. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4862. [lt_cv_irix_exported_symbol],
  4863. [save_LDFLAGS="$LDFLAGS"
  4864. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4865. AC_LINK_IFELSE(
  4866. [AC_LANG_SOURCE(
  4867. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4868. [C++], [[int foo (void) { return 0; }]],
  4869. [Fortran 77], [[
  4870. subroutine foo
  4871. end]],
  4872. [Fortran], [[
  4873. subroutine foo
  4874. end]])])],
  4875. [lt_cv_irix_exported_symbol=yes],
  4876. [lt_cv_irix_exported_symbol=no])
  4877. LDFLAGS="$save_LDFLAGS"])
  4878. if test "$lt_cv_irix_exported_symbol" = yes; then
  4879. _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'
  4880. fi
  4881. else
  4882. _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'
  4883. _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'
  4884. fi
  4885. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4886. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4887. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4888. _LT_TAGVAR(inherit_rpath, $1)=yes
  4889. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4890. ;;
  4891. netbsd* | netbsdelf*-gnu)
  4892. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4893. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4894. else
  4895. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4896. fi
  4897. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4898. _LT_TAGVAR(hardcode_direct, $1)=yes
  4899. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4900. ;;
  4901. newsos6)
  4902. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4903. _LT_TAGVAR(hardcode_direct, $1)=yes
  4904. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4905. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4906. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4907. ;;
  4908. *nto* | *qnx*)
  4909. ;;
  4910. openbsd*)
  4911. if test -f /usr/libexec/ld.so; then
  4912. _LT_TAGVAR(hardcode_direct, $1)=yes
  4913. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4914. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4915. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4916. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4917. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4918. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4919. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4920. else
  4921. case $host_os in
  4922. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4923. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4924. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4925. ;;
  4926. *)
  4927. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4928. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4929. ;;
  4930. esac
  4931. fi
  4932. else
  4933. _LT_TAGVAR(ld_shlibs, $1)=no
  4934. fi
  4935. ;;
  4936. os2*)
  4937. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4938. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4939. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4940. _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'
  4941. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4942. ;;
  4943. osf3*)
  4944. if test "$GCC" = yes; then
  4945. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4946. _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'
  4947. else
  4948. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4949. _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'
  4950. fi
  4951. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4952. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4953. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4954. ;;
  4955. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4956. if test "$GCC" = yes; then
  4957. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4958. _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'
  4959. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4960. else
  4961. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4962. _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'
  4963. _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~
  4964. $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'
  4965. # Both c and cxx compiler support -rpath directly
  4966. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4967. fi
  4968. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4969. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4970. ;;
  4971. solaris*)
  4972. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4973. if test "$GCC" = yes; then
  4974. wlarc='${wl}'
  4975. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4976. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4977. $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'
  4978. else
  4979. case `$CC -V 2>&1` in
  4980. *"Compilers 5.0"*)
  4981. wlarc=''
  4982. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4983. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4984. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4985. ;;
  4986. *)
  4987. wlarc='${wl}'
  4988. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4989. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4990. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4991. ;;
  4992. esac
  4993. fi
  4994. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4995. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4996. case $host_os in
  4997. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4998. *)
  4999. # The compiler driver will combine and reorder linker options,
  5000. # but understands `-z linker_flag'. GCC discards it without `$wl',
  5001. # but is careful enough not to reorder.
  5002. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5003. if test "$GCC" = yes; then
  5004. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5005. else
  5006. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5007. fi
  5008. ;;
  5009. esac
  5010. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5011. ;;
  5012. sunos4*)
  5013. if test "x$host_vendor" = xsequent; then
  5014. # Use $CC to link under sequent, because it throws in some extra .o
  5015. # files that make .init and .fini sections work.
  5016. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5017. else
  5018. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5019. fi
  5020. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5021. _LT_TAGVAR(hardcode_direct, $1)=yes
  5022. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5023. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5024. ;;
  5025. sysv4)
  5026. case $host_vendor in
  5027. sni)
  5028. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5029. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5030. ;;
  5031. siemens)
  5032. ## LD is ld it makes a PLAMLIB
  5033. ## CC just makes a GrossModule.
  5034. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5035. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5036. _LT_TAGVAR(hardcode_direct, $1)=no
  5037. ;;
  5038. motorola)
  5039. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5040. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5041. ;;
  5042. esac
  5043. runpath_var='LD_RUN_PATH'
  5044. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5045. ;;
  5046. sysv4.3*)
  5047. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5048. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5049. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5050. ;;
  5051. sysv4*MP*)
  5052. if test -d /usr/nec; then
  5053. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5054. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5055. runpath_var=LD_RUN_PATH
  5056. hardcode_runpath_var=yes
  5057. _LT_TAGVAR(ld_shlibs, $1)=yes
  5058. fi
  5059. ;;
  5060. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5061. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5062. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5063. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5064. runpath_var='LD_RUN_PATH'
  5065. if test "$GCC" = yes; then
  5066. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5067. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5068. else
  5069. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5070. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5071. fi
  5072. ;;
  5073. sysv5* | sco3.2v5* | sco5v6*)
  5074. # Note: We can NOT use -z defs as we might desire, because we do not
  5075. # link with -lc, and that would cause any symbols used from libc to
  5076. # always be unresolved, which means just about no library would
  5077. # ever link correctly. If we're not using GNU ld we use -z text
  5078. # though, which does catch some bad symbols but isn't as heavy-handed
  5079. # as -z defs.
  5080. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5081. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5082. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5083. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5084. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5085. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5086. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5087. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5088. runpath_var='LD_RUN_PATH'
  5089. if test "$GCC" = yes; then
  5090. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5091. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5092. else
  5093. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5094. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5095. fi
  5096. ;;
  5097. uts4*)
  5098. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5099. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5100. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5101. ;;
  5102. *)
  5103. _LT_TAGVAR(ld_shlibs, $1)=no
  5104. ;;
  5105. esac
  5106. if test x$host_vendor = xsni; then
  5107. case $host in
  5108. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5109. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5110. ;;
  5111. esac
  5112. fi
  5113. fi
  5114. ])
  5115. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5116. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5117. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5118. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5119. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5120. _LT_DECL([], [extract_expsyms_cmds], [2],
  5121. [The commands to extract the exported symbol list from a shared archive])
  5122. #
  5123. # Do we need to explicitly link libc?
  5124. #
  5125. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5126. x|xyes)
  5127. # Assume -lc should be added
  5128. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5129. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5130. case $_LT_TAGVAR(archive_cmds, $1) in
  5131. *'~'*)
  5132. # FIXME: we may have to deal with multi-command sequences.
  5133. ;;
  5134. '$CC '*)
  5135. # Test whether the compiler implicitly links with -lc since on some
  5136. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5137. # to ld, don't add -lc before -lgcc.
  5138. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5139. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5140. [$RM conftest*
  5141. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5142. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5143. soname=conftest
  5144. lib=conftest
  5145. libobjs=conftest.$ac_objext
  5146. deplibs=
  5147. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5148. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5149. compiler_flags=-v
  5150. linker_flags=-v
  5151. verstring=
  5152. output_objdir=.
  5153. libname=conftest
  5154. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5155. _LT_TAGVAR(allow_undefined_flag, $1)=
  5156. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5157. then
  5158. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5159. else
  5160. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5161. fi
  5162. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5163. else
  5164. cat conftest.err 1>&5
  5165. fi
  5166. $RM conftest*
  5167. ])
  5168. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5169. ;;
  5170. esac
  5171. fi
  5172. ;;
  5173. esac
  5174. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5175. [Whether or not to add -lc for building shared libraries])
  5176. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5177. [enable_shared_with_static_runtimes], [0],
  5178. [Whether or not to disallow shared libs when runtime libs are static])
  5179. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5180. [Compiler flag to allow reflexive dlopens])
  5181. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5182. [Compiler flag to generate shared objects directly from archives])
  5183. _LT_TAGDECL([], [compiler_needs_object], [1],
  5184. [Whether the compiler copes with passing no objects directly])
  5185. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5186. [Create an old-style archive from a shared archive])
  5187. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5188. [Create a temporary old-style archive to link instead of a shared archive])
  5189. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5190. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5191. _LT_TAGDECL([], [module_cmds], [2],
  5192. [Commands used to build a loadable module if different from building
  5193. a shared archive.])
  5194. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5195. _LT_TAGDECL([], [with_gnu_ld], [1],
  5196. [Whether we are building with GNU ld or not])
  5197. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5198. [Flag that allows shared libraries with undefined symbols to be built])
  5199. _LT_TAGDECL([], [no_undefined_flag], [1],
  5200. [Flag that enforces no undefined symbols])
  5201. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5202. [Flag to hardcode $libdir into a binary during linking.
  5203. This must work even if $libdir does not exist])
  5204. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5205. [Whether we need a single "-rpath" flag with a separated argument])
  5206. _LT_TAGDECL([], [hardcode_direct], [0],
  5207. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5208. DIR into the resulting binary])
  5209. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5210. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5211. DIR into the resulting binary and the resulting library dependency is
  5212. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5213. library is relocated])
  5214. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5215. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5216. into the resulting binary])
  5217. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5218. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5219. into the resulting binary])
  5220. _LT_TAGDECL([], [hardcode_automatic], [0],
  5221. [Set to "yes" if building a shared library automatically hardcodes DIR
  5222. into the library and all subsequent libraries and executables linked
  5223. against it])
  5224. _LT_TAGDECL([], [inherit_rpath], [0],
  5225. [Set to yes if linker adds runtime paths of dependent libraries
  5226. to runtime path list])
  5227. _LT_TAGDECL([], [link_all_deplibs], [0],
  5228. [Whether libtool must link a program against all its dependency libraries])
  5229. _LT_TAGDECL([], [always_export_symbols], [0],
  5230. [Set to "yes" if exported symbols are required])
  5231. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5232. [The commands to list exported symbols])
  5233. _LT_TAGDECL([], [exclude_expsyms], [1],
  5234. [Symbols that should not be listed in the preloaded symbols])
  5235. _LT_TAGDECL([], [include_expsyms], [1],
  5236. [Symbols that must always be exported])
  5237. _LT_TAGDECL([], [prelink_cmds], [2],
  5238. [Commands necessary for linking programs (against libraries) with templates])
  5239. _LT_TAGDECL([], [postlink_cmds], [2],
  5240. [Commands necessary for finishing linking programs])
  5241. _LT_TAGDECL([], [file_list_spec], [1],
  5242. [Specify filename containing input files])
  5243. dnl FIXME: Not yet implemented
  5244. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5245. dnl [Compiler flag to generate thread safe objects])
  5246. ])# _LT_LINKER_SHLIBS
  5247. # _LT_LANG_C_CONFIG([TAG])
  5248. # ------------------------
  5249. # Ensure that the configuration variables for a C compiler are suitably
  5250. # defined. These variables are subsequently used by _LT_CONFIG to write
  5251. # the compiler configuration to `libtool'.
  5252. m4_defun([_LT_LANG_C_CONFIG],
  5253. [m4_require([_LT_DECL_EGREP])dnl
  5254. lt_save_CC="$CC"
  5255. AC_LANG_PUSH(C)
  5256. # Source file extension for C test sources.
  5257. ac_ext=c
  5258. # Object file extension for compiled C test sources.
  5259. objext=o
  5260. _LT_TAGVAR(objext, $1)=$objext
  5261. # Code to be used in simple compile tests
  5262. lt_simple_compile_test_code="int some_variable = 0;"
  5263. # Code to be used in simple link tests
  5264. lt_simple_link_test_code='int main(){return(0);}'
  5265. _LT_TAG_COMPILER
  5266. # Save the default compiler, since it gets overwritten when the other
  5267. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5268. compiler_DEFAULT=$CC
  5269. # save warnings/boilerplate of simple test code
  5270. _LT_COMPILER_BOILERPLATE
  5271. _LT_LINKER_BOILERPLATE
  5272. if test -n "$compiler"; then
  5273. _LT_COMPILER_NO_RTTI($1)
  5274. _LT_COMPILER_PIC($1)
  5275. _LT_COMPILER_C_O($1)
  5276. _LT_COMPILER_FILE_LOCKS($1)
  5277. _LT_LINKER_SHLIBS($1)
  5278. _LT_SYS_DYNAMIC_LINKER($1)
  5279. _LT_LINKER_HARDCODE_LIBPATH($1)
  5280. LT_SYS_DLOPEN_SELF
  5281. _LT_CMD_STRIPLIB
  5282. # Report which library types will actually be built
  5283. AC_MSG_CHECKING([if libtool supports shared libraries])
  5284. AC_MSG_RESULT([$can_build_shared])
  5285. AC_MSG_CHECKING([whether to build shared libraries])
  5286. test "$can_build_shared" = "no" && enable_shared=no
  5287. # On AIX, shared libraries and static libraries use the same namespace, and
  5288. # are all built from PIC.
  5289. case $host_os in
  5290. aix3*)
  5291. test "$enable_shared" = yes && enable_static=no
  5292. if test -n "$RANLIB"; then
  5293. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5294. postinstall_cmds='$RANLIB $lib'
  5295. fi
  5296. ;;
  5297. aix[[4-9]]*)
  5298. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5299. test "$enable_shared" = yes && enable_static=no
  5300. fi
  5301. ;;
  5302. esac
  5303. AC_MSG_RESULT([$enable_shared])
  5304. AC_MSG_CHECKING([whether to build static libraries])
  5305. # Make sure either enable_shared or enable_static is yes.
  5306. test "$enable_shared" = yes || enable_static=yes
  5307. AC_MSG_RESULT([$enable_static])
  5308. _LT_CONFIG($1)
  5309. fi
  5310. AC_LANG_POP
  5311. CC="$lt_save_CC"
  5312. ])# _LT_LANG_C_CONFIG
  5313. # _LT_LANG_CXX_CONFIG([TAG])
  5314. # --------------------------
  5315. # Ensure that the configuration variables for a C++ compiler are suitably
  5316. # defined. These variables are subsequently used by _LT_CONFIG to write
  5317. # the compiler configuration to `libtool'.
  5318. m4_defun([_LT_LANG_CXX_CONFIG],
  5319. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5320. m4_require([_LT_DECL_EGREP])dnl
  5321. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5322. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5323. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5324. (test "X$CXX" != "Xg++"))) ; then
  5325. AC_PROG_CXXCPP
  5326. else
  5327. _lt_caught_CXX_error=yes
  5328. fi
  5329. AC_LANG_PUSH(C++)
  5330. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5331. _LT_TAGVAR(allow_undefined_flag, $1)=
  5332. _LT_TAGVAR(always_export_symbols, $1)=no
  5333. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5334. _LT_TAGVAR(compiler_needs_object, $1)=no
  5335. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5336. _LT_TAGVAR(hardcode_direct, $1)=no
  5337. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5338. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5339. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5340. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5341. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5342. _LT_TAGVAR(hardcode_automatic, $1)=no
  5343. _LT_TAGVAR(inherit_rpath, $1)=no
  5344. _LT_TAGVAR(module_cmds, $1)=
  5345. _LT_TAGVAR(module_expsym_cmds, $1)=
  5346. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5347. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5348. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5349. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5350. _LT_TAGVAR(no_undefined_flag, $1)=
  5351. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5352. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5353. # Source file extension for C++ test sources.
  5354. ac_ext=cpp
  5355. # Object file extension for compiled C++ test sources.
  5356. objext=o
  5357. _LT_TAGVAR(objext, $1)=$objext
  5358. # No sense in running all these tests if we already determined that
  5359. # the CXX compiler isn't working. Some variables (like enable_shared)
  5360. # are currently assumed to apply to all compilers on this platform,
  5361. # and will be corrupted by setting them based on a non-working compiler.
  5362. if test "$_lt_caught_CXX_error" != yes; then
  5363. # Code to be used in simple compile tests
  5364. lt_simple_compile_test_code="int some_variable = 0;"
  5365. # Code to be used in simple link tests
  5366. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5367. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5368. _LT_TAG_COMPILER
  5369. # save warnings/boilerplate of simple test code
  5370. _LT_COMPILER_BOILERPLATE
  5371. _LT_LINKER_BOILERPLATE
  5372. # Allow CC to be a program name with arguments.
  5373. lt_save_CC=$CC
  5374. lt_save_CFLAGS=$CFLAGS
  5375. lt_save_LD=$LD
  5376. lt_save_GCC=$GCC
  5377. GCC=$GXX
  5378. lt_save_with_gnu_ld=$with_gnu_ld
  5379. lt_save_path_LD=$lt_cv_path_LD
  5380. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5381. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5382. else
  5383. $as_unset lt_cv_prog_gnu_ld
  5384. fi
  5385. if test -n "${lt_cv_path_LDCXX+set}"; then
  5386. lt_cv_path_LD=$lt_cv_path_LDCXX
  5387. else
  5388. $as_unset lt_cv_path_LD
  5389. fi
  5390. test -z "${LDCXX+set}" || LD=$LDCXX
  5391. CC=${CXX-"c++"}
  5392. CFLAGS=$CXXFLAGS
  5393. compiler=$CC
  5394. _LT_TAGVAR(compiler, $1)=$CC
  5395. _LT_CC_BASENAME([$compiler])
  5396. if test -n "$compiler"; then
  5397. # We don't want -fno-exception when compiling C++ code, so set the
  5398. # no_builtin_flag separately
  5399. if test "$GXX" = yes; then
  5400. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5401. else
  5402. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5403. fi
  5404. if test "$GXX" = yes; then
  5405. # Set up default GNU C++ configuration
  5406. LT_PATH_LD
  5407. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5408. # archiving commands below assume that GNU ld is being used.
  5409. if test "$with_gnu_ld" = yes; then
  5410. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5411. _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'
  5412. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5413. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5414. # If archive_cmds runs LD, not CC, wlarc should be empty
  5415. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5416. # investigate it a little bit more. (MM)
  5417. wlarc='${wl}'
  5418. # ancient GNU ld didn't support --whole-archive et. al.
  5419. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5420. $GREP 'no-whole-archive' > /dev/null; then
  5421. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5422. else
  5423. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5424. fi
  5425. else
  5426. with_gnu_ld=no
  5427. wlarc=
  5428. # A generic and very simple default shared library creation
  5429. # command for GNU C++ for the case where it uses the native
  5430. # linker, instead of GNU ld. If possible, this setting should
  5431. # overridden to take advantage of the native linker features on
  5432. # the platform it is being used on.
  5433. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5434. fi
  5435. # Commands to make compiler produce verbose output that lists
  5436. # what "hidden" libraries, object files and flags are used when
  5437. # linking a shared library.
  5438. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5439. else
  5440. GXX=no
  5441. with_gnu_ld=no
  5442. wlarc=
  5443. fi
  5444. # PORTME: fill in a description of your system's C++ link characteristics
  5445. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5446. _LT_TAGVAR(ld_shlibs, $1)=yes
  5447. case $host_os in
  5448. aix3*)
  5449. # FIXME: insert proper C++ library support
  5450. _LT_TAGVAR(ld_shlibs, $1)=no
  5451. ;;
  5452. aix[[4-9]]*)
  5453. if test "$host_cpu" = ia64; then
  5454. # On IA64, the linker does run time linking by default, so we don't
  5455. # have to do anything special.
  5456. aix_use_runtimelinking=no
  5457. exp_sym_flag='-Bexport'
  5458. no_entry_flag=""
  5459. else
  5460. aix_use_runtimelinking=no
  5461. # Test if we are trying to use run time linking or normal
  5462. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5463. # need to do runtime linking.
  5464. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5465. for ld_flag in $LDFLAGS; do
  5466. case $ld_flag in
  5467. *-brtl*)
  5468. aix_use_runtimelinking=yes
  5469. break
  5470. ;;
  5471. esac
  5472. done
  5473. ;;
  5474. esac
  5475. exp_sym_flag='-bexport'
  5476. no_entry_flag='-bnoentry'
  5477. fi
  5478. # When large executables or shared objects are built, AIX ld can
  5479. # have problems creating the table of contents. If linking a library
  5480. # or program results in "error TOC overflow" add -mminimal-toc to
  5481. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5482. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5483. _LT_TAGVAR(archive_cmds, $1)=''
  5484. _LT_TAGVAR(hardcode_direct, $1)=yes
  5485. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5486. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5487. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5488. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5489. if test "$GXX" = yes; then
  5490. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5491. # We only want to do this on AIX 4.2 and lower, the check
  5492. # below for broken collect2 doesn't work under 4.3+
  5493. collect2name=`${CC} -print-prog-name=collect2`
  5494. if test -f "$collect2name" &&
  5495. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5496. then
  5497. # We have reworked collect2
  5498. :
  5499. else
  5500. # We have old collect2
  5501. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5502. # It fails to find uninstalled libraries when the uninstalled
  5503. # path is not listed in the libpath. Setting hardcode_minus_L
  5504. # to unsupported forces relinking
  5505. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5506. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5507. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5508. fi
  5509. esac
  5510. shared_flag='-shared'
  5511. if test "$aix_use_runtimelinking" = yes; then
  5512. shared_flag="$shared_flag "'${wl}-G'
  5513. fi
  5514. else
  5515. # not using gcc
  5516. if test "$host_cpu" = ia64; then
  5517. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5518. # chokes on -Wl,-G. The following line is correct:
  5519. shared_flag='-G'
  5520. else
  5521. if test "$aix_use_runtimelinking" = yes; then
  5522. shared_flag='${wl}-G'
  5523. else
  5524. shared_flag='${wl}-bM:SRE'
  5525. fi
  5526. fi
  5527. fi
  5528. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5529. # It seems that -bexpall does not export symbols beginning with
  5530. # underscore (_), so it is better to generate a list of symbols to
  5531. # export.
  5532. _LT_TAGVAR(always_export_symbols, $1)=yes
  5533. if test "$aix_use_runtimelinking" = yes; then
  5534. # Warning - without using the other runtime loading flags (-brtl),
  5535. # -berok will link without error, but may produce a broken library.
  5536. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5537. # Determine the default libpath from the value encoded in an empty
  5538. # executable.
  5539. _LT_SYS_MODULE_PATH_AIX([$1])
  5540. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5541. _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"
  5542. else
  5543. if test "$host_cpu" = ia64; then
  5544. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5545. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5546. _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"
  5547. else
  5548. # Determine the default libpath from the value encoded in an
  5549. # empty executable.
  5550. _LT_SYS_MODULE_PATH_AIX([$1])
  5551. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5552. # Warning - without using the other run time loading flags,
  5553. # -berok will link without error, but may produce a broken library.
  5554. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5555. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5556. if test "$with_gnu_ld" = yes; then
  5557. # We only use this code for GNU lds that support --whole-archive.
  5558. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5559. else
  5560. # Exported symbols can be pulled into shared objects from archives
  5561. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5562. fi
  5563. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5564. # This is similar to how AIX traditionally builds its shared
  5565. # libraries.
  5566. _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'
  5567. fi
  5568. fi
  5569. ;;
  5570. beos*)
  5571. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5572. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5573. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5574. # support --undefined. This deserves some investigation. FIXME
  5575. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5576. else
  5577. _LT_TAGVAR(ld_shlibs, $1)=no
  5578. fi
  5579. ;;
  5580. chorus*)
  5581. case $cc_basename in
  5582. *)
  5583. # FIXME: insert proper C++ library support
  5584. _LT_TAGVAR(ld_shlibs, $1)=no
  5585. ;;
  5586. esac
  5587. ;;
  5588. cygwin* | mingw* | pw32* | cegcc*)
  5589. case $GXX,$cc_basename in
  5590. ,cl* | no,cl*)
  5591. # Native MSVC
  5592. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5593. # no search path for DLLs.
  5594. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5595. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5596. _LT_TAGVAR(always_export_symbols, $1)=yes
  5597. _LT_TAGVAR(file_list_spec, $1)='@'
  5598. # Tell ltmain to make .lib files, not .a files.
  5599. libext=lib
  5600. # Tell ltmain to make .dll files, not .so files.
  5601. shrext_cmds=".dll"
  5602. # FIXME: Setting linknames here is a bad hack.
  5603. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5604. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5605. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5606. else
  5607. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5608. fi~
  5609. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5610. linknames='
  5611. # The linker will not automatically build a static lib if we build a DLL.
  5612. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5613. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5614. # Don't use ranlib
  5615. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5616. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5617. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5618. case $lt_outputfile in
  5619. *.exe|*.EXE) ;;
  5620. *)
  5621. lt_outputfile="$lt_outputfile.exe"
  5622. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5623. ;;
  5624. esac~
  5625. func_to_tool_file "$lt_outputfile"~
  5626. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5627. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5628. $RM "$lt_outputfile.manifest";
  5629. fi'
  5630. ;;
  5631. *)
  5632. # g++
  5633. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5634. # as there is no search path for DLLs.
  5635. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5636. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5637. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5638. _LT_TAGVAR(always_export_symbols, $1)=no
  5639. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5640. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5641. _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'
  5642. # If the export-symbols file already is a .def file (1st line
  5643. # is EXPORTS), use it as is; otherwise, prepend...
  5644. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5645. cp $export_symbols $output_objdir/$soname.def;
  5646. else
  5647. echo EXPORTS > $output_objdir/$soname.def;
  5648. cat $export_symbols >> $output_objdir/$soname.def;
  5649. fi~
  5650. $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'
  5651. else
  5652. _LT_TAGVAR(ld_shlibs, $1)=no
  5653. fi
  5654. ;;
  5655. esac
  5656. ;;
  5657. darwin* | rhapsody*)
  5658. _LT_DARWIN_LINKER_FEATURES($1)
  5659. ;;
  5660. dgux*)
  5661. case $cc_basename in
  5662. ec++*)
  5663. # FIXME: insert proper C++ library support
  5664. _LT_TAGVAR(ld_shlibs, $1)=no
  5665. ;;
  5666. ghcx*)
  5667. # Green Hills C++ Compiler
  5668. # FIXME: insert proper C++ library support
  5669. _LT_TAGVAR(ld_shlibs, $1)=no
  5670. ;;
  5671. *)
  5672. # FIXME: insert proper C++ library support
  5673. _LT_TAGVAR(ld_shlibs, $1)=no
  5674. ;;
  5675. esac
  5676. ;;
  5677. freebsd2.*)
  5678. # C++ shared libraries reported to be fairly broken before
  5679. # switch to ELF
  5680. _LT_TAGVAR(ld_shlibs, $1)=no
  5681. ;;
  5682. freebsd-elf*)
  5683. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5684. ;;
  5685. freebsd* | dragonfly*)
  5686. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5687. # conventions
  5688. _LT_TAGVAR(ld_shlibs, $1)=yes
  5689. ;;
  5690. gnu*)
  5691. ;;
  5692. haiku*)
  5693. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5694. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5695. ;;
  5696. hpux9*)
  5697. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5698. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5699. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5700. _LT_TAGVAR(hardcode_direct, $1)=yes
  5701. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5702. # but as the default
  5703. # location of the library.
  5704. case $cc_basename in
  5705. CC*)
  5706. # FIXME: insert proper C++ library support
  5707. _LT_TAGVAR(ld_shlibs, $1)=no
  5708. ;;
  5709. aCC*)
  5710. _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'
  5711. # Commands to make compiler produce verbose output that lists
  5712. # what "hidden" libraries, object files and flags are used when
  5713. # linking a shared library.
  5714. #
  5715. # There doesn't appear to be a way to prevent this compiler from
  5716. # explicitly linking system object files so we need to strip them
  5717. # from the output so that they don't get included in the library
  5718. # dependencies.
  5719. 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"'
  5720. ;;
  5721. *)
  5722. if test "$GXX" = yes; then
  5723. _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'
  5724. else
  5725. # FIXME: insert proper C++ library support
  5726. _LT_TAGVAR(ld_shlibs, $1)=no
  5727. fi
  5728. ;;
  5729. esac
  5730. ;;
  5731. hpux10*|hpux11*)
  5732. if test $with_gnu_ld = no; then
  5733. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5734. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5735. case $host_cpu in
  5736. hppa*64*|ia64*)
  5737. ;;
  5738. *)
  5739. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5740. ;;
  5741. esac
  5742. fi
  5743. case $host_cpu in
  5744. hppa*64*|ia64*)
  5745. _LT_TAGVAR(hardcode_direct, $1)=no
  5746. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5747. ;;
  5748. *)
  5749. _LT_TAGVAR(hardcode_direct, $1)=yes
  5750. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5751. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5752. # but as the default
  5753. # location of the library.
  5754. ;;
  5755. esac
  5756. case $cc_basename in
  5757. CC*)
  5758. # FIXME: insert proper C++ library support
  5759. _LT_TAGVAR(ld_shlibs, $1)=no
  5760. ;;
  5761. aCC*)
  5762. case $host_cpu in
  5763. hppa*64*)
  5764. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5765. ;;
  5766. ia64*)
  5767. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5768. ;;
  5769. *)
  5770. _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'
  5771. ;;
  5772. esac
  5773. # Commands to make compiler produce verbose output that lists
  5774. # what "hidden" libraries, object files and flags are used when
  5775. # linking a shared library.
  5776. #
  5777. # There doesn't appear to be a way to prevent this compiler from
  5778. # explicitly linking system object files so we need to strip them
  5779. # from the output so that they don't get included in the library
  5780. # dependencies.
  5781. 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"'
  5782. ;;
  5783. *)
  5784. if test "$GXX" = yes; then
  5785. if test $with_gnu_ld = no; then
  5786. case $host_cpu in
  5787. hppa*64*)
  5788. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5789. ;;
  5790. ia64*)
  5791. _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'
  5792. ;;
  5793. *)
  5794. _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'
  5795. ;;
  5796. esac
  5797. fi
  5798. else
  5799. # FIXME: insert proper C++ library support
  5800. _LT_TAGVAR(ld_shlibs, $1)=no
  5801. fi
  5802. ;;
  5803. esac
  5804. ;;
  5805. interix[[3-9]]*)
  5806. _LT_TAGVAR(hardcode_direct, $1)=no
  5807. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5808. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5809. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5810. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5811. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5812. # default) and relocated if they conflict, which is a slow very memory
  5813. # consuming and fragmenting process. To avoid this, we pick a random,
  5814. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5815. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5816. _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'
  5817. _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'
  5818. ;;
  5819. irix5* | irix6*)
  5820. case $cc_basename in
  5821. CC*)
  5822. # SGI C++
  5823. _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'
  5824. # Archives containing C++ object files must be created using
  5825. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5826. # necessary to make sure instantiated templates are included
  5827. # in the archive.
  5828. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5829. ;;
  5830. *)
  5831. if test "$GXX" = yes; then
  5832. if test "$with_gnu_ld" = no; then
  5833. _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'
  5834. else
  5835. _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'
  5836. fi
  5837. fi
  5838. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5839. ;;
  5840. esac
  5841. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5842. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5843. _LT_TAGVAR(inherit_rpath, $1)=yes
  5844. ;;
  5845. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5846. case $cc_basename in
  5847. KCC*)
  5848. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5849. # KCC will only create a shared library if the output file
  5850. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5851. # to its proper name (with version) after linking.
  5852. _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'
  5853. _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'
  5854. # Commands to make compiler produce verbose output that lists
  5855. # what "hidden" libraries, object files and flags are used when
  5856. # linking a shared library.
  5857. #
  5858. # There doesn't appear to be a way to prevent this compiler from
  5859. # explicitly linking system object files so we need to strip them
  5860. # from the output so that they don't get included in the library
  5861. # dependencies.
  5862. 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"'
  5863. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5864. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5865. # Archives containing C++ object files must be created using
  5866. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5867. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5868. ;;
  5869. icpc* | ecpc* )
  5870. # Intel C++
  5871. with_gnu_ld=yes
  5872. # version 8.0 and above of icpc choke on multiply defined symbols
  5873. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5874. # earlier do not add the objects themselves.
  5875. case `$CC -V 2>&1` in
  5876. *"Version 7."*)
  5877. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5878. _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'
  5879. ;;
  5880. *) # Version 8.0 or newer
  5881. tmp_idyn=
  5882. case $host_cpu in
  5883. ia64*) tmp_idyn=' -i_dynamic';;
  5884. esac
  5885. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5886. _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'
  5887. ;;
  5888. esac
  5889. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5890. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5891. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5892. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5893. ;;
  5894. pgCC* | pgcpp*)
  5895. # Portland Group C++ compiler
  5896. case `$CC -V` in
  5897. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5898. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5899. rm -rf $tpldir~
  5900. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5901. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5902. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5903. rm -rf $tpldir~
  5904. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5905. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5906. $RANLIB $oldlib'
  5907. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5908. rm -rf $tpldir~
  5909. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5910. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5911. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5912. rm -rf $tpldir~
  5913. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5914. $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'
  5915. ;;
  5916. *) # Version 6 and above use weak symbols
  5917. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5918. _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'
  5919. ;;
  5920. esac
  5921. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5922. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5923. _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'
  5924. ;;
  5925. cxx*)
  5926. # Compaq C++
  5927. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5928. _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'
  5929. runpath_var=LD_RUN_PATH
  5930. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5931. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5932. # Commands to make compiler produce verbose output that lists
  5933. # what "hidden" libraries, object files and flags are used when
  5934. # linking a shared library.
  5935. #
  5936. # There doesn't appear to be a way to prevent this compiler from
  5937. # explicitly linking system object files so we need to strip them
  5938. # from the output so that they don't get included in the library
  5939. # dependencies.
  5940. 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'
  5941. ;;
  5942. xl* | mpixl* | bgxl*)
  5943. # IBM XL 8.0 on PPC, with GNU ld
  5944. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5945. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5946. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5947. if test "x$supports_anon_versioning" = xyes; then
  5948. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5949. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5950. echo "local: *; };" >> $output_objdir/$libname.ver~
  5951. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5952. fi
  5953. ;;
  5954. *)
  5955. case `$CC -V 2>&1 | sed 5q` in
  5956. *Sun\ C*)
  5957. # Sun C++ 5.9
  5958. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5959. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5960. _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'
  5961. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5962. _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'
  5963. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5964. # Not sure whether something based on
  5965. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5966. # would be better.
  5967. output_verbose_link_cmd='func_echo_all'
  5968. # Archives containing C++ object files must be created using
  5969. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5970. # necessary to make sure instantiated templates are included
  5971. # in the archive.
  5972. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5973. ;;
  5974. esac
  5975. ;;
  5976. esac
  5977. ;;
  5978. lynxos*)
  5979. # FIXME: insert proper C++ library support
  5980. _LT_TAGVAR(ld_shlibs, $1)=no
  5981. ;;
  5982. m88k*)
  5983. # FIXME: insert proper C++ library support
  5984. _LT_TAGVAR(ld_shlibs, $1)=no
  5985. ;;
  5986. mvs*)
  5987. case $cc_basename in
  5988. cxx*)
  5989. # FIXME: insert proper C++ library support
  5990. _LT_TAGVAR(ld_shlibs, $1)=no
  5991. ;;
  5992. *)
  5993. # FIXME: insert proper C++ library support
  5994. _LT_TAGVAR(ld_shlibs, $1)=no
  5995. ;;
  5996. esac
  5997. ;;
  5998. netbsd*)
  5999. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6000. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6001. wlarc=
  6002. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6003. _LT_TAGVAR(hardcode_direct, $1)=yes
  6004. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6005. fi
  6006. # Workaround some broken pre-1.5 toolchains
  6007. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6008. ;;
  6009. *nto* | *qnx*)
  6010. _LT_TAGVAR(ld_shlibs, $1)=yes
  6011. ;;
  6012. openbsd2*)
  6013. # C++ shared libraries are fairly broken
  6014. _LT_TAGVAR(ld_shlibs, $1)=no
  6015. ;;
  6016. openbsd*)
  6017. if test -f /usr/libexec/ld.so; then
  6018. _LT_TAGVAR(hardcode_direct, $1)=yes
  6019. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6020. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6021. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6022. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6023. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6024. _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'
  6025. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6026. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6027. fi
  6028. output_verbose_link_cmd=func_echo_all
  6029. else
  6030. _LT_TAGVAR(ld_shlibs, $1)=no
  6031. fi
  6032. ;;
  6033. osf3* | osf4* | osf5*)
  6034. case $cc_basename in
  6035. KCC*)
  6036. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6037. # KCC will only create a shared library if the output file
  6038. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6039. # to its proper name (with version) after linking.
  6040. _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'
  6041. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6042. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6043. # Archives containing C++ object files must be created using
  6044. # the KAI C++ compiler.
  6045. case $host in
  6046. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6047. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6048. esac
  6049. ;;
  6050. RCC*)
  6051. # Rational C++ 2.4.1
  6052. # FIXME: insert proper C++ library support
  6053. _LT_TAGVAR(ld_shlibs, $1)=no
  6054. ;;
  6055. cxx*)
  6056. case $host in
  6057. osf3*)
  6058. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6059. _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'
  6060. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6061. ;;
  6062. *)
  6063. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6064. _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'
  6065. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6066. echo "-hidden">> $lib.exp~
  6067. $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~
  6068. $RM $lib.exp'
  6069. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6070. ;;
  6071. esac
  6072. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6073. # Commands to make compiler produce verbose output that lists
  6074. # what "hidden" libraries, object files and flags are used when
  6075. # linking a shared library.
  6076. #
  6077. # There doesn't appear to be a way to prevent this compiler from
  6078. # explicitly linking system object files so we need to strip them
  6079. # from the output so that they don't get included in the library
  6080. # dependencies.
  6081. 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"'
  6082. ;;
  6083. *)
  6084. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6085. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6086. case $host in
  6087. osf3*)
  6088. _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'
  6089. ;;
  6090. *)
  6091. _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'
  6092. ;;
  6093. esac
  6094. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6095. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6096. # Commands to make compiler produce verbose output that lists
  6097. # what "hidden" libraries, object files and flags are used when
  6098. # linking a shared library.
  6099. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6100. else
  6101. # FIXME: insert proper C++ library support
  6102. _LT_TAGVAR(ld_shlibs, $1)=no
  6103. fi
  6104. ;;
  6105. esac
  6106. ;;
  6107. psos*)
  6108. # FIXME: insert proper C++ library support
  6109. _LT_TAGVAR(ld_shlibs, $1)=no
  6110. ;;
  6111. sunos4*)
  6112. case $cc_basename in
  6113. CC*)
  6114. # Sun C++ 4.x
  6115. # FIXME: insert proper C++ library support
  6116. _LT_TAGVAR(ld_shlibs, $1)=no
  6117. ;;
  6118. lcc*)
  6119. # Lucid
  6120. # FIXME: insert proper C++ library support
  6121. _LT_TAGVAR(ld_shlibs, $1)=no
  6122. ;;
  6123. *)
  6124. # FIXME: insert proper C++ library support
  6125. _LT_TAGVAR(ld_shlibs, $1)=no
  6126. ;;
  6127. esac
  6128. ;;
  6129. solaris*)
  6130. case $cc_basename in
  6131. CC* | sunCC*)
  6132. # Sun C++ 4.2, 5.x and Centerline C++
  6133. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6134. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6135. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6136. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6137. $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'
  6138. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6139. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6140. case $host_os in
  6141. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6142. *)
  6143. # The compiler driver will combine and reorder linker options,
  6144. # but understands `-z linker_flag'.
  6145. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6146. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6147. ;;
  6148. esac
  6149. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6150. output_verbose_link_cmd='func_echo_all'
  6151. # Archives containing C++ object files must be created using
  6152. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6153. # necessary to make sure instantiated templates are included
  6154. # in the archive.
  6155. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6156. ;;
  6157. gcx*)
  6158. # Green Hills C++ Compiler
  6159. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6160. # The C++ compiler must be used to create the archive.
  6161. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6162. ;;
  6163. *)
  6164. # GNU C++ compiler with Solaris linker
  6165. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6166. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6167. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6168. _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'
  6169. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6170. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6171. # Commands to make compiler produce verbose output that lists
  6172. # what "hidden" libraries, object files and flags are used when
  6173. # linking a shared library.
  6174. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6175. else
  6176. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6177. # platform.
  6178. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6179. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6180. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6181. # Commands to make compiler produce verbose output that lists
  6182. # what "hidden" libraries, object files and flags are used when
  6183. # linking a shared library.
  6184. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6185. fi
  6186. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6187. case $host_os in
  6188. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6189. *)
  6190. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6191. ;;
  6192. esac
  6193. fi
  6194. ;;
  6195. esac
  6196. ;;
  6197. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6198. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6199. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6200. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6201. runpath_var='LD_RUN_PATH'
  6202. case $cc_basename in
  6203. CC*)
  6204. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6205. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6206. ;;
  6207. *)
  6208. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6209. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6210. ;;
  6211. esac
  6212. ;;
  6213. sysv5* | sco3.2v5* | sco5v6*)
  6214. # Note: We can NOT use -z defs as we might desire, because we do not
  6215. # link with -lc, and that would cause any symbols used from libc to
  6216. # always be unresolved, which means just about no library would
  6217. # ever link correctly. If we're not using GNU ld we use -z text
  6218. # though, which does catch some bad symbols but isn't as heavy-handed
  6219. # as -z defs.
  6220. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6221. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6222. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6223. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6224. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6225. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6226. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6227. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6228. runpath_var='LD_RUN_PATH'
  6229. case $cc_basename in
  6230. CC*)
  6231. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6232. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6233. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6234. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6235. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6236. '"$_LT_TAGVAR(reload_cmds, $1)"
  6237. ;;
  6238. *)
  6239. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6240. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6241. ;;
  6242. esac
  6243. ;;
  6244. tandem*)
  6245. case $cc_basename in
  6246. NCC*)
  6247. # NonStop-UX NCC 3.20
  6248. # FIXME: insert proper C++ library support
  6249. _LT_TAGVAR(ld_shlibs, $1)=no
  6250. ;;
  6251. *)
  6252. # FIXME: insert proper C++ library support
  6253. _LT_TAGVAR(ld_shlibs, $1)=no
  6254. ;;
  6255. esac
  6256. ;;
  6257. vxworks*)
  6258. # FIXME: insert proper C++ library support
  6259. _LT_TAGVAR(ld_shlibs, $1)=no
  6260. ;;
  6261. *)
  6262. # FIXME: insert proper C++ library support
  6263. _LT_TAGVAR(ld_shlibs, $1)=no
  6264. ;;
  6265. esac
  6266. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6267. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6268. _LT_TAGVAR(GCC, $1)="$GXX"
  6269. _LT_TAGVAR(LD, $1)="$LD"
  6270. ## CAVEAT EMPTOR:
  6271. ## There is no encapsulation within the following macros, do not change
  6272. ## the running order or otherwise move them around unless you know exactly
  6273. ## what you are doing...
  6274. _LT_SYS_HIDDEN_LIBDEPS($1)
  6275. _LT_COMPILER_PIC($1)
  6276. _LT_COMPILER_C_O($1)
  6277. _LT_COMPILER_FILE_LOCKS($1)
  6278. _LT_LINKER_SHLIBS($1)
  6279. _LT_SYS_DYNAMIC_LINKER($1)
  6280. _LT_LINKER_HARDCODE_LIBPATH($1)
  6281. _LT_CONFIG($1)
  6282. fi # test -n "$compiler"
  6283. CC=$lt_save_CC
  6284. CFLAGS=$lt_save_CFLAGS
  6285. LDCXX=$LD
  6286. LD=$lt_save_LD
  6287. GCC=$lt_save_GCC
  6288. with_gnu_ld=$lt_save_with_gnu_ld
  6289. lt_cv_path_LDCXX=$lt_cv_path_LD
  6290. lt_cv_path_LD=$lt_save_path_LD
  6291. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6292. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6293. fi # test "$_lt_caught_CXX_error" != yes
  6294. AC_LANG_POP
  6295. ])# _LT_LANG_CXX_CONFIG
  6296. # _LT_FUNC_STRIPNAME_CNF
  6297. # ----------------------
  6298. # func_stripname_cnf prefix suffix name
  6299. # strip PREFIX and SUFFIX off of NAME.
  6300. # PREFIX and SUFFIX must not contain globbing or regex special
  6301. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6302. # dot (in which case that matches only a dot).
  6303. #
  6304. # This function is identical to the (non-XSI) version of func_stripname,
  6305. # except this one can be used by m4 code that may be executed by configure,
  6306. # rather than the libtool script.
  6307. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6308. AC_REQUIRE([_LT_DECL_SED])
  6309. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6310. func_stripname_cnf ()
  6311. {
  6312. case ${2} in
  6313. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6314. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6315. esac
  6316. } # func_stripname_cnf
  6317. ])# _LT_FUNC_STRIPNAME_CNF
  6318. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6319. # ---------------------------------
  6320. # Figure out "hidden" library dependencies from verbose
  6321. # compiler output when linking a shared library.
  6322. # Parse the compiler output and extract the necessary
  6323. # objects, libraries and library flags.
  6324. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6325. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6326. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6327. # Dependencies to place before and after the object being linked:
  6328. _LT_TAGVAR(predep_objects, $1)=
  6329. _LT_TAGVAR(postdep_objects, $1)=
  6330. _LT_TAGVAR(predeps, $1)=
  6331. _LT_TAGVAR(postdeps, $1)=
  6332. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6333. dnl we can't use the lt_simple_compile_test_code here,
  6334. dnl because it contains code intended for an executable,
  6335. dnl not a library. It's possible we should let each
  6336. dnl tag define a new lt_????_link_test_code variable,
  6337. dnl but it's only used here...
  6338. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6339. int a;
  6340. void foo (void) { a = 0; }
  6341. _LT_EOF
  6342. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6343. class Foo
  6344. {
  6345. public:
  6346. Foo (void) { a = 0; }
  6347. private:
  6348. int a;
  6349. };
  6350. _LT_EOF
  6351. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6352. subroutine foo
  6353. implicit none
  6354. integer*4 a
  6355. a=0
  6356. return
  6357. end
  6358. _LT_EOF
  6359. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6360. subroutine foo
  6361. implicit none
  6362. integer a
  6363. a=0
  6364. return
  6365. end
  6366. _LT_EOF
  6367. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6368. public class foo {
  6369. private int a;
  6370. public void bar (void) {
  6371. a = 0;
  6372. }
  6373. };
  6374. _LT_EOF
  6375. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6376. package foo
  6377. func foo() {
  6378. }
  6379. _LT_EOF
  6380. ])
  6381. _lt_libdeps_save_CFLAGS=$CFLAGS
  6382. case "$CC $CFLAGS " in #(
  6383. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6384. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6385. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6386. esac
  6387. dnl Parse the compiler output and extract the necessary
  6388. dnl objects, libraries and library flags.
  6389. if AC_TRY_EVAL(ac_compile); then
  6390. # Parse the compiler output and extract the necessary
  6391. # objects, libraries and library flags.
  6392. # Sentinel used to keep track of whether or not we are before
  6393. # the conftest object file.
  6394. pre_test_object_deps_done=no
  6395. for p in `eval "$output_verbose_link_cmd"`; do
  6396. case ${prev}${p} in
  6397. -L* | -R* | -l*)
  6398. # Some compilers place space between "-{L,R}" and the path.
  6399. # Remove the space.
  6400. if test $p = "-L" ||
  6401. test $p = "-R"; then
  6402. prev=$p
  6403. continue
  6404. fi
  6405. # Expand the sysroot to ease extracting the directories later.
  6406. if test -z "$prev"; then
  6407. case $p in
  6408. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6409. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6410. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6411. esac
  6412. fi
  6413. case $p in
  6414. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6415. esac
  6416. if test "$pre_test_object_deps_done" = no; then
  6417. case ${prev} in
  6418. -L | -R)
  6419. # Internal compiler library paths should come after those
  6420. # provided the user. The postdeps already come after the
  6421. # user supplied libs so there is no need to process them.
  6422. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6423. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6424. else
  6425. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6426. fi
  6427. ;;
  6428. # The "-l" case would never come before the object being
  6429. # linked, so don't bother handling this case.
  6430. esac
  6431. else
  6432. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6433. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6434. else
  6435. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6436. fi
  6437. fi
  6438. prev=
  6439. ;;
  6440. *.lto.$objext) ;; # Ignore GCC LTO objects
  6441. *.$objext)
  6442. # This assumes that the test object file only shows up
  6443. # once in the compiler output.
  6444. if test "$p" = "conftest.$objext"; then
  6445. pre_test_object_deps_done=yes
  6446. continue
  6447. fi
  6448. if test "$pre_test_object_deps_done" = no; then
  6449. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6450. _LT_TAGVAR(predep_objects, $1)="$p"
  6451. else
  6452. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6453. fi
  6454. else
  6455. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6456. _LT_TAGVAR(postdep_objects, $1)="$p"
  6457. else
  6458. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6459. fi
  6460. fi
  6461. ;;
  6462. *) ;; # Ignore the rest.
  6463. esac
  6464. done
  6465. # Clean up.
  6466. rm -f a.out a.exe
  6467. else
  6468. echo "libtool.m4: error: problem compiling $1 test program"
  6469. fi
  6470. $RM -f confest.$objext
  6471. CFLAGS=$_lt_libdeps_save_CFLAGS
  6472. # PORTME: override above test on systems where it is broken
  6473. m4_if([$1], [CXX],
  6474. [case $host_os in
  6475. interix[[3-9]]*)
  6476. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6477. # hack all around it, let's just trust "g++" to DTRT.
  6478. _LT_TAGVAR(predep_objects,$1)=
  6479. _LT_TAGVAR(postdep_objects,$1)=
  6480. _LT_TAGVAR(postdeps,$1)=
  6481. ;;
  6482. linux*)
  6483. case `$CC -V 2>&1 | sed 5q` in
  6484. *Sun\ C*)
  6485. # Sun C++ 5.9
  6486. # The more standards-conforming stlport4 library is
  6487. # incompatible with the Cstd library. Avoid specifying
  6488. # it if it's in CXXFLAGS. Ignore libCrun as
  6489. # -library=stlport4 depends on it.
  6490. case " $CXX $CXXFLAGS " in
  6491. *" -library=stlport4 "*)
  6492. solaris_use_stlport4=yes
  6493. ;;
  6494. esac
  6495. if test "$solaris_use_stlport4" != yes; then
  6496. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6497. fi
  6498. ;;
  6499. esac
  6500. ;;
  6501. solaris*)
  6502. case $cc_basename in
  6503. CC* | sunCC*)
  6504. # The more standards-conforming stlport4 library is
  6505. # incompatible with the Cstd library. Avoid specifying
  6506. # it if it's in CXXFLAGS. Ignore libCrun as
  6507. # -library=stlport4 depends on it.
  6508. case " $CXX $CXXFLAGS " in
  6509. *" -library=stlport4 "*)
  6510. solaris_use_stlport4=yes
  6511. ;;
  6512. esac
  6513. # Adding this requires a known-good setup of shared libraries for
  6514. # Sun compiler versions before 5.6, else PIC objects from an old
  6515. # archive will be linked into the output, leading to subtle bugs.
  6516. if test "$solaris_use_stlport4" != yes; then
  6517. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6518. fi
  6519. ;;
  6520. esac
  6521. ;;
  6522. esac
  6523. ])
  6524. case " $_LT_TAGVAR(postdeps, $1) " in
  6525. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6526. esac
  6527. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6528. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6529. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6530. fi
  6531. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6532. [The directories searched by this compiler when creating a shared library])
  6533. _LT_TAGDECL([], [predep_objects], [1],
  6534. [Dependencies to place before and after the objects being linked to
  6535. create a shared library])
  6536. _LT_TAGDECL([], [postdep_objects], [1])
  6537. _LT_TAGDECL([], [predeps], [1])
  6538. _LT_TAGDECL([], [postdeps], [1])
  6539. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6540. [The library search path used internally by the compiler when linking
  6541. a shared library])
  6542. ])# _LT_SYS_HIDDEN_LIBDEPS
  6543. # _LT_LANG_F77_CONFIG([TAG])
  6544. # --------------------------
  6545. # Ensure that the configuration variables for a Fortran 77 compiler are
  6546. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6547. # to write the compiler configuration to `libtool'.
  6548. m4_defun([_LT_LANG_F77_CONFIG],
  6549. [AC_LANG_PUSH(Fortran 77)
  6550. if test -z "$F77" || test "X$F77" = "Xno"; then
  6551. _lt_disable_F77=yes
  6552. fi
  6553. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6554. _LT_TAGVAR(allow_undefined_flag, $1)=
  6555. _LT_TAGVAR(always_export_symbols, $1)=no
  6556. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6557. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6558. _LT_TAGVAR(hardcode_direct, $1)=no
  6559. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6560. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6561. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6562. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6563. _LT_TAGVAR(hardcode_automatic, $1)=no
  6564. _LT_TAGVAR(inherit_rpath, $1)=no
  6565. _LT_TAGVAR(module_cmds, $1)=
  6566. _LT_TAGVAR(module_expsym_cmds, $1)=
  6567. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6568. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6569. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6570. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6571. _LT_TAGVAR(no_undefined_flag, $1)=
  6572. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6573. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6574. # Source file extension for f77 test sources.
  6575. ac_ext=f
  6576. # Object file extension for compiled f77 test sources.
  6577. objext=o
  6578. _LT_TAGVAR(objext, $1)=$objext
  6579. # No sense in running all these tests if we already determined that
  6580. # the F77 compiler isn't working. Some variables (like enable_shared)
  6581. # are currently assumed to apply to all compilers on this platform,
  6582. # and will be corrupted by setting them based on a non-working compiler.
  6583. if test "$_lt_disable_F77" != yes; then
  6584. # Code to be used in simple compile tests
  6585. lt_simple_compile_test_code="\
  6586. subroutine t
  6587. return
  6588. end
  6589. "
  6590. # Code to be used in simple link tests
  6591. lt_simple_link_test_code="\
  6592. program t
  6593. end
  6594. "
  6595. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6596. _LT_TAG_COMPILER
  6597. # save warnings/boilerplate of simple test code
  6598. _LT_COMPILER_BOILERPLATE
  6599. _LT_LINKER_BOILERPLATE
  6600. # Allow CC to be a program name with arguments.
  6601. lt_save_CC="$CC"
  6602. lt_save_GCC=$GCC
  6603. lt_save_CFLAGS=$CFLAGS
  6604. CC=${F77-"f77"}
  6605. CFLAGS=$FFLAGS
  6606. compiler=$CC
  6607. _LT_TAGVAR(compiler, $1)=$CC
  6608. _LT_CC_BASENAME([$compiler])
  6609. GCC=$G77
  6610. if test -n "$compiler"; then
  6611. AC_MSG_CHECKING([if libtool supports shared libraries])
  6612. AC_MSG_RESULT([$can_build_shared])
  6613. AC_MSG_CHECKING([whether to build shared libraries])
  6614. test "$can_build_shared" = "no" && enable_shared=no
  6615. # On AIX, shared libraries and static libraries use the same namespace, and
  6616. # are all built from PIC.
  6617. case $host_os in
  6618. aix3*)
  6619. test "$enable_shared" = yes && enable_static=no
  6620. if test -n "$RANLIB"; then
  6621. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6622. postinstall_cmds='$RANLIB $lib'
  6623. fi
  6624. ;;
  6625. aix[[4-9]]*)
  6626. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6627. test "$enable_shared" = yes && enable_static=no
  6628. fi
  6629. ;;
  6630. esac
  6631. AC_MSG_RESULT([$enable_shared])
  6632. AC_MSG_CHECKING([whether to build static libraries])
  6633. # Make sure either enable_shared or enable_static is yes.
  6634. test "$enable_shared" = yes || enable_static=yes
  6635. AC_MSG_RESULT([$enable_static])
  6636. _LT_TAGVAR(GCC, $1)="$G77"
  6637. _LT_TAGVAR(LD, $1)="$LD"
  6638. ## CAVEAT EMPTOR:
  6639. ## There is no encapsulation within the following macros, do not change
  6640. ## the running order or otherwise move them around unless you know exactly
  6641. ## what you are doing...
  6642. _LT_COMPILER_PIC($1)
  6643. _LT_COMPILER_C_O($1)
  6644. _LT_COMPILER_FILE_LOCKS($1)
  6645. _LT_LINKER_SHLIBS($1)
  6646. _LT_SYS_DYNAMIC_LINKER($1)
  6647. _LT_LINKER_HARDCODE_LIBPATH($1)
  6648. _LT_CONFIG($1)
  6649. fi # test -n "$compiler"
  6650. GCC=$lt_save_GCC
  6651. CC="$lt_save_CC"
  6652. CFLAGS="$lt_save_CFLAGS"
  6653. fi # test "$_lt_disable_F77" != yes
  6654. AC_LANG_POP
  6655. ])# _LT_LANG_F77_CONFIG
  6656. # _LT_LANG_FC_CONFIG([TAG])
  6657. # -------------------------
  6658. # Ensure that the configuration variables for a Fortran compiler are
  6659. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6660. # to write the compiler configuration to `libtool'.
  6661. m4_defun([_LT_LANG_FC_CONFIG],
  6662. [AC_LANG_PUSH(Fortran)
  6663. if test -z "$FC" || test "X$FC" = "Xno"; then
  6664. _lt_disable_FC=yes
  6665. fi
  6666. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6667. _LT_TAGVAR(allow_undefined_flag, $1)=
  6668. _LT_TAGVAR(always_export_symbols, $1)=no
  6669. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6670. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6671. _LT_TAGVAR(hardcode_direct, $1)=no
  6672. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6673. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6674. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6675. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6676. _LT_TAGVAR(hardcode_automatic, $1)=no
  6677. _LT_TAGVAR(inherit_rpath, $1)=no
  6678. _LT_TAGVAR(module_cmds, $1)=
  6679. _LT_TAGVAR(module_expsym_cmds, $1)=
  6680. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6681. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6682. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6683. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6684. _LT_TAGVAR(no_undefined_flag, $1)=
  6685. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6686. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6687. # Source file extension for fc test sources.
  6688. ac_ext=${ac_fc_srcext-f}
  6689. # Object file extension for compiled fc test sources.
  6690. objext=o
  6691. _LT_TAGVAR(objext, $1)=$objext
  6692. # No sense in running all these tests if we already determined that
  6693. # the FC compiler isn't working. Some variables (like enable_shared)
  6694. # are currently assumed to apply to all compilers on this platform,
  6695. # and will be corrupted by setting them based on a non-working compiler.
  6696. if test "$_lt_disable_FC" != yes; then
  6697. # Code to be used in simple compile tests
  6698. lt_simple_compile_test_code="\
  6699. subroutine t
  6700. return
  6701. end
  6702. "
  6703. # Code to be used in simple link tests
  6704. lt_simple_link_test_code="\
  6705. program t
  6706. end
  6707. "
  6708. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6709. _LT_TAG_COMPILER
  6710. # save warnings/boilerplate of simple test code
  6711. _LT_COMPILER_BOILERPLATE
  6712. _LT_LINKER_BOILERPLATE
  6713. # Allow CC to be a program name with arguments.
  6714. lt_save_CC="$CC"
  6715. lt_save_GCC=$GCC
  6716. lt_save_CFLAGS=$CFLAGS
  6717. CC=${FC-"f95"}
  6718. CFLAGS=$FCFLAGS
  6719. compiler=$CC
  6720. GCC=$ac_cv_fc_compiler_gnu
  6721. _LT_TAGVAR(compiler, $1)=$CC
  6722. _LT_CC_BASENAME([$compiler])
  6723. if test -n "$compiler"; then
  6724. AC_MSG_CHECKING([if libtool supports shared libraries])
  6725. AC_MSG_RESULT([$can_build_shared])
  6726. AC_MSG_CHECKING([whether to build shared libraries])
  6727. test "$can_build_shared" = "no" && enable_shared=no
  6728. # On AIX, shared libraries and static libraries use the same namespace, and
  6729. # are all built from PIC.
  6730. case $host_os in
  6731. aix3*)
  6732. test "$enable_shared" = yes && enable_static=no
  6733. if test -n "$RANLIB"; then
  6734. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6735. postinstall_cmds='$RANLIB $lib'
  6736. fi
  6737. ;;
  6738. aix[[4-9]]*)
  6739. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6740. test "$enable_shared" = yes && enable_static=no
  6741. fi
  6742. ;;
  6743. esac
  6744. AC_MSG_RESULT([$enable_shared])
  6745. AC_MSG_CHECKING([whether to build static libraries])
  6746. # Make sure either enable_shared or enable_static is yes.
  6747. test "$enable_shared" = yes || enable_static=yes
  6748. AC_MSG_RESULT([$enable_static])
  6749. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6750. _LT_TAGVAR(LD, $1)="$LD"
  6751. ## CAVEAT EMPTOR:
  6752. ## There is no encapsulation within the following macros, do not change
  6753. ## the running order or otherwise move them around unless you know exactly
  6754. ## what you are doing...
  6755. _LT_SYS_HIDDEN_LIBDEPS($1)
  6756. _LT_COMPILER_PIC($1)
  6757. _LT_COMPILER_C_O($1)
  6758. _LT_COMPILER_FILE_LOCKS($1)
  6759. _LT_LINKER_SHLIBS($1)
  6760. _LT_SYS_DYNAMIC_LINKER($1)
  6761. _LT_LINKER_HARDCODE_LIBPATH($1)
  6762. _LT_CONFIG($1)
  6763. fi # test -n "$compiler"
  6764. GCC=$lt_save_GCC
  6765. CC=$lt_save_CC
  6766. CFLAGS=$lt_save_CFLAGS
  6767. fi # test "$_lt_disable_FC" != yes
  6768. AC_LANG_POP
  6769. ])# _LT_LANG_FC_CONFIG
  6770. # _LT_LANG_GCJ_CONFIG([TAG])
  6771. # --------------------------
  6772. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6773. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6774. # to write the compiler configuration to `libtool'.
  6775. m4_defun([_LT_LANG_GCJ_CONFIG],
  6776. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6777. AC_LANG_SAVE
  6778. # Source file extension for Java test sources.
  6779. ac_ext=java
  6780. # Object file extension for compiled Java test sources.
  6781. objext=o
  6782. _LT_TAGVAR(objext, $1)=$objext
  6783. # Code to be used in simple compile tests
  6784. lt_simple_compile_test_code="class foo {}"
  6785. # Code to be used in simple link tests
  6786. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6787. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6788. _LT_TAG_COMPILER
  6789. # save warnings/boilerplate of simple test code
  6790. _LT_COMPILER_BOILERPLATE
  6791. _LT_LINKER_BOILERPLATE
  6792. # Allow CC to be a program name with arguments.
  6793. lt_save_CC=$CC
  6794. lt_save_CFLAGS=$CFLAGS
  6795. lt_save_GCC=$GCC
  6796. GCC=yes
  6797. CC=${GCJ-"gcj"}
  6798. CFLAGS=$GCJFLAGS
  6799. compiler=$CC
  6800. _LT_TAGVAR(compiler, $1)=$CC
  6801. _LT_TAGVAR(LD, $1)="$LD"
  6802. _LT_CC_BASENAME([$compiler])
  6803. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6804. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6805. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6806. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6807. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6808. if test -n "$compiler"; then
  6809. _LT_COMPILER_NO_RTTI($1)
  6810. _LT_COMPILER_PIC($1)
  6811. _LT_COMPILER_C_O($1)
  6812. _LT_COMPILER_FILE_LOCKS($1)
  6813. _LT_LINKER_SHLIBS($1)
  6814. _LT_LINKER_HARDCODE_LIBPATH($1)
  6815. _LT_CONFIG($1)
  6816. fi
  6817. AC_LANG_RESTORE
  6818. GCC=$lt_save_GCC
  6819. CC=$lt_save_CC
  6820. CFLAGS=$lt_save_CFLAGS
  6821. ])# _LT_LANG_GCJ_CONFIG
  6822. # _LT_LANG_GO_CONFIG([TAG])
  6823. # --------------------------
  6824. # Ensure that the configuration variables for the GNU Go compiler
  6825. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6826. # to write the compiler configuration to `libtool'.
  6827. m4_defun([_LT_LANG_GO_CONFIG],
  6828. [AC_REQUIRE([LT_PROG_GO])dnl
  6829. AC_LANG_SAVE
  6830. # Source file extension for Go test sources.
  6831. ac_ext=go
  6832. # Object file extension for compiled Go test sources.
  6833. objext=o
  6834. _LT_TAGVAR(objext, $1)=$objext
  6835. # Code to be used in simple compile tests
  6836. lt_simple_compile_test_code="package main; func main() { }"
  6837. # Code to be used in simple link tests
  6838. lt_simple_link_test_code='package main; func main() { }'
  6839. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6840. _LT_TAG_COMPILER
  6841. # save warnings/boilerplate of simple test code
  6842. _LT_COMPILER_BOILERPLATE
  6843. _LT_LINKER_BOILERPLATE
  6844. # Allow CC to be a program name with arguments.
  6845. lt_save_CC=$CC
  6846. lt_save_CFLAGS=$CFLAGS
  6847. lt_save_GCC=$GCC
  6848. GCC=yes
  6849. CC=${GOC-"gccgo"}
  6850. CFLAGS=$GOFLAGS
  6851. compiler=$CC
  6852. _LT_TAGVAR(compiler, $1)=$CC
  6853. _LT_TAGVAR(LD, $1)="$LD"
  6854. _LT_CC_BASENAME([$compiler])
  6855. # Go did not exist at the time GCC didn't implicitly link libc in.
  6856. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6857. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6858. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6859. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6860. if test -n "$compiler"; then
  6861. _LT_COMPILER_NO_RTTI($1)
  6862. _LT_COMPILER_PIC($1)
  6863. _LT_COMPILER_C_O($1)
  6864. _LT_COMPILER_FILE_LOCKS($1)
  6865. _LT_LINKER_SHLIBS($1)
  6866. _LT_LINKER_HARDCODE_LIBPATH($1)
  6867. _LT_CONFIG($1)
  6868. fi
  6869. AC_LANG_RESTORE
  6870. GCC=$lt_save_GCC
  6871. CC=$lt_save_CC
  6872. CFLAGS=$lt_save_CFLAGS
  6873. ])# _LT_LANG_GO_CONFIG
  6874. # _LT_LANG_RC_CONFIG([TAG])
  6875. # -------------------------
  6876. # Ensure that the configuration variables for the Windows resource compiler
  6877. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6878. # to write the compiler configuration to `libtool'.
  6879. m4_defun([_LT_LANG_RC_CONFIG],
  6880. [AC_REQUIRE([LT_PROG_RC])dnl
  6881. AC_LANG_SAVE
  6882. # Source file extension for RC test sources.
  6883. ac_ext=rc
  6884. # Object file extension for compiled RC test sources.
  6885. objext=o
  6886. _LT_TAGVAR(objext, $1)=$objext
  6887. # Code to be used in simple compile tests
  6888. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6889. # Code to be used in simple link tests
  6890. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6891. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6892. _LT_TAG_COMPILER
  6893. # save warnings/boilerplate of simple test code
  6894. _LT_COMPILER_BOILERPLATE
  6895. _LT_LINKER_BOILERPLATE
  6896. # Allow CC to be a program name with arguments.
  6897. lt_save_CC="$CC"
  6898. lt_save_CFLAGS=$CFLAGS
  6899. lt_save_GCC=$GCC
  6900. GCC=
  6901. CC=${RC-"windres"}
  6902. CFLAGS=
  6903. compiler=$CC
  6904. _LT_TAGVAR(compiler, $1)=$CC
  6905. _LT_CC_BASENAME([$compiler])
  6906. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6907. if test -n "$compiler"; then
  6908. :
  6909. _LT_CONFIG($1)
  6910. fi
  6911. GCC=$lt_save_GCC
  6912. AC_LANG_RESTORE
  6913. CC=$lt_save_CC
  6914. CFLAGS=$lt_save_CFLAGS
  6915. ])# _LT_LANG_RC_CONFIG
  6916. # LT_PROG_GCJ
  6917. # -----------
  6918. AC_DEFUN([LT_PROG_GCJ],
  6919. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6920. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6921. [AC_CHECK_TOOL(GCJ, gcj,)
  6922. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6923. AC_SUBST(GCJFLAGS)])])[]dnl
  6924. ])
  6925. # Old name:
  6926. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6927. dnl aclocal-1.4 backwards compatibility:
  6928. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6929. # LT_PROG_GO
  6930. # ----------
  6931. AC_DEFUN([LT_PROG_GO],
  6932. [AC_CHECK_TOOL(GOC, gccgo,)
  6933. ])
  6934. # LT_PROG_RC
  6935. # ----------
  6936. AC_DEFUN([LT_PROG_RC],
  6937. [AC_CHECK_TOOL(RC, windres,)
  6938. ])
  6939. # Old name:
  6940. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6941. dnl aclocal-1.4 backwards compatibility:
  6942. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6943. # _LT_DECL_EGREP
  6944. # --------------
  6945. # If we don't have a new enough Autoconf to choose the best grep
  6946. # available, choose the one first in the user's PATH.
  6947. m4_defun([_LT_DECL_EGREP],
  6948. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6949. AC_REQUIRE([AC_PROG_FGREP])dnl
  6950. test -z "$GREP" && GREP=grep
  6951. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6952. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6953. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6954. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6955. AC_SUBST([GREP])
  6956. ])
  6957. # _LT_DECL_OBJDUMP
  6958. # --------------
  6959. # If we don't have a new enough Autoconf to choose the best objdump
  6960. # available, choose the one first in the user's PATH.
  6961. m4_defun([_LT_DECL_OBJDUMP],
  6962. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6963. test -z "$OBJDUMP" && OBJDUMP=objdump
  6964. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6965. AC_SUBST([OBJDUMP])
  6966. ])
  6967. # _LT_DECL_DLLTOOL
  6968. # ----------------
  6969. # Ensure DLLTOOL variable is set.
  6970. m4_defun([_LT_DECL_DLLTOOL],
  6971. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6972. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6973. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6974. AC_SUBST([DLLTOOL])
  6975. ])
  6976. # _LT_DECL_SED
  6977. # ------------
  6978. # Check for a fully-functional sed program, that truncates
  6979. # as few characters as possible. Prefer GNU sed if found.
  6980. m4_defun([_LT_DECL_SED],
  6981. [AC_PROG_SED
  6982. test -z "$SED" && SED=sed
  6983. Xsed="$SED -e 1s/^X//"
  6984. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6985. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6986. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6987. ])# _LT_DECL_SED
  6988. m4_ifndef([AC_PROG_SED], [
  6989. # NOTE: This macro has been submitted for inclusion into #
  6990. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6991. # a released version of Autoconf we should remove this #
  6992. # macro and use it instead. #
  6993. m4_defun([AC_PROG_SED],
  6994. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6995. AC_CACHE_VAL(lt_cv_path_SED,
  6996. [# Loop through the user's path and test for sed and gsed.
  6997. # Then use that list of sed's as ones to test for truncation.
  6998. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6999. for as_dir in $PATH
  7000. do
  7001. IFS=$as_save_IFS
  7002. test -z "$as_dir" && as_dir=.
  7003. for lt_ac_prog in sed gsed; do
  7004. for ac_exec_ext in '' $ac_executable_extensions; do
  7005. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7006. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7007. fi
  7008. done
  7009. done
  7010. done
  7011. IFS=$as_save_IFS
  7012. lt_ac_max=0
  7013. lt_ac_count=0
  7014. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7015. # along with /bin/sed that truncates output.
  7016. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7017. test ! -f $lt_ac_sed && continue
  7018. cat /dev/null > conftest.in
  7019. lt_ac_count=0
  7020. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7021. # Check for GNU sed and select it if it is found.
  7022. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7023. lt_cv_path_SED=$lt_ac_sed
  7024. break
  7025. fi
  7026. while true; do
  7027. cat conftest.in conftest.in >conftest.tmp
  7028. mv conftest.tmp conftest.in
  7029. cp conftest.in conftest.nl
  7030. echo >>conftest.nl
  7031. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7032. cmp -s conftest.out conftest.nl || break
  7033. # 10000 chars as input seems more than enough
  7034. test $lt_ac_count -gt 10 && break
  7035. lt_ac_count=`expr $lt_ac_count + 1`
  7036. if test $lt_ac_count -gt $lt_ac_max; then
  7037. lt_ac_max=$lt_ac_count
  7038. lt_cv_path_SED=$lt_ac_sed
  7039. fi
  7040. done
  7041. done
  7042. ])
  7043. SED=$lt_cv_path_SED
  7044. AC_SUBST([SED])
  7045. AC_MSG_RESULT([$SED])
  7046. ])#AC_PROG_SED
  7047. ])#m4_ifndef
  7048. # Old name:
  7049. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7050. dnl aclocal-1.4 backwards compatibility:
  7051. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7052. # _LT_CHECK_SHELL_FEATURES
  7053. # ------------------------
  7054. # Find out whether the shell is Bourne or XSI compatible,
  7055. # or has some other useful features.
  7056. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7057. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7058. # Try some XSI features
  7059. xsi_shell=no
  7060. ( _lt_dummy="a/b/c"
  7061. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7062. = c,a/b,b/c, \
  7063. && eval 'test $(( 1 + 1 )) -eq 2 \
  7064. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7065. && xsi_shell=yes
  7066. AC_MSG_RESULT([$xsi_shell])
  7067. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7068. AC_MSG_CHECKING([whether the shell understands "+="])
  7069. lt_shell_append=no
  7070. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7071. >/dev/null 2>&1 \
  7072. && lt_shell_append=yes
  7073. AC_MSG_RESULT([$lt_shell_append])
  7074. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7075. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7076. lt_unset=unset
  7077. else
  7078. lt_unset=false
  7079. fi
  7080. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7081. # test EBCDIC or ASCII
  7082. case `echo X|tr X '\101'` in
  7083. A) # ASCII based system
  7084. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7085. lt_SP2NL='tr \040 \012'
  7086. lt_NL2SP='tr \015\012 \040\040'
  7087. ;;
  7088. *) # EBCDIC based system
  7089. lt_SP2NL='tr \100 \n'
  7090. lt_NL2SP='tr \r\n \100\100'
  7091. ;;
  7092. esac
  7093. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7094. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7095. ])# _LT_CHECK_SHELL_FEATURES
  7096. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7097. # ------------------------------------------------------
  7098. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7099. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7100. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7101. [dnl {
  7102. sed -e '/^$1 ()$/,/^} # $1 /c\
  7103. $1 ()\
  7104. {\
  7105. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7106. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7107. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7108. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7109. test 0 -eq $? || _lt_function_replace_fail=:
  7110. ])
  7111. # _LT_PROG_REPLACE_SHELLFNS
  7112. # -------------------------
  7113. # Replace existing portable implementations of several shell functions with
  7114. # equivalent extended shell implementations where those features are available..
  7115. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7116. [if test x"$xsi_shell" = xyes; then
  7117. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7118. case ${1} in
  7119. */*) func_dirname_result="${1%/*}${2}" ;;
  7120. * ) func_dirname_result="${3}" ;;
  7121. esac])
  7122. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7123. func_basename_result="${1##*/}"])
  7124. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7125. case ${1} in
  7126. */*) func_dirname_result="${1%/*}${2}" ;;
  7127. * ) func_dirname_result="${3}" ;;
  7128. esac
  7129. func_basename_result="${1##*/}"])
  7130. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7131. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7132. # positional parameters, so assign one to ordinary parameter first.
  7133. func_stripname_result=${3}
  7134. func_stripname_result=${func_stripname_result#"${1}"}
  7135. func_stripname_result=${func_stripname_result%"${2}"}])
  7136. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7137. func_split_long_opt_name=${1%%=*}
  7138. func_split_long_opt_arg=${1#*=}])
  7139. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7140. func_split_short_opt_arg=${1#??}
  7141. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7142. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7143. case ${1} in
  7144. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7145. *) func_lo2o_result=${1} ;;
  7146. esac])
  7147. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7148. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7149. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7150. fi
  7151. if test x"$lt_shell_append" = xyes; then
  7152. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7153. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7154. func_quote_for_eval "${2}"
  7155. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7156. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7157. # Save a `func_append' function call where possible by direct use of '+='
  7158. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7159. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7160. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7161. test 0 -eq $? || _lt_function_replace_fail=:
  7162. else
  7163. # Save a `func_append' function call even when '+=' is not available
  7164. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7165. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7166. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7167. test 0 -eq $? || _lt_function_replace_fail=:
  7168. fi
  7169. if test x"$_lt_function_replace_fail" = x":"; then
  7170. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7171. fi
  7172. ])
  7173. # _LT_PATH_CONVERSION_FUNCTIONS
  7174. # -----------------------------
  7175. # Determine which file name conversion functions should be used by
  7176. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7177. # for certain cross-compile configurations and native mingw.
  7178. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7179. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7180. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7181. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7182. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7183. [case $host in
  7184. *-*-mingw* )
  7185. case $build in
  7186. *-*-mingw* ) # actually msys
  7187. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7188. ;;
  7189. *-*-cygwin* )
  7190. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7191. ;;
  7192. * ) # otherwise, assume *nix
  7193. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7194. ;;
  7195. esac
  7196. ;;
  7197. *-*-cygwin* )
  7198. case $build in
  7199. *-*-mingw* ) # actually msys
  7200. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7201. ;;
  7202. *-*-cygwin* )
  7203. lt_cv_to_host_file_cmd=func_convert_file_noop
  7204. ;;
  7205. * ) # otherwise, assume *nix
  7206. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7207. ;;
  7208. esac
  7209. ;;
  7210. * ) # unhandled hosts (and "normal" native builds)
  7211. lt_cv_to_host_file_cmd=func_convert_file_noop
  7212. ;;
  7213. esac
  7214. ])
  7215. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7216. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7217. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7218. [0], [convert $build file names to $host format])dnl
  7219. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7220. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7221. [#assume ordinary cross tools, or native build.
  7222. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7223. case $host in
  7224. *-*-mingw* )
  7225. case $build in
  7226. *-*-mingw* ) # actually msys
  7227. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7228. ;;
  7229. esac
  7230. ;;
  7231. esac
  7232. ])
  7233. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7234. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7235. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7236. [0], [convert $build files to toolchain format])dnl
  7237. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7238. # Helper functions for option handling. -*- Autoconf -*-
  7239. #
  7240. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7241. # Inc.
  7242. # Written by Gary V. Vaughan, 2004
  7243. #
  7244. # This file is free software; the Free Software Foundation gives
  7245. # unlimited permission to copy and/or distribute it, with or without
  7246. # modifications, as long as this notice is preserved.
  7247. # serial 7 ltoptions.m4
  7248. # This is to help aclocal find these macros, as it can't see m4_define.
  7249. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7250. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7251. # ------------------------------------------
  7252. m4_define([_LT_MANGLE_OPTION],
  7253. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7254. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7255. # ---------------------------------------
  7256. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7257. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7258. # saved as a flag.
  7259. m4_define([_LT_SET_OPTION],
  7260. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7261. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7262. _LT_MANGLE_DEFUN([$1], [$2]),
  7263. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7264. ])
  7265. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7266. # ------------------------------------------------------------
  7267. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7268. m4_define([_LT_IF_OPTION],
  7269. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7270. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7271. # -------------------------------------------------------
  7272. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7273. # are set.
  7274. m4_define([_LT_UNLESS_OPTIONS],
  7275. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7276. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7277. [m4_define([$0_found])])])[]dnl
  7278. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7279. ])[]dnl
  7280. ])
  7281. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7282. # ----------------------------------------
  7283. # OPTION-LIST is a space-separated list of Libtool options associated
  7284. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7285. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7286. # the unknown option and exit.
  7287. m4_defun([_LT_SET_OPTIONS],
  7288. [# Set options
  7289. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7290. [_LT_SET_OPTION([$1], _LT_Option)])
  7291. m4_if([$1],[LT_INIT],[
  7292. dnl
  7293. dnl Simply set some default values (i.e off) if boolean options were not
  7294. dnl specified:
  7295. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7296. ])
  7297. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7298. ])
  7299. dnl
  7300. dnl If no reference was made to various pairs of opposing options, then
  7301. dnl we run the default mode handler for the pair. For example, if neither
  7302. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7303. dnl archives by default:
  7304. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7305. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7306. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7307. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7308. [_LT_ENABLE_FAST_INSTALL])
  7309. ])
  7310. ])# _LT_SET_OPTIONS
  7311. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7312. # -----------------------------------------
  7313. m4_define([_LT_MANGLE_DEFUN],
  7314. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7315. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7316. # -----------------------------------------------
  7317. m4_define([LT_OPTION_DEFINE],
  7318. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7319. ])# LT_OPTION_DEFINE
  7320. # dlopen
  7321. # ------
  7322. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7323. ])
  7324. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7325. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7326. AC_DIAGNOSE([obsolete],
  7327. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7328. put the `dlopen' option into LT_INIT's first parameter.])
  7329. ])
  7330. dnl aclocal-1.4 backwards compatibility:
  7331. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7332. # win32-dll
  7333. # ---------
  7334. # Declare package support for building win32 dll's.
  7335. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7336. [enable_win32_dll=yes
  7337. case $host in
  7338. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7339. AC_CHECK_TOOL(AS, as, false)
  7340. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7341. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7342. ;;
  7343. esac
  7344. test -z "$AS" && AS=as
  7345. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7346. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7347. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7348. test -z "$OBJDUMP" && OBJDUMP=objdump
  7349. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7350. ])# win32-dll
  7351. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7352. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7353. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7354. AC_DIAGNOSE([obsolete],
  7355. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7356. put the `win32-dll' option into LT_INIT's first parameter.])
  7357. ])
  7358. dnl aclocal-1.4 backwards compatibility:
  7359. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7360. # _LT_ENABLE_SHARED([DEFAULT])
  7361. # ----------------------------
  7362. # implement the --enable-shared flag, and supports the `shared' and
  7363. # `disable-shared' LT_INIT options.
  7364. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7365. m4_define([_LT_ENABLE_SHARED],
  7366. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7367. AC_ARG_ENABLE([shared],
  7368. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7369. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7370. [p=${PACKAGE-default}
  7371. case $enableval in
  7372. yes) enable_shared=yes ;;
  7373. no) enable_shared=no ;;
  7374. *)
  7375. enable_shared=no
  7376. # Look at the argument we got. We use all the common list separators.
  7377. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7378. for pkg in $enableval; do
  7379. IFS="$lt_save_ifs"
  7380. if test "X$pkg" = "X$p"; then
  7381. enable_shared=yes
  7382. fi
  7383. done
  7384. IFS="$lt_save_ifs"
  7385. ;;
  7386. esac],
  7387. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7388. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7389. [Whether or not to build shared libraries])
  7390. ])# _LT_ENABLE_SHARED
  7391. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7392. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7393. # Old names:
  7394. AC_DEFUN([AC_ENABLE_SHARED],
  7395. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7396. ])
  7397. AC_DEFUN([AC_DISABLE_SHARED],
  7398. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7399. ])
  7400. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7401. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7402. dnl aclocal-1.4 backwards compatibility:
  7403. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7404. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7405. # _LT_ENABLE_STATIC([DEFAULT])
  7406. # ----------------------------
  7407. # implement the --enable-static flag, and support the `static' and
  7408. # `disable-static' LT_INIT options.
  7409. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7410. m4_define([_LT_ENABLE_STATIC],
  7411. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7412. AC_ARG_ENABLE([static],
  7413. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7414. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7415. [p=${PACKAGE-default}
  7416. case $enableval in
  7417. yes) enable_static=yes ;;
  7418. no) enable_static=no ;;
  7419. *)
  7420. enable_static=no
  7421. # Look at the argument we got. We use all the common list separators.
  7422. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7423. for pkg in $enableval; do
  7424. IFS="$lt_save_ifs"
  7425. if test "X$pkg" = "X$p"; then
  7426. enable_static=yes
  7427. fi
  7428. done
  7429. IFS="$lt_save_ifs"
  7430. ;;
  7431. esac],
  7432. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7433. _LT_DECL([build_old_libs], [enable_static], [0],
  7434. [Whether or not to build static libraries])
  7435. ])# _LT_ENABLE_STATIC
  7436. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7437. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7438. # Old names:
  7439. AC_DEFUN([AC_ENABLE_STATIC],
  7440. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7441. ])
  7442. AC_DEFUN([AC_DISABLE_STATIC],
  7443. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7444. ])
  7445. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7446. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7447. dnl aclocal-1.4 backwards compatibility:
  7448. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7449. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7450. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7451. # ----------------------------------
  7452. # implement the --enable-fast-install flag, and support the `fast-install'
  7453. # and `disable-fast-install' LT_INIT options.
  7454. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7455. m4_define([_LT_ENABLE_FAST_INSTALL],
  7456. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7457. AC_ARG_ENABLE([fast-install],
  7458. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7459. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7460. [p=${PACKAGE-default}
  7461. case $enableval in
  7462. yes) enable_fast_install=yes ;;
  7463. no) enable_fast_install=no ;;
  7464. *)
  7465. enable_fast_install=no
  7466. # Look at the argument we got. We use all the common list separators.
  7467. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7468. for pkg in $enableval; do
  7469. IFS="$lt_save_ifs"
  7470. if test "X$pkg" = "X$p"; then
  7471. enable_fast_install=yes
  7472. fi
  7473. done
  7474. IFS="$lt_save_ifs"
  7475. ;;
  7476. esac],
  7477. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7478. _LT_DECL([fast_install], [enable_fast_install], [0],
  7479. [Whether or not to optimize for fast installation])dnl
  7480. ])# _LT_ENABLE_FAST_INSTALL
  7481. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7482. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7483. # Old names:
  7484. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7485. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7486. AC_DIAGNOSE([obsolete],
  7487. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7488. the `fast-install' option into LT_INIT's first parameter.])
  7489. ])
  7490. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7491. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7492. AC_DIAGNOSE([obsolete],
  7493. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7494. the `disable-fast-install' option into LT_INIT's first parameter.])
  7495. ])
  7496. dnl aclocal-1.4 backwards compatibility:
  7497. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7498. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7499. # _LT_WITH_PIC([MODE])
  7500. # --------------------
  7501. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7502. # LT_INIT options.
  7503. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7504. m4_define([_LT_WITH_PIC],
  7505. [AC_ARG_WITH([pic],
  7506. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7507. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7508. [lt_p=${PACKAGE-default}
  7509. case $withval in
  7510. yes|no) pic_mode=$withval ;;
  7511. *)
  7512. pic_mode=default
  7513. # Look at the argument we got. We use all the common list separators.
  7514. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7515. for lt_pkg in $withval; do
  7516. IFS="$lt_save_ifs"
  7517. if test "X$lt_pkg" = "X$lt_p"; then
  7518. pic_mode=yes
  7519. fi
  7520. done
  7521. IFS="$lt_save_ifs"
  7522. ;;
  7523. esac],
  7524. [pic_mode=default])
  7525. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7526. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7527. ])# _LT_WITH_PIC
  7528. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7529. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7530. # Old name:
  7531. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7532. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7533. AC_DIAGNOSE([obsolete],
  7534. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7535. put the `pic-only' option into LT_INIT's first parameter.])
  7536. ])
  7537. dnl aclocal-1.4 backwards compatibility:
  7538. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7539. m4_define([_LTDL_MODE], [])
  7540. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7541. [m4_define([_LTDL_MODE], [nonrecursive])])
  7542. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7543. [m4_define([_LTDL_MODE], [recursive])])
  7544. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7545. [m4_define([_LTDL_MODE], [subproject])])
  7546. m4_define([_LTDL_TYPE], [])
  7547. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7548. [m4_define([_LTDL_TYPE], [installable])])
  7549. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7550. [m4_define([_LTDL_TYPE], [convenience])])
  7551. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7552. #
  7553. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7554. # Written by Gary V. Vaughan, 2004
  7555. #
  7556. # This file is free software; the Free Software Foundation gives
  7557. # unlimited permission to copy and/or distribute it, with or without
  7558. # modifications, as long as this notice is preserved.
  7559. # serial 6 ltsugar.m4
  7560. # This is to help aclocal find these macros, as it can't see m4_define.
  7561. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7562. # lt_join(SEP, ARG1, [ARG2...])
  7563. # -----------------------------
  7564. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7565. # associated separator.
  7566. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7567. # versions in m4sugar had bugs.
  7568. m4_define([lt_join],
  7569. [m4_if([$#], [1], [],
  7570. [$#], [2], [[$2]],
  7571. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7572. m4_define([_lt_join],
  7573. [m4_if([$#$2], [2], [],
  7574. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7575. # lt_car(LIST)
  7576. # lt_cdr(LIST)
  7577. # ------------
  7578. # Manipulate m4 lists.
  7579. # These macros are necessary as long as will still need to support
  7580. # Autoconf-2.59 which quotes differently.
  7581. m4_define([lt_car], [[$1]])
  7582. m4_define([lt_cdr],
  7583. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7584. [$#], 1, [],
  7585. [m4_dquote(m4_shift($@))])])
  7586. m4_define([lt_unquote], $1)
  7587. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7588. # ------------------------------------------
  7589. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7590. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7591. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7592. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7593. # than defined and empty).
  7594. #
  7595. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7596. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7597. m4_define([lt_append],
  7598. [m4_define([$1],
  7599. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7600. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7601. # ----------------------------------------------------------
  7602. # Produce a SEP delimited list of all paired combinations of elements of
  7603. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7604. # has the form PREFIXmINFIXSUFFIXn.
  7605. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7606. m4_define([lt_combine],
  7607. [m4_if(m4_eval([$# > 3]), [1],
  7608. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7609. [[m4_foreach([_Lt_prefix], [$2],
  7610. [m4_foreach([_Lt_suffix],
  7611. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7612. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7613. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7614. # -----------------------------------------------------------------------
  7615. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7616. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7617. m4_define([lt_if_append_uniq],
  7618. [m4_ifdef([$1],
  7619. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7620. [lt_append([$1], [$2], [$3])$4],
  7621. [$5])],
  7622. [lt_append([$1], [$2], [$3])$4])])
  7623. # lt_dict_add(DICT, KEY, VALUE)
  7624. # -----------------------------
  7625. m4_define([lt_dict_add],
  7626. [m4_define([$1($2)], [$3])])
  7627. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7628. # --------------------------------------------
  7629. m4_define([lt_dict_add_subkey],
  7630. [m4_define([$1($2:$3)], [$4])])
  7631. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7632. # ----------------------------------
  7633. m4_define([lt_dict_fetch],
  7634. [m4_ifval([$3],
  7635. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7636. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7637. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7638. # -----------------------------------------------------------------
  7639. m4_define([lt_if_dict_fetch],
  7640. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7641. [$5],
  7642. [$6])])
  7643. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7644. # --------------------------------------------------------------
  7645. m4_define([lt_dict_filter],
  7646. [m4_if([$5], [], [],
  7647. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7648. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7649. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7650. ])
  7651. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7652. #
  7653. # Copyright (C) 2004 Free Software Foundation, Inc.
  7654. # Written by Scott James Remnant, 2004
  7655. #
  7656. # This file is free software; the Free Software Foundation gives
  7657. # unlimited permission to copy and/or distribute it, with or without
  7658. # modifications, as long as this notice is preserved.
  7659. # @configure_input@
  7660. # serial 3337 ltversion.m4
  7661. # This file is part of GNU Libtool
  7662. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7663. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7664. AC_DEFUN([LTVERSION_VERSION],
  7665. [macro_version='2.4.2'
  7666. macro_revision='1.3337'
  7667. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7668. _LT_DECL(, macro_revision, 0)
  7669. ])
  7670. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7671. #
  7672. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7673. # Written by Scott James Remnant, 2004.
  7674. #
  7675. # This file is free software; the Free Software Foundation gives
  7676. # unlimited permission to copy and/or distribute it, with or without
  7677. # modifications, as long as this notice is preserved.
  7678. # serial 5 lt~obsolete.m4
  7679. # These exist entirely to fool aclocal when bootstrapping libtool.
  7680. #
  7681. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7682. # which have later been changed to m4_define as they aren't part of the
  7683. # exported API, or moved to Autoconf or Automake where they belong.
  7684. #
  7685. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7686. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7687. # using a macro with the same name in our local m4/libtool.m4 it'll
  7688. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7689. # and doesn't know about Autoconf macros at all.)
  7690. #
  7691. # So we provide this file, which has a silly filename so it's always
  7692. # included after everything else. This provides aclocal with the
  7693. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7694. # because those macros already exist, or will be overwritten later.
  7695. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7696. #
  7697. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7698. # Yes, that means every name once taken will need to remain here until
  7699. # we give up compatibility with versions before 1.7, at which point
  7700. # we need to keep only those names which we still refer to.
  7701. # This is to help aclocal find these macros, as it can't see m4_define.
  7702. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7703. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7704. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7705. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7706. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7707. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7708. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7709. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7710. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7711. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7712. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7713. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7714. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7715. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7716. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7717. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7718. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7719. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7720. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7721. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7722. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7723. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7724. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7725. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7726. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7727. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7728. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7729. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7730. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7731. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7732. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7733. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7734. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7735. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7736. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7737. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7738. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7739. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7740. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7741. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7742. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7743. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7744. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7745. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7746. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7747. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7748. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7749. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7750. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7751. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7752. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7753. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7754. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7755. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7756. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7757. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7758. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7759. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7760. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7761. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7762. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7763. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7764. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  7765. # serial 1 (pkg-config-0.24)
  7766. #
  7767. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  7768. #
  7769. # This program is free software; you can redistribute it and/or modify
  7770. # it under the terms of the GNU General Public License as published by
  7771. # the Free Software Foundation; either version 2 of the License, or
  7772. # (at your option) any later version.
  7773. #
  7774. # This program is distributed in the hope that it will be useful, but
  7775. # WITHOUT ANY WARRANTY; without even the implied warranty of
  7776. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7777. # General Public License for more details.
  7778. #
  7779. # You should have received a copy of the GNU General Public License
  7780. # along with this program; if not, write to the Free Software
  7781. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7782. #
  7783. # As a special exception to the GNU General Public License, if you
  7784. # distribute this file as part of a program that contains a
  7785. # configuration script generated by Autoconf, you may include it under
  7786. # the same distribution terms that you use for the rest of that program.
  7787. # PKG_PROG_PKG_CONFIG([MIN-VERSION])
  7788. # ----------------------------------
  7789. AC_DEFUN([PKG_PROG_PKG_CONFIG],
  7790. [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  7791. m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
  7792. m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
  7793. AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  7794. AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  7795. AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  7796. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  7797. AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  7798. fi
  7799. if test -n "$PKG_CONFIG"; then
  7800. _pkg_min_version=m4_default([$1], [0.9.0])
  7801. AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  7802. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  7803. AC_MSG_RESULT([yes])
  7804. else
  7805. AC_MSG_RESULT([no])
  7806. PKG_CONFIG=""
  7807. fi
  7808. fi[]dnl
  7809. ])# PKG_PROG_PKG_CONFIG
  7810. # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  7811. #
  7812. # Check to see whether a particular set of modules exists. Similar
  7813. # to PKG_CHECK_MODULES(), but does not set variables or print errors.
  7814. #
  7815. # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  7816. # only at the first occurence in configure.ac, so if the first place
  7817. # it's called might be skipped (such as if it is within an "if", you
  7818. # have to call PKG_CHECK_EXISTS manually
  7819. # --------------------------------------------------------------
  7820. AC_DEFUN([PKG_CHECK_EXISTS],
  7821. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  7822. if test -n "$PKG_CONFIG" && \
  7823. AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  7824. m4_default([$2], [:])
  7825. m4_ifvaln([$3], [else
  7826. $3])dnl
  7827. fi])
  7828. # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  7829. # ---------------------------------------------
  7830. m4_define([_PKG_CONFIG],
  7831. [if test -n "$$1"; then
  7832. pkg_cv_[]$1="$$1"
  7833. elif test -n "$PKG_CONFIG"; then
  7834. PKG_CHECK_EXISTS([$3],
  7835. [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
  7836. test "x$?" != "x0" && pkg_failed=yes ],
  7837. [pkg_failed=yes])
  7838. else
  7839. pkg_failed=untried
  7840. fi[]dnl
  7841. ])# _PKG_CONFIG
  7842. # _PKG_SHORT_ERRORS_SUPPORTED
  7843. # -----------------------------
  7844. AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  7845. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  7846. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  7847. _pkg_short_errors_supported=yes
  7848. else
  7849. _pkg_short_errors_supported=no
  7850. fi[]dnl
  7851. ])# _PKG_SHORT_ERRORS_SUPPORTED
  7852. # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  7853. # [ACTION-IF-NOT-FOUND])
  7854. #
  7855. #
  7856. # Note that if there is a possibility the first call to
  7857. # PKG_CHECK_MODULES might not happen, you should be sure to include an
  7858. # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  7859. #
  7860. #
  7861. # --------------------------------------------------------------
  7862. AC_DEFUN([PKG_CHECK_MODULES],
  7863. [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  7864. AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  7865. AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  7866. pkg_failed=no
  7867. AC_MSG_CHECKING([for $1])
  7868. _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  7869. _PKG_CONFIG([$1][_LIBS], [libs], [$2])
  7870. m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  7871. and $1[]_LIBS to avoid the need to call pkg-config.
  7872. See the pkg-config man page for more details.])
  7873. if test $pkg_failed = yes; then
  7874. AC_MSG_RESULT([no])
  7875. _PKG_SHORT_ERRORS_SUPPORTED
  7876. if test $_pkg_short_errors_supported = yes; then
  7877. $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
  7878. else
  7879. $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
  7880. fi
  7881. # Put the nasty error message in config.log where it belongs
  7882. echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  7883. m4_default([$4], [AC_MSG_ERROR(
  7884. [Package requirements ($2) were not met:
  7885. $$1_PKG_ERRORS
  7886. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  7887. installed software in a non-standard prefix.
  7888. _PKG_TEXT])[]dnl
  7889. ])
  7890. elif test $pkg_failed = untried; then
  7891. AC_MSG_RESULT([no])
  7892. m4_default([$4], [AC_MSG_FAILURE(
  7893. [The pkg-config script could not be found or is too old. Make sure it
  7894. is in your PATH or set the PKG_CONFIG environment variable to the full
  7895. path to pkg-config.
  7896. _PKG_TEXT
  7897. To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  7898. ])
  7899. else
  7900. $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  7901. $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  7902. AC_MSG_RESULT([yes])
  7903. $3
  7904. fi[]dnl
  7905. ])# PKG_CHECK_MODULES
  7906. # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
  7907. # Foundation, Inc.
  7908. #
  7909. # This file is free software; the Free Software Foundation
  7910. # gives unlimited permission to copy and/or distribute it,
  7911. # with or without modifications, as long as this notice is preserved.
  7912. # serial 1
  7913. # AM_AUTOMAKE_VERSION(VERSION)
  7914. # ----------------------------
  7915. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7916. # generated from the m4 files accompanying Automake X.Y.
  7917. # (This private macro should not be called outside this file.)
  7918. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7919. [am__api_version='1.11'
  7920. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7921. dnl require some minimum version. Point them to the right macro.
  7922. m4_if([$1], [1.11.3], [],
  7923. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7924. ])
  7925. # _AM_AUTOCONF_VERSION(VERSION)
  7926. # -----------------------------
  7927. # aclocal traces this macro to find the Autoconf version.
  7928. # This is a private macro too. Using m4_define simplifies
  7929. # the logic in aclocal, which can simply ignore this definition.
  7930. m4_define([_AM_AUTOCONF_VERSION], [])
  7931. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7932. # -------------------------------
  7933. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7934. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7935. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7936. [AM_AUTOMAKE_VERSION([1.11.3])dnl
  7937. m4_ifndef([AC_AUTOCONF_VERSION],
  7938. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7939. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7940. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7941. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  7942. #
  7943. # This file is free software; the Free Software Foundation
  7944. # gives unlimited permission to copy and/or distribute it,
  7945. # with or without modifications, as long as this notice is preserved.
  7946. # serial 1
  7947. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7948. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  7949. # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  7950. #
  7951. # Of course, Automake must honor this variable whenever it calls a
  7952. # tool from the auxiliary directory. The problem is that $srcdir (and
  7953. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7954. # depending on how configure is run. This is pretty annoying, since
  7955. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7956. # source directory, any form will work fine, but in subdirectories a
  7957. # relative path needs to be adjusted first.
  7958. #
  7959. # $ac_aux_dir/missing
  7960. # fails when called from a subdirectory if $ac_aux_dir is relative
  7961. # $top_srcdir/$ac_aux_dir/missing
  7962. # fails if $ac_aux_dir is absolute,
  7963. # fails when called from a subdirectory in a VPATH build with
  7964. # a relative $ac_aux_dir
  7965. #
  7966. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7967. # are both prefixed by $srcdir. In an in-source build this is usually
  7968. # harmless because $srcdir is `.', but things will broke when you
  7969. # start a VPATH build or use an absolute $srcdir.
  7970. #
  7971. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7972. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7973. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7974. # and then we would define $MISSING as
  7975. # MISSING="\${SHELL} $am_aux_dir/missing"
  7976. # This will work as long as MISSING is not called from configure, because
  7977. # unfortunately $(top_srcdir) has no meaning in configure.
  7978. # However there are other variables, like CC, which are often used in
  7979. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7980. #
  7981. # Another solution, used here, is to always expand $ac_aux_dir to an
  7982. # absolute PATH. The drawback is that using absolute paths prevent a
  7983. # configured tree to be moved without reconfiguration.
  7984. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7985. [dnl Rely on autoconf to set up CDPATH properly.
  7986. AC_PREREQ([2.50])dnl
  7987. # expand $ac_aux_dir to an absolute path
  7988. am_aux_dir=`cd $ac_aux_dir && pwd`
  7989. ])
  7990. # AM_COND_IF -*- Autoconf -*-
  7991. # Copyright (C) 2008, 2010 Free Software Foundation, Inc.
  7992. #
  7993. # This file is free software; the Free Software Foundation
  7994. # gives unlimited permission to copy and/or distribute it,
  7995. # with or without modifications, as long as this notice is preserved.
  7996. # serial 3
  7997. # _AM_COND_IF
  7998. # _AM_COND_ELSE
  7999. # _AM_COND_ENDIF
  8000. # --------------
  8001. # These macros are only used for tracing.
  8002. m4_define([_AM_COND_IF])
  8003. m4_define([_AM_COND_ELSE])
  8004. m4_define([_AM_COND_ENDIF])
  8005. # AM_COND_IF(COND, [IF-TRUE], [IF-FALSE])
  8006. # ---------------------------------------
  8007. # If the shell condition COND is true, execute IF-TRUE, otherwise execute
  8008. # IF-FALSE. Allow automake to learn about conditional instantiating macros
  8009. # (the AC_CONFIG_FOOS).
  8010. AC_DEFUN([AM_COND_IF],
  8011. [m4_ifndef([_AM_COND_VALUE_$1],
  8012. [m4_fatal([$0: no such condition "$1"])])dnl
  8013. _AM_COND_IF([$1])dnl
  8014. if test -z "$$1_TRUE"; then :
  8015. m4_n([$2])[]dnl
  8016. m4_ifval([$3],
  8017. [_AM_COND_ELSE([$1])dnl
  8018. else
  8019. $3
  8020. ])dnl
  8021. _AM_COND_ENDIF([$1])dnl
  8022. fi[]dnl
  8023. ])
  8024. # AM_CONDITIONAL -*- Autoconf -*-
  8025. # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  8026. # Free Software Foundation, Inc.
  8027. #
  8028. # This file is free software; the Free Software Foundation
  8029. # gives unlimited permission to copy and/or distribute it,
  8030. # with or without modifications, as long as this notice is preserved.
  8031. # serial 9
  8032. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8033. # -------------------------------------
  8034. # Define a conditional.
  8035. AC_DEFUN([AM_CONDITIONAL],
  8036. [AC_PREREQ(2.52)dnl
  8037. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8038. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8039. AC_SUBST([$1_TRUE])dnl
  8040. AC_SUBST([$1_FALSE])dnl
  8041. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8042. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8043. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8044. if $2; then
  8045. $1_TRUE=
  8046. $1_FALSE='#'
  8047. else
  8048. $1_TRUE='#'
  8049. $1_FALSE=
  8050. fi
  8051. AC_CONFIG_COMMANDS_PRE(
  8052. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8053. AC_MSG_ERROR([[conditional "$1" was never defined.
  8054. Usually this means the macro was only invoked conditionally.]])
  8055. fi])])
  8056. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
  8057. # 2010, 2011 Free Software Foundation, Inc.
  8058. #
  8059. # This file is free software; the Free Software Foundation
  8060. # gives unlimited permission to copy and/or distribute it,
  8061. # with or without modifications, as long as this notice is preserved.
  8062. # serial 12
  8063. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  8064. # written in clear, in which case automake, when reading aclocal.m4,
  8065. # will think it sees a *use*, and therefore will trigger all it's
  8066. # C support machinery. Also note that it means that autoscan, seeing
  8067. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8068. # _AM_DEPENDENCIES(NAME)
  8069. # ----------------------
  8070. # See how the compiler implements dependency checking.
  8071. # NAME is "CC", "CXX", "GCJ", or "OBJC".
  8072. # We try a few techniques and use that to set a single cache variable.
  8073. #
  8074. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8075. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8076. # dependency, and given that the user is not expected to run this macro,
  8077. # just rely on AC_PROG_CC.
  8078. AC_DEFUN([_AM_DEPENDENCIES],
  8079. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  8080. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8081. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8082. AC_REQUIRE([AM_DEP_TRACK])dnl
  8083. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  8084. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  8085. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8086. [$1], UPC, [depcc="$UPC" am_compiler_list=],
  8087. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8088. [depcc="$$1" am_compiler_list=])
  8089. AC_CACHE_CHECK([dependency style of $depcc],
  8090. [am_cv_$1_dependencies_compiler_type],
  8091. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8092. # We make a subdir and do the tests there. Otherwise we can end up
  8093. # making bogus files that we don't know about and never remove. For
  8094. # instance it was reported that on HP-UX the gcc test will end up
  8095. # making a dummy file named `D' -- because `-MD' means `put the output
  8096. # in D'.
  8097. rm -rf conftest.dir
  8098. mkdir conftest.dir
  8099. # Copy depcomp to subdir because otherwise we won't find it if we're
  8100. # using a relative directory.
  8101. cp "$am_depcomp" conftest.dir
  8102. cd conftest.dir
  8103. # We will build objects and dependencies in a subdirectory because
  8104. # it helps to detect inapplicable dependency modes. For instance
  8105. # both Tru64's cc and ICC support -MD to output dependencies as a
  8106. # side effect of compilation, but ICC will put the dependencies in
  8107. # the current directory while Tru64 will put them in the object
  8108. # directory.
  8109. mkdir sub
  8110. am_cv_$1_dependencies_compiler_type=none
  8111. if test "$am_compiler_list" = ""; then
  8112. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8113. fi
  8114. am__universal=false
  8115. m4_case([$1], [CC],
  8116. [case " $depcc " in #(
  8117. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8118. esac],
  8119. [CXX],
  8120. [case " $depcc " in #(
  8121. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8122. esac])
  8123. for depmode in $am_compiler_list; do
  8124. # Setup a source with many dependencies, because some compilers
  8125. # like to wrap large dependency lists on column 80 (with \), and
  8126. # we should not choose a depcomp mode which is confused by this.
  8127. #
  8128. # We need to recreate these files for each test, as the compiler may
  8129. # overwrite some of them when testing with obscure command lines.
  8130. # This happens at least with the AIX C compiler.
  8131. : > sub/conftest.c
  8132. for i in 1 2 3 4 5 6; do
  8133. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8134. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8135. # Solaris 8's {/usr,}/bin/sh.
  8136. touch sub/conftst$i.h
  8137. done
  8138. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8139. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8140. # mode. It turns out that the SunPro C++ compiler does not properly
  8141. # handle `-M -o', and we need to detect this. Also, some Intel
  8142. # versions had trouble with output in subdirs
  8143. am__obj=sub/conftest.${OBJEXT-o}
  8144. am__minus_obj="-o $am__obj"
  8145. case $depmode in
  8146. gcc)
  8147. # This depmode causes a compiler race in universal mode.
  8148. test "$am__universal" = false || continue
  8149. ;;
  8150. nosideeffect)
  8151. # after this tag, mechanisms are not by side-effect, so they'll
  8152. # only be used when explicitly requested
  8153. if test "x$enable_dependency_tracking" = xyes; then
  8154. continue
  8155. else
  8156. break
  8157. fi
  8158. ;;
  8159. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  8160. # This compiler won't grok `-c -o', but also, the minuso test has
  8161. # not run yet. These depmodes are late enough in the game, and
  8162. # so weak that their functioning should not be impacted.
  8163. am__obj=conftest.${OBJEXT-o}
  8164. am__minus_obj=
  8165. ;;
  8166. none) break ;;
  8167. esac
  8168. if depmode=$depmode \
  8169. source=sub/conftest.c object=$am__obj \
  8170. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8171. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8172. >/dev/null 2>conftest.err &&
  8173. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8174. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8175. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8176. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8177. # icc doesn't choke on unknown options, it will just issue warnings
  8178. # or remarks (even with -Werror). So we grep stderr for any message
  8179. # that says an option was ignored or not supported.
  8180. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8181. # icc: Command line warning: ignoring option '-M'; no argument required
  8182. # The diagnosis changed in icc 8.0:
  8183. # icc: Command line remark: option '-MP' not supported
  8184. if (grep 'ignoring option' conftest.err ||
  8185. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8186. am_cv_$1_dependencies_compiler_type=$depmode
  8187. break
  8188. fi
  8189. fi
  8190. done
  8191. cd ..
  8192. rm -rf conftest.dir
  8193. else
  8194. am_cv_$1_dependencies_compiler_type=none
  8195. fi
  8196. ])
  8197. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8198. AM_CONDITIONAL([am__fastdep$1], [
  8199. test "x$enable_dependency_tracking" != xno \
  8200. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8201. ])
  8202. # AM_SET_DEPDIR
  8203. # -------------
  8204. # Choose a directory name for dependency files.
  8205. # This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8206. AC_DEFUN([AM_SET_DEPDIR],
  8207. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8208. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8209. ])
  8210. # AM_DEP_TRACK
  8211. # ------------
  8212. AC_DEFUN([AM_DEP_TRACK],
  8213. [AC_ARG_ENABLE(dependency-tracking,
  8214. [ --disable-dependency-tracking speeds up one-time build
  8215. --enable-dependency-tracking do not reject slow dependency extractors])
  8216. if test "x$enable_dependency_tracking" != xno; then
  8217. am_depcomp="$ac_aux_dir/depcomp"
  8218. AMDEPBACKSLASH='\'
  8219. am__nodep='_no'
  8220. fi
  8221. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8222. AC_SUBST([AMDEPBACKSLASH])dnl
  8223. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8224. AC_SUBST([am__nodep])dnl
  8225. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8226. ])
  8227. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8228. # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  8229. # Free Software Foundation, Inc.
  8230. #
  8231. # This file is free software; the Free Software Foundation
  8232. # gives unlimited permission to copy and/or distribute it,
  8233. # with or without modifications, as long as this notice is preserved.
  8234. #serial 5
  8235. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8236. # ------------------------------
  8237. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8238. [{
  8239. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  8240. # are listed without --file. Let's play safe and only enable the eval
  8241. # if we detect the quoting.
  8242. case $CONFIG_FILES in
  8243. *\'*) eval set x "$CONFIG_FILES" ;;
  8244. *) set x $CONFIG_FILES ;;
  8245. esac
  8246. shift
  8247. for mf
  8248. do
  8249. # Strip MF so we end up with the name of the file.
  8250. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8251. # Check whether this is an Automake generated Makefile or not.
  8252. # We used to match only the files named `Makefile.in', but
  8253. # some people rename them; so instead we look at the file content.
  8254. # Grep'ing the first line is not enough: some people post-process
  8255. # each Makefile.in and add a new line on top of each file to say so.
  8256. # Grep'ing the whole file is not good either: AIX grep has a line
  8257. # limit of 2048, but all sed's we know have understand at least 4000.
  8258. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8259. dirpart=`AS_DIRNAME("$mf")`
  8260. else
  8261. continue
  8262. fi
  8263. # Extract the definition of DEPDIR, am__include, and am__quote
  8264. # from the Makefile without running `make'.
  8265. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8266. test -z "$DEPDIR" && continue
  8267. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8268. test -z "am__include" && continue
  8269. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8270. # When using ansi2knr, U may be empty or an underscore; expand it
  8271. U=`sed -n 's/^U = //p' < "$mf"`
  8272. # Find all dependency output files, they are included files with
  8273. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8274. # simplest approach to changing $(DEPDIR) to its actual value in the
  8275. # expansion.
  8276. for file in `sed -n "
  8277. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8278. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8279. # Make sure the directory exists.
  8280. test -f "$dirpart/$file" && continue
  8281. fdir=`AS_DIRNAME(["$file"])`
  8282. AS_MKDIR_P([$dirpart/$fdir])
  8283. # echo "creating $dirpart/$file"
  8284. echo '# dummy' > "$dirpart/$file"
  8285. done
  8286. done
  8287. }
  8288. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8289. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8290. # -----------------------------
  8291. # This macro should only be invoked once -- use via AC_REQUIRE.
  8292. #
  8293. # This code is only required when automatic dependency tracking
  8294. # is enabled. FIXME. This creates each `.P' file that we will
  8295. # need in order to bootstrap the dependency handling code.
  8296. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8297. [AC_CONFIG_COMMANDS([depfiles],
  8298. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8299. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8300. ])
  8301. # Do all the work for Automake. -*- Autoconf -*-
  8302. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8303. # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  8304. #
  8305. # This file is free software; the Free Software Foundation
  8306. # gives unlimited permission to copy and/or distribute it,
  8307. # with or without modifications, as long as this notice is preserved.
  8308. # serial 16
  8309. # This macro actually does too much. Some checks are only needed if
  8310. # your package does certain things. But this isn't really a big deal.
  8311. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8312. # AM_INIT_AUTOMAKE([OPTIONS])
  8313. # -----------------------------------------------
  8314. # The call with PACKAGE and VERSION arguments is the old style
  8315. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8316. # and VERSION should now be passed to AC_INIT and removed from
  8317. # the call to AM_INIT_AUTOMAKE.
  8318. # We support both call styles for the transition. After
  8319. # the next Automake release, Autoconf can make the AC_INIT
  8320. # arguments mandatory, and then we can depend on a new Autoconf
  8321. # release and drop the old call support.
  8322. AC_DEFUN([AM_INIT_AUTOMAKE],
  8323. [AC_PREREQ([2.62])dnl
  8324. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8325. dnl the ones we care about.
  8326. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8327. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8328. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8329. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8330. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8331. # is not polluted with repeated "-I."
  8332. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8333. # test to see if srcdir already configured
  8334. if test -f $srcdir/config.status; then
  8335. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8336. fi
  8337. fi
  8338. # test whether we have cygpath
  8339. if test -z "$CYGPATH_W"; then
  8340. if (cygpath --version) >/dev/null 2>/dev/null; then
  8341. CYGPATH_W='cygpath -w'
  8342. else
  8343. CYGPATH_W=echo
  8344. fi
  8345. fi
  8346. AC_SUBST([CYGPATH_W])
  8347. # Define the identity of the package.
  8348. dnl Distinguish between old-style and new-style calls.
  8349. m4_ifval([$2],
  8350. [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8351. AC_SUBST([PACKAGE], [$1])dnl
  8352. AC_SUBST([VERSION], [$2])],
  8353. [_AM_SET_OPTIONS([$1])dnl
  8354. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8355. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  8356. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8357. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8358. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8359. _AM_IF_OPTION([no-define],,
  8360. [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8361. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8362. # Some tools Automake needs.
  8363. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8364. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8365. AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8366. AM_MISSING_PROG(AUTOCONF, autoconf)
  8367. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8368. AM_MISSING_PROG(AUTOHEADER, autoheader)
  8369. AM_MISSING_PROG(MAKEINFO, makeinfo)
  8370. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8371. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8372. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8373. # We need awk for the "check" target. The system "awk" is bad on
  8374. # some platforms.
  8375. AC_REQUIRE([AC_PROG_AWK])dnl
  8376. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8377. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8378. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8379. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8380. [_AM_PROG_TAR([v7])])])
  8381. _AM_IF_OPTION([no-dependencies],,
  8382. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8383. [_AM_DEPENDENCIES(CC)],
  8384. [define([AC_PROG_CC],
  8385. defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8386. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8387. [_AM_DEPENDENCIES(CXX)],
  8388. [define([AC_PROG_CXX],
  8389. defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8390. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8391. [_AM_DEPENDENCIES(OBJC)],
  8392. [define([AC_PROG_OBJC],
  8393. defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  8394. ])
  8395. _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  8396. dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  8397. dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  8398. dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8399. AC_CONFIG_COMMANDS_PRE(dnl
  8400. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8401. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8402. ])
  8403. dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8404. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8405. dnl mangled by Autoconf and run in a shell conditional statement.
  8406. m4_define([_AC_COMPILER_EXEEXT],
  8407. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8408. # When config.status generates a header, we must update the stamp-h file.
  8409. # This file resides in the same directory as the config header
  8410. # that is generated. The stamp files are numbered to have different names.
  8411. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8412. # loop where config.status creates the headers, so we can generate
  8413. # our stamp files there.
  8414. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8415. [# Compute $1's index in $config_headers.
  8416. _am_arg=$1
  8417. _am_stamp_count=1
  8418. for _am_header in $config_headers :; do
  8419. case $_am_header in
  8420. $_am_arg | $_am_arg:* )
  8421. break ;;
  8422. * )
  8423. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8424. esac
  8425. done
  8426. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8427. # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
  8428. # Inc.
  8429. #
  8430. # This file is free software; the Free Software Foundation
  8431. # gives unlimited permission to copy and/or distribute it,
  8432. # with or without modifications, as long as this notice is preserved.
  8433. # serial 1
  8434. # AM_PROG_INSTALL_SH
  8435. # ------------------
  8436. # Define $install_sh.
  8437. AC_DEFUN([AM_PROG_INSTALL_SH],
  8438. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8439. if test x"${install_sh}" != xset; then
  8440. case $am_aux_dir in
  8441. *\ * | *\ *)
  8442. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8443. *)
  8444. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8445. esac
  8446. fi
  8447. AC_SUBST(install_sh)])
  8448. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  8449. #
  8450. # This file is free software; the Free Software Foundation
  8451. # gives unlimited permission to copy and/or distribute it,
  8452. # with or without modifications, as long as this notice is preserved.
  8453. # serial 2
  8454. # Check whether the underlying file-system supports filenames
  8455. # with a leading dot. For instance MS-DOS doesn't.
  8456. AC_DEFUN([AM_SET_LEADING_DOT],
  8457. [rm -rf .tst 2>/dev/null
  8458. mkdir .tst 2>/dev/null
  8459. if test -d .tst; then
  8460. am__leading_dot=.
  8461. else
  8462. am__leading_dot=_
  8463. fi
  8464. rmdir .tst 2>/dev/null
  8465. AC_SUBST([am__leading_dot])])
  8466. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8467. # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  8468. #
  8469. # This file is free software; the Free Software Foundation
  8470. # gives unlimited permission to copy and/or distribute it,
  8471. # with or without modifications, as long as this notice is preserved.
  8472. # serial 4
  8473. # AM_MAKE_INCLUDE()
  8474. # -----------------
  8475. # Check to see how make treats includes.
  8476. AC_DEFUN([AM_MAKE_INCLUDE],
  8477. [am_make=${MAKE-make}
  8478. cat > confinc << 'END'
  8479. am__doit:
  8480. @echo this is the am__doit target
  8481. .PHONY: am__doit
  8482. END
  8483. # If we don't find an include directive, just comment out the code.
  8484. AC_MSG_CHECKING([for style of include used by $am_make])
  8485. am__include="#"
  8486. am__quote=
  8487. _am_result=none
  8488. # First try GNU make style include.
  8489. echo "include confinc" > confmf
  8490. # Ignore all kinds of additional output from `make'.
  8491. case `$am_make -s -f confmf 2> /dev/null` in #(
  8492. *the\ am__doit\ target*)
  8493. am__include=include
  8494. am__quote=
  8495. _am_result=GNU
  8496. ;;
  8497. esac
  8498. # Now try BSD make style include.
  8499. if test "$am__include" = "#"; then
  8500. echo '.include "confinc"' > confmf
  8501. case `$am_make -s -f confmf 2> /dev/null` in #(
  8502. *the\ am__doit\ target*)
  8503. am__include=.include
  8504. am__quote="\""
  8505. _am_result=BSD
  8506. ;;
  8507. esac
  8508. fi
  8509. AC_SUBST([am__include])
  8510. AC_SUBST([am__quote])
  8511. AC_MSG_RESULT([$_am_result])
  8512. rm -f confinc confmf
  8513. ])
  8514. # Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8515. # Free Software Foundation, Inc.
  8516. #
  8517. # This file is free software; the Free Software Foundation
  8518. # gives unlimited permission to copy and/or distribute it,
  8519. # with or without modifications, as long as this notice is preserved.
  8520. # serial 6
  8521. # AM_PROG_CC_C_O
  8522. # --------------
  8523. # Like AC_PROG_CC_C_O, but changed for automake.
  8524. AC_DEFUN([AM_PROG_CC_C_O],
  8525. [AC_REQUIRE([AC_PROG_CC_C_O])dnl
  8526. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8527. AC_REQUIRE_AUX_FILE([compile])dnl
  8528. # FIXME: we rely on the cache variable name because
  8529. # there is no other way.
  8530. set dummy $CC
  8531. am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  8532. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  8533. if test "$am_t" != yes; then
  8534. # Losing compiler, so override with the script.
  8535. # FIXME: It is wrong to rewrite CC.
  8536. # But if we don't then we get into trouble of one sort or another.
  8537. # A longer-term fix would be to have automake use am__CC in this case,
  8538. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  8539. CC="$am_aux_dir/compile $CC"
  8540. fi
  8541. dnl Make sure AC_PROG_CC is never called again, or it will override our
  8542. dnl setting of CC.
  8543. m4_define([AC_PROG_CC],
  8544. [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  8545. ])
  8546. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8547. # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  8548. # Free Software Foundation, Inc.
  8549. #
  8550. # This file is free software; the Free Software Foundation
  8551. # gives unlimited permission to copy and/or distribute it,
  8552. # with or without modifications, as long as this notice is preserved.
  8553. # serial 6
  8554. # AM_MISSING_PROG(NAME, PROGRAM)
  8555. # ------------------------------
  8556. AC_DEFUN([AM_MISSING_PROG],
  8557. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8558. $1=${$1-"${am_missing_run}$2"}
  8559. AC_SUBST($1)])
  8560. # AM_MISSING_HAS_RUN
  8561. # ------------------
  8562. # Define MISSING if not defined so far and test if it supports --run.
  8563. # If it does, set am_missing_run to use it, otherwise, to nothing.
  8564. AC_DEFUN([AM_MISSING_HAS_RUN],
  8565. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8566. AC_REQUIRE_AUX_FILE([missing])dnl
  8567. if test x"${MISSING+set}" != xset; then
  8568. case $am_aux_dir in
  8569. *\ * | *\ *)
  8570. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8571. *)
  8572. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8573. esac
  8574. fi
  8575. # Use eval to expand $SHELL
  8576. if eval "$MISSING --run true"; then
  8577. am_missing_run="$MISSING --run "
  8578. else
  8579. am_missing_run=
  8580. AC_MSG_WARN([`missing' script is too old or missing])
  8581. fi
  8582. ])
  8583. # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
  8584. # Inc.
  8585. #
  8586. # This file is free software; the Free Software Foundation
  8587. # gives unlimited permission to copy and/or distribute it,
  8588. # with or without modifications, as long as this notice is preserved.
  8589. # serial 1
  8590. # AM_PROG_MKDIR_P
  8591. # ---------------
  8592. # Check for `mkdir -p'.
  8593. AC_DEFUN([AM_PROG_MKDIR_P],
  8594. [AC_PREREQ([2.60])dnl
  8595. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8596. dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  8597. dnl while keeping a definition of mkdir_p for backward compatibility.
  8598. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  8599. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  8600. dnl Makefile.ins that do not define MKDIR_P, so we do our own
  8601. dnl adjustment using top_builddir (which is defined more often than
  8602. dnl MKDIR_P).
  8603. AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  8604. case $mkdir_p in
  8605. [[\\/$]]* | ?:[[\\/]]*) ;;
  8606. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  8607. esac
  8608. ])
  8609. # Helper functions for option handling. -*- Autoconf -*-
  8610. # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
  8611. # Foundation, Inc.
  8612. #
  8613. # This file is free software; the Free Software Foundation
  8614. # gives unlimited permission to copy and/or distribute it,
  8615. # with or without modifications, as long as this notice is preserved.
  8616. # serial 5
  8617. # _AM_MANGLE_OPTION(NAME)
  8618. # -----------------------
  8619. AC_DEFUN([_AM_MANGLE_OPTION],
  8620. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8621. # _AM_SET_OPTION(NAME)
  8622. # --------------------
  8623. # Set option NAME. Presently that only means defining a flag for this option.
  8624. AC_DEFUN([_AM_SET_OPTION],
  8625. [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  8626. # _AM_SET_OPTIONS(OPTIONS)
  8627. # ------------------------
  8628. # OPTIONS is a space-separated list of Automake options.
  8629. AC_DEFUN([_AM_SET_OPTIONS],
  8630. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8631. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8632. # -------------------------------------------
  8633. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8634. AC_DEFUN([_AM_IF_OPTION],
  8635. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8636. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8637. # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  8638. # Free Software Foundation, Inc.
  8639. #
  8640. # This file is free software; the Free Software Foundation
  8641. # gives unlimited permission to copy and/or distribute it,
  8642. # with or without modifications, as long as this notice is preserved.
  8643. # serial 5
  8644. # AM_SANITY_CHECK
  8645. # ---------------
  8646. AC_DEFUN([AM_SANITY_CHECK],
  8647. [AC_MSG_CHECKING([whether build environment is sane])
  8648. # Just in case
  8649. sleep 1
  8650. echo timestamp > conftest.file
  8651. # Reject unsafe characters in $srcdir or the absolute working directory
  8652. # name. Accept space and tab only in the latter.
  8653. am_lf='
  8654. '
  8655. case `pwd` in
  8656. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8657. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8658. esac
  8659. case $srcdir in
  8660. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8661. AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  8662. esac
  8663. # Do `set' in a subshell so we don't clobber the current shell's
  8664. # arguments. Must try -L first in case configure is actually a
  8665. # symlink; some systems play weird games with the mod time of symlinks
  8666. # (eg FreeBSD returns the mod time of the symlink's containing
  8667. # directory).
  8668. if (
  8669. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8670. if test "$[*]" = "X"; then
  8671. # -L didn't work.
  8672. set X `ls -t "$srcdir/configure" conftest.file`
  8673. fi
  8674. rm -f conftest.file
  8675. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8676. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8677. # If neither matched, then we have a broken ls. This can happen
  8678. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8679. # broken ls alias from the environment. This has actually
  8680. # happened. Such a system could not be considered "sane".
  8681. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8682. alias in your environment])
  8683. fi
  8684. test "$[2]" = conftest.file
  8685. )
  8686. then
  8687. # Ok.
  8688. :
  8689. else
  8690. AC_MSG_ERROR([newly created file is older than distributed files!
  8691. Check your system clock])
  8692. fi
  8693. AC_MSG_RESULT(yes)])
  8694. # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
  8695. #
  8696. # This file is free software; the Free Software Foundation
  8697. # gives unlimited permission to copy and/or distribute it,
  8698. # with or without modifications, as long as this notice is preserved.
  8699. # serial 1
  8700. # AM_PROG_INSTALL_STRIP
  8701. # ---------------------
  8702. # One issue with vendor `install' (even GNU) is that you can't
  8703. # specify the program used to strip binaries. This is especially
  8704. # annoying in cross-compiling environments, where the build's strip
  8705. # is unlikely to handle the host's binaries.
  8706. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8707. # always use install-sh in `make install-strip', and initialize
  8708. # STRIPPROG with the value of the STRIP variable (set by the user).
  8709. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8710. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8711. # Installed binaries are usually stripped using `strip' when the user
  8712. # run `make install-strip'. However `strip' might not be the right
  8713. # tool to use in cross-compilation environments, therefore Automake
  8714. # will honor the `STRIP' environment variable to overrule this program.
  8715. dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  8716. if test "$cross_compiling" != no; then
  8717. AC_CHECK_TOOL([STRIP], [strip], :)
  8718. fi
  8719. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8720. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8721. # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
  8722. #
  8723. # This file is free software; the Free Software Foundation
  8724. # gives unlimited permission to copy and/or distribute it,
  8725. # with or without modifications, as long as this notice is preserved.
  8726. # serial 3
  8727. # _AM_SUBST_NOTMAKE(VARIABLE)
  8728. # ---------------------------
  8729. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8730. # This macro is traced by Automake.
  8731. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8732. # AM_SUBST_NOTMAKE(VARIABLE)
  8733. # --------------------------
  8734. # Public sister of _AM_SUBST_NOTMAKE.
  8735. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8736. # Check how to create a tarball. -*- Autoconf -*-
  8737. # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
  8738. #
  8739. # This file is free software; the Free Software Foundation
  8740. # gives unlimited permission to copy and/or distribute it,
  8741. # with or without modifications, as long as this notice is preserved.
  8742. # serial 2
  8743. # _AM_PROG_TAR(FORMAT)
  8744. # --------------------
  8745. # Check how to create a tarball in format FORMAT.
  8746. # FORMAT should be one of `v7', `ustar', or `pax'.
  8747. #
  8748. # Substitute a variable $(am__tar) that is a command
  8749. # writing to stdout a FORMAT-tarball containing the directory
  8750. # $tardir.
  8751. # tardir=directory && $(am__tar) > result.tar
  8752. #
  8753. # Substitute a variable $(am__untar) that extract such
  8754. # a tarball read from stdin.
  8755. # $(am__untar) < result.tar
  8756. AC_DEFUN([_AM_PROG_TAR],
  8757. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8758. # in the wild :-( We should find a proper way to deprecate it ...
  8759. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8760. m4_if([$1], [v7],
  8761. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8762. [m4_case([$1], [ustar],, [pax],,
  8763. [m4_fatal([Unknown tar format])])
  8764. AC_MSG_CHECKING([how to create a $1 tar archive])
  8765. # Loop over all known methods to create a tar archive until one works.
  8766. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8767. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8768. # Do not fold the above two line into one, because Tru64 sh and
  8769. # Solaris sh will not grok spaces in the rhs of `-'.
  8770. for _am_tool in $_am_tools
  8771. do
  8772. case $_am_tool in
  8773. gnutar)
  8774. for _am_tar in tar gnutar gtar;
  8775. do
  8776. AM_RUN_LOG([$_am_tar --version]) && break
  8777. done
  8778. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8779. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8780. am__untar="$_am_tar -xf -"
  8781. ;;
  8782. plaintar)
  8783. # Must skip GNU tar: if it does not support --format= it doesn't create
  8784. # ustar tarball either.
  8785. (tar --version) >/dev/null 2>&1 && continue
  8786. am__tar='tar chf - "$$tardir"'
  8787. am__tar_='tar chf - "$tardir"'
  8788. am__untar='tar xf -'
  8789. ;;
  8790. pax)
  8791. am__tar='pax -L -x $1 -w "$$tardir"'
  8792. am__tar_='pax -L -x $1 -w "$tardir"'
  8793. am__untar='pax -r'
  8794. ;;
  8795. cpio)
  8796. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8797. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8798. am__untar='cpio -i -H $1 -d'
  8799. ;;
  8800. none)
  8801. am__tar=false
  8802. am__tar_=false
  8803. am__untar=false
  8804. ;;
  8805. esac
  8806. # If the value was cached, stop now. We just wanted to have am__tar
  8807. # and am__untar set.
  8808. test -n "${am_cv_prog_tar_$1}" && break
  8809. # tar/untar a dummy directory, and stop if the command works
  8810. rm -rf conftest.dir
  8811. mkdir conftest.dir
  8812. echo GrepMe > conftest.dir/file
  8813. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8814. rm -rf conftest.dir
  8815. if test -s conftest.tar; then
  8816. AM_RUN_LOG([$am__untar <conftest.tar])
  8817. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8818. fi
  8819. done
  8820. rm -rf conftest.dir
  8821. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8822. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8823. AC_SUBST([am__tar])
  8824. AC_SUBST([am__untar])
  8825. ]) # _AM_PROG_TAR