1
0

autotool.patch 2.1 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195441964419744198441994420044201442024420344204442054420644207442084420944210442114421244213442144421544216442174421844219442204422144222442234422444225442264422744228442294423044231442324423344234442354423644237442384423944240442414424244243442444424544246442474424844249442504425144252442534425444255442564425744258442594426044261442624426344264442654426644267442684426944270442714427244273442744427544276442774427844279442804428144282442834428444285442864428744288442894429044291442924429344294442954429644297442984429944300443014430244303443044430544306443074430844309443104431144312443134431444315443164431744318443194432044321443224432344324443254432644327443284432944330443314433244333443344433544336443374433844339443404434144342443434434444345443464434744348443494435044351443524435344354443554435644357443584435944360443614436244363443644436544366443674436844369443704437144372443734437444375443764437744378443794438044381443824438344384443854438644387443884438944390443914439244393443944439544396443974439844399444004440144402444034440444405444064440744408444094441044411444124441344414444154441644417444184441944420444214442244423444244442544426444274442844429444304443144432444334443444435444364443744438444394444044441444424444344444444454444644447444484444944450444514445244453444544445544456444574445844459444604446144462444634446444465444664446744468444694447044471444724447344474444754447644477444784447944480444814448244483444844448544486444874448844489444904449144492444934449444495444964449744498444994450044501445024450344504445054450644507445084450944510445114451244513445144451544516445174451844519445204452144522445234452444525445264452744528445294453044531445324453344534445354453644537445384453944540445414454244543445444454544546445474454844549445504455144552445534455444555445564455744558445594456044561445624456344564445654456644567445684456944570445714457244573445744457544576445774457844579445804458144582445834458444585445864458744588445894459044591445924459344594445954459644597445984459944600446014460244603446044460544606446074460844609446104461144612446134461444615446164461744618446194462044621446224462344624446254462644627446284462944630446314463244633446344463544636446374463844639446404464144642446434464444645446464464744648446494465044651446524465344654446554465644657446584465944660446614466244663446644466544666446674466844669446704467144672446734467444675446764467744678446794468044681446824468344684446854468644687446884468944690446914469244693446944469544696446974469844699447004470144702447034470444705447064470744708447094471044711447124471344714447154471644717447184471944720447214472244723447244472544726447274472844729447304473144732447334473444735447364473744738447394474044741447424474344744447454474644747447484474944750447514475244753447544475544756447574475844759447604476144762447634476444765447664476744768447694477044771447724477344774447754477644777447784477944780447814478244783447844478544786447874478844789447904479144792447934479444795447964479744798447994480044801448024480344804448054480644807448084480944810448114481244813448144481544816448174481844819448204482144822448234482444825448264482744828448294483044831448324483344834448354483644837448384483944840448414484244843448444484544846448474484844849448504485144852448534485444855448564485744858448594486044861448624486344864448654486644867448684486944870448714487244873448744487544876448774487844879448804488144882448834488444885448864488744888448894489044891448924489344894448954489644897448984489944900449014490244903449044490544906449074490844909449104491144912449134491444915449164491744918449194492044921449224492344924449254492644927449284492944930449314493244933449344493544936449374493844939449404494144942449434494444945449464494744948449494495044951449524495344954449554495644957449584495944960449614496244963449644496544966449674496844969449704497144972449734497444975449764497744978449794498044981449824498344984449854498644987449884498944990449914499244993449944499544996449974499844999450004500145002450034500445005450064500745008450094501045011450124501345014450154501645017450184501945020450214502245023450244502545026450274502845029450304503145032450334503445035450364503745038450394504045041450424504345044450454504645047450484504945050450514505245053450544505545056450574505845059450604506145062450634506445065450664506745068450694507045071450724507345074450754507645077450784507945080450814508245083450844508545086450874508845089450904509145092450934509445095450964509745098450994510045101451024510345104451054510645107451084510945110451114511245113451144511545116451174511845119451204512145122451234512445125451264512745128451294513045131451324513345134451354513645137451384513945140451414514245143451444514545146451474514845149451504515145152451534515445155451564515745158451594516045161451624516345164451654516645167451684516945170451714517245173451744517545176451774517845179451804518145182451834518445185451864518745188451894519045191451924519345194451954519645197451984519945200452014520245203452044520545206452074520845209452104521145212452134521445215452164521745218452194522045221452224522345224452254522645227452284522945230452314523245233452344523545236452374523845239452404524145242452434524445245452464524745248452494525045251452524525345254452554525645257452584525945260452614526245263452644526545266452674526845269452704527145272452734527445275452764527745278452794528045281452824528345284452854528645287452884528945290452914529245293452944529545296452974529845299453004530145302453034530445305453064530745308453094531045311453124531345314453154531645317453184531945320453214532245323453244532545326453274532845329453304533145332453334533445335453364533745338453394534045341453424534345344453454534645347453484534945350453514535245353453544535545356453574535845359453604536145362453634536445365453664536745368453694537045371453724537345374453754537645377453784537945380453814538245383453844538545386453874538845389453904539145392453934539445395453964539745398453994540045401454024540345404454054540645407454084540945410454114541245413454144541545416454174541845419454204542145422454234542445425454264542745428454294543045431454324543345434454354543645437454384543945440454414544245443454444544545446454474544845449454504545145452454534545445455454564545745458454594546045461454624546345464454654546645467454684546945470454714547245473454744547545476454774547845479454804548145482454834548445485454864548745488454894549045491454924549345494454954549645497454984549945500455014550245503455044550545506455074550845509455104551145512455134551445515455164551745518455194552045521455224552345524455254552645527455284552945530455314553245533455344553545536455374553845539455404554145542455434554445545455464554745548455494555045551455524555345554455554555645557455584555945560455614556245563455644556545566455674556845569455704557145572455734557445575455764557745578455794558045581455824558345584455854558645587455884558945590455914559245593455944559545596455974559845599456004560145602456034560445605456064560745608456094561045611456124561345614456154561645617456184561945620456214562245623456244562545626456274562845629456304563145632456334563445635456364563745638456394564045641456424564345644456454564645647456484564945650456514565245653456544565545656456574565845659456604566145662456634566445665456664566745668456694567045671456724567345674456754567645677456784567945680456814568245683456844568545686456874568845689456904569145692456934569445695456964569745698456994570045701457024570345704457054570645707457084570945710457114571245713457144571545716457174571845719457204572145722457234572445725457264572745728457294573045731457324573345734457354573645737457384573945740457414574245743457444574545746457474574845749457504575145752457534575445755457564575745758457594576045761457624576345764457654576645767457684576945770457714577245773457744577545776457774577845779457804578145782457834578445785457864578745788457894579045791457924579345794457954579645797457984579945800458014580245803458044580545806458074580845809458104581145812458134581445815458164581745818458194582045821458224582345824458254582645827458284582945830458314583245833458344583545836458374583845839458404584145842458434584445845458464584745848458494585045851458524585345854458554585645857458584585945860458614586245863458644586545866458674586845869458704587145872458734587445875458764587745878458794588045881458824588345884458854588645887458884588945890458914589245893458944589545896458974589845899459004590145902459034590445905459064590745908459094591045911459124591345914459154591645917459184591945920459214592245923459244592545926459274592845929459304593145932459334593445935459364593745938459394594045941459424594345944459454594645947459484594945950459514595245953459544595545956459574595845959459604596145962459634596445965459664596745968459694597045971459724597345974459754597645977459784597945980459814598245983459844598545986459874598845989459904599145992459934599445995459964599745998459994600046001460024600346004460054600646007460084600946010460114601246013460144601546016460174601846019460204602146022460234602446025460264602746028460294603046031460324603346034460354603646037460384603946040460414604246043460444604546046460474604846049460504605146052460534605446055460564605746058460594606046061460624606346064460654606646067460684606946070460714607246073460744607546076460774607846079460804608146082460834608446085460864608746088460894609046091460924609346094460954609646097460984609946100461014610246103461044610546106461074610846109461104611146112461134611446115461164611746118461194612046121461224612346124461254612646127461284612946130461314613246133461344613546136461374613846139461404614146142461434614446145461464614746148461494615046151461524615346154461554615646157461584615946160461614616246163461644616546166461674616846169461704617146172461734617446175461764617746178461794618046181461824618346184461854618646187461884618946190461914619246193461944619546196461974619846199462004620146202462034620446205462064620746208462094621046211462124621346214462154621646217462184621946220462214622246223462244622546226462274622846229462304623146232462334623446235462364623746238462394624046241462424624346244462454624646247462484624946250462514625246253462544625546256462574625846259462604626146262462634626446265462664626746268462694627046271462724627346274462754627646277462784627946280462814628246283462844628546286462874628846289462904629146292462934629446295462964629746298462994630046301463024630346304463054630646307463084630946310463114631246313463144631546316463174631846319463204632146322463234632446325463264632746328463294633046331463324633346334463354633646337463384633946340463414634246343463444634546346463474634846349463504635146352463534635446355463564635746358463594636046361463624636346364463654636646367463684636946370463714637246373463744637546376463774637846379463804638146382463834638446385463864638746388463894639046391463924639346394463954639646397463984639946400464014640246403464044640546406464074640846409464104641146412464134641446415464164641746418464194642046421464224642346424464254642646427464284642946430464314643246433464344643546436464374643846439464404644146442464434644446445464464644746448464494645046451464524645346454464554645646457464584645946460464614646246463464644646546466464674646846469464704647146472464734647446475464764647746478464794648046481464824648346484464854648646487464884648946490464914649246493464944649546496464974649846499465004650146502465034650446505465064650746508465094651046511465124651346514465154651646517465184651946520465214652246523465244652546526465274652846529465304653146532465334653446535465364653746538465394654046541465424654346544465454654646547465484654946550465514655246553465544655546556465574655846559465604656146562465634656446565465664656746568465694657046571465724657346574465754657646577465784657946580465814658246583465844658546586465874658846589465904659146592465934659446595465964659746598465994660046601466024660346604466054660646607466084660946610466114661246613466144661546616466174661846619466204662146622466234662446625466264662746628466294663046631466324663346634466354663646637466384663946640466414664246643466444664546646466474664846649466504665146652466534665446655466564665746658466594666046661466624666346664466654666646667466684666946670466714667246673466744667546676466774667846679466804668146682466834668446685466864668746688466894669046691466924669346694466954669646697466984669946700467014670246703467044670546706467074670846709467104671146712467134671446715467164671746718467194672046721467224672346724467254672646727467284672946730467314673246733467344673546736467374673846739467404674146742467434674446745467464674746748467494675046751467524675346754467554675646757467584675946760467614676246763467644676546766467674676846769467704677146772467734677446775467764677746778467794678046781467824678346784467854678646787467884678946790467914679246793467944679546796467974679846799468004680146802468034680446805468064680746808468094681046811468124681346814468154681646817468184681946820468214682246823468244682546826468274682846829468304683146832468334683446835468364683746838468394684046841468424684346844468454684646847468484684946850468514685246853468544685546856468574685846859468604686146862468634686446865468664686746868468694687046871468724687346874468754687646877468784687946880468814688246883468844688546886468874688846889468904689146892468934689446895468964689746898468994690046901469024690346904469054690646907469084690946910469114691246913469144691546916469174691846919469204692146922469234692446925469264692746928469294693046931469324693346934469354693646937469384693946940469414694246943469444694546946469474694846949469504695146952469534695446955469564695746958469594696046961469624696346964469654696646967469684696946970469714697246973469744697546976469774697846979469804698146982469834698446985469864698746988469894699046991469924699346994469954699646997469984699947000470014700247003470044700547006470074700847009470104701147012470134701447015470164701747018470194702047021470224702347024470254702647027470284702947030470314703247033470344703547036470374703847039470404704147042470434704447045470464704747048470494705047051470524705347054470554705647057470584705947060470614706247063470644706547066470674706847069470704707147072470734707447075470764707747078470794708047081470824708347084470854708647087470884708947090470914709247093470944709547096470974709847099471004710147102471034710447105471064710747108471094711047111471124711347114471154711647117471184711947120471214712247123471244712547126471274712847129471304713147132471334713447135471364713747138471394714047141471424714347144471454714647147471484714947150471514715247153471544715547156471574715847159471604716147162471634716447165471664716747168471694717047171471724717347174471754717647177471784717947180471814718247183471844718547186471874718847189471904719147192471934719447195471964719747198471994720047201472024720347204472054720647207472084720947210472114721247213472144721547216472174721847219472204722147222472234722447225472264722747228472294723047231472324723347234472354723647237472384723947240472414724247243472444724547246472474724847249472504725147252472534725447255472564725747258472594726047261472624726347264472654726647267472684726947270472714727247273472744727547276472774727847279472804728147282472834728447285472864728747288472894729047291472924729347294472954729647297472984729947300473014730247303473044730547306473074730847309473104731147312473134731447315473164731747318473194732047321473224732347324473254732647327473284732947330473314733247333473344733547336473374733847339473404734147342473434734447345473464734747348473494735047351473524735347354473554735647357473584735947360473614736247363473644736547366473674736847369473704737147372473734737447375473764737747378473794738047381473824738347384473854738647387473884738947390473914739247393473944739547396473974739847399474004740147402474034740447405474064740747408474094741047411474124741347414474154741647417474184741947420474214742247423474244742547426474274742847429474304743147432474334743447435474364743747438474394744047441474424744347444474454744647447474484744947450474514745247453474544745547456474574745847459474604746147462474634746447465474664746747468474694747047471474724747347474474754747647477474784747947480474814748247483474844748547486474874748847489474904749147492474934749447495474964749747498474994750047501475024750347504475054750647507475084750947510475114751247513475144751547516475174751847519475204752147522475234752447525475264752747528475294753047531475324753347534475354753647537475384753947540475414754247543475444754547546475474754847549475504755147552475534755447555475564755747558475594756047561475624756347564475654756647567475684756947570475714757247573475744757547576475774757847579475804758147582475834758447585475864758747588475894759047591475924759347594475954759647597475984759947600476014760247603476044760547606476074760847609476104761147612476134761447615476164761747618476194762047621476224762347624476254762647627476284762947630476314763247633476344763547636476374763847639476404764147642476434764447645476464764747648476494765047651476524765347654476554765647657476584765947660476614766247663476644766547666476674766847669476704767147672476734767447675476764767747678476794768047681476824768347684476854768647687476884768947690476914769247693476944769547696476974769847699477004770147702477034770447705477064770747708477094771047711477124771347714477154771647717477184771947720477214772247723477244772547726477274772847729477304773147732477334773447735477364773747738477394774047741477424774347744477454774647747477484774947750477514775247753477544775547756477574775847759477604776147762477634776447765477664776747768477694777047771477724777347774477754777647777477784777947780477814778247783477844778547786477874778847789477904779147792477934779447795477964779747798477994780047801478024780347804478054780647807478084780947810478114781247813478144781547816478174781847819478204782147822478234782447825478264782747828478294783047831478324783347834478354783647837478384783947840478414784247843478444784547846478474784847849478504785147852478534785447855478564785747858478594786047861478624786347864478654786647867478684786947870478714787247873478744787547876478774787847879478804788147882478834788447885478864788747888478894789047891478924789347894478954789647897478984789947900479014790247903479044790547906479074790847909479104791147912479134791447915479164791747918479194792047921479224792347924479254792647927479284792947930479314793247933479344793547936479374793847939479404794147942479434794447945479464794747948479494795047951479524795347954479554795647957479584795947960479614796247963479644796547966479674796847969479704797147972479734797447975479764797747978479794798047981479824798347984479854798647987479884798947990479914799247993479944799547996479974799847999480004800148002480034800448005480064800748008480094801048011480124801348014480154801648017480184801948020480214802248023480244802548026480274802848029480304803148032480334803448035480364803748038480394804048041480424804348044480454804648047480484804948050480514805248053480544805548056480574805848059480604806148062480634806448065480664806748068480694807048071480724807348074480754807648077480784807948080480814808248083480844808548086480874808848089480904809148092480934809448095480964809748098480994810048101481024810348104481054810648107481084810948110481114811248113481144811548116481174811848119481204812148122481234812448125481264812748128481294813048131481324813348134481354813648137481384813948140481414814248143481444814548146481474814848149481504815148152481534815448155481564815748158481594816048161481624816348164481654816648167481684816948170481714817248173481744817548176481774817848179481804818148182481834818448185481864818748188481894819048191481924819348194481954819648197481984819948200482014820248203482044820548206482074820848209482104821148212482134821448215482164821748218482194822048221482224822348224482254822648227482284822948230482314823248233482344823548236482374823848239482404824148242482434824448245482464824748248482494825048251482524825348254482554825648257482584825948260482614826248263482644826548266482674826848269482704827148272482734827448275482764827748278482794828048281482824828348284482854828648287482884828948290482914829248293482944829548296482974829848299483004830148302483034830448305483064830748308483094831048311483124831348314483154831648317483184831948320483214832248323483244832548326483274832848329483304833148332483334833448335483364833748338483394834048341483424834348344483454834648347483484834948350483514835248353483544835548356483574835848359483604836148362483634836448365483664836748368483694837048371483724837348374483754837648377483784837948380483814838248383483844838548386483874838848389483904839148392483934839448395483964839748398483994840048401484024840348404484054840648407484084840948410484114841248413484144841548416484174841848419484204842148422484234842448425484264842748428484294843048431484324843348434484354843648437484384843948440484414844248443484444844548446484474844848449484504845148452484534845448455484564845748458484594846048461484624846348464484654846648467484684846948470484714847248473484744847548476484774847848479484804848148482484834848448485484864848748488484894849048491484924849348494484954849648497484984849948500485014850248503485044850548506485074850848509485104851148512485134851448515485164851748518485194852048521485224852348524485254852648527485284852948530485314853248533485344853548536485374853848539485404854148542485434854448545485464854748548485494855048551485524855348554485554855648557485584855948560485614856248563485644856548566485674856848569485704857148572485734857448575485764857748578485794858048581485824858348584485854858648587485884858948590485914859248593485944859548596485974859848599486004860148602486034860448605486064860748608486094861048611486124861348614486154861648617486184861948620486214862248623486244862548626486274862848629486304863148632486334863448635486364863748638486394864048641486424864348644486454864648647486484864948650486514865248653486544865548656486574865848659486604866148662486634866448665486664866748668486694867048671486724867348674486754867648677486784867948680486814868248683486844868548686486874868848689486904869148692486934869448695486964869748698486994870048701487024870348704487054870648707487084870948710487114871248713487144871548716487174871848719487204872148722487234872448725487264872748728487294873048731487324873348734487354873648737487384873948740487414874248743487444874548746487474874848749487504875148752487534875448755487564875748758487594876048761487624876348764487654876648767487684876948770487714877248773487744877548776487774877848779487804878148782487834878448785487864878748788487894879048791487924879348794487954879648797487984879948800488014880248803488044880548806488074880848809488104881148812488134881448815488164881748818488194882048821488224882348824488254882648827488284882948830488314883248833488344883548836488374883848839488404884148842488434884448845488464884748848488494885048851488524885348854488554885648857488584885948860488614886248863488644886548866488674886848869488704887148872488734887448875488764887748878488794888048881488824888348884488854888648887488884888948890488914889248893488944889548896488974889848899489004890148902489034890448905489064890748908489094891048911489124891348914489154891648917489184891948920489214892248923489244892548926489274892848929489304893148932489334893448935489364893748938489394894048941489424894348944489454894648947489484894948950489514895248953489544895548956489574895848959489604896148962489634896448965489664896748968489694897048971489724897348974489754897648977489784897948980489814898248983489844898548986489874898848989489904899148992489934899448995489964899748998489994900049001490024900349004490054900649007490084900949010490114901249013490144901549016490174901849019490204902149022490234902449025490264902749028490294903049031490324903349034490354903649037490384903949040490414904249043490444904549046490474904849049490504905149052490534905449055490564905749058490594906049061490624906349064490654906649067490684906949070490714907249073490744907549076490774907849079490804908149082490834908449085490864908749088490894909049091490924909349094490954909649097490984909949100491014910249103491044910549106491074910849109491104911149112491134911449115491164911749118491194912049121491224912349124491254912649127491284912949130491314913249133491344913549136491374913849139491404914149142491434914449145491464914749148491494915049151491524915349154491554915649157491584915949160491614916249163491644916549166491674916849169491704917149172491734917449175491764917749178491794918049181491824918349184491854918649187491884918949190491914919249193491944919549196491974919849199492004920149202492034920449205492064920749208492094921049211492124921349214492154921649217492184921949220492214922249223492244922549226492274922849229492304923149232492334923449235492364923749238492394924049241492424924349244492454924649247492484924949250492514925249253492544925549256492574925849259492604926149262492634926449265492664926749268492694927049271492724927349274492754927649277492784927949280492814928249283492844928549286492874928849289492904929149292492934929449295492964929749298492994930049301493024930349304493054930649307493084930949310493114931249313493144931549316493174931849319493204932149322493234932449325493264932749328493294933049331493324933349334493354933649337493384933949340493414934249343493444934549346493474934849349493504935149352493534935449355493564935749358493594936049361493624936349364493654936649367493684936949370493714937249373493744937549376493774937849379493804938149382493834938449385493864938749388493894939049391493924939349394493954939649397493984939949400494014940249403494044940549406494074940849409494104941149412494134941449415494164941749418494194942049421494224942349424494254942649427494284942949430494314943249433494344943549436494374943849439494404944149442494434944449445494464944749448494494945049451494524945349454494554945649457494584945949460494614946249463494644946549466494674946849469494704947149472494734947449475494764947749478494794948049481494824948349484494854948649487494884948949490494914949249493494944949549496494974949849499495004950149502495034950449505495064950749508495094951049511495124951349514495154951649517495184951949520495214952249523495244952549526495274952849529495304953149532495334953449535495364953749538495394954049541495424954349544495454954649547495484954949550495514955249553495544955549556495574955849559495604956149562495634956449565495664956749568495694957049571495724957349574495754957649577495784957949580495814958249583495844958549586495874958849589495904959149592495934959449595495964959749598495994960049601496024960349604496054960649607496084960949610496114961249613496144961549616496174961849619496204962149622496234962449625496264962749628496294963049631496324963349634496354963649637496384963949640496414964249643496444964549646496474964849649496504965149652496534965449655496564965749658496594966049661496624966349664496654966649667496684966949670496714967249673496744967549676496774967849679496804968149682496834968449685496864968749688496894969049691496924969349694496954969649697496984969949700497014970249703497044970549706497074970849709497104971149712497134971449715497164971749718497194972049721497224972349724497254972649727497284972949730497314973249733497344973549736497374973849739497404974149742497434974449745497464974749748497494975049751497524975349754497554975649757497584975949760497614976249763497644976549766497674976849769497704977149772497734977449775497764977749778497794978049781497824978349784497854978649787497884978949790497914979249793497944979549796497974979849799498004980149802498034980449805498064980749808498094981049811498124981349814498154981649817498184981949820498214982249823498244982549826498274982849829498304983149832498334983449835498364983749838498394984049841498424984349844498454984649847498484984949850498514985249853498544985549856498574985849859498604986149862498634986449865498664986749868498694987049871498724987349874498754987649877498784987949880498814988249883498844988549886498874988849889498904989149892498934989449895498964989749898498994990049901499024990349904499054990649907499084990949910499114991249913499144991549916499174991849919499204992149922499234992449925499264992749928499294993049931499324993349934499354993649937499384993949940499414994249943499444994549946499474994849949499504995149952499534995449955499564995749958499594996049961499624996349964499654996649967499684996949970499714997249973499744997549976499774997849979499804998149982499834998449985499864998749988499894999049991499924999349994499954999649997499984999950000500015000250003500045000550006500075000850009500105001150012500135001450015500165001750018500195002050021500225002350024500255002650027500285002950030500315003250033500345003550036500375003850039500405004150042500435004450045500465004750048500495005050051500525005350054500555005650057500585005950060500615006250063500645006550066500675006850069500705007150072500735007450075500765007750078500795008050081500825008350084500855008650087500885008950090500915009250093500945009550096500975009850099501005010150102501035010450105501065010750108501095011050111501125011350114501155011650117501185011950120501215012250123501245012550126501275012850129501305013150132501335013450135501365013750138501395014050141501425014350144501455014650147501485014950150501515015250153501545015550156501575015850159501605016150162501635016450165501665016750168501695017050171501725017350174501755017650177501785017950180501815018250183501845018550186501875018850189501905019150192501935019450195501965019750198501995020050201502025020350204502055020650207502085020950210502115021250213502145021550216502175021850219502205022150222502235022450225502265022750228502295023050231502325023350234502355023650237502385023950240502415024250243502445024550246502475024850249502505025150252502535025450255502565025750258502595026050261502625026350264502655026650267502685026950270502715027250273502745027550276502775027850279502805028150282502835028450285502865028750288502895029050291502925029350294502955029650297502985029950300503015030250303503045030550306503075030850309503105031150312503135031450315503165031750318503195032050321503225032350324503255032650327503285032950330503315033250333503345033550336503375033850339503405034150342503435034450345503465034750348503495035050351503525035350354503555035650357503585035950360503615036250363503645036550366503675036850369503705037150372503735037450375503765037750378503795038050381503825038350384503855038650387503885038950390503915039250393503945039550396503975039850399504005040150402504035040450405504065040750408504095041050411504125041350414504155041650417504185041950420504215042250423504245042550426504275042850429504305043150432504335043450435504365043750438504395044050441504425044350444504455044650447504485044950450504515045250453504545045550456504575045850459504605046150462504635046450465504665046750468504695047050471504725047350474504755047650477504785047950480504815048250483504845048550486504875048850489504905049150492504935049450495504965049750498504995050050501505025050350504505055050650507505085050950510505115051250513505145051550516505175051850519505205052150522505235052450525505265052750528505295053050531505325053350534505355053650537505385053950540505415054250543505445054550546505475054850549505505055150552505535055450555505565055750558505595056050561505625056350564505655056650567505685056950570505715057250573505745057550576505775057850579505805058150582505835058450585505865058750588505895059050591505925059350594505955059650597505985059950600506015060250603506045060550606506075060850609506105061150612506135061450615506165061750618506195062050621506225062350624506255062650627506285062950630506315063250633506345063550636506375063850639506405064150642506435064450645506465064750648506495065050651506525065350654506555065650657506585065950660506615066250663506645066550666506675066850669506705067150672506735067450675506765067750678506795068050681506825068350684506855068650687506885068950690506915069250693506945069550696506975069850699507005070150702507035070450705507065070750708507095071050711507125071350714507155071650717507185071950720507215072250723507245072550726507275072850729507305073150732507335073450735507365073750738507395074050741507425074350744507455074650747507485074950750507515075250753507545075550756507575075850759507605076150762507635076450765507665076750768507695077050771507725077350774507755077650777507785077950780507815078250783507845078550786507875078850789507905079150792507935079450795507965079750798507995080050801508025080350804508055080650807508085080950810508115081250813508145081550816508175081850819508205082150822508235082450825508265082750828508295083050831508325083350834508355083650837508385083950840508415084250843508445084550846508475084850849508505085150852508535085450855508565085750858508595086050861508625086350864508655086650867508685086950870508715087250873508745087550876508775087850879508805088150882508835088450885508865088750888508895089050891508925089350894508955089650897508985089950900509015090250903509045090550906509075090850909509105091150912509135091450915509165091750918509195092050921509225092350924509255092650927509285092950930509315093250933509345093550936509375093850939509405094150942509435094450945509465094750948509495095050951509525095350954509555095650957509585095950960509615096250963509645096550966509675096850969509705097150972509735097450975509765097750978509795098050981509825098350984509855098650987509885098950990509915099250993509945099550996509975099850999510005100151002510035100451005510065100751008510095101051011510125101351014510155101651017510185101951020510215102251023510245102551026510275102851029510305103151032510335103451035510365103751038510395104051041510425104351044510455104651047510485104951050510515105251053510545105551056510575105851059510605106151062510635106451065510665106751068510695107051071510725107351074510755107651077510785107951080510815108251083510845108551086510875108851089510905109151092510935109451095510965109751098510995110051101511025110351104511055110651107511085110951110511115111251113511145111551116511175111851119511205112151122511235112451125511265112751128511295113051131511325113351134511355113651137511385113951140511415114251143511445114551146511475114851149511505115151152511535115451155511565115751158511595116051161511625116351164511655116651167511685116951170511715117251173511745117551176511775117851179511805118151182511835118451185511865118751188511895119051191511925119351194511955119651197511985119951200512015120251203512045120551206512075120851209512105121151212512135121451215512165121751218512195122051221512225122351224512255122651227512285122951230512315123251233512345123551236512375123851239512405124151242512435124451245512465124751248512495125051251512525125351254512555125651257512585125951260512615126251263512645126551266512675126851269512705127151272512735127451275512765127751278512795128051281512825128351284512855128651287512885128951290512915129251293512945129551296512975129851299513005130151302513035130451305513065130751308513095131051311513125131351314513155131651317513185131951320513215132251323513245132551326513275132851329513305133151332513335133451335513365133751338513395134051341513425134351344513455134651347513485134951350513515135251353513545135551356513575135851359513605136151362513635136451365513665136751368513695137051371513725137351374513755137651377513785137951380513815138251383513845138551386513875138851389513905139151392513935139451395513965139751398513995140051401514025140351404514055140651407514085140951410514115141251413514145141551416514175141851419514205142151422514235142451425514265142751428514295143051431514325143351434514355143651437514385143951440514415144251443514445144551446514475144851449514505145151452514535145451455514565145751458514595146051461514625146351464514655146651467514685146951470514715147251473514745147551476514775147851479514805148151482514835148451485514865148751488514895149051491514925149351494514955149651497514985149951500515015150251503515045150551506515075150851509515105151151512515135151451515515165151751518515195152051521515225152351524515255152651527515285152951530515315153251533515345153551536515375153851539515405154151542515435154451545515465154751548515495155051551515525155351554515555155651557515585155951560515615156251563515645156551566515675156851569515705157151572515735157451575515765157751578515795158051581515825158351584515855158651587515885158951590515915159251593515945159551596515975159851599516005160151602516035160451605516065160751608516095161051611516125161351614516155161651617516185161951620516215162251623516245162551626516275162851629516305163151632516335163451635516365163751638516395164051641516425164351644516455164651647516485164951650516515165251653516545165551656516575165851659516605166151662516635166451665516665166751668516695167051671516725167351674516755167651677516785167951680516815168251683516845168551686516875168851689516905169151692516935169451695516965169751698516995170051701517025170351704517055170651707517085170951710517115171251713517145171551716517175171851719517205172151722517235172451725517265172751728517295173051731517325173351734517355173651737517385173951740517415174251743517445174551746517475174851749517505175151752517535175451755517565175751758517595176051761517625176351764517655176651767517685176951770517715177251773517745177551776517775177851779517805178151782517835178451785517865178751788517895179051791517925179351794517955179651797517985179951800518015180251803518045180551806518075180851809518105181151812518135181451815518165181751818518195182051821518225182351824518255182651827518285182951830518315183251833518345183551836518375183851839518405184151842518435184451845518465184751848518495185051851518525185351854518555185651857518585185951860518615186251863518645186551866518675186851869518705187151872518735187451875518765187751878518795188051881518825188351884518855188651887518885188951890518915189251893518945189551896518975189851899519005190151902519035190451905519065190751908519095191051911519125191351914519155191651917519185191951920519215192251923519245192551926519275192851929519305193151932519335193451935519365193751938519395194051941519425194351944519455194651947519485194951950519515195251953519545195551956519575195851959519605196151962519635196451965519665196751968519695197051971519725197351974519755197651977519785197951980519815198251983519845198551986519875198851989519905199151992519935199451995519965199751998519995200052001520025200352004520055200652007520085200952010520115201252013520145201552016520175201852019520205202152022520235202452025520265202752028520295203052031520325203352034520355203652037520385203952040520415204252043520445204552046520475204852049520505205152052520535205452055520565205752058520595206052061520625206352064520655206652067520685206952070520715207252073520745207552076520775207852079520805208152082520835208452085520865208752088520895209052091520925209352094520955209652097520985209952100521015210252103521045210552106521075210852109521105211152112521135211452115521165211752118521195212052121521225212352124521255212652127521285212952130521315213252133521345213552136521375213852139521405214152142521435214452145521465214752148521495215052151521525215352154521555215652157521585215952160521615216252163521645216552166521675216852169521705217152172521735217452175521765217752178521795218052181521825218352184521855218652187521885218952190521915219252193521945219552196521975219852199522005220152202522035220452205522065220752208522095221052211522125221352214522155221652217522185221952220522215222252223522245222552226522275222852229522305223152232522335223452235522365223752238522395224052241522425224352244522455224652247522485224952250522515225252253522545225552256522575225852259522605226152262522635226452265522665226752268522695227052271522725227352274522755227652277522785227952280522815228252283522845228552286522875228852289522905229152292522935229452295522965229752298522995230052301523025230352304523055230652307523085230952310523115231252313523145231552316523175231852319523205232152322523235232452325523265232752328523295233052331523325233352334523355233652337523385233952340523415234252343523445234552346523475234852349523505235152352523535235452355523565235752358523595236052361523625236352364523655236652367523685236952370523715237252373523745237552376523775237852379523805238152382523835238452385523865238752388523895239052391523925239352394523955239652397523985239952400524015240252403524045240552406524075240852409524105241152412524135241452415524165241752418524195242052421524225242352424524255242652427524285242952430524315243252433524345243552436524375243852439524405244152442524435244452445524465244752448524495245052451524525245352454524555245652457524585245952460524615246252463524645246552466524675246852469524705247152472524735247452475524765247752478524795248052481524825248352484524855248652487524885248952490524915249252493524945249552496524975249852499525005250152502525035250452505525065250752508525095251052511525125251352514525155251652517525185251952520525215252252523525245252552526525275252852529525305253152532525335253452535525365253752538525395254052541525425254352544525455254652547525485254952550525515255252553525545255552556525575255852559525605256152562525635256452565525665256752568525695257052571525725257352574525755257652577525785257952580525815258252583525845258552586525875258852589525905259152592525935259452595525965259752598525995260052601526025260352604526055260652607526085260952610526115261252613526145261552616526175261852619526205262152622526235262452625526265262752628526295263052631526325263352634526355263652637526385263952640526415264252643526445264552646526475264852649526505265152652526535265452655526565265752658526595266052661526625266352664526655266652667526685266952670526715267252673526745267552676526775267852679526805268152682526835268452685526865268752688526895269052691526925269352694526955269652697526985269952700527015270252703527045270552706527075270852709527105271152712527135271452715527165271752718527195272052721527225272352724527255272652727527285272952730527315273252733527345273552736527375273852739527405274152742527435274452745527465274752748527495275052751527525275352754527555275652757527585275952760527615276252763527645276552766527675276852769527705277152772527735277452775527765277752778527795278052781527825278352784527855278652787527885278952790527915279252793527945279552796527975279852799528005280152802528035280452805528065280752808528095281052811528125281352814528155281652817528185281952820528215282252823528245282552826528275282852829528305283152832528335283452835528365283752838528395284052841528425284352844528455284652847528485284952850528515285252853528545285552856528575285852859528605286152862528635286452865528665286752868528695287052871528725287352874528755287652877528785287952880528815288252883528845288552886528875288852889528905289152892528935289452895528965289752898528995290052901529025290352904529055290652907529085290952910529115291252913529145291552916529175291852919529205292152922529235292452925529265292752928529295293052931529325293352934529355293652937529385293952940529415294252943529445294552946529475294852949529505295152952529535295452955529565295752958529595296052961529625296352964529655296652967529685296952970529715297252973529745297552976529775297852979529805298152982529835298452985529865298752988529895299052991529925299352994529955299652997529985299953000530015300253003530045300553006530075300853009530105301153012530135301453015530165301753018530195302053021530225302353024530255302653027530285302953030530315303253033530345303553036530375303853039530405304153042530435304453045530465304753048530495305053051530525305353054530555305653057530585305953060530615306253063530645306553066530675306853069530705307153072530735307453075530765307753078530795308053081530825308353084530855308653087530885308953090530915309253093530945309553096530975309853099531005310153102531035310453105531065310753108531095311053111531125311353114531155311653117531185311953120531215312253123531245312553126531275312853129531305313153132531335313453135531365313753138531395314053141531425314353144531455314653147531485314953150531515315253153531545315553156531575315853159531605316153162531635316453165531665316753168531695317053171531725317353174531755317653177531785317953180531815318253183531845318553186531875318853189531905319153192531935319453195531965319753198531995320053201532025320353204532055320653207532085320953210532115321253213532145321553216532175321853219532205322153222532235322453225532265322753228532295323053231532325323353234532355323653237532385323953240532415324253243532445324553246532475324853249532505325153252532535325453255532565325753258532595326053261532625326353264532655326653267532685326953270532715327253273532745327553276532775327853279532805328153282532835328453285532865328753288532895329053291532925329353294532955329653297532985329953300533015330253303533045330553306533075330853309533105331153312533135331453315533165331753318533195332053321533225332353324533255332653327533285332953330533315333253333533345333553336533375333853339533405334153342533435334453345533465334753348533495335053351533525335353354533555335653357533585335953360533615336253363533645336553366533675336853369533705337153372533735337453375533765337753378533795338053381533825338353384533855338653387533885338953390533915339253393533945339553396533975339853399534005340153402534035340453405534065340753408534095341053411534125341353414534155341653417534185341953420534215342253423534245342553426534275342853429534305343153432534335343453435534365343753438534395344053441534425344353444534455344653447534485344953450534515345253453534545345553456534575345853459534605346153462534635346453465534665346753468534695347053471534725347353474534755347653477534785347953480534815348253483534845348553486534875348853489534905349153492534935349453495534965349753498534995350053501535025350353504535055350653507535085350953510535115351253513535145351553516535175351853519535205352153522535235352453525535265352753528535295353053531535325353353534535355353653537535385353953540535415354253543535445354553546535475354853549535505355153552535535355453555535565355753558535595356053561535625356353564535655356653567535685356953570535715357253573535745357553576535775357853579535805358153582535835358453585535865358753588535895359053591535925359353594535955359653597535985359953600536015360253603536045360553606536075360853609536105361153612536135361453615536165361753618536195362053621536225362353624536255362653627536285362953630536315363253633536345363553636536375363853639536405364153642536435364453645536465364753648536495365053651536525365353654536555365653657536585365953660536615366253663536645366553666536675366853669536705367153672536735367453675536765367753678536795368053681536825368353684536855368653687536885368953690536915369253693536945369553696536975369853699537005370153702537035370453705537065370753708537095371053711537125371353714537155371653717537185371953720537215372253723537245372553726537275372853729537305373153732537335373453735537365373753738537395374053741537425374353744537455374653747537485374953750537515375253753537545375553756537575375853759537605376153762537635376453765537665376753768537695377053771537725377353774537755377653777537785377953780537815378253783537845378553786537875378853789537905379153792537935379453795537965379753798537995380053801538025380353804538055380653807538085380953810538115381253813538145381553816538175381853819538205382153822538235382453825538265382753828538295383053831538325383353834538355383653837538385383953840538415384253843538445384553846538475384853849538505385153852538535385453855538565385753858538595386053861538625386353864538655386653867538685386953870538715387253873538745387553876538775387853879538805388153882538835388453885538865388753888538895389053891538925389353894538955389653897538985389953900539015390253903539045390553906539075390853909539105391153912539135391453915539165391753918539195392053921539225392353924539255392653927539285392953930539315393253933539345393553936539375393853939539405394153942539435394453945539465394753948539495395053951539525395353954539555395653957539585395953960539615396253963539645396553966539675396853969539705397153972539735397453975539765397753978539795398053981539825398353984539855398653987539885398953990539915399253993539945399553996539975399853999540005400154002540035400454005540065400754008540095401054011540125401354014540155401654017540185401954020540215402254023540245402554026540275402854029540305403154032540335403454035540365403754038540395404054041540425404354044540455404654047540485404954050540515405254053540545405554056540575405854059540605406154062540635406454065540665406754068540695407054071540725407354074540755407654077540785407954080540815408254083540845408554086540875408854089540905409154092540935409454095540965409754098540995410054101541025410354104541055410654107541085410954110541115411254113541145411554116541175411854119541205412154122541235412454125541265412754128541295413054131541325413354134541355413654137541385413954140541415414254143541445414554146541475414854149541505415154152541535415454155541565415754158541595416054161541625416354164541655416654167541685416954170541715417254173541745417554176541775417854179541805418154182541835418454185541865418754188541895419054191541925419354194541955419654197541985419954200542015420254203542045420554206542075420854209542105421154212542135421454215542165421754218542195422054221542225422354224542255422654227542285422954230542315423254233542345423554236542375423854239542405424154242542435424454245542465424754248542495425054251542525425354254542555425654257542585425954260542615426254263542645426554266542675426854269542705427154272542735427454275542765427754278542795428054281542825428354284542855428654287542885428954290542915429254293542945429554296542975429854299543005430154302543035430454305543065430754308543095431054311543125431354314543155431654317543185431954320543215432254323543245432554326543275432854329543305433154332543335433454335543365433754338543395434054341543425434354344543455434654347543485434954350543515435254353543545435554356543575435854359543605436154362543635436454365543665436754368543695437054371543725437354374543755437654377543785437954380543815438254383543845438554386543875438854389543905439154392543935439454395543965439754398543995440054401544025440354404544055440654407544085440954410544115441254413544145441554416544175441854419544205442154422544235442454425544265442754428544295443054431544325443354434544355443654437544385443954440544415444254443544445444554446544475444854449544505445154452544535445454455544565445754458544595446054461544625446354464544655446654467544685446954470544715447254473544745447554476544775447854479544805448154482544835448454485544865448754488544895449054491544925449354494544955449654497544985449954500545015450254503545045450554506545075450854509545105451154512545135451454515545165451754518545195452054521545225452354524545255452654527545285452954530545315453254533545345453554536545375453854539545405454154542545435454454545545465454754548545495455054551545525455354554545555455654557545585455954560545615456254563545645456554566545675456854569545705457154572545735457454575545765457754578545795458054581545825458354584545855458654587545885458954590545915459254593545945459554596545975459854599546005460154602546035460454605546065460754608546095461054611546125461354614546155461654617546185461954620546215462254623546245462554626546275462854629546305463154632546335463454635546365463754638546395464054641546425464354644546455464654647546485464954650546515465254653546545465554656546575465854659546605466154662546635466454665546665466754668546695467054671546725467354674546755467654677546785467954680546815468254683546845468554686546875468854689546905469154692546935469454695546965469754698546995470054701547025470354704547055470654707547085470954710547115471254713547145471554716547175471854719547205472154722547235472454725547265472754728547295473054731547325473354734547355473654737547385473954740547415474254743547445474554746547475474854749547505475154752547535475454755547565475754758547595476054761547625476354764547655476654767547685476954770547715477254773547745477554776547775477854779547805478154782547835478454785547865478754788547895479054791547925479354794547955479654797547985479954800548015480254803548045480554806548075480854809548105481154812548135481454815548165481754818548195482054821548225482354824548255482654827548285482954830548315483254833548345483554836548375483854839548405484154842548435484454845548465484754848548495485054851548525485354854548555485654857548585485954860548615486254863548645486554866548675486854869548705487154872548735487454875548765487754878548795488054881548825488354884548855488654887548885488954890548915489254893548945489554896548975489854899549005490154902549035490454905549065490754908549095491054911549125491354914549155491654917549185491954920549215492254923549245492554926549275492854929549305493154932549335493454935549365493754938549395494054941549425494354944549455494654947549485494954950549515495254953549545495554956549575495854959549605496154962549635496454965549665496754968549695497054971549725497354974549755497654977549785497954980549815498254983549845498554986549875498854989549905499154992549935499454995549965499754998549995500055001550025500355004550055500655007550085500955010550115501255013550145501555016550175501855019550205502155022550235502455025550265502755028550295503055031550325503355034550355503655037550385503955040550415504255043550445504555046550475504855049550505505155052550535505455055550565505755058550595506055061550625506355064550655506655067550685506955070550715507255073550745507555076550775507855079550805508155082550835508455085550865508755088550895509055091550925509355094550955509655097550985509955100551015510255103551045510555106551075510855109551105511155112551135511455115551165511755118551195512055121551225512355124551255512655127551285512955130551315513255133551345513555136551375513855139551405514155142551435514455145551465514755148551495515055151551525515355154551555515655157551585515955160551615516255163551645516555166551675516855169551705517155172551735517455175551765517755178551795518055181551825518355184551855518655187551885518955190551915519255193551945519555196551975519855199552005520155202552035520455205552065520755208552095521055211552125521355214552155521655217552185521955220552215522255223552245522555226552275522855229552305523155232552335523455235552365523755238552395524055241552425524355244552455524655247552485524955250552515525255253552545525555256552575525855259552605526155262552635526455265552665526755268552695527055271552725527355274552755527655277552785527955280552815528255283552845528555286552875528855289552905529155292552935529455295552965529755298552995530055301553025530355304553055530655307553085530955310553115531255313553145531555316553175531855319553205532155322553235532455325553265532755328553295533055331553325533355334553355533655337553385533955340553415534255343553445534555346553475534855349553505535155352553535535455355553565535755358553595536055361553625536355364553655536655367553685536955370553715537255373553745537555376553775537855379553805538155382553835538455385553865538755388553895539055391553925539355394553955539655397553985539955400554015540255403554045540555406554075540855409554105541155412554135541455415554165541755418554195542055421554225542355424554255542655427554285542955430554315543255433554345543555436554375543855439554405544155442554435544455445554465544755448554495545055451554525545355454554555545655457554585545955460554615546255463554645546555466554675546855469554705547155472554735547455475554765547755478554795548055481554825548355484554855548655487554885548955490554915549255493554945549555496554975549855499555005550155502555035550455505555065550755508555095551055511555125551355514555155551655517555185551955520555215552255523555245552555526555275552855529555305553155532555335553455535555365553755538555395554055541555425554355544555455554655547555485554955550555515555255553555545555555556555575555855559555605556155562555635556455565555665556755568555695557055571555725557355574555755557655577555785557955580555815558255583555845558555586555875558855589555905559155592555935559455595555965559755598555995560055601556025560355604556055560655607556085560955610556115561255613556145561555616556175561855619556205562155622556235562455625556265562755628556295563055631556325563355634556355563655637556385563955640556415564255643556445564555646556475564855649556505565155652556535565455655556565565755658556595566055661556625566355664556655566655667556685566955670556715567255673556745567555676556775567855679556805568155682556835568455685556865568755688556895569055691556925569355694556955569655697556985569955700557015570255703557045570555706557075570855709557105571155712557135571455715557165571755718557195572055721557225572355724557255572655727557285572955730557315573255733557345573555736557375573855739557405574155742557435574455745557465574755748557495575055751557525575355754557555575655757557585575955760557615576255763557645576555766557675576855769557705577155772557735577455775557765577755778557795578055781557825578355784557855578655787557885578955790557915579255793557945579555796557975579855799558005580155802558035580455805558065580755808558095581055811558125581355814558155581655817558185581955820558215582255823558245582555826558275582855829558305583155832558335583455835558365583755838558395584055841558425584355844558455584655847558485584955850558515585255853558545585555856558575585855859558605586155862558635586455865558665586755868558695587055871558725587355874558755587655877558785587955880558815588255883558845588555886558875588855889558905589155892558935589455895558965589755898558995590055901559025590355904559055590655907559085590955910559115591255913559145591555916559175591855919559205592155922559235592455925559265592755928559295593055931559325593355934559355593655937559385593955940559415594255943559445594555946559475594855949559505595155952559535595455955559565595755958559595596055961559625596355964559655596655967559685596955970559715597255973559745597555976559775597855979559805598155982559835598455985559865598755988559895599055991559925599355994559955599655997559985599956000560015600256003560045600556006560075600856009560105601156012560135601456015560165601756018560195602056021560225602356024560255602656027560285602956030560315603256033560345603556036560375603856039560405604156042560435604456045560465604756048560495605056051560525605356054560555605656057560585605956060560615606256063560645606556066560675606856069560705607156072560735607456075560765607756078560795608056081560825608356084560855608656087560885608956090560915609256093560945609556096560975609856099561005610156102561035610456105561065610756108561095611056111561125611356114561155611656117561185611956120561215612256123561245612556126561275612856129561305613156132561335613456135561365613756138561395614056141561425614356144561455614656147561485614956150561515615256153561545615556156561575615856159561605616156162561635616456165561665616756168561695617056171561725617356174561755617656177561785617956180561815618256183561845618556186561875618856189561905619156192561935619456195561965619756198561995620056201562025620356204562055620656207562085620956210562115621256213562145621556216562175621856219562205622156222562235622456225562265622756228562295623056231562325623356234562355623656237562385623956240562415624256243562445624556246562475624856249562505625156252562535625456255562565625756258562595626056261562625626356264562655626656267562685626956270562715627256273562745627556276562775627856279562805628156282562835628456285562865628756288562895629056291562925629356294562955629656297562985629956300563015630256303563045630556306563075630856309563105631156312563135631456315563165631756318563195632056321563225632356324563255632656327563285632956330563315633256333563345633556336563375633856339563405634156342563435634456345563465634756348563495635056351563525635356354563555635656357563585635956360563615636256363563645636556366563675636856369563705637156372563735637456375563765637756378563795638056381563825638356384563855638656387563885638956390563915639256393563945639556396563975639856399564005640156402564035640456405564065640756408564095641056411564125641356414564155641656417564185641956420564215642256423564245642556426564275642856429564305643156432564335643456435564365643756438564395644056441564425644356444564455644656447564485644956450564515645256453564545645556456564575645856459564605646156462564635646456465564665646756468564695647056471564725647356474564755647656477564785647956480564815648256483564845648556486564875648856489564905649156492564935649456495564965649756498564995650056501565025650356504565055650656507565085650956510565115651256513565145651556516565175651856519565205652156522565235652456525565265652756528565295653056531565325653356534565355653656537565385653956540565415654256543565445654556546565475654856549565505655156552565535655456555565565655756558565595656056561565625656356564565655656656567565685656956570565715657256573565745657556576565775657856579565805658156582565835658456585565865658756588565895659056591565925659356594565955659656597565985659956600566015660256603566045660556606566075660856609566105661156612566135661456615566165661756618566195662056621566225662356624566255662656627566285662956630566315663256633566345663556636566375663856639566405664156642566435664456645566465664756648566495665056651566525665356654566555665656657566585665956660566615666256663566645666556666566675666856669566705667156672566735667456675566765667756678566795668056681566825668356684566855668656687566885668956690566915669256693566945669556696566975669856699567005670156702567035670456705567065670756708567095671056711567125671356714567155671656717567185671956720567215672256723567245672556726567275672856729567305673156732567335673456735567365673756738567395674056741567425674356744567455674656747567485674956750567515675256753567545675556756567575675856759567605676156762567635676456765567665676756768567695677056771567725677356774567755677656777567785677956780567815678256783567845678556786567875678856789567905679156792567935679456795567965679756798567995680056801568025680356804568055680656807568085680956810568115681256813568145681556816568175681856819568205682156822568235682456825568265682756828568295683056831568325683356834568355683656837568385683956840568415684256843568445684556846568475684856849568505685156852568535685456855568565685756858568595686056861568625686356864568655686656867568685686956870568715687256873568745687556876568775687856879568805688156882568835688456885568865688756888568895689056891568925689356894568955689656897568985689956900569015690256903569045690556906569075690856909569105691156912569135691456915569165691756918569195692056921569225692356924569255692656927569285692956930569315693256933569345693556936569375693856939569405694156942569435694456945569465694756948569495695056951569525695356954569555695656957569585695956960569615696256963569645696556966569675696856969569705697156972569735697456975569765697756978569795698056981569825698356984569855698656987569885698956990569915699256993569945699556996569975699856999570005700157002570035700457005570065700757008570095701057011570125701357014570155701657017570185701957020570215702257023570245702557026570275702857029570305703157032570335703457035570365703757038570395704057041570425704357044570455704657047570485704957050570515705257053570545705557056570575705857059570605706157062570635706457065570665706757068570695707057071570725707357074570755707657077570785707957080570815708257083570845708557086570875708857089570905709157092570935709457095570965709757098570995710057101571025710357104571055710657107571085710957110571115711257113571145711557116571175711857119571205712157122571235712457125571265712757128571295713057131571325713357134571355713657137571385713957140571415714257143571445714557146571475714857149571505715157152571535715457155571565715757158571595716057161571625716357164571655716657167571685716957170571715717257173571745717557176571775717857179571805718157182571835718457185571865718757188571895719057191571925719357194571955719657197571985719957200572015720257203572045720557206572075720857209572105721157212572135721457215572165721757218572195722057221572225722357224572255722657227572285722957230572315723257233572345723557236572375723857239572405724157242572435724457245572465724757248572495725057251572525725357254572555725657257572585725957260572615726257263572645726557266572675726857269572705727157272572735727457275572765727757278572795728057281572825728357284572855728657287572885728957290572915729257293572945729557296572975729857299573005730157302573035730457305573065730757308573095731057311573125731357314573155731657317573185731957320573215732257323573245732557326573275732857329573305733157332573335733457335573365733757338573395734057341573425734357344573455734657347573485734957350573515735257353573545735557356573575735857359573605736157362573635736457365573665736757368573695737057371573725737357374573755737657377573785737957380573815738257383573845738557386573875738857389573905739157392573935739457395573965739757398573995740057401574025740357404574055740657407574085740957410574115741257413574145741557416574175741857419574205742157422574235742457425574265742757428574295743057431574325743357434574355743657437574385743957440574415744257443574445744557446574475744857449574505745157452574535745457455574565745757458574595746057461574625746357464574655746657467574685746957470574715747257473574745747557476574775747857479574805748157482574835748457485574865748757488574895749057491574925749357494574955749657497574985749957500575015750257503575045750557506575075750857509575105751157512575135751457515575165751757518575195752057521575225752357524575255752657527575285752957530575315753257533575345753557536575375753857539575405754157542575435754457545575465754757548575495755057551575525755357554575555755657557575585755957560575615756257563575645756557566575675756857569575705757157572575735757457575575765757757578575795758057581575825758357584575855758657587575885758957590575915759257593575945759557596575975759857599576005760157602576035760457605576065760757608576095761057611576125761357614576155761657617576185761957620576215762257623576245762557626576275762857629576305763157632576335763457635576365763757638576395764057641576425764357644576455764657647576485764957650576515765257653576545765557656576575765857659576605766157662576635766457665576665766757668576695767057671576725767357674576755767657677576785767957680576815768257683576845768557686576875768857689576905769157692576935769457695576965769757698576995770057701577025770357704577055770657707577085770957710577115771257713577145771557716577175771857719577205772157722577235772457725577265772757728577295773057731577325773357734577355773657737577385773957740577415774257743577445774557746577475774857749577505775157752577535775457755577565775757758577595776057761577625776357764577655776657767577685776957770577715777257773577745777557776577775777857779577805778157782577835778457785577865778757788577895779057791577925779357794577955779657797577985779957800578015780257803578045780557806578075780857809578105781157812578135781457815578165781757818578195782057821578225782357824578255782657827578285782957830578315783257833578345783557836578375783857839578405784157842578435784457845578465784757848578495785057851578525785357854578555785657857578585785957860578615786257863578645786557866578675786857869578705787157872578735787457875578765787757878578795788057881578825788357884578855788657887578885788957890578915789257893578945789557896578975789857899579005790157902579035790457905579065790757908579095791057911579125791357914579155791657917579185791957920579215792257923579245792557926579275792857929579305793157932579335793457935579365793757938579395794057941579425794357944579455794657947579485794957950579515795257953579545795557956579575795857959579605796157962579635796457965579665796757968579695797057971579725797357974579755797657977579785797957980579815798257983579845798557986579875798857989579905799157992579935799457995579965799757998579995800058001580025800358004580055800658007580085800958010580115801258013580145801558016580175801858019580205802158022580235802458025580265802758028580295803058031580325803358034580355803658037580385803958040580415804258043580445804558046580475804858049580505805158052580535805458055580565805758058580595806058061580625806358064580655806658067580685806958070580715807258073580745807558076580775807858079580805808158082580835808458085580865808758088580895809058091580925809358094580955809658097580985809958100581015810258103581045810558106581075810858109581105811158112581135811458115581165811758118581195812058121581225812358124581255812658127581285812958130581315813258133581345813558136581375813858139581405814158142581435814458145581465814758148581495815058151581525815358154581555815658157581585815958160581615816258163581645816558166581675816858169581705817158172581735817458175581765817758178581795818058181581825818358184581855818658187581885818958190581915819258193581945819558196581975819858199582005820158202582035820458205582065820758208582095821058211582125821358214582155821658217582185821958220582215822258223582245822558226582275822858229582305823158232582335823458235582365823758238582395824058241582425824358244582455824658247582485824958250582515825258253582545825558256582575825858259582605826158262582635826458265582665826758268582695827058271582725827358274582755827658277582785827958280582815828258283582845828558286582875828858289582905829158292582935829458295582965829758298582995830058301583025830358304583055830658307583085830958310583115831258313583145831558316583175831858319583205832158322583235832458325583265832758328583295833058331583325833358334583355833658337583385833958340583415834258343583445834558346583475834858349583505835158352583535835458355583565835758358583595836058361583625836358364583655836658367583685836958370583715837258373583745837558376583775837858379583805838158382583835838458385583865838758388583895839058391583925839358394583955839658397583985839958400584015840258403584045840558406584075840858409584105841158412584135841458415584165841758418584195842058421584225842358424584255842658427584285842958430584315843258433584345843558436584375843858439584405844158442584435844458445584465844758448584495845058451584525845358454584555845658457584585845958460584615846258463584645846558466584675846858469584705847158472584735847458475584765847758478584795848058481584825848358484584855848658487584885848958490584915849258493584945849558496584975849858499585005850158502585035850458505585065850758508585095851058511585125851358514585155851658517585185851958520585215852258523585245852558526585275852858529585305853158532585335853458535585365853758538585395854058541585425854358544585455854658547585485854958550585515855258553585545855558556585575855858559585605856158562585635856458565585665856758568585695857058571585725857358574585755857658577585785857958580585815858258583585845858558586585875858858589585905859158592585935859458595585965859758598585995860058601586025860358604586055860658607586085860958610586115861258613586145861558616586175861858619586205862158622586235862458625586265862758628586295863058631586325863358634586355863658637586385863958640586415864258643586445864558646586475864858649586505865158652586535865458655586565865758658586595866058661586625866358664586655866658667586685866958670586715867258673586745867558676586775867858679586805868158682586835868458685586865868758688586895869058691586925869358694586955869658697586985869958700587015870258703587045870558706587075870858709587105871158712587135871458715587165871758718587195872058721587225872358724587255872658727587285872958730587315873258733587345873558736587375873858739587405874158742587435874458745587465874758748587495875058751587525875358754587555875658757587585875958760587615876258763587645876558766587675876858769587705877158772587735877458775587765877758778587795878058781587825878358784587855878658787587885878958790587915879258793587945879558796587975879858799588005880158802588035880458805588065880758808588095881058811588125881358814588155881658817588185881958820588215882258823588245882558826588275882858829588305883158832588335883458835588365883758838588395884058841588425884358844588455884658847588485884958850588515885258853588545885558856588575885858859588605886158862588635886458865588665886758868588695887058871588725887358874588755887658877588785887958880588815888258883588845888558886588875888858889588905889158892588935889458895588965889758898588995890058901589025890358904589055890658907589085890958910589115891258913589145891558916589175891858919589205892158922589235892458925589265892758928589295893058931589325893358934589355893658937589385893958940589415894258943589445894558946589475894858949589505895158952589535895458955589565895758958589595896058961589625896358964589655896658967589685896958970589715897258973589745897558976589775897858979589805898158982589835898458985589865898758988589895899058991589925899358994589955899658997589985899959000590015900259003590045900559006590075900859009590105901159012590135901459015590165901759018590195902059021590225902359024590255902659027590285902959030590315903259033590345903559036590375903859039590405904159042590435904459045590465904759048590495905059051590525905359054590555905659057590585905959060590615906259063590645906559066590675906859069590705907159072590735907459075590765907759078590795908059081590825908359084590855908659087590885908959090590915909259093590945909559096590975909859099591005910159102591035910459105591065910759108591095911059111591125911359114591155911659117591185911959120591215912259123591245912559126591275912859129591305913159132591335913459135591365913759138591395914059141591425914359144591455914659147591485914959150591515915259153591545915559156591575915859159591605916159162591635916459165591665916759168591695917059171591725917359174591755917659177591785917959180591815918259183591845918559186591875918859189591905919159192591935919459195591965919759198591995920059201592025920359204592055920659207592085920959210592115921259213592145921559216592175921859219592205922159222592235922459225592265922759228592295923059231592325923359234592355923659237592385923959240592415924259243592445924559246592475924859249592505925159252592535925459255592565925759258592595926059261592625926359264592655926659267592685926959270592715927259273592745927559276592775927859279592805928159282592835928459285592865928759288592895929059291592925929359294592955929659297592985929959300593015930259303593045930559306593075930859309593105931159312593135931459315593165931759318593195932059321593225932359324593255932659327593285932959330593315933259333593345933559336593375933859339593405934159342593435934459345593465934759348593495935059351593525935359354593555935659357593585935959360593615936259363593645936559366593675936859369593705937159372593735937459375593765937759378593795938059381593825938359384593855938659387593885938959390593915939259393593945939559396593975939859399594005940159402594035940459405594065940759408594095941059411594125941359414594155941659417594185941959420594215942259423594245942559426594275942859429594305943159432594335943459435594365943759438594395944059441594425944359444594455944659447594485944959450594515945259453594545945559456594575945859459594605946159462594635946459465594665946759468594695947059471594725947359474594755947659477594785947959480594815948259483594845948559486594875948859489594905949159492594935949459495594965949759498594995950059501595025950359504595055950659507595085950959510595115951259513595145951559516595175951859519595205952159522595235952459525595265952759528595295953059531595325953359534595355953659537595385953959540595415954259543595445954559546595475954859549595505955159552595535955459555595565955759558595595956059561595625956359564595655956659567595685956959570595715957259573595745957559576595775957859579595805958159582595835958459585595865958759588595895959059591595925959359594595955959659597595985959959600596015960259603596045960559606596075960859609596105961159612596135961459615596165961759618596195962059621596225962359624596255962659627596285962959630596315963259633596345963559636596375963859639596405964159642596435964459645596465964759648596495965059651596525965359654596555965659657596585965959660596615966259663596645966559666596675966859669596705967159672596735967459675596765967759678596795968059681596825968359684596855968659687596885968959690596915969259693596945969559696596975969859699597005970159702597035970459705597065970759708597095971059711597125971359714597155971659717597185971959720597215972259723597245972559726597275972859729597305973159732597335973459735597365973759738597395974059741597425974359744597455974659747597485974959750597515975259753597545975559756597575975859759597605976159762597635976459765597665976759768597695977059771597725977359774597755977659777597785977959780597815978259783597845978559786597875978859789597905979159792597935979459795597965979759798597995980059801598025980359804598055980659807598085980959810598115981259813598145981559816598175981859819598205982159822598235982459825598265982759828598295983059831598325983359834598355983659837598385983959840598415984259843598445984559846598475984859849598505985159852598535985459855598565985759858598595986059861598625986359864598655986659867598685986959870598715987259873598745987559876598775987859879598805988159882598835988459885598865988759888598895989059891598925989359894598955989659897598985989959900599015990259903599045990559906599075990859909599105991159912599135991459915599165991759918599195992059921599225992359924599255992659927599285992959930599315993259933599345993559936599375993859939599405994159942599435994459945599465994759948599495995059951599525995359954599555995659957599585995959960599615996259963599645996559966599675996859969599705997159972599735997459975599765997759978599795998059981599825998359984599855998659987599885998959990599915999259993599945999559996599975999859999600006000160002600036000460005600066000760008600096001060011600126001360014600156001660017600186001960020600216002260023600246002560026600276002860029600306003160032600336003460035600366003760038600396004060041600426004360044600456004660047600486004960050600516005260053600546005560056600576005860059600606006160062600636006460065600666006760068600696007060071600726007360074600756007660077600786007960080600816008260083600846008560086600876008860089600906009160092600936009460095600966009760098600996010060101601026010360104601056010660107601086010960110601116011260113601146011560116601176011860119601206012160122601236012460125601266012760128601296013060131601326013360134601356013660137601386013960140601416014260143601446014560146601476014860149601506015160152601536015460155601566015760158601596016060161601626016360164601656016660167601686016960170601716017260173601746017560176601776017860179601806018160182601836018460185601866018760188601896019060191601926019360194601956019660197601986019960200602016020260203602046020560206602076020860209602106021160212602136021460215602166021760218602196022060221602226022360224602256022660227602286022960230602316023260233602346023560236602376023860239602406024160242602436024460245602466024760248602496025060251602526025360254602556025660257602586025960260602616026260263602646026560266602676026860269602706027160272602736027460275602766027760278602796028060281602826028360284602856028660287602886028960290602916029260293602946029560296602976029860299603006030160302603036030460305603066030760308603096031060311603126031360314603156031660317603186031960320603216032260323603246032560326603276032860329603306033160332603336033460335603366033760338603396034060341603426034360344603456034660347603486034960350603516035260353603546035560356603576035860359603606036160362603636036460365603666036760368603696037060371603726037360374603756037660377603786037960380603816038260383603846038560386603876038860389603906039160392603936039460395603966039760398603996040060401604026040360404604056040660407604086040960410604116041260413604146041560416604176041860419604206042160422604236042460425604266042760428604296043060431604326043360434604356043660437604386043960440604416044260443604446044560446604476044860449604506045160452604536045460455604566045760458604596046060461604626046360464604656046660467604686046960470604716047260473604746047560476604776047860479604806048160482604836048460485604866048760488604896049060491604926049360494604956049660497604986049960500605016050260503605046050560506605076050860509605106051160512605136051460515605166051760518605196052060521605226052360524605256052660527605286052960530605316053260533605346053560536605376053860539605406054160542605436054460545605466054760548605496055060551605526055360554605556055660557605586055960560605616056260563605646056560566605676056860569605706057160572605736057460575605766057760578605796058060581605826058360584605856058660587605886058960590605916059260593605946059560596605976059860599606006060160602606036060460605606066060760608606096061060611606126061360614606156061660617606186061960620606216062260623606246062560626606276062860629606306063160632606336063460635606366063760638606396064060641606426064360644606456064660647606486064960650606516065260653606546065560656606576065860659606606066160662606636066460665606666066760668606696067060671606726067360674606756067660677606786067960680606816068260683606846068560686606876068860689606906069160692606936069460695606966069760698606996070060701607026070360704607056070660707607086070960710607116071260713607146071560716607176071860719607206072160722607236072460725607266072760728607296073060731607326073360734607356073660737607386073960740607416074260743607446074560746607476074860749607506075160752607536075460755607566075760758607596076060761607626076360764607656076660767607686076960770607716077260773607746077560776607776077860779607806078160782607836078460785607866078760788607896079060791607926079360794607956079660797607986079960800608016080260803608046080560806608076080860809608106081160812608136081460815608166081760818608196082060821608226082360824608256082660827608286082960830608316083260833608346083560836608376083860839608406084160842608436084460845608466084760848608496085060851608526085360854608556085660857608586085960860608616086260863608646086560866608676086860869608706087160872608736087460875608766087760878608796088060881608826088360884608856088660887608886088960890608916089260893608946089560896608976089860899609006090160902609036090460905609066090760908609096091060911609126091360914609156091660917609186091960920609216092260923609246092560926609276092860929609306093160932609336093460935609366093760938609396094060941609426094360944609456094660947609486094960950609516095260953609546095560956609576095860959609606096160962609636096460965609666096760968609696097060971609726097360974609756097660977609786097960980609816098260983609846098560986609876098860989609906099160992609936099460995609966099760998609996100061001610026100361004610056100661007610086100961010610116101261013610146101561016610176101861019610206102161022610236102461025610266102761028610296103061031610326103361034610356103661037610386103961040610416104261043610446104561046610476104861049610506105161052610536105461055610566105761058610596106061061610626106361064610656106661067610686106961070610716107261073610746107561076610776107861079610806108161082610836108461085610866108761088610896109061091610926109361094610956109661097610986109961100611016110261103611046110561106611076110861109611106111161112611136111461115611166111761118611196112061121611226112361124611256112661127611286112961130611316113261133611346113561136611376113861139611406114161142611436114461145611466114761148611496115061151611526115361154611556115661157611586115961160611616116261163611646116561166611676116861169611706117161172611736117461175611766117761178611796118061181611826118361184611856118661187611886118961190611916119261193611946119561196611976119861199612006120161202612036120461205612066120761208612096121061211612126121361214612156121661217612186121961220612216122261223612246122561226612276122861229612306123161232612336123461235612366123761238612396124061241612426124361244612456124661247612486124961250612516125261253612546125561256612576125861259612606126161262612636126461265612666126761268612696127061271612726127361274612756127661277612786127961280612816128261283612846128561286612876128861289612906129161292612936129461295612966129761298612996130061301613026130361304613056130661307613086130961310613116131261313613146131561316613176131861319613206132161322613236132461325613266132761328613296133061331613326133361334613356133661337613386133961340613416134261343613446134561346613476134861349613506135161352613536135461355613566135761358613596136061361613626136361364613656136661367613686136961370613716137261373613746137561376613776137861379613806138161382613836138461385613866138761388613896139061391613926139361394613956139661397613986139961400614016140261403614046140561406614076140861409614106141161412614136141461415614166141761418614196142061421614226142361424614256142661427614286142961430614316143261433614346143561436614376143861439614406144161442614436144461445614466144761448614496145061451614526145361454614556145661457614586145961460614616146261463614646146561466614676146861469614706147161472614736147461475614766147761478614796148061481614826148361484614856148661487614886148961490614916149261493614946149561496614976149861499615006150161502615036150461505615066150761508615096151061511615126151361514615156151661517615186151961520615216152261523615246152561526615276152861529615306153161532615336153461535615366153761538615396154061541615426154361544615456154661547615486154961550615516155261553615546155561556615576155861559615606156161562615636156461565615666156761568615696157061571615726157361574615756157661577615786157961580615816158261583615846158561586615876158861589615906159161592615936159461595615966159761598615996160061601616026160361604616056160661607616086160961610616116161261613616146161561616616176161861619616206162161622616236162461625616266162761628616296163061631616326163361634616356163661637616386163961640616416164261643616446164561646616476164861649616506165161652616536165461655616566165761658616596166061661616626166361664616656166661667616686166961670616716167261673616746167561676616776167861679616806168161682616836168461685616866168761688616896169061691616926169361694616956169661697616986169961700617016170261703617046170561706617076170861709617106171161712617136171461715617166171761718617196172061721617226172361724617256172661727617286172961730617316173261733617346173561736617376173861739617406174161742617436174461745617466174761748617496175061751617526175361754617556175661757617586175961760617616176261763617646176561766617676176861769617706177161772617736177461775617766177761778617796178061781617826178361784617856178661787617886178961790617916179261793617946179561796617976179861799618006180161802618036180461805618066180761808618096181061811618126181361814618156181661817618186181961820618216182261823618246182561826618276182861829618306183161832618336183461835618366183761838618396184061841618426184361844618456184661847618486184961850618516185261853618546185561856618576185861859618606186161862618636186461865618666186761868618696187061871618726187361874618756187661877618786187961880618816188261883618846188561886618876188861889618906189161892618936189461895618966189761898618996190061901619026190361904619056190661907619086190961910619116191261913619146191561916619176191861919619206192161922619236192461925619266192761928619296193061931619326193361934619356193661937619386193961940619416194261943619446194561946619476194861949619506195161952619536195461955619566195761958619596196061961619626196361964619656196661967619686196961970619716197261973619746197561976619776197861979619806198161982619836198461985619866198761988619896199061991619926199361994619956199661997619986199962000620016200262003620046200562006620076200862009620106201162012620136201462015620166201762018620196202062021620226202362024620256202662027620286202962030620316203262033620346203562036620376203862039620406204162042620436204462045620466204762048620496205062051620526205362054620556205662057620586205962060620616206262063620646206562066620676206862069620706207162072620736207462075620766207762078620796208062081620826208362084620856208662087620886208962090620916209262093620946209562096620976209862099621006210162102621036210462105621066210762108621096211062111621126211362114621156211662117621186211962120621216212262123621246212562126621276212862129621306213162132621336213462135621366213762138621396214062141621426214362144621456214662147621486214962150621516215262153621546215562156621576215862159621606216162162621636216462165621666216762168621696217062171621726217362174621756217662177621786217962180621816218262183621846218562186621876218862189621906219162192621936219462195621966219762198621996220062201622026220362204622056220662207622086220962210622116221262213622146221562216622176221862219622206222162222622236222462225622266222762228622296223062231622326223362234622356223662237622386223962240622416224262243622446224562246622476224862249622506225162252622536225462255622566225762258622596226062261622626226362264622656226662267622686226962270622716227262273622746227562276622776227862279622806228162282622836228462285622866228762288622896229062291622926229362294622956229662297622986229962300623016230262303623046230562306623076230862309623106231162312623136231462315623166231762318623196232062321623226232362324623256232662327623286232962330623316233262333623346233562336623376233862339623406234162342623436234462345623466234762348623496235062351623526235362354623556235662357623586235962360623616236262363623646236562366623676236862369623706237162372623736237462375623766237762378623796238062381623826238362384623856238662387623886238962390623916239262393623946239562396623976239862399624006240162402624036240462405624066240762408624096241062411624126241362414624156241662417624186241962420624216242262423624246242562426624276242862429624306243162432624336243462435624366243762438624396244062441624426244362444624456244662447624486244962450624516245262453624546245562456624576245862459624606246162462624636246462465624666246762468624696247062471624726247362474624756247662477624786247962480624816248262483624846248562486624876248862489624906249162492624936249462495624966249762498624996250062501625026250362504625056250662507625086250962510625116251262513625146251562516625176251862519625206252162522625236252462525625266252762528625296253062531625326253362534625356253662537625386253962540625416254262543625446254562546625476254862549625506255162552625536255462555625566255762558625596256062561625626256362564625656256662567625686256962570625716257262573625746257562576625776257862579625806258162582625836258462585625866258762588625896259062591625926259362594625956259662597625986259962600626016260262603626046260562606626076260862609626106261162612626136261462615626166261762618626196262062621626226262362624626256262662627626286262962630626316263262633626346263562636626376263862639626406264162642626436264462645626466264762648626496265062651626526265362654626556265662657626586265962660626616266262663626646266562666626676266862669626706267162672626736267462675626766267762678626796268062681626826268362684626856268662687626886268962690626916269262693626946269562696626976269862699627006270162702627036270462705627066270762708627096271062711627126271362714627156271662717627186271962720627216272262723627246272562726627276272862729627306273162732627336273462735627366273762738627396274062741627426274362744627456274662747627486274962750627516275262753627546275562756627576275862759627606276162762627636276462765627666276762768627696277062771627726277362774627756277662777627786277962780627816278262783627846278562786627876278862789627906279162792627936279462795627966279762798627996280062801628026280362804628056280662807628086280962810628116281262813628146281562816628176281862819628206282162822628236282462825628266282762828628296283062831628326283362834628356283662837628386283962840628416284262843628446284562846628476284862849628506285162852628536285462855628566285762858628596286062861628626286362864628656286662867628686286962870628716287262873628746287562876628776287862879628806288162882628836288462885628866288762888628896289062891628926289362894628956289662897628986289962900629016290262903629046290562906629076290862909629106291162912629136291462915629166291762918629196292062921629226292362924629256292662927629286292962930629316293262933629346293562936629376293862939629406294162942629436294462945629466294762948629496295062951629526295362954629556295662957629586295962960629616296262963629646296562966629676296862969629706297162972629736297462975629766297762978629796298062981629826298362984629856298662987629886298962990629916299262993629946299562996629976299862999630006300163002630036300463005630066300763008630096301063011630126301363014630156301663017630186301963020630216302263023630246302563026630276302863029630306303163032630336303463035630366303763038630396304063041630426304363044630456304663047630486304963050630516305263053630546305563056630576305863059630606306163062630636306463065630666306763068630696307063071630726307363074630756307663077630786307963080630816308263083630846308563086630876308863089630906309163092630936309463095630966309763098630996310063101631026310363104631056310663107631086310963110631116311263113631146311563116631176311863119631206312163122631236312463125631266312763128631296313063131631326313363134631356313663137631386313963140631416314263143631446314563146631476314863149631506315163152631536315463155631566315763158631596316063161631626316363164631656316663167631686316963170631716317263173631746317563176631776317863179631806318163182631836318463185631866318763188631896319063191631926319363194631956319663197631986319963200632016320263203632046320563206632076320863209632106321163212632136321463215632166321763218632196322063221632226322363224632256322663227632286322963230632316323263233632346323563236632376323863239632406324163242632436324463245632466324763248632496325063251632526325363254632556325663257632586325963260632616326263263632646326563266632676326863269632706327163272632736327463275632766327763278632796328063281632826328363284632856328663287632886328963290632916329263293632946329563296632976329863299633006330163302633036330463305633066330763308633096331063311633126331363314633156331663317633186331963320633216332263323633246332563326633276332863329633306333163332633336333463335633366333763338633396334063341633426334363344633456334663347633486334963350633516335263353633546335563356633576335863359633606336163362633636336463365633666336763368633696337063371633726337363374633756337663377633786337963380633816338263383633846338563386633876338863389633906339163392633936339463395633966339763398633996340063401634026340363404634056340663407634086340963410634116341263413634146341563416634176341863419634206342163422634236342463425634266342763428634296343063431634326343363434634356343663437634386343963440634416344263443634446344563446634476344863449634506345163452634536345463455634566345763458634596346063461634626346363464634656346663467634686346963470634716347263473634746347563476634776347863479634806348163482634836348463485634866348763488634896349063491634926349363494634956349663497634986349963500635016350263503635046350563506635076350863509635106351163512635136351463515635166351763518635196352063521635226352363524635256352663527635286352963530635316353263533635346353563536635376353863539635406354163542635436354463545635466354763548635496355063551635526355363554635556355663557635586355963560635616356263563635646356563566635676356863569635706357163572635736357463575635766357763578635796358063581635826358363584635856358663587635886358963590635916359263593635946359563596635976359863599636006360163602636036360463605636066360763608636096361063611636126361363614636156361663617636186361963620636216362263623636246362563626636276362863629636306363163632636336363463635636366363763638636396364063641636426364363644636456364663647636486364963650636516365263653636546365563656636576365863659636606366163662636636366463665636666366763668636696367063671636726367363674636756367663677636786367963680636816368263683636846368563686636876368863689636906369163692636936369463695636966369763698636996370063701637026370363704637056370663707637086370963710637116371263713637146371563716637176371863719637206372163722637236372463725637266372763728637296373063731637326373363734637356373663737637386373963740637416374263743637446374563746637476374863749637506375163752637536375463755637566375763758637596376063761637626376363764637656376663767637686376963770637716377263773637746377563776637776377863779637806378163782637836378463785637866378763788637896379063791637926379363794637956379663797637986379963800638016380263803638046380563806638076380863809638106381163812638136381463815638166381763818638196382063821638226382363824638256382663827638286382963830638316383263833638346383563836638376383863839638406384163842638436384463845638466384763848638496385063851638526385363854638556385663857638586385963860638616386263863638646386563866638676386863869638706387163872638736387463875638766387763878638796388063881638826388363884638856388663887638886388963890638916389263893638946389563896638976389863899639006390163902639036390463905639066390763908639096391063911639126391363914639156391663917639186391963920639216392263923639246392563926639276392863929639306393163932639336393463935639366393763938639396394063941639426394363944639456394663947639486394963950639516395263953639546395563956639576395863959639606396163962639636396463965639666396763968639696397063971639726397363974639756397663977639786397963980639816398263983639846398563986639876398863989639906399163992639936399463995639966399763998639996400064001640026400364004640056400664007640086400964010640116401264013640146401564016640176401864019640206402164022640236402464025640266402764028640296403064031640326403364034640356403664037640386403964040640416404264043640446404564046640476404864049640506405164052640536405464055640566405764058640596406064061640626406364064640656406664067640686406964070640716407264073640746407564076640776407864079640806408164082640836408464085640866408764088640896409064091640926409364094640956409664097640986409964100641016410264103641046410564106641076410864109641106411164112641136411464115641166411764118641196412064121641226412364124641256412664127641286412964130641316413264133641346413564136641376413864139641406414164142641436414464145641466414764148641496415064151641526415364154641556415664157641586415964160641616416264163641646416564166641676416864169641706417164172641736417464175641766417764178641796418064181641826418364184641856418664187641886418964190641916419264193641946419564196641976419864199642006420164202642036420464205642066420764208642096421064211642126421364214642156421664217642186421964220642216422264223642246422564226642276422864229642306423164232642336423464235642366423764238642396424064241642426424364244642456424664247642486424964250642516425264253642546425564256642576425864259642606426164262642636426464265642666426764268642696427064271642726427364274642756427664277642786427964280642816428264283642846428564286642876428864289642906429164292642936429464295642966429764298642996430064301643026430364304643056430664307643086430964310643116431264313643146431564316643176431864319643206432164322643236432464325643266432764328643296433064331643326433364334643356433664337643386433964340643416434264343643446434564346643476434864349643506435164352643536435464355643566435764358643596436064361643626436364364643656436664367643686436964370643716437264373643746437564376643776437864379643806438164382643836438464385643866438764388643896439064391643926439364394643956439664397643986439964400644016440264403644046440564406644076440864409644106441164412644136441464415644166441764418644196442064421644226442364424644256442664427644286442964430644316443264433644346443564436644376443864439644406444164442644436444464445644466444764448644496445064451644526445364454644556445664457644586445964460644616446264463644646446564466644676446864469644706447164472644736447464475644766447764478644796448064481644826448364484644856448664487644886448964490644916449264493644946449564496644976449864499645006450164502645036450464505645066450764508645096451064511645126451364514645156451664517645186451964520645216452264523645246452564526645276452864529645306453164532645336453464535645366453764538645396454064541645426454364544645456454664547645486454964550645516455264553645546455564556645576455864559645606456164562645636456464565645666456764568645696457064571645726457364574645756457664577645786457964580645816458264583645846458564586645876458864589645906459164592645936459464595645966459764598645996460064601646026460364604646056460664607646086460964610646116461264613646146461564616646176461864619646206462164622646236462464625646266462764628646296463064631646326463364634646356463664637646386463964640646416464264643646446464564646646476464864649646506465164652646536465464655646566465764658646596466064661646626466364664646656466664667646686466964670646716467264673646746467564676646776467864679646806468164682646836468464685646866468764688646896469064691646926469364694646956469664697646986469964700647016470264703647046470564706647076470864709647106471164712647136471464715647166471764718647196472064721647226472364724647256472664727647286472964730647316473264733647346473564736647376473864739647406474164742647436474464745647466474764748647496475064751647526475364754647556475664757647586475964760647616476264763647646476564766647676476864769647706477164772647736477464775647766477764778647796478064781647826478364784647856478664787647886478964790647916479264793647946479564796647976479864799648006480164802648036480464805648066480764808648096481064811648126481364814648156481664817648186481964820648216482264823648246482564826648276482864829648306483164832648336483464835648366483764838648396484064841648426484364844648456484664847648486484964850648516485264853648546485564856648576485864859648606486164862648636486464865648666486764868648696487064871648726487364874648756487664877648786487964880648816488264883648846488564886648876488864889648906489164892648936489464895648966489764898648996490064901649026490364904649056490664907649086490964910649116491264913649146491564916649176491864919649206492164922649236492464925649266492764928649296493064931649326493364934649356493664937649386493964940649416494264943649446494564946649476494864949649506495164952649536495464955649566495764958649596496064961649626496364964649656496664967649686496964970649716497264973649746497564976649776497864979649806498164982649836498464985649866498764988649896499064991649926499364994649956499664997649986499965000650016500265003650046500565006650076500865009650106501165012650136501465015650166501765018650196502065021650226502365024650256502665027650286502965030650316503265033650346503565036650376503865039650406504165042650436504465045650466504765048650496505065051650526505365054650556505665057650586505965060650616506265063650646506565066650676506865069650706507165072650736507465075650766507765078650796508065081650826508365084650856508665087650886508965090650916509265093650946509565096650976509865099651006510165102651036510465105651066510765108651096511065111651126511365114651156511665117651186511965120651216512265123651246512565126651276512865129651306513165132651336513465135651366513765138651396514065141651426514365144651456514665147651486514965150651516515265153651546515565156651576515865159651606516165162651636516465165651666516765168651696517065171651726517365174651756517665177651786517965180651816518265183651846518565186651876518865189651906519165192651936519465195651966519765198651996520065201652026520365204652056520665207652086520965210652116521265213652146521565216652176521865219652206522165222652236522465225652266522765228652296523065231652326523365234652356523665237652386523965240652416524265243652446524565246652476524865249652506525165252652536525465255652566525765258652596526065261652626526365264652656526665267652686526965270652716527265273652746527565276652776527865279652806528165282652836528465285652866528765288652896529065291652926529365294652956529665297652986529965300653016530265303653046530565306653076530865309653106531165312653136531465315653166531765318653196532065321653226532365324653256532665327653286532965330653316533265333653346533565336653376533865339653406534165342653436534465345653466534765348653496535065351653526535365354653556535665357653586535965360653616536265363653646536565366653676536865369653706537165372653736537465375653766537765378653796538065381653826538365384653856538665387653886538965390653916539265393653946539565396653976539865399654006540165402654036540465405654066540765408654096541065411654126541365414654156541665417654186541965420654216542265423654246542565426654276542865429654306543165432654336543465435654366543765438654396544065441654426544365444654456544665447654486544965450654516545265453654546545565456654576545865459654606546165462654636546465465654666546765468654696547065471654726547365474654756547665477654786547965480654816548265483654846548565486654876548865489654906549165492654936549465495654966549765498654996550065501655026550365504655056550665507655086550965510655116551265513655146551565516655176551865519655206552165522655236552465525655266552765528655296553065531655326553365534655356553665537655386553965540655416554265543655446554565546655476554865549655506555165552655536555465555655566555765558655596556065561655626556365564655656556665567655686556965570655716557265573655746557565576655776557865579655806558165582655836558465585655866558765588655896559065591655926559365594655956559665597655986559965600656016560265603656046560565606656076560865609656106561165612656136561465615656166561765618656196562065621656226562365624656256562665627656286562965630656316563265633656346563565636656376563865639656406564165642656436564465645656466564765648656496565065651656526565365654656556565665657656586565965660656616566265663656646566565666656676566865669656706567165672656736567465675656766567765678656796568065681656826568365684656856568665687656886568965690656916569265693656946569565696656976569865699657006570165702657036570465705657066570765708657096571065711657126571365714657156571665717657186571965720657216572265723657246572565726657276572865729657306573165732657336573465735657366573765738657396574065741657426574365744657456574665747657486574965750657516575265753657546575565756657576575865759657606576165762657636576465765657666576765768657696577065771657726577365774657756577665777657786577965780657816578265783657846578565786657876578865789657906579165792657936579465795657966579765798657996580065801658026580365804658056580665807658086580965810658116581265813658146581565816658176581865819658206582165822658236582465825658266582765828658296583065831658326583365834658356583665837658386583965840658416584265843658446584565846658476584865849658506585165852658536585465855658566585765858658596586065861658626586365864658656586665867658686586965870658716587265873658746587565876658776587865879658806588165882658836588465885658866588765888658896589065891658926589365894658956589665897658986589965900659016590265903659046590565906659076590865909659106591165912659136591465915659166591765918659196592065921659226592365924659256592665927659286592965930659316593265933659346593565936659376593865939659406594165942659436594465945659466594765948659496595065951659526595365954
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libmad-0.15.1b.orig/aclocal.m4 libmad-0.15.1b/aclocal.m4
  6. --- libmad-0.15.1b.orig/aclocal.m4 2004-02-05 10:33:47.000000000 +0100
  7. +++ libmad-0.15.1b/aclocal.m4 2011-02-17 17:22:44.733554690 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.8.2 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  12. -# Free Software Foundation, Inc.
  13. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  14. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  15. # This file is free software; the Free Software Foundation
  16. # gives unlimited permission to copy and/or distribute it,
  17. # with or without modifications, as long as this notice is preserved.
  18. @@ -11,104 +11,196 @@
  19. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  20. # PARTICULAR PURPOSE.
  21. +m4_ifndef([AC_AUTOCONF_VERSION],
  22. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  23. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  24. +[m4_warning([this file was generated for autoconf 2.65.
  25. +You have another version of autoconf. It may work, but is not guaranteed to.
  26. +If you have problems, you may need to regenerate the build system entirely.
  27. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  28. +
  29. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  30. +#
  31. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  32. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  33. +# Written by Gordon Matzigkeit, 1996
  34. +#
  35. +# This file is free software; the Free Software Foundation gives
  36. +# unlimited permission to copy and/or distribute it, with or without
  37. +# modifications, as long as this notice is preserved.
  38. +
  39. +m4_define([_LT_COPYING], [dnl
  40. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  41. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42. +# Written by Gordon Matzigkeit, 1996
  43. +#
  44. +# This file is part of GNU Libtool.
  45. +#
  46. +# GNU Libtool is free software; you can redistribute it and/or
  47. +# modify it under the terms of the GNU General Public License as
  48. +# published by the Free Software Foundation; either version 2 of
  49. +# the License, or (at your option) any later version.
  50. +#
  51. +# As a special exception to the GNU General Public License,
  52. +# if you distribute this file as part of a program or library that
  53. +# is built using GNU Libtool, you may include this file under the
  54. +# same distribution terms that you use for the rest of that program.
  55. +#
  56. +# GNU Libtool is distributed in the hope that it will be useful,
  57. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  58. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  59. +# GNU General Public License for more details.
  60. +#
  61. +# You should have received a copy of the GNU General Public License
  62. +# along with GNU Libtool; see the file COPYING. If not, a copy
  63. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  64. +# obtained by writing to the Free Software Foundation, Inc.,
  65. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  66. +])
  67. -# serial 47 AC_PROG_LIBTOOL
  68. -# Debian $Rev: 192 $
  69. +# serial 56 LT_INIT
  70. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  71. -# -----------------------------------------------------------
  72. -# If this macro is not defined by Autoconf, define it here.
  73. -m4_ifdef([AC_PROVIDE_IFELSE],
  74. - [],
  75. - [m4_define([AC_PROVIDE_IFELSE],
  76. - [m4_ifdef([AC_PROVIDE_$1],
  77. - [$2], [$3])])])
  78. +# LT_PREREQ(VERSION)
  79. +# ------------------
  80. +# Complain and exit if this libtool version is less that VERSION.
  81. +m4_defun([LT_PREREQ],
  82. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  83. + [m4_default([$3],
  84. + [m4_fatal([Libtool version $1 or higher is required],
  85. + 63)])],
  86. + [$2])])
  87. -# AC_PROG_LIBTOOL
  88. -# ---------------
  89. -AC_DEFUN([AC_PROG_LIBTOOL],
  90. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  91. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  92. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  93. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  94. - [AC_LIBTOOL_CXX],
  95. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  96. - ])])
  97. -dnl And a similar setup for Fortran 77 support
  98. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  99. - [AC_LIBTOOL_F77],
  100. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  101. -])])
  102. -
  103. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  104. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  105. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  106. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  107. - [AC_LIBTOOL_GCJ],
  108. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  109. - [AC_LIBTOOL_GCJ],
  110. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  111. - [AC_LIBTOOL_GCJ],
  112. - [ifdef([AC_PROG_GCJ],
  113. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  114. - ifdef([A][M_PROG_GCJ],
  115. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  116. - ifdef([LT_AC_PROG_GCJ],
  117. - [define([LT_AC_PROG_GCJ],
  118. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  119. -])])# AC_PROG_LIBTOOL
  120. +# _LT_CHECK_BUILDDIR
  121. +# ------------------
  122. +# Complain if the absolute build directory name contains unusual characters
  123. +m4_defun([_LT_CHECK_BUILDDIR],
  124. +[case `pwd` in
  125. + *\ * | *\ *)
  126. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  127. +esac
  128. +])
  129. -# _AC_PROG_LIBTOOL
  130. -# ----------------
  131. -AC_DEFUN([_AC_PROG_LIBTOOL],
  132. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  134. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  135. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  136. +# LT_INIT([OPTIONS])
  137. +# ------------------
  138. +AC_DEFUN([LT_INIT],
  139. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  140. +AC_BEFORE([$0], [LT_LANG])dnl
  141. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  142. +AC_BEFORE([$0], [LTDL_INIT])dnl
  143. +m4_require([_LT_CHECK_BUILDDIR])dnl
  144. +
  145. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  146. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  147. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  148. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  149. +dnl unless we require an AC_DEFUNed macro:
  150. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  151. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  152. +AC_REQUIRE([LTVERSION_VERSION])dnl
  153. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  154. +m4_require([_LT_PROG_LTMAIN])dnl
  155. +
  156. +dnl Parse OPTIONS
  157. +_LT_SET_OPTIONS([$0], [$1])
  158. # This can be used to rebuild libtool when needed
  159. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  160. +LIBTOOL_DEPS="$ltmain"
  161. # Always use our own libtool.
  162. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  163. AC_SUBST(LIBTOOL)dnl
  164. -# Prevent multiple expansion
  165. -define([AC_PROG_LIBTOOL], [])
  166. -])# _AC_PROG_LIBTOOL
  167. +_LT_SETUP
  168. +# Only expand once:
  169. +m4_define([LT_INIT])
  170. +])# LT_INIT
  171. -# AC_LIBTOOL_SETUP
  172. -# ----------------
  173. -AC_DEFUN([AC_LIBTOOL_SETUP],
  174. -[AC_PREREQ(2.50)dnl
  175. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  176. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  177. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  178. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  179. +# Old names:
  180. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  181. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  182. +dnl aclocal-1.4 backwards compatibility:
  183. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  184. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  185. +
  186. +
  187. +# _LT_CC_BASENAME(CC)
  188. +# -------------------
  189. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  190. +m4_defun([_LT_CC_BASENAME],
  191. +[for cc_temp in $1""; do
  192. + case $cc_temp in
  193. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  194. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  195. + \-*) ;;
  196. + *) break;;
  197. + esac
  198. +done
  199. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  200. +])
  201. +
  202. +
  203. +# _LT_FILEUTILS_DEFAULTS
  204. +# ----------------------
  205. +# It is okay to use these file commands and assume they have been set
  206. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  207. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  208. +[: ${CP="cp -f"}
  209. +: ${MV="mv -f"}
  210. +: ${RM="rm -f"}
  211. +])# _LT_FILEUTILS_DEFAULTS
  212. +
  213. +
  214. +# _LT_SETUP
  215. +# ---------
  216. +m4_defun([_LT_SETUP],
  217. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  218. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  219. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  220. +_LT_DECL([], [host], [0])dnl
  221. +_LT_DECL([], [host_os], [0])dnl
  222. +dnl
  223. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  224. +_LT_DECL([], [build], [0])dnl
  225. +_LT_DECL([], [build_os], [0])dnl
  226. +dnl
  227. AC_REQUIRE([AC_PROG_CC])dnl
  228. -AC_REQUIRE([AC_PROG_LD])dnl
  229. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  230. -AC_REQUIRE([AC_PROG_NM])dnl
  231. -
  232. +AC_REQUIRE([LT_PATH_LD])dnl
  233. +AC_REQUIRE([LT_PATH_NM])dnl
  234. +dnl
  235. AC_REQUIRE([AC_PROG_LN_S])dnl
  236. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  237. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  238. -AC_REQUIRE([AC_OBJEXT])dnl
  239. -AC_REQUIRE([AC_EXEEXT])dnl
  240. +test -z "$LN_S" && LN_S="ln -s"
  241. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  242. +dnl
  243. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  244. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  245. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  246. dnl
  247. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  248. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  249. +m4_require([_LT_CMD_RELOAD])dnl
  250. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  251. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  252. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  253. +
  254. +_LT_CONFIG_LIBTOOL_INIT([
  255. +# See if we are running on zsh, and set the options which allow our
  256. +# commands through without removal of \ escapes INIT.
  257. +if test -n "\${ZSH_VERSION+set}" ; then
  258. + setopt NO_GLOB_SUBST
  259. +fi
  260. +])
  261. +if test -n "${ZSH_VERSION+set}" ; then
  262. + setopt NO_GLOB_SUBST
  263. +fi
  264. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  265. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  266. -AC_LIBTOOL_OBJDIR
  267. +_LT_CHECK_OBJDIR
  268. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  269. -_LT_AC_PROG_ECHO_BACKSLASH
  270. +m4_require([_LT_TAG_COMPILER])dnl
  271. +_LT_PROG_ECHO_BACKSLASH
  272. case $host_os in
  273. aix3*)
  274. @@ -124,5844 +216,7820 @@
  275. # Sed substitution that helps us do robust quoting. It backslashifies
  276. # metacharacters that are still active within double-quoted strings.
  277. -Xsed='sed -e s/^X//'
  278. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  279. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  280. # Same as above, but do not quote variable references.
  281. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  282. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  283. # Sed substitution to delay expansion of an escaped shell variable in a
  284. # double_quote_subst'ed string.
  285. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  286. +# Sed substitution to delay expansion of an escaped single quote.
  287. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  288. +
  289. # Sed substitution to avoid accidental globbing in evaled expressions
  290. no_glob_subst='s/\*/\\\*/g'
  291. -# Constants:
  292. -rm="rm -f"
  293. -
  294. # Global variables:
  295. -default_ofile=libtool
  296. +ofile=libtool
  297. can_build_shared=yes
  298. -# All known linkers require a `.a' archive for static linking (except M$VC,
  299. +# All known linkers require a `.a' archive for static linking (except MSVC,
  300. # which needs '.lib').
  301. libext=a
  302. -ltmain="$ac_aux_dir/ltmain.sh"
  303. -ofile="$default_ofile"
  304. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  305. -AC_CHECK_TOOL(AR, ar, false)
  306. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  307. -AC_CHECK_TOOL(STRIP, strip, :)
  308. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  309. old_CC="$CC"
  310. old_CFLAGS="$CFLAGS"
  311. # Set sane defaults for various variables
  312. -test -z "$AR" && AR=ar
  313. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  314. -test -z "$AS" && AS=as
  315. test -z "$CC" && CC=cc
  316. test -z "$LTCC" && LTCC=$CC
  317. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  318. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  319. test -z "$LD" && LD=ld
  320. -test -z "$LN_S" && LN_S="ln -s"
  321. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  322. -test -z "$NM" && NM=nm
  323. -test -z "$SED" && SED=sed
  324. -test -z "$OBJDUMP" && OBJDUMP=objdump
  325. -test -z "$RANLIB" && RANLIB=:
  326. -test -z "$STRIP" && STRIP=:
  327. test -z "$ac_objext" && ac_objext=o
  328. -# Determine commands to create old-style static archives.
  329. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  330. -old_postinstall_cmds='chmod 644 $oldlib'
  331. -old_postuninstall_cmds=
  332. -
  333. -if test -n "$RANLIB"; then
  334. - case $host_os in
  335. - openbsd*)
  336. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  337. - ;;
  338. - *)
  339. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  340. - ;;
  341. - esac
  342. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  343. -fi
  344. +_LT_CC_BASENAME([$compiler])
  345. # Only perform the check for file, if the check method requires it
  346. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  347. case $deplibs_check_method in
  348. file_magic*)
  349. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  350. - AC_PATH_MAGIC
  351. + _LT_PATH_MAGIC
  352. fi
  353. ;;
  354. esac
  355. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  356. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  357. -enable_win32_dll=yes, enable_win32_dll=no)
  358. -
  359. -AC_ARG_ENABLE([libtool-lock],
  360. - [AC_HELP_STRING([--disable-libtool-lock],
  361. - [avoid locking (might break parallel builds)])])
  362. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  363. +# Use C for the default configuration in the libtool script
  364. +LT_SUPPORTED_TAG([CC])
  365. +_LT_LANG_C_CONFIG
  366. +_LT_LANG_DEFAULT_CONFIG
  367. +_LT_CONFIG_COMMANDS
  368. +])# _LT_SETUP
  369. -AC_ARG_WITH([pic],
  370. - [AC_HELP_STRING([--with-pic],
  371. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  372. - [pic_mode="$withval"],
  373. - [pic_mode=default])
  374. -test -z "$pic_mode" && pic_mode=default
  375. -# Use C for the default configuration in the libtool script
  376. -tagname=
  377. -AC_LIBTOOL_LANG_C_CONFIG
  378. -_LT_AC_TAGCONFIG
  379. -])# AC_LIBTOOL_SETUP
  380. +# _LT_PROG_LTMAIN
  381. +# ---------------
  382. +# Note that this code is called both from `configure', and `config.status'
  383. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  384. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  385. +# so we pass a copy along to make sure it has a sensible value anyway.
  386. +m4_defun([_LT_PROG_LTMAIN],
  387. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  388. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  389. +ltmain="$ac_aux_dir/ltmain.sh"
  390. +])# _LT_PROG_LTMAIN
  391. -# _LT_AC_SYS_COMPILER
  392. -# -------------------
  393. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  394. -[AC_REQUIRE([AC_PROG_CC])dnl
  395. -# If no C compiler was specified, use CC.
  396. -LTCC=${LTCC-"$CC"}
  397. +# So that we can recreate a full libtool script including additional
  398. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  399. +# in macros and then make a single call at the end using the `libtool'
  400. +# label.
  401. -# Allow CC to be a program name with arguments.
  402. -compiler=$CC
  403. -])# _LT_AC_SYS_COMPILER
  404. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  405. +# ----------------------------------------
  406. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  407. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  408. +[m4_ifval([$1],
  409. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  410. + [$1
  411. +])])])
  412. -# _LT_AC_SYS_LIBPATH_AIX
  413. -# ----------------------
  414. -# Links a minimal program and checks the executable
  415. -# for the system default hardcoded library path. In most cases,
  416. -# this is /usr/lib:/lib, but when the MPI compilers are used
  417. -# the location of the communication and MPI libs are included too.
  418. -# If we don't find anything, use the default library path according
  419. -# to the aix ld manual.
  420. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  421. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  422. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  423. -}'`
  424. -# Check for a 64-bit object if we didn't find anything.
  425. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  426. -}'`; fi],[])
  427. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  428. -])# _LT_AC_SYS_LIBPATH_AIX
  429. +# Initialize.
  430. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  431. -# _LT_AC_SHELL_INIT(ARG)
  432. -# ----------------------
  433. -AC_DEFUN([_LT_AC_SHELL_INIT],
  434. -[ifdef([AC_DIVERSION_NOTICE],
  435. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  436. - [AC_DIVERT_PUSH(NOTICE)])
  437. -$1
  438. -AC_DIVERT_POP
  439. -])# _LT_AC_SHELL_INIT
  440. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  441. +# ------------------------------
  442. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  443. +m4_define([_LT_CONFIG_LIBTOOL],
  444. +[m4_ifval([$1],
  445. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  446. + [$1
  447. +])])])
  448. +
  449. +# Initialize.
  450. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  451. +
  452. +
  453. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  454. +# -----------------------------------------------------
  455. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  456. +[_LT_CONFIG_LIBTOOL([$1])
  457. +_LT_CONFIG_LIBTOOL_INIT([$2])
  458. +])
  459. -# _LT_AC_PROG_ECHO_BACKSLASH
  460. -# --------------------------
  461. -# Add some code to the start of the generated configure script which
  462. -# will find an echo command which doesn't interpret backslashes.
  463. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  464. -[_LT_AC_SHELL_INIT([
  465. -# Check that we are running under the correct shell.
  466. -SHELL=${CONFIG_SHELL-/bin/sh}
  467. +# _LT_FORMAT_COMMENT([COMMENT])
  468. +# -----------------------------
  469. +# Add leading comment marks to the start of each line, and a trailing
  470. +# full-stop to the whole comment if one is not present already.
  471. +m4_define([_LT_FORMAT_COMMENT],
  472. +[m4_ifval([$1], [
  473. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  474. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  475. +)])
  476. -case X$ECHO in
  477. -X*--fallback-echo)
  478. - # Remove one level of quotation (which was required for Make).
  479. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  480. - ;;
  481. -esac
  482. -echo=${ECHO-echo}
  483. -if test "X[$]1" = X--no-reexec; then
  484. - # Discard the --no-reexec flag, and continue.
  485. - shift
  486. -elif test "X[$]1" = X--fallback-echo; then
  487. - # Avoid inline document here, it may be left over
  488. - :
  489. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  490. - # Yippee, $echo works!
  491. - :
  492. -else
  493. - # Restart under the correct shell.
  494. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  495. -fi
  496. -if test "X[$]1" = X--fallback-echo; then
  497. - # used as fallback echo
  498. - shift
  499. - cat <<EOF
  500. -[$]*
  501. -EOF
  502. - exit 0
  503. -fi
  504. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  505. -# if CDPATH is set.
  506. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  507. -if test -z "$ECHO"; then
  508. -if test "X${echo_test_string+set}" != Xset; then
  509. -# find a string as large as possible, as long as the shell can cope with it
  510. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  511. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  512. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  513. - echo_test_string="`eval $cmd`" &&
  514. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  515. - then
  516. - break
  517. - fi
  518. - done
  519. -fi
  520. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  521. +# -------------------------------------------------------------------
  522. +# CONFIGNAME is the name given to the value in the libtool script.
  523. +# VARNAME is the (base) name used in the configure script.
  524. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  525. +# VARNAME. Any other value will be used directly.
  526. +m4_define([_LT_DECL],
  527. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  528. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  529. + [m4_ifval([$1], [$1], [$2])])
  530. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  531. + m4_ifval([$4],
  532. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  533. + lt_dict_add_subkey([lt_decl_dict], [$2],
  534. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  535. +])
  536. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  537. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  538. - test "X$echo_testing_string" = "X$echo_test_string"; then
  539. - :
  540. -else
  541. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  542. - # backslashes. This makes it impossible to quote backslashes using
  543. - # echo "$something" | sed 's/\\/\\\\/g'
  544. - #
  545. - # So, first we look for a working echo in the user's PATH.
  546. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  547. - for dir in $PATH /usr/ucb; do
  548. - IFS="$lt_save_ifs"
  549. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  550. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  551. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  552. - test "X$echo_testing_string" = "X$echo_test_string"; then
  553. - echo="$dir/echo"
  554. - break
  555. - fi
  556. - done
  557. - IFS="$lt_save_ifs"
  558. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  559. +# --------------------------------------------------------
  560. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  561. +
  562. +
  563. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  564. +# ------------------------------------------------
  565. +m4_define([lt_decl_tag_varnames],
  566. +[_lt_decl_filter([tagged?], [yes], $@)])
  567. +
  568. +
  569. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  570. +# ---------------------------------------------------------
  571. +m4_define([_lt_decl_filter],
  572. +[m4_case([$#],
  573. + [0], [m4_fatal([$0: too few arguments: $#])],
  574. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  575. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  576. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  577. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  578. +])
  579. - if test "X$echo" = Xecho; then
  580. - # We didn't find a better echo, so look for alternatives.
  581. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  582. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  583. - test "X$echo_testing_string" = "X$echo_test_string"; then
  584. - # This shell has a builtin print -r that does the trick.
  585. - echo='print -r'
  586. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  587. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  588. - # If we have ksh, try running configure again with it.
  589. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  590. - export ORIGINAL_CONFIG_SHELL
  591. - CONFIG_SHELL=/bin/ksh
  592. - export CONFIG_SHELL
  593. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  594. - else
  595. - # Try using printf.
  596. - echo='printf %s\n'
  597. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  598. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  599. - test "X$echo_testing_string" = "X$echo_test_string"; then
  600. - # Cool, printf works
  601. - :
  602. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  603. - test "X$echo_testing_string" = 'X\t' &&
  604. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  605. - test "X$echo_testing_string" = "X$echo_test_string"; then
  606. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  607. - export CONFIG_SHELL
  608. - SHELL="$CONFIG_SHELL"
  609. - export SHELL
  610. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  611. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  612. - test "X$echo_testing_string" = 'X\t' &&
  613. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  614. - test "X$echo_testing_string" = "X$echo_test_string"; then
  615. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  616. - else
  617. - # maybe with a smaller string...
  618. - prev=:
  619. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  620. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  621. - then
  622. - break
  623. - fi
  624. - prev="$cmd"
  625. - done
  626. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  627. +# --------------------------------------------------
  628. +m4_define([lt_decl_quote_varnames],
  629. +[_lt_decl_filter([value], [1], $@)])
  630. +
  631. +
  632. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  633. +# ---------------------------------------------------
  634. +m4_define([lt_decl_dquote_varnames],
  635. +[_lt_decl_filter([value], [2], $@)])
  636. +
  637. +
  638. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  639. +# ---------------------------------------------------
  640. +m4_define([lt_decl_varnames_tagged],
  641. +[m4_assert([$# <= 2])dnl
  642. +_$0(m4_quote(m4_default([$1], [[, ]])),
  643. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  644. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  645. +m4_define([_lt_decl_varnames_tagged],
  646. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  647. +
  648. +
  649. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  650. +# ------------------------------------------------
  651. +m4_define([lt_decl_all_varnames],
  652. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  653. + m4_if([$2], [],
  654. + m4_quote(lt_decl_varnames),
  655. + m4_quote(m4_shift($@))))[]dnl
  656. +])
  657. +m4_define([_lt_decl_all_varnames],
  658. +[lt_join($@, lt_decl_varnames_tagged([$1],
  659. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  660. +])
  661. - if test "$prev" != 'sed 50q "[$]0"'; then
  662. - echo_test_string=`eval $prev`
  663. - export echo_test_string
  664. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  665. - else
  666. - # Oops. We lost completely, so just stick with echo.
  667. - echo=echo
  668. - fi
  669. - fi
  670. - fi
  671. - fi
  672. -fi
  673. -fi
  674. -# Copy echo and quote the copy suitably for passing to libtool from
  675. -# the Makefile, instead of quoting the original, which is used later.
  676. -ECHO=$echo
  677. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  678. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  679. -fi
  680. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  681. +# ------------------------------------
  682. +# Quote a variable value, and forward it to `config.status' so that its
  683. +# declaration there will have the same value as in `configure'. VARNAME
  684. +# must have a single quote delimited value for this to work.
  685. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  686. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  687. -AC_SUBST(ECHO)
  688. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  689. +# _LT_CONFIG_STATUS_DECLARATIONS
  690. +# ------------------------------
  691. +# We delimit libtool config variables with single quotes, so when
  692. +# we write them to config.status, we have to be sure to quote all
  693. +# embedded single quotes properly. In configure, this macro expands
  694. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  695. +#
  696. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  697. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  698. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  699. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  700. -# _LT_AC_LOCK
  701. -# -----------
  702. -AC_DEFUN([_LT_AC_LOCK],
  703. -[AC_ARG_ENABLE([libtool-lock],
  704. - [AC_HELP_STRING([--disable-libtool-lock],
  705. - [avoid locking (might break parallel builds)])])
  706. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  707. -# Some flags need to be propagated to the compiler or linker for good
  708. -# libtool support.
  709. -case $host in
  710. -ia64-*-hpux*)
  711. - # Find out which ABI we are using.
  712. - echo 'int i;' > conftest.$ac_ext
  713. - if AC_TRY_EVAL(ac_compile); then
  714. - case `/usr/bin/file conftest.$ac_objext` in
  715. - *ELF-32*)
  716. - HPUX_IA64_MODE="32"
  717. - ;;
  718. - *ELF-64*)
  719. - HPUX_IA64_MODE="64"
  720. - ;;
  721. - esac
  722. - fi
  723. - rm -rf conftest*
  724. - ;;
  725. -*-*-irix6*)
  726. - # Find out which ABI we are using.
  727. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  728. - if AC_TRY_EVAL(ac_compile); then
  729. - if test "$lt_cv_prog_gnu_ld" = yes; then
  730. - case `/usr/bin/file conftest.$ac_objext` in
  731. - *32-bit*)
  732. - LD="${LD-ld} -melf32bsmip"
  733. - ;;
  734. - *N32*)
  735. - LD="${LD-ld} -melf32bmipn32"
  736. - ;;
  737. - *64-bit*)
  738. - LD="${LD-ld} -melf64bmip"
  739. - ;;
  740. - esac
  741. - else
  742. - case `/usr/bin/file conftest.$ac_objext` in
  743. - *32-bit*)
  744. - LD="${LD-ld} -32"
  745. - ;;
  746. - *N32*)
  747. - LD="${LD-ld} -n32"
  748. +# _LT_LIBTOOL_TAGS
  749. +# ----------------
  750. +# Output comment and list of tags supported by the script
  751. +m4_defun([_LT_LIBTOOL_TAGS],
  752. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  753. +available_tags="_LT_TAGS"dnl
  754. +])
  755. +
  756. +
  757. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  758. +# -----------------------------------
  759. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  760. +# expand to a commented shell variable setting:
  761. +#
  762. +# # Some comment about what VAR is for.
  763. +# visible_name=$lt_internal_name
  764. +m4_define([_LT_LIBTOOL_DECLARE],
  765. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  766. + [description])))[]dnl
  767. +m4_pushdef([_libtool_name],
  768. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  769. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  770. + [0], [_libtool_name=[$]$1],
  771. + [1], [_libtool_name=$lt_[]$1],
  772. + [2], [_libtool_name=$lt_[]$1],
  773. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  774. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  775. +])
  776. +
  777. +
  778. +# _LT_LIBTOOL_CONFIG_VARS
  779. +# -----------------------
  780. +# Produce commented declarations of non-tagged libtool config variables
  781. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  782. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  783. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  784. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  785. +[m4_foreach([_lt_var],
  786. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  787. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  788. +
  789. +
  790. +# _LT_LIBTOOL_TAG_VARS(TAG)
  791. +# -------------------------
  792. +m4_define([_LT_LIBTOOL_TAG_VARS],
  793. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  794. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  795. +
  796. +
  797. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  798. +# ------------------------------
  799. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  800. +
  801. +
  802. +# _LT_CONFIG_COMMANDS
  803. +# -------------------
  804. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  805. +# variables for single and double quote escaping we saved from calls
  806. +# to _LT_DECL, we can put quote escaped variables declarations
  807. +# into `config.status', and then the shell code to quote escape them in
  808. +# for loops in `config.status'. Finally, any additional code accumulated
  809. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  810. +m4_defun([_LT_CONFIG_COMMANDS],
  811. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  812. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  813. + dnl instead of duplicating it all over again into config.status,
  814. + dnl then we will have config.status run $CONFIG_LT later, so it
  815. + dnl needs to know what name is stored there:
  816. + [AC_CONFIG_COMMANDS([libtool],
  817. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  818. + dnl If the libtool generation code is destined for config.status,
  819. + dnl expand the accumulated commands and init code now:
  820. + [AC_CONFIG_COMMANDS([libtool],
  821. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  822. +])#_LT_CONFIG_COMMANDS
  823. +
  824. +
  825. +# Initialize.
  826. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  827. +[
  828. +
  829. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  830. +# if CDPATH is set.
  831. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  832. +
  833. +sed_quote_subst='$sed_quote_subst'
  834. +double_quote_subst='$double_quote_subst'
  835. +delay_variable_subst='$delay_variable_subst'
  836. +_LT_CONFIG_STATUS_DECLARATIONS
  837. +LTCC='$LTCC'
  838. +LTCFLAGS='$LTCFLAGS'
  839. +compiler='$compiler_DEFAULT'
  840. +
  841. +# Quote evaled strings.
  842. +for var in lt_decl_all_varnames([[ \
  843. +]], lt_decl_quote_varnames); do
  844. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  845. + *[[\\\\\\\`\\"\\\$]]*)
  846. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  847. ;;
  848. - *64-bit*)
  849. - LD="${LD-ld} -64"
  850. + *)
  851. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  852. ;;
  853. esac
  854. - fi
  855. - fi
  856. - rm -rf conftest*
  857. - ;;
  858. +done
  859. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  860. - # Find out which ABI we are using.
  861. - echo 'int i;' > conftest.$ac_ext
  862. - if AC_TRY_EVAL(ac_compile); then
  863. - case "`/usr/bin/file conftest.o`" in
  864. - *32-bit*)
  865. - case $host in
  866. - x86_64-*linux*)
  867. - LD="${LD-ld} -m elf_i386"
  868. - ;;
  869. - ppc64-*linux*|powerpc64-*linux*)
  870. - LD="${LD-ld} -m elf32ppclinux"
  871. - ;;
  872. - s390x-*linux*)
  873. - LD="${LD-ld} -m elf_s390"
  874. - ;;
  875. - sparc64-*linux*)
  876. - LD="${LD-ld} -m elf32_sparc"
  877. - ;;
  878. - esac
  879. +# Double-quote double-evaled strings.
  880. +for var in lt_decl_all_varnames([[ \
  881. +]], lt_decl_dquote_varnames); do
  882. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  883. + *[[\\\\\\\`\\"\\\$]]*)
  884. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  885. ;;
  886. - *64-bit*)
  887. - case $host in
  888. - x86_64-*linux*)
  889. - LD="${LD-ld} -m elf_x86_64"
  890. - ;;
  891. - ppc*-*linux*|powerpc*-*linux*)
  892. - LD="${LD-ld} -m elf64ppc"
  893. - ;;
  894. - s390*-*linux*)
  895. - LD="${LD-ld} -m elf64_s390"
  896. - ;;
  897. - sparc*-*linux*)
  898. - LD="${LD-ld} -m elf64_sparc"
  899. - ;;
  900. - esac
  901. + *)
  902. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  903. ;;
  904. esac
  905. - fi
  906. - rm -rf conftest*
  907. +done
  908. +
  909. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  910. +case \$lt_ECHO in
  911. +*'\\\[$]0 --fallback-echo"')dnl "
  912. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  913. ;;
  914. +esac
  915. -*-*-sco3.2v5*)
  916. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  917. - SAVE_CFLAGS="$CFLAGS"
  918. - CFLAGS="$CFLAGS -belf"
  919. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  920. - [AC_LANG_PUSH(C)
  921. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  922. - AC_LANG_POP])
  923. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  924. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  925. - CFLAGS="$SAVE_CFLAGS"
  926. - fi
  927. - ;;
  928. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  929. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  930. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  931. - AC_CHECK_TOOL(AS, as, false)
  932. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  933. - ;;
  934. - ])
  935. -esac
  936. +_LT_OUTPUT_LIBTOOL_INIT
  937. +])
  938. -need_locks="$enable_libtool_lock"
  939. -])# _LT_AC_LOCK
  940. +# LT_OUTPUT
  941. +# ---------
  942. +# This macro allows early generation of the libtool script (before
  943. +# AC_OUTPUT is called), incase it is used in configure for compilation
  944. +# tests.
  945. +AC_DEFUN([LT_OUTPUT],
  946. +[: ${CONFIG_LT=./config.lt}
  947. +AC_MSG_NOTICE([creating $CONFIG_LT])
  948. +cat >"$CONFIG_LT" <<_LTEOF
  949. +#! $SHELL
  950. +# Generated by $as_me.
  951. +# Run this file to recreate a libtool stub with the current configuration.
  952. +
  953. +lt_cl_silent=false
  954. +SHELL=\${CONFIG_SHELL-$SHELL}
  955. +_LTEOF
  956. +
  957. +cat >>"$CONFIG_LT" <<\_LTEOF
  958. +AS_SHELL_SANITIZE
  959. +_AS_PREPARE
  960. +exec AS_MESSAGE_FD>&1
  961. +exec AS_MESSAGE_LOG_FD>>config.log
  962. +{
  963. + echo
  964. + AS_BOX([Running $as_me.])
  965. +} >&AS_MESSAGE_LOG_FD
  966. +
  967. +lt_cl_help="\
  968. +\`$as_me' creates a local libtool stub from the current configuration,
  969. +for use in further configure time tests before the real libtool is
  970. +generated.
  971. +
  972. +Usage: $[0] [[OPTIONS]]
  973. +
  974. + -h, --help print this help, then exit
  975. + -V, --version print version number, then exit
  976. + -q, --quiet do not print progress messages
  977. + -d, --debug don't remove temporary files
  978. +
  979. +Report bugs to <bug-libtool@gnu.org>."
  980. +
  981. +lt_cl_version="\
  982. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  983. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  984. +configured by $[0], generated by m4_PACKAGE_STRING.
  985. +
  986. +Copyright (C) 2008 Free Software Foundation, Inc.
  987. +This config.lt script is free software; the Free Software Foundation
  988. +gives unlimited permision to copy, distribute and modify it."
  989. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  990. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  991. -# ----------------------------------------------------------------
  992. -# Check whether the given compiler option works
  993. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  994. -[AC_REQUIRE([LT_AC_PROG_SED])
  995. -AC_CACHE_CHECK([$1], [$2],
  996. - [$2=no
  997. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  998. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  999. - lt_compiler_flag="$3"
  1000. - # Insert the option either (1) after the last *FLAGS variable, or
  1001. - # (2) before a word containing "conftest.", or (3) at the end.
  1002. - # Note that $ac_compile itself does not contain backslashes and begins
  1003. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1004. - # The option is referenced via a variable to avoid confusing sed.
  1005. - lt_compile=`echo "$ac_compile" | $SED \
  1006. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1007. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1008. - -e 's:$: $lt_compiler_flag:'`
  1009. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1010. - (eval "$lt_compile" 2>conftest.err)
  1011. - ac_status=$?
  1012. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1013. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1014. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1015. - # The compiler can only warn and ignore the option if not recognized
  1016. - # So say no if there are warnings
  1017. - if test ! -s conftest.err; then
  1018. - $2=yes
  1019. - fi
  1020. - fi
  1021. - $rm conftest*
  1022. -])
  1023. +while test $[#] != 0
  1024. +do
  1025. + case $[1] in
  1026. + --version | --v* | -V )
  1027. + echo "$lt_cl_version"; exit 0 ;;
  1028. + --help | --h* | -h )
  1029. + echo "$lt_cl_help"; exit 0 ;;
  1030. + --debug | --d* | -d )
  1031. + debug=: ;;
  1032. + --quiet | --q* | --silent | --s* | -q )
  1033. + lt_cl_silent=: ;;
  1034. -if test x"[$]$2" = xyes; then
  1035. - ifelse([$5], , :, [$5])
  1036. -else
  1037. - ifelse([$6], , :, [$6])
  1038. -fi
  1039. -])# AC_LIBTOOL_COMPILER_OPTION
  1040. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1041. +Try \`$[0] --help' for more information.]) ;;
  1042. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1043. +Try \`$[0] --help' for more information.]) ;;
  1044. + esac
  1045. + shift
  1046. +done
  1047. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1048. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1049. -# ------------------------------------------------------------
  1050. -# Check whether the given compiler option works
  1051. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1052. -[AC_CACHE_CHECK([$1], [$2],
  1053. - [$2=no
  1054. - save_LDFLAGS="$LDFLAGS"
  1055. - LDFLAGS="$LDFLAGS $3"
  1056. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1057. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1058. - # The compiler can only warn and ignore the option if not recognized
  1059. - # So say no if there are warnings
  1060. - if test -s conftest.err; then
  1061. - # Append any errors to the config.log.
  1062. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1063. - else
  1064. - $2=yes
  1065. - fi
  1066. - fi
  1067. - $rm conftest*
  1068. - LDFLAGS="$save_LDFLAGS"
  1069. -])
  1070. +if $lt_cl_silent; then
  1071. + exec AS_MESSAGE_FD>/dev/null
  1072. +fi
  1073. +_LTEOF
  1074. -if test x"[$]$2" = xyes; then
  1075. - ifelse([$4], , :, [$4])
  1076. -else
  1077. - ifelse([$5], , :, [$5])
  1078. +cat >>"$CONFIG_LT" <<_LTEOF
  1079. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1080. +_LTEOF
  1081. +
  1082. +cat >>"$CONFIG_LT" <<\_LTEOF
  1083. +AC_MSG_NOTICE([creating $ofile])
  1084. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1085. +AS_EXIT(0)
  1086. +_LTEOF
  1087. +chmod +x "$CONFIG_LT"
  1088. +
  1089. +# configure is writing to config.log, but config.lt does its own redirection,
  1090. +# appending to config.log, which fails on DOS, as config.log is still kept
  1091. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1092. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1093. +if test "$no_create" != yes; then
  1094. + lt_cl_success=:
  1095. + test "$silent" = yes &&
  1096. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1097. + exec AS_MESSAGE_LOG_FD>/dev/null
  1098. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1099. + exec AS_MESSAGE_LOG_FD>>config.log
  1100. + $lt_cl_success || AS_EXIT(1)
  1101. fi
  1102. -])# AC_LIBTOOL_LINKER_OPTION
  1103. +])# LT_OUTPUT
  1104. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1105. -# --------------------------
  1106. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1107. -[# find the maximum length of command line arguments
  1108. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1109. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1110. - i=0
  1111. - testring="ABCD"
  1112. +# _LT_CONFIG(TAG)
  1113. +# ---------------
  1114. +# If TAG is the built-in tag, create an initial libtool script with a
  1115. +# default configuration from the untagged config vars. Otherwise add code
  1116. +# to config.status for appending the configuration named by TAG from the
  1117. +# matching tagged config vars.
  1118. +m4_defun([_LT_CONFIG],
  1119. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1120. +_LT_CONFIG_SAVE_COMMANDS([
  1121. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1122. + m4_if(_LT_TAG, [C], [
  1123. + # See if we are running on zsh, and set the options which allow our
  1124. + # commands through without removal of \ escapes.
  1125. + if test -n "${ZSH_VERSION+set}" ; then
  1126. + setopt NO_GLOB_SUBST
  1127. + fi
  1128. - case $build_os in
  1129. - msdosdjgpp*)
  1130. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1131. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1132. - # during glob expansion). Even if it were fixed, the result of this
  1133. - # check would be larger than it should be.
  1134. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1135. - ;;
  1136. + cfgfile="${ofile}T"
  1137. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1138. + $RM "$cfgfile"
  1139. - gnu*)
  1140. - # Under GNU Hurd, this test is not required because there is
  1141. - # no limit to the length of command line arguments.
  1142. - # Libtool will interpret -1 as no limit whatsoever
  1143. - lt_cv_sys_max_cmd_len=-1;
  1144. - ;;
  1145. + cat <<_LT_EOF >> "$cfgfile"
  1146. +#! $SHELL
  1147. - cygwin* | mingw*)
  1148. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1149. - # about 5 minutes as the teststring grows exponentially.
  1150. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1151. - # you end up with a "frozen" computer, even though with patience
  1152. - # the test eventually succeeds (with a max line length of 256k).
  1153. - # Instead, let's just punt: use the minimum linelength reported by
  1154. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1155. - lt_cv_sys_max_cmd_len=8192;
  1156. - ;;
  1157. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1158. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1159. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1160. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1161. +#
  1162. +_LT_COPYING
  1163. +_LT_LIBTOOL_TAGS
  1164. - amigaos*)
  1165. - # On AmigaOS with pdksh, this test takes hours, literally.
  1166. - # So we just punt and use a minimum line length of 8192.
  1167. - lt_cv_sys_max_cmd_len=8192;
  1168. - ;;
  1169. +# ### BEGIN LIBTOOL CONFIG
  1170. +_LT_LIBTOOL_CONFIG_VARS
  1171. +_LT_LIBTOOL_TAG_VARS
  1172. +# ### END LIBTOOL CONFIG
  1173. - *)
  1174. - # If test is not a shell built-in, we'll probably end up computing a
  1175. - # maximum length that is only half of the actual maximum length, but
  1176. - # we can't tell.
  1177. - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
  1178. - = "XX$testring") >/dev/null 2>&1 &&
  1179. - new_result=`expr "X$testring" : ".*" 2>&1` &&
  1180. - lt_cv_sys_max_cmd_len=$new_result &&
  1181. - test $i != 17 # 1/2 MB should be enough
  1182. - do
  1183. - i=`expr $i + 1`
  1184. - testring=$testring$testring
  1185. - done
  1186. - testring=
  1187. - # Add a significant safety factor because C++ compilers can tack on massive
  1188. - # amounts of additional arguments before passing them to the linker.
  1189. - # It appears as though 1/2 is a usable value.
  1190. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1191. +_LT_EOF
  1192. +
  1193. + case $host_os in
  1194. + aix3*)
  1195. + cat <<\_LT_EOF >> "$cfgfile"
  1196. +# AIX sometimes has problems with the GCC collect2 program. For some
  1197. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1198. +# vanish in a puff of smoke.
  1199. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1200. + COLLECT_NAMES=
  1201. + export COLLECT_NAMES
  1202. +fi
  1203. +_LT_EOF
  1204. ;;
  1205. esac
  1206. -])
  1207. -if test -n $lt_cv_sys_max_cmd_len ; then
  1208. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1209. -else
  1210. - AC_MSG_RESULT(none)
  1211. -fi
  1212. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1213. + _LT_PROG_LTMAIN
  1214. -# _LT_AC_CHECK_DLFCN
  1215. -# --------------------
  1216. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1217. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1218. -])# _LT_AC_CHECK_DLFCN
  1219. + # We use sed instead of cat because bash on DJGPP gets confused if
  1220. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1221. + # text mode, it properly converts lines to CR/LF. This bash problem
  1222. + # is reportedly fixed, but why not run on old versions too?
  1223. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1224. + || (rm -f "$cfgfile"; exit 1)
  1225. + _LT_PROG_XSI_SHELLFNS
  1226. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1227. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1228. -# ------------------------------------------------------------------
  1229. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1230. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1231. -if test "$cross_compiling" = yes; then :
  1232. - [$4]
  1233. -else
  1234. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1235. - lt_status=$lt_dlunknown
  1236. - cat > conftest.$ac_ext <<EOF
  1237. -[#line __oline__ "configure"
  1238. -#include "confdefs.h"
  1239. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1240. + || (rm -f "$cfgfile"; exit 1)
  1241. -#if HAVE_DLFCN_H
  1242. -#include <dlfcn.h>
  1243. -#endif
  1244. + mv -f "$cfgfile" "$ofile" ||
  1245. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1246. + chmod +x "$ofile"
  1247. +],
  1248. +[cat <<_LT_EOF >> "$ofile"
  1249. -#include <stdio.h>
  1250. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1251. +dnl in a comment (ie after a #).
  1252. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1253. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1254. +# ### END LIBTOOL TAG CONFIG: $1
  1255. +_LT_EOF
  1256. +])dnl /m4_if
  1257. +],
  1258. +[m4_if([$1], [], [
  1259. + PACKAGE='$PACKAGE'
  1260. + VERSION='$VERSION'
  1261. + TIMESTAMP='$TIMESTAMP'
  1262. + RM='$RM'
  1263. + ofile='$ofile'], [])
  1264. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1265. +])# _LT_CONFIG
  1266. +
  1267. +
  1268. +# LT_SUPPORTED_TAG(TAG)
  1269. +# ---------------------
  1270. +# Trace this macro to discover what tags are supported by the libtool
  1271. +# --tag option, using:
  1272. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1273. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1274. +
  1275. +
  1276. +# C support is built-in for now
  1277. +m4_define([_LT_LANG_C_enabled], [])
  1278. +m4_define([_LT_TAGS], [])
  1279. -#ifdef RTLD_GLOBAL
  1280. -# define LT_DLGLOBAL RTLD_GLOBAL
  1281. -#else
  1282. -# ifdef DL_GLOBAL
  1283. -# define LT_DLGLOBAL DL_GLOBAL
  1284. -# else
  1285. -# define LT_DLGLOBAL 0
  1286. -# endif
  1287. -#endif
  1288. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1289. - find out it does not work in some platform. */
  1290. -#ifndef LT_DLLAZY_OR_NOW
  1291. -# ifdef RTLD_LAZY
  1292. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1293. -# else
  1294. -# ifdef DL_LAZY
  1295. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1296. -# else
  1297. -# ifdef RTLD_NOW
  1298. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1299. -# else
  1300. -# ifdef DL_NOW
  1301. -# define LT_DLLAZY_OR_NOW DL_NOW
  1302. -# else
  1303. -# define LT_DLLAZY_OR_NOW 0
  1304. -# endif
  1305. -# endif
  1306. -# endif
  1307. -# endif
  1308. -#endif
  1309. +# LT_LANG(LANG)
  1310. +# -------------
  1311. +# Enable libtool support for the given language if not already enabled.
  1312. +AC_DEFUN([LT_LANG],
  1313. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1314. +m4_case([$1],
  1315. + [C], [_LT_LANG(C)],
  1316. + [C++], [_LT_LANG(CXX)],
  1317. + [Java], [_LT_LANG(GCJ)],
  1318. + [Fortran 77], [_LT_LANG(F77)],
  1319. + [Fortran], [_LT_LANG(FC)],
  1320. + [Windows Resource], [_LT_LANG(RC)],
  1321. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1322. + [_LT_LANG($1)],
  1323. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1324. +])# LT_LANG
  1325. -#ifdef __cplusplus
  1326. -extern "C" void exit (int);
  1327. -#endif
  1328. -void fnord() { int i=42;}
  1329. -int main ()
  1330. -{
  1331. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1332. - int status = $lt_dlunknown;
  1333. +# _LT_LANG(LANGNAME)
  1334. +# ------------------
  1335. +m4_defun([_LT_LANG],
  1336. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1337. + [LT_SUPPORTED_TAG([$1])dnl
  1338. + m4_append([_LT_TAGS], [$1 ])dnl
  1339. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1340. + _LT_LANG_$1_CONFIG($1)])dnl
  1341. +])# _LT_LANG
  1342. - if (self)
  1343. - {
  1344. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1345. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1346. - /* dlclose (self); */
  1347. - }
  1348. - exit (status);
  1349. -}]
  1350. -EOF
  1351. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1352. - (./conftest; exit; ) 2>/dev/null
  1353. - lt_status=$?
  1354. - case x$lt_status in
  1355. - x$lt_dlno_uscore) $1 ;;
  1356. - x$lt_dlneed_uscore) $2 ;;
  1357. - x$lt_unknown|x*) $3 ;;
  1358. - esac
  1359. - else :
  1360. - # compilation failed
  1361. - $3
  1362. - fi
  1363. -fi
  1364. -rm -fr conftest*
  1365. -])# _LT_AC_TRY_DLOPEN_SELF
  1366. +# _LT_LANG_DEFAULT_CONFIG
  1367. +# -----------------------
  1368. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1369. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1370. + [LT_LANG(CXX)],
  1371. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1372. +
  1373. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1374. + [LT_LANG(F77)],
  1375. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1376. +
  1377. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1378. + [LT_LANG(FC)],
  1379. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1380. +
  1381. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1382. +dnl pulling things in needlessly.
  1383. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1384. + [LT_LANG(GCJ)],
  1385. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1386. + [LT_LANG(GCJ)],
  1387. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1388. + [LT_LANG(GCJ)],
  1389. + [m4_ifdef([AC_PROG_GCJ],
  1390. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1391. + m4_ifdef([A][M_PROG_GCJ],
  1392. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1393. + m4_ifdef([LT_PROG_GCJ],
  1394. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1395. +
  1396. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1397. + [LT_LANG(RC)],
  1398. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1399. +])# _LT_LANG_DEFAULT_CONFIG
  1400. +
  1401. +# Obsolete macros:
  1402. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1403. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1404. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1405. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1406. +dnl aclocal-1.4 backwards compatibility:
  1407. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1408. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1409. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1410. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1411. -# AC_LIBTOOL_DLOPEN_SELF
  1412. -# -------------------
  1413. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1414. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1415. -if test "x$enable_dlopen" != xyes; then
  1416. - enable_dlopen=unknown
  1417. - enable_dlopen_self=unknown
  1418. - enable_dlopen_self_static=unknown
  1419. -else
  1420. - lt_cv_dlopen=no
  1421. - lt_cv_dlopen_libs=
  1422. +# _LT_TAG_COMPILER
  1423. +# ----------------
  1424. +m4_defun([_LT_TAG_COMPILER],
  1425. +[AC_REQUIRE([AC_PROG_CC])dnl
  1426. - case $host_os in
  1427. - beos*)
  1428. - lt_cv_dlopen="load_add_on"
  1429. - lt_cv_dlopen_libs=
  1430. - lt_cv_dlopen_self=yes
  1431. - ;;
  1432. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1433. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1434. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1435. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1436. - mingw* | pw32*)
  1437. - lt_cv_dlopen="LoadLibrary"
  1438. - lt_cv_dlopen_libs=
  1439. - ;;
  1440. +# If no C compiler was specified, use CC.
  1441. +LTCC=${LTCC-"$CC"}
  1442. - cygwin*)
  1443. - lt_cv_dlopen="dlopen"
  1444. - lt_cv_dlopen_libs=
  1445. - ;;
  1446. +# If no C compiler flags were specified, use CFLAGS.
  1447. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1448. - darwin*)
  1449. - # if libdl is installed we need to link against it
  1450. - AC_CHECK_LIB([dl], [dlopen],
  1451. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1452. - lt_cv_dlopen="dyld"
  1453. - lt_cv_dlopen_libs=
  1454. - lt_cv_dlopen_self=yes
  1455. - ])
  1456. - ;;
  1457. +# Allow CC to be a program name with arguments.
  1458. +compiler=$CC
  1459. +])# _LT_TAG_COMPILER
  1460. - *)
  1461. - AC_CHECK_FUNC([shl_load],
  1462. - [lt_cv_dlopen="shl_load"],
  1463. - [AC_CHECK_LIB([dld], [shl_load],
  1464. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1465. - [AC_CHECK_FUNC([dlopen],
  1466. - [lt_cv_dlopen="dlopen"],
  1467. - [AC_CHECK_LIB([dl], [dlopen],
  1468. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1469. - [AC_CHECK_LIB([svld], [dlopen],
  1470. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1471. - [AC_CHECK_LIB([dld], [dld_link],
  1472. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1473. - ])
  1474. - ])
  1475. - ])
  1476. - ])
  1477. - ])
  1478. - ;;
  1479. - esac
  1480. - if test "x$lt_cv_dlopen" != xno; then
  1481. - enable_dlopen=yes
  1482. - else
  1483. - enable_dlopen=no
  1484. - fi
  1485. -
  1486. - case $lt_cv_dlopen in
  1487. - dlopen)
  1488. - save_CPPFLAGS="$CPPFLAGS"
  1489. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1490. -
  1491. - save_LDFLAGS="$LDFLAGS"
  1492. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1493. +# _LT_COMPILER_BOILERPLATE
  1494. +# ------------------------
  1495. +# Check for compiler boilerplate output or warnings with
  1496. +# the simple compiler test code.
  1497. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1498. +[m4_require([_LT_DECL_SED])dnl
  1499. +ac_outfile=conftest.$ac_objext
  1500. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1501. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1502. +_lt_compiler_boilerplate=`cat conftest.err`
  1503. +$RM conftest*
  1504. +])# _LT_COMPILER_BOILERPLATE
  1505. - save_LIBS="$LIBS"
  1506. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1507. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1508. - lt_cv_dlopen_self, [dnl
  1509. - _LT_AC_TRY_DLOPEN_SELF(
  1510. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1511. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1512. +# _LT_LINKER_BOILERPLATE
  1513. +# ----------------------
  1514. +# Check for linker boilerplate output or warnings with
  1515. +# the simple link test code.
  1516. +m4_defun([_LT_LINKER_BOILERPLATE],
  1517. +[m4_require([_LT_DECL_SED])dnl
  1518. +ac_outfile=conftest.$ac_objext
  1519. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1520. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1521. +_lt_linker_boilerplate=`cat conftest.err`
  1522. +$RM -r conftest*
  1523. +])# _LT_LINKER_BOILERPLATE
  1524. +
  1525. +# _LT_REQUIRED_DARWIN_CHECKS
  1526. +# -------------------------
  1527. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1528. + case $host_os in
  1529. + rhapsody* | darwin*)
  1530. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1531. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1532. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1533. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1534. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1535. + _LT_DECL([], [DSYMUTIL], [1],
  1536. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1537. + _LT_DECL([], [NMEDIT], [1],
  1538. + [Tool to change global to local symbols on Mac OS X])
  1539. + _LT_DECL([], [LIPO], [1],
  1540. + [Tool to manipulate fat objects and archives on Mac OS X])
  1541. + _LT_DECL([], [OTOOL], [1],
  1542. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1543. + _LT_DECL([], [OTOOL64], [1],
  1544. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1545. +
  1546. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1547. + [lt_cv_apple_cc_single_mod=no
  1548. + if test -z "${LT_MULTI_MODULE}"; then
  1549. + # By default we will add the -single_module flag. You can override
  1550. + # by either setting the environment variable LT_MULTI_MODULE
  1551. + # non-empty at configure time, or by adding -multi_module to the
  1552. + # link flags.
  1553. + rm -rf libconftest.dylib*
  1554. + echo "int foo(void){return 1;}" > conftest.c
  1555. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1556. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1557. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1558. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1559. + _lt_result=$?
  1560. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1561. + lt_cv_apple_cc_single_mod=yes
  1562. + else
  1563. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1564. + fi
  1565. + rm -rf libconftest.dylib*
  1566. + rm -f conftest.*
  1567. + fi])
  1568. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1569. + [lt_cv_ld_exported_symbols_list],
  1570. + [lt_cv_ld_exported_symbols_list=no
  1571. + save_LDFLAGS=$LDFLAGS
  1572. + echo "_main" > conftest.sym
  1573. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1574. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1575. + [lt_cv_ld_exported_symbols_list=yes],
  1576. + [lt_cv_ld_exported_symbols_list=no])
  1577. + LDFLAGS="$save_LDFLAGS"
  1578. ])
  1579. -
  1580. - if test "x$lt_cv_dlopen_self" = xyes; then
  1581. - LDFLAGS="$LDFLAGS $link_static_flag"
  1582. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1583. - lt_cv_dlopen_self_static, [dnl
  1584. - _LT_AC_TRY_DLOPEN_SELF(
  1585. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1586. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1587. - ])
  1588. + case $host_os in
  1589. + rhapsody* | darwin1.[[012]])
  1590. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1591. + darwin1.*)
  1592. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1593. + darwin*) # darwin 5.x on
  1594. + # if running on 10.5 or later, the deployment target defaults
  1595. + # to the OS version, if on x86, and 10.4, the deployment
  1596. + # target defaults to 10.4. Don't you love it?
  1597. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1598. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1599. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1600. + 10.[[012]]*)
  1601. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1602. + 10.*)
  1603. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1604. + esac
  1605. + ;;
  1606. + esac
  1607. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1608. + _lt_dar_single_mod='$single_module'
  1609. + fi
  1610. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1611. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1612. + else
  1613. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1614. + fi
  1615. + if test "$DSYMUTIL" != ":"; then
  1616. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1617. + else
  1618. + _lt_dsymutil=
  1619. fi
  1620. -
  1621. - CPPFLAGS="$save_CPPFLAGS"
  1622. - LDFLAGS="$save_LDFLAGS"
  1623. - LIBS="$save_LIBS"
  1624. ;;
  1625. esac
  1626. +])
  1627. - case $lt_cv_dlopen_self in
  1628. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1629. - *) enable_dlopen_self=unknown ;;
  1630. - esac
  1631. - case $lt_cv_dlopen_self_static in
  1632. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1633. - *) enable_dlopen_self_static=unknown ;;
  1634. +# _LT_DARWIN_LINKER_FEATURES
  1635. +# --------------------------
  1636. +# Checks for linker and compiler features on darwin
  1637. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1638. +[
  1639. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1640. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1641. + _LT_TAGVAR(hardcode_direct, $1)=no
  1642. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1643. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1644. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1645. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1646. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1647. + case $cc_basename in
  1648. + ifort*) _lt_dar_can_shared=yes ;;
  1649. + *) _lt_dar_can_shared=$GCC ;;
  1650. esac
  1651. -fi
  1652. -])# AC_LIBTOOL_DLOPEN_SELF
  1653. -
  1654. + if test "$_lt_dar_can_shared" = "yes"; then
  1655. + output_verbose_link_cmd=echo
  1656. + _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}"
  1657. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1658. + _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}"
  1659. + _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}"
  1660. + m4_if([$1], [CXX],
  1661. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1662. + _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}"
  1663. + _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}"
  1664. + fi
  1665. +],[])
  1666. + else
  1667. + _LT_TAGVAR(ld_shlibs, $1)=no
  1668. + fi
  1669. +])
  1670. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1671. -# ---------------------------------
  1672. -# Check to see if options -c and -o are simultaneously supported by compiler
  1673. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1674. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1675. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1676. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1677. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1678. - $rm -r conftest 2>/dev/null
  1679. - mkdir conftest
  1680. - cd conftest
  1681. - mkdir out
  1682. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1683. +# _LT_SYS_MODULE_PATH_AIX
  1684. +# -----------------------
  1685. +# Links a minimal program and checks the executable
  1686. +# for the system default hardcoded library path. In most cases,
  1687. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1688. +# the location of the communication and MPI libs are included too.
  1689. +# If we don't find anything, use the default library path according
  1690. +# to the aix ld manual.
  1691. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1692. +[m4_require([_LT_DECL_SED])dnl
  1693. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1694. +lt_aix_libpath_sed='
  1695. + /Import File Strings/,/^$/ {
  1696. + /^0/ {
  1697. + s/^0 *\(.*\)$/\1/
  1698. + p
  1699. + }
  1700. + }'
  1701. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1702. +# Check for a 64-bit object if we didn't find anything.
  1703. +if test -z "$aix_libpath"; then
  1704. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1705. +fi],[])
  1706. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1707. +])# _LT_SYS_MODULE_PATH_AIX
  1708. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1709. - # Insert the option either (1) after the last *FLAGS variable, or
  1710. - # (2) before a word containing "conftest.", or (3) at the end.
  1711. - # Note that $ac_compile itself does not contain backslashes and begins
  1712. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1713. - lt_compile=`echo "$ac_compile" | $SED \
  1714. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1715. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1716. - -e 's:$: $lt_compiler_flag:'`
  1717. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1718. - (eval "$lt_compile" 2>out/conftest.err)
  1719. - ac_status=$?
  1720. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1721. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1722. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1723. - then
  1724. - # The compiler can only warn and ignore the option if not recognized
  1725. - # So say no if there are warnings
  1726. - if test ! -s out/conftest.err; then
  1727. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1728. - fi
  1729. - fi
  1730. - chmod u+w .
  1731. - $rm conftest*
  1732. - # SGI C++ compiler will create directory out/ii_files/ for
  1733. - # template instantiation
  1734. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1735. - $rm out/* && rmdir out
  1736. - cd ..
  1737. - rmdir conftest
  1738. - $rm conftest*
  1739. -])
  1740. -])# AC_LIBTOOL_PROG_CC_C_O
  1741. +# _LT_SHELL_INIT(ARG)
  1742. +# -------------------
  1743. +m4_define([_LT_SHELL_INIT],
  1744. +[ifdef([AC_DIVERSION_NOTICE],
  1745. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1746. + [AC_DIVERT_PUSH(NOTICE)])
  1747. +$1
  1748. +AC_DIVERT_POP
  1749. +])# _LT_SHELL_INIT
  1750. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1751. -# -----------------------------------------
  1752. -# Check to see if we can do hard links to lock some files if needed
  1753. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1754. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1755. -hard_links="nottested"
  1756. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1757. - # do not overwrite the value of need_locks provided by the user
  1758. - AC_MSG_CHECKING([if we can lock with hard links])
  1759. - hard_links=yes
  1760. - $rm conftest*
  1761. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1762. - touch conftest.a
  1763. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1764. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1765. - AC_MSG_RESULT([$hard_links])
  1766. - if test "$hard_links" = no; then
  1767. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1768. - need_locks=warn
  1769. - fi
  1770. -else
  1771. - need_locks=no
  1772. -fi
  1773. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1774. +# _LT_PROG_ECHO_BACKSLASH
  1775. +# -----------------------
  1776. +# Add some code to the start of the generated configure script which
  1777. +# will find an echo command which doesn't interpret backslashes.
  1778. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1779. +[_LT_SHELL_INIT([
  1780. +# Check that we are running under the correct shell.
  1781. +SHELL=${CONFIG_SHELL-/bin/sh}
  1782. +case X$lt_ECHO in
  1783. +X*--fallback-echo)
  1784. + # Remove one level of quotation (which was required for Make).
  1785. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1786. + ;;
  1787. +esac
  1788. -# AC_LIBTOOL_OBJDIR
  1789. -# -----------------
  1790. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1791. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1792. -[rm -f .libs 2>/dev/null
  1793. -mkdir .libs 2>/dev/null
  1794. -if test -d .libs; then
  1795. - lt_cv_objdir=.libs
  1796. +ECHO=${lt_ECHO-echo}
  1797. +if test "X[$]1" = X--no-reexec; then
  1798. + # Discard the --no-reexec flag, and continue.
  1799. + shift
  1800. +elif test "X[$]1" = X--fallback-echo; then
  1801. + # Avoid inline document here, it may be left over
  1802. + :
  1803. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1804. + # Yippee, $ECHO works!
  1805. + :
  1806. else
  1807. - # MS-DOS does not allow filenames that begin with a dot.
  1808. - lt_cv_objdir=_libs
  1809. + # Restart under the correct shell.
  1810. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1811. fi
  1812. -rmdir .libs 2>/dev/null])
  1813. -objdir=$lt_cv_objdir
  1814. -])# AC_LIBTOOL_OBJDIR
  1815. +if test "X[$]1" = X--fallback-echo; then
  1816. + # used as fallback echo
  1817. + shift
  1818. + cat <<_LT_EOF
  1819. +[$]*
  1820. +_LT_EOF
  1821. + exit 0
  1822. +fi
  1823. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1824. -# ----------------------------------------------
  1825. -# Check hardcoding attributes.
  1826. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1827. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1828. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1829. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1830. - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  1831. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  1832. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1833. +# if CDPATH is set.
  1834. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1835. - # We can hardcode non-existant directories.
  1836. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1837. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1838. - # have to relink, otherwise we might link with an installed library
  1839. - # when we should be linking with a yet-to-be-installed one
  1840. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1841. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1842. - # Linking always hardcodes the temporary library directory.
  1843. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1844. - else
  1845. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1846. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1847. +if test -z "$lt_ECHO"; then
  1848. + if test "X${echo_test_string+set}" != Xset; then
  1849. + # find a string as large as possible, as long as the shell can cope with it
  1850. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1851. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1852. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1853. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1854. + then
  1855. + break
  1856. + fi
  1857. + done
  1858. fi
  1859. -else
  1860. - # We cannot hardcode anything, or else we can only hardcode existing
  1861. - # directories.
  1862. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  1863. -fi
  1864. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  1865. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  1866. - # Fast installation is not supported
  1867. - enable_fast_install=no
  1868. -elif test "$shlibpath_overrides_runpath" = yes ||
  1869. - test "$enable_shared" = no; then
  1870. - # Fast installation is not necessary
  1871. - enable_fast_install=needless
  1872. -fi
  1873. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  1874. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1875. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1876. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1877. + :
  1878. + else
  1879. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1880. + # backslashes. This makes it impossible to quote backslashes using
  1881. + # echo "$something" | sed 's/\\/\\\\/g'
  1882. + #
  1883. + # So, first we look for a working echo in the user's PATH.
  1884. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1885. + for dir in $PATH /usr/ucb; do
  1886. + IFS="$lt_save_ifs"
  1887. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1888. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1889. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1890. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1891. + ECHO="$dir/echo"
  1892. + break
  1893. + fi
  1894. + done
  1895. + IFS="$lt_save_ifs"
  1896. -# AC_LIBTOOL_SYS_LIB_STRIP
  1897. -# ------------------------
  1898. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  1899. -[striplib=
  1900. -old_striplib=
  1901. -AC_MSG_CHECKING([whether stripping libraries is possible])
  1902. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  1903. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1904. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1905. - AC_MSG_RESULT([yes])
  1906. -else
  1907. -# FIXME - insert some real tests, host_os isn't really good enough
  1908. - case $host_os in
  1909. - darwin*)
  1910. - if test -n "$STRIP" ; then
  1911. - striplib="$STRIP -x"
  1912. - AC_MSG_RESULT([yes])
  1913. - else
  1914. - AC_MSG_RESULT([no])
  1915. -fi
  1916. - ;;
  1917. - *)
  1918. - AC_MSG_RESULT([no])
  1919. - ;;
  1920. - esac
  1921. -fi
  1922. -])# AC_LIBTOOL_SYS_LIB_STRIP
  1923. + if test "X$ECHO" = Xecho; then
  1924. + # We didn't find a better echo, so look for alternatives.
  1925. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1926. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1927. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1928. + # This shell has a builtin print -r that does the trick.
  1929. + ECHO='print -r'
  1930. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1931. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1932. + # If we have ksh, try running configure again with it.
  1933. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1934. + export ORIGINAL_CONFIG_SHELL
  1935. + CONFIG_SHELL=/bin/ksh
  1936. + export CONFIG_SHELL
  1937. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1938. + else
  1939. + # Try using printf.
  1940. + ECHO='printf %s\n'
  1941. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1942. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1943. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1944. + # Cool, printf works
  1945. + :
  1946. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1947. + test "X$echo_testing_string" = 'X\t' &&
  1948. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1949. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1950. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1951. + export CONFIG_SHELL
  1952. + SHELL="$CONFIG_SHELL"
  1953. + export SHELL
  1954. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1955. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1956. + test "X$echo_testing_string" = 'X\t' &&
  1957. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1958. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1959. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1960. + else
  1961. + # maybe with a smaller string...
  1962. + prev=:
  1963. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1964. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1965. + then
  1966. + break
  1967. + fi
  1968. + prev="$cmd"
  1969. + done
  1970. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  1971. -# -----------------------------
  1972. -# PORTME Fill in your ld.so characteristics
  1973. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  1974. -[AC_MSG_CHECKING([dynamic linker characteristics])
  1975. -library_names_spec=
  1976. -libname_spec='lib$name'
  1977. -soname_spec=
  1978. -shrext=".so"
  1979. -postinstall_cmds=
  1980. -postuninstall_cmds=
  1981. -finish_cmds=
  1982. -finish_eval=
  1983. -shlibpath_var=
  1984. -shlibpath_overrides_runpath=unknown
  1985. -version_type=none
  1986. -dynamic_linker="$host_os ld.so"
  1987. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1988. -if test "$GCC" = yes; then
  1989. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  1990. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  1991. - # if the path contains ";" then we assume it to be the separator
  1992. - # otherwise default to the standard path separator (i.e. ":") - it is
  1993. - # assumed that no part of a normal pathname contains ";" but that should
  1994. - # okay in the real world where ";" in dirpaths is itself problematic.
  1995. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  1996. - else
  1997. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  1998. + if test "$prev" != 'sed 50q "[$]0"'; then
  1999. + echo_test_string=`eval $prev`
  2000. + export echo_test_string
  2001. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  2002. + else
  2003. + # Oops. We lost completely, so just stick with echo.
  2004. + ECHO=echo
  2005. + fi
  2006. + fi
  2007. + fi
  2008. + fi
  2009. fi
  2010. -else
  2011. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2012. fi
  2013. -need_lib_prefix=unknown
  2014. -hardcode_into_libs=no
  2015. -# when you set need_version to no, make sure it does not cause -set_version
  2016. -# flags to be left without arguments
  2017. -need_version=unknown
  2018. +# Copy echo and quote the copy suitably for passing to libtool from
  2019. +# the Makefile, instead of quoting the original, which is used later.
  2020. +lt_ECHO=$ECHO
  2021. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2022. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2023. +fi
  2024. -case $host_os in
  2025. -aix3*)
  2026. - version_type=linux
  2027. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2028. - shlibpath_var=LIBPATH
  2029. +AC_SUBST(lt_ECHO)
  2030. +])
  2031. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2032. +_LT_DECL([], [ECHO], [1],
  2033. + [An echo program that does not interpret backslashes])
  2034. +])# _LT_PROG_ECHO_BACKSLASH
  2035. - # AIX 3 has no versioning support, so we append a major version to the name.
  2036. - soname_spec='${libname}${release}${shared_ext}$major'
  2037. - ;;
  2038. -aix4* | aix5*)
  2039. - version_type=linux
  2040. - need_lib_prefix=no
  2041. - need_version=no
  2042. - hardcode_into_libs=yes
  2043. - if test "$host_cpu" = ia64; then
  2044. - # AIX 5 supports IA64
  2045. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2046. - shlibpath_var=LD_LIBRARY_PATH
  2047. - else
  2048. - # With GCC up to 2.95.x, collect2 would create an import file
  2049. - # for dependence libraries. The import file would start with
  2050. - # the line `#! .'. This would cause the generated library to
  2051. - # depend on `.', always an invalid library. This was fixed in
  2052. - # development snapshots of GCC prior to 3.0.
  2053. - case $host_os in
  2054. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2055. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2056. - echo ' yes '
  2057. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2058. - :
  2059. - else
  2060. - can_build_shared=no
  2061. - fi
  2062. - ;;
  2063. +# _LT_ENABLE_LOCK
  2064. +# ---------------
  2065. +m4_defun([_LT_ENABLE_LOCK],
  2066. +[AC_ARG_ENABLE([libtool-lock],
  2067. + [AS_HELP_STRING([--disable-libtool-lock],
  2068. + [avoid locking (might break parallel builds)])])
  2069. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2070. +
  2071. +# Some flags need to be propagated to the compiler or linker for good
  2072. +# libtool support.
  2073. +case $host in
  2074. +ia64-*-hpux*)
  2075. + # Find out which ABI we are using.
  2076. + echo 'int i;' > conftest.$ac_ext
  2077. + if AC_TRY_EVAL(ac_compile); then
  2078. + case `/usr/bin/file conftest.$ac_objext` in
  2079. + *ELF-32*)
  2080. + HPUX_IA64_MODE="32"
  2081. + ;;
  2082. + *ELF-64*)
  2083. + HPUX_IA64_MODE="64"
  2084. + ;;
  2085. esac
  2086. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2087. - # soname into executable. Probably we can add versioning support to
  2088. - # collect2, so additional links can be useful in future.
  2089. - if test "$aix_use_runtimelinking" = yes; then
  2090. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2091. - # instead of lib<name>.a to let people know that these are not
  2092. - # typical AIX shared libraries.
  2093. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2094. + fi
  2095. + rm -rf conftest*
  2096. + ;;
  2097. +*-*-irix6*)
  2098. + # Find out which ABI we are using.
  2099. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2100. + if AC_TRY_EVAL(ac_compile); then
  2101. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2102. + case `/usr/bin/file conftest.$ac_objext` in
  2103. + *32-bit*)
  2104. + LD="${LD-ld} -melf32bsmip"
  2105. + ;;
  2106. + *N32*)
  2107. + LD="${LD-ld} -melf32bmipn32"
  2108. + ;;
  2109. + *64-bit*)
  2110. + LD="${LD-ld} -melf64bmip"
  2111. + ;;
  2112. + esac
  2113. else
  2114. - # We preserve .a as extension for shared libraries through AIX4.2
  2115. - # and later when we are not doing run time linking.
  2116. - library_names_spec='${libname}${release}.a $libname.a'
  2117. - soname_spec='${libname}${release}${shared_ext}$major'
  2118. + case `/usr/bin/file conftest.$ac_objext` in
  2119. + *32-bit*)
  2120. + LD="${LD-ld} -32"
  2121. + ;;
  2122. + *N32*)
  2123. + LD="${LD-ld} -n32"
  2124. + ;;
  2125. + *64-bit*)
  2126. + LD="${LD-ld} -64"
  2127. + ;;
  2128. + esac
  2129. fi
  2130. - shlibpath_var=LIBPATH
  2131. fi
  2132. + rm -rf conftest*
  2133. ;;
  2134. -amigaos*)
  2135. - library_names_spec='$libname.ixlibrary $libname.a'
  2136. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2137. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2138. - ;;
  2139. -
  2140. -beos*)
  2141. - library_names_spec='${libname}${shared_ext}'
  2142. - dynamic_linker="$host_os ld.so"
  2143. - shlibpath_var=LIBRARY_PATH
  2144. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2145. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2146. + # Find out which ABI we are using.
  2147. + echo 'int i;' > conftest.$ac_ext
  2148. + if AC_TRY_EVAL(ac_compile); then
  2149. + case `/usr/bin/file conftest.o` in
  2150. + *32-bit*)
  2151. + case $host in
  2152. + x86_64-*kfreebsd*-gnu)
  2153. + LD="${LD-ld} -m elf_i386_fbsd"
  2154. + ;;
  2155. + x86_64-*linux*)
  2156. + LD="${LD-ld} -m elf_i386"
  2157. + ;;
  2158. + ppc64-*linux*|powerpc64-*linux*)
  2159. + LD="${LD-ld} -m elf32ppclinux"
  2160. + ;;
  2161. + s390x-*linux*)
  2162. + LD="${LD-ld} -m elf_s390"
  2163. + ;;
  2164. + sparc64-*linux*)
  2165. + LD="${LD-ld} -m elf32_sparc"
  2166. + ;;
  2167. + esac
  2168. + ;;
  2169. + *64-bit*)
  2170. + case $host in
  2171. + x86_64-*kfreebsd*-gnu)
  2172. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2173. + ;;
  2174. + x86_64-*linux*)
  2175. + LD="${LD-ld} -m elf_x86_64"
  2176. + ;;
  2177. + ppc*-*linux*|powerpc*-*linux*)
  2178. + LD="${LD-ld} -m elf64ppc"
  2179. + ;;
  2180. + s390*-*linux*|s390*-*tpf*)
  2181. + LD="${LD-ld} -m elf64_s390"
  2182. + ;;
  2183. + sparc*-*linux*)
  2184. + LD="${LD-ld} -m elf64_sparc"
  2185. + ;;
  2186. + esac
  2187. + ;;
  2188. + esac
  2189. + fi
  2190. + rm -rf conftest*
  2191. ;;
  2192. -bsdi4*)
  2193. - version_type=linux
  2194. - need_version=no
  2195. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2196. - soname_spec='${libname}${release}${shared_ext}$major'
  2197. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2198. - shlibpath_var=LD_LIBRARY_PATH
  2199. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2200. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2201. - # the default ld.so.conf also contains /usr/contrib/lib and
  2202. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2203. - # libtool to hard-code these into programs
  2204. +*-*-sco3.2v5*)
  2205. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2206. + SAVE_CFLAGS="$CFLAGS"
  2207. + CFLAGS="$CFLAGS -belf"
  2208. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2209. + [AC_LANG_PUSH(C)
  2210. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2211. + AC_LANG_POP])
  2212. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2213. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2214. + CFLAGS="$SAVE_CFLAGS"
  2215. + fi
  2216. ;;
  2217. -
  2218. -cygwin* | mingw* | pw32*)
  2219. - version_type=windows
  2220. - shrext=".dll"
  2221. - need_version=no
  2222. - need_lib_prefix=no
  2223. -
  2224. - case $GCC,$host_os in
  2225. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2226. - library_names_spec='$libname.dll.a'
  2227. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2228. - postinstall_cmds='base_file=`basename \${file}`~
  2229. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2230. - dldir=$destdir/`dirname \$dlpath`~
  2231. - test -d \$dldir || mkdir -p \$dldir~
  2232. - $install_prog $dir/$dlname \$dldir/$dlname'
  2233. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2234. - dlpath=$dir/\$dldll~
  2235. - $rm \$dlpath'
  2236. - shlibpath_overrides_runpath=yes
  2237. -
  2238. - case $host_os in
  2239. - cygwin*)
  2240. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2241. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2242. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2243. - ;;
  2244. - mingw*)
  2245. - # MinGW DLLs use traditional 'lib' prefix
  2246. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2247. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2248. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2249. - # It is most probably a Windows format PATH printed by
  2250. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2251. - # path with ; separators, and with drive letters. We can handle the
  2252. - # drive letters (cygwin fileutils understands them), so leave them,
  2253. - # especially as we might pass files found there to a mingw objdump,
  2254. - # which wouldn't understand a cygwinified path. Ahh.
  2255. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2256. - else
  2257. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2258. - fi
  2259. - ;;
  2260. - pw32*)
  2261. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2262. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  2263. +sparc*-*solaris*)
  2264. + # Find out which ABI we are using.
  2265. + echo 'int i;' > conftest.$ac_ext
  2266. + if AC_TRY_EVAL(ac_compile); then
  2267. + case `/usr/bin/file conftest.o` in
  2268. + *64-bit*)
  2269. + case $lt_cv_prog_gnu_ld in
  2270. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2271. + *)
  2272. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2273. + LD="${LD-ld} -64"
  2274. + fi
  2275. + ;;
  2276. + esac
  2277. ;;
  2278. esac
  2279. - ;;
  2280. -
  2281. - *)
  2282. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2283. - ;;
  2284. - esac
  2285. - dynamic_linker='Win32 ld.exe'
  2286. - # FIXME: first we should search . and the directory the executable is in
  2287. - shlibpath_var=PATH
  2288. - ;;
  2289. -
  2290. -darwin* | rhapsody*)
  2291. - dynamic_linker="$host_os dyld"
  2292. - version_type=darwin
  2293. - need_lib_prefix=no
  2294. - need_version=no
  2295. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2296. - soname_spec='${libname}${release}${major}$shared_ext'
  2297. - shlibpath_overrides_runpath=yes
  2298. - shlibpath_var=DYLD_LIBRARY_PATH
  2299. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  2300. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2301. - if test "$GCC" = yes; then
  2302. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2303. - else
  2304. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2305. fi
  2306. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2307. + rm -rf conftest*
  2308. ;;
  2309. +esac
  2310. -dgux*)
  2311. - version_type=linux
  2312. - need_lib_prefix=no
  2313. - need_version=no
  2314. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2315. - soname_spec='${libname}${release}${shared_ext}$major'
  2316. - shlibpath_var=LD_LIBRARY_PATH
  2317. - ;;
  2318. +need_locks="$enable_libtool_lock"
  2319. +])# _LT_ENABLE_LOCK
  2320. -freebsd1*)
  2321. - dynamic_linker=no
  2322. - ;;
  2323. -kfreebsd*-gnu)
  2324. - version_type=linux
  2325. - need_lib_prefix=no
  2326. - need_version=no
  2327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2328. - soname_spec='${libname}${release}${shared_ext}$major'
  2329. - shlibpath_var=LD_LIBRARY_PATH
  2330. - shlibpath_overrides_runpath=no
  2331. - hardcode_into_libs=yes
  2332. - dynamic_linker='GNU ld.so'
  2333. - ;;
  2334. +# _LT_CMD_OLD_ARCHIVE
  2335. +# -------------------
  2336. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2337. +[AC_CHECK_TOOL(AR, ar, false)
  2338. +test -z "$AR" && AR=ar
  2339. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2340. +_LT_DECL([], [AR], [1], [The archiver])
  2341. +_LT_DECL([], [AR_FLAGS], [1])
  2342. -freebsd*)
  2343. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2344. - version_type=freebsd-$objformat
  2345. - case $version_type in
  2346. - freebsd-elf*)
  2347. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2348. - need_version=no
  2349. - need_lib_prefix=no
  2350. - ;;
  2351. - freebsd-*)
  2352. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2353. - need_version=yes
  2354. - ;;
  2355. - esac
  2356. - shlibpath_var=LD_LIBRARY_PATH
  2357. +AC_CHECK_TOOL(STRIP, strip, :)
  2358. +test -z "$STRIP" && STRIP=:
  2359. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2360. +
  2361. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2362. +test -z "$RANLIB" && RANLIB=:
  2363. +_LT_DECL([], [RANLIB], [1],
  2364. + [Commands used to install an old-style archive])
  2365. +
  2366. +# Determine commands to create old-style static archives.
  2367. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2368. +old_postinstall_cmds='chmod 644 $oldlib'
  2369. +old_postuninstall_cmds=
  2370. +
  2371. +if test -n "$RANLIB"; then
  2372. case $host_os in
  2373. - freebsd2*)
  2374. - shlibpath_overrides_runpath=yes
  2375. - ;;
  2376. - freebsd3.[01]* | freebsdelf3.[01]*)
  2377. - shlibpath_overrides_runpath=yes
  2378. - hardcode_into_libs=yes
  2379. + openbsd*)
  2380. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2381. ;;
  2382. - *) # from 3.2 on
  2383. - shlibpath_overrides_runpath=no
  2384. - hardcode_into_libs=yes
  2385. + *)
  2386. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2387. ;;
  2388. esac
  2389. - ;;
  2390. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2391. +fi
  2392. +_LT_DECL([], [old_postinstall_cmds], [2])
  2393. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2394. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2395. + [Commands used to build an old-style archive])
  2396. +])# _LT_CMD_OLD_ARCHIVE
  2397. -gnu*)
  2398. - version_type=linux
  2399. - need_lib_prefix=no
  2400. - need_version=no
  2401. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2402. - soname_spec='${libname}${release}${shared_ext}$major'
  2403. - shlibpath_var=LD_LIBRARY_PATH
  2404. - hardcode_into_libs=yes
  2405. - ;;
  2406. -hpux9* | hpux10* | hpux11*)
  2407. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2408. - # link against other versions.
  2409. - version_type=sunos
  2410. - need_lib_prefix=no
  2411. - need_version=no
  2412. - case "$host_cpu" in
  2413. - ia64*)
  2414. - shrext='.so'
  2415. - hardcode_into_libs=yes
  2416. - dynamic_linker="$host_os dld.so"
  2417. - shlibpath_var=LD_LIBRARY_PATH
  2418. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2419. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2420. - soname_spec='${libname}${release}${shared_ext}$major'
  2421. - if test "X$HPUX_IA64_MODE" = X32; then
  2422. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2423. - else
  2424. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2425. - fi
  2426. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2427. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2428. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2429. +# ----------------------------------------------------------------
  2430. +# Check whether the given compiler option works
  2431. +AC_DEFUN([_LT_COMPILER_OPTION],
  2432. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2433. +m4_require([_LT_DECL_SED])dnl
  2434. +AC_CACHE_CHECK([$1], [$2],
  2435. + [$2=no
  2436. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2437. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2438. + lt_compiler_flag="$3"
  2439. + # Insert the option either (1) after the last *FLAGS variable, or
  2440. + # (2) before a word containing "conftest.", or (3) at the end.
  2441. + # Note that $ac_compile itself does not contain backslashes and begins
  2442. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2443. + # The option is referenced via a variable to avoid confusing sed.
  2444. + lt_compile=`echo "$ac_compile" | $SED \
  2445. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2446. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2447. + -e 's:$: $lt_compiler_flag:'`
  2448. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2449. + (eval "$lt_compile" 2>conftest.err)
  2450. + ac_status=$?
  2451. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2452. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2453. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2454. + # The compiler can only warn and ignore the option if not recognized
  2455. + # So say no if there are warnings other than the usual output.
  2456. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2457. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2458. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2459. + $2=yes
  2460. + fi
  2461. + fi
  2462. + $RM conftest*
  2463. +])
  2464. +
  2465. +if test x"[$]$2" = xyes; then
  2466. + m4_if([$5], , :, [$5])
  2467. +else
  2468. + m4_if([$6], , :, [$6])
  2469. +fi
  2470. +])# _LT_COMPILER_OPTION
  2471. +
  2472. +# Old name:
  2473. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2474. +dnl aclocal-1.4 backwards compatibility:
  2475. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2476. +
  2477. +
  2478. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2479. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2480. +# ----------------------------------------------------
  2481. +# Check whether the given linker option works
  2482. +AC_DEFUN([_LT_LINKER_OPTION],
  2483. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2484. +m4_require([_LT_DECL_SED])dnl
  2485. +AC_CACHE_CHECK([$1], [$2],
  2486. + [$2=no
  2487. + save_LDFLAGS="$LDFLAGS"
  2488. + LDFLAGS="$LDFLAGS $3"
  2489. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2490. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2491. + # The linker can only warn and ignore the option if not recognized
  2492. + # So say no if there are warnings
  2493. + if test -s conftest.err; then
  2494. + # Append any errors to the config.log.
  2495. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2496. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2497. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2498. + if diff conftest.exp conftest.er2 >/dev/null; then
  2499. + $2=yes
  2500. + fi
  2501. + else
  2502. + $2=yes
  2503. + fi
  2504. + fi
  2505. + $RM -r conftest*
  2506. + LDFLAGS="$save_LDFLAGS"
  2507. +])
  2508. +
  2509. +if test x"[$]$2" = xyes; then
  2510. + m4_if([$4], , :, [$4])
  2511. +else
  2512. + m4_if([$5], , :, [$5])
  2513. +fi
  2514. +])# _LT_LINKER_OPTION
  2515. +
  2516. +# Old name:
  2517. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2518. +dnl aclocal-1.4 backwards compatibility:
  2519. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2520. +
  2521. +
  2522. +# LT_CMD_MAX_LEN
  2523. +#---------------
  2524. +AC_DEFUN([LT_CMD_MAX_LEN],
  2525. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2526. +# find the maximum length of command line arguments
  2527. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2528. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2529. + i=0
  2530. + teststring="ABCD"
  2531. +
  2532. + case $build_os in
  2533. + msdosdjgpp*)
  2534. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2535. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2536. + # during glob expansion). Even if it were fixed, the result of this
  2537. + # check would be larger than it should be.
  2538. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2539. ;;
  2540. - hppa*64*)
  2541. - shrext='.sl'
  2542. - hardcode_into_libs=yes
  2543. - dynamic_linker="$host_os dld.sl"
  2544. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2545. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2546. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2547. - soname_spec='${libname}${release}${shared_ext}$major'
  2548. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2549. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2550. - ;;
  2551. - *)
  2552. - shrext='.sl'
  2553. - dynamic_linker="$host_os dld.sl"
  2554. - shlibpath_var=SHLIB_PATH
  2555. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2556. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2557. - soname_spec='${libname}${release}${shared_ext}$major'
  2558. +
  2559. + gnu*)
  2560. + # Under GNU Hurd, this test is not required because there is
  2561. + # no limit to the length of command line arguments.
  2562. + # Libtool will interpret -1 as no limit whatsoever
  2563. + lt_cv_sys_max_cmd_len=-1;
  2564. ;;
  2565. - esac
  2566. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2567. - postinstall_cmds='chmod 555 $lib'
  2568. - ;;
  2569. -irix5* | irix6* | nonstopux*)
  2570. - case $host_os in
  2571. - nonstopux*) version_type=nonstopux ;;
  2572. - *)
  2573. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2574. - version_type=linux
  2575. - else
  2576. - version_type=irix
  2577. - fi ;;
  2578. - esac
  2579. - need_lib_prefix=no
  2580. - need_version=no
  2581. - soname_spec='${libname}${release}${shared_ext}$major'
  2582. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2583. - case $host_os in
  2584. - irix5* | nonstopux*)
  2585. - libsuff= shlibsuff=
  2586. + cygwin* | mingw* | cegcc*)
  2587. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2588. + # about 5 minutes as the teststring grows exponentially.
  2589. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2590. + # you end up with a "frozen" computer, even though with patience
  2591. + # the test eventually succeeds (with a max line length of 256k).
  2592. + # Instead, let's just punt: use the minimum linelength reported by
  2593. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2594. + lt_cv_sys_max_cmd_len=8192;
  2595. + ;;
  2596. +
  2597. + amigaos*)
  2598. + # On AmigaOS with pdksh, this test takes hours, literally.
  2599. + # So we just punt and use a minimum line length of 8192.
  2600. + lt_cv_sys_max_cmd_len=8192;
  2601. + ;;
  2602. +
  2603. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2604. + # This has been around since 386BSD, at least. Likely further.
  2605. + if test -x /sbin/sysctl; then
  2606. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2607. + elif test -x /usr/sbin/sysctl; then
  2608. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2609. + else
  2610. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2611. + fi
  2612. + # And add a safety zone
  2613. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2614. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2615. + ;;
  2616. +
  2617. + interix*)
  2618. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2619. + lt_cv_sys_max_cmd_len=196608
  2620. + ;;
  2621. +
  2622. + osf*)
  2623. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2624. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2625. + # nice to cause kernel panics so lets avoid the loop below.
  2626. + # First set a reasonable default.
  2627. + lt_cv_sys_max_cmd_len=16384
  2628. + #
  2629. + if test -x /sbin/sysconfig; then
  2630. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2631. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2632. + esac
  2633. + fi
  2634. + ;;
  2635. + sco3.2v5*)
  2636. + lt_cv_sys_max_cmd_len=102400
  2637. + ;;
  2638. + sysv5* | sco5v6* | sysv4.2uw2*)
  2639. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2640. + if test -n "$kargmax"; then
  2641. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2642. + else
  2643. + lt_cv_sys_max_cmd_len=32768
  2644. + fi
  2645. ;;
  2646. *)
  2647. - case $LD in # libtool.m4 will add one of these switches to LD
  2648. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2649. - libsuff= shlibsuff= libmagic=32-bit;;
  2650. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2651. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2652. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2653. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2654. - *) libsuff= shlibsuff= libmagic=never-match;;
  2655. - esac
  2656. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2657. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2658. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2659. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2660. + else
  2661. + # Make teststring a little bigger before we do anything with it.
  2662. + # a 1K string should be a reasonable start.
  2663. + for i in 1 2 3 4 5 6 7 8 ; do
  2664. + teststring=$teststring$teststring
  2665. + done
  2666. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2667. + # If test is not a shell built-in, we'll probably end up computing a
  2668. + # maximum length that is only half of the actual maximum length, but
  2669. + # we can't tell.
  2670. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2671. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2672. + test $i != 17 # 1/2 MB should be enough
  2673. + do
  2674. + i=`expr $i + 1`
  2675. + teststring=$teststring$teststring
  2676. + done
  2677. + # Only check the string length outside the loop.
  2678. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2679. + teststring=
  2680. + # Add a significant safety factor because C++ compilers can tack on
  2681. + # massive amounts of additional arguments before passing them to the
  2682. + # linker. It appears as though 1/2 is a usable value.
  2683. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2684. + fi
  2685. ;;
  2686. esac
  2687. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2688. - shlibpath_overrides_runpath=no
  2689. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2690. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2691. - hardcode_into_libs=yes
  2692. - ;;
  2693. +])
  2694. +if test -n $lt_cv_sys_max_cmd_len ; then
  2695. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2696. +else
  2697. + AC_MSG_RESULT(none)
  2698. +fi
  2699. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2700. +_LT_DECL([], [max_cmd_len], [0],
  2701. + [What is the maximum length of a command?])
  2702. +])# LT_CMD_MAX_LEN
  2703. -# No shared lib support for Linux oldld, aout, or coff.
  2704. -linux*oldld* | linux*aout* | linux*coff*)
  2705. - dynamic_linker=no
  2706. - ;;
  2707. +# Old name:
  2708. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2709. +dnl aclocal-1.4 backwards compatibility:
  2710. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2711. -# This must be Linux ELF.
  2712. -linux*)
  2713. - version_type=linux
  2714. - need_lib_prefix=no
  2715. - need_version=no
  2716. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2717. - soname_spec='${libname}${release}${shared_ext}$major'
  2718. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2719. - shlibpath_var=LD_LIBRARY_PATH
  2720. - shlibpath_overrides_runpath=no
  2721. - # This implies no fast_install, which is unacceptable.
  2722. - # Some rework will be needed to allow for fast_install
  2723. - # before this can be enabled.
  2724. - hardcode_into_libs=yes
  2725. - # Append ld.so.conf contents to the search path
  2726. - if test -f /etc/ld.so.conf; then
  2727. - ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf`
  2728. - sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  2729. - fi
  2730. +# _LT_HEADER_DLFCN
  2731. +# ----------------
  2732. +m4_defun([_LT_HEADER_DLFCN],
  2733. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2734. +])# _LT_HEADER_DLFCN
  2735. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2736. - # powerpc, because MkLinux only supported shared libraries with the
  2737. - # GNU dynamic linker. Since this was broken with cross compilers,
  2738. - # most powerpc-linux boxes support dynamic linking these days and
  2739. - # people can always --disable-shared, the test was removed, and we
  2740. - # assume the GNU/Linux dynamic linker is in use.
  2741. - dynamic_linker='GNU/Linux ld.so'
  2742. - ;;
  2743. -knetbsd*-gnu)
  2744. - version_type=linux
  2745. - need_lib_prefix=no
  2746. - need_version=no
  2747. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2748. - soname_spec='${libname}${release}${shared_ext}$major'
  2749. - shlibpath_var=LD_LIBRARY_PATH
  2750. - shlibpath_overrides_runpath=no
  2751. - hardcode_into_libs=yes
  2752. - dynamic_linker='GNU ld.so'
  2753. - ;;
  2754. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2755. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2756. +# ----------------------------------------------------------------
  2757. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2758. +[m4_require([_LT_HEADER_DLFCN])dnl
  2759. +if test "$cross_compiling" = yes; then :
  2760. + [$4]
  2761. +else
  2762. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2763. + lt_status=$lt_dlunknown
  2764. + cat > conftest.$ac_ext <<_LT_EOF
  2765. +[#line __oline__ "configure"
  2766. +#include "confdefs.h"
  2767. -netbsd*)
  2768. - version_type=sunos
  2769. - need_lib_prefix=no
  2770. - need_version=no
  2771. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2772. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2773. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2774. - dynamic_linker='NetBSD (a.out) ld.so'
  2775. - else
  2776. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2777. - soname_spec='${libname}${release}${shared_ext}$major'
  2778. - dynamic_linker='NetBSD ld.elf_so'
  2779. - fi
  2780. - shlibpath_var=LD_LIBRARY_PATH
  2781. - shlibpath_overrides_runpath=yes
  2782. - hardcode_into_libs=yes
  2783. - ;;
  2784. +#if HAVE_DLFCN_H
  2785. +#include <dlfcn.h>
  2786. +#endif
  2787. -newsos6)
  2788. - version_type=linux
  2789. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2790. - shlibpath_var=LD_LIBRARY_PATH
  2791. - shlibpath_overrides_runpath=yes
  2792. - ;;
  2793. +#include <stdio.h>
  2794. -nto-qnx*)
  2795. - version_type=linux
  2796. - need_lib_prefix=no
  2797. - need_version=no
  2798. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2799. - soname_spec='${libname}${release}${shared_ext}$major'
  2800. - shlibpath_var=LD_LIBRARY_PATH
  2801. - shlibpath_overrides_runpath=yes
  2802. - ;;
  2803. +#ifdef RTLD_GLOBAL
  2804. +# define LT_DLGLOBAL RTLD_GLOBAL
  2805. +#else
  2806. +# ifdef DL_GLOBAL
  2807. +# define LT_DLGLOBAL DL_GLOBAL
  2808. +# else
  2809. +# define LT_DLGLOBAL 0
  2810. +# endif
  2811. +#endif
  2812. -openbsd*)
  2813. - version_type=sunos
  2814. - need_lib_prefix=no
  2815. - need_version=yes
  2816. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2817. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2818. - shlibpath_var=LD_LIBRARY_PATH
  2819. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2820. - case $host_os in
  2821. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2822. - shlibpath_overrides_runpath=no
  2823. - ;;
  2824. - *)
  2825. - shlibpath_overrides_runpath=yes
  2826. - ;;
  2827. - esac
  2828. - else
  2829. - shlibpath_overrides_runpath=yes
  2830. - fi
  2831. - ;;
  2832. -
  2833. -os2*)
  2834. - libname_spec='$name'
  2835. - shrext=".dll"
  2836. - need_lib_prefix=no
  2837. - library_names_spec='$libname${shared_ext} $libname.a'
  2838. - dynamic_linker='OS/2 ld.exe'
  2839. - shlibpath_var=LIBPATH
  2840. - ;;
  2841. -
  2842. -osf3* | osf4* | osf5*)
  2843. - version_type=osf
  2844. - need_lib_prefix=no
  2845. - need_version=no
  2846. - soname_spec='${libname}${release}${shared_ext}$major'
  2847. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2848. - shlibpath_var=LD_LIBRARY_PATH
  2849. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2850. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2851. - ;;
  2852. -
  2853. -sco3.2v5*)
  2854. - version_type=osf
  2855. - soname_spec='${libname}${release}${shared_ext}$major'
  2856. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2857. - shlibpath_var=LD_LIBRARY_PATH
  2858. - ;;
  2859. -
  2860. -solaris*)
  2861. - version_type=linux
  2862. - need_lib_prefix=no
  2863. - need_version=no
  2864. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2865. - soname_spec='${libname}${release}${shared_ext}$major'
  2866. - shlibpath_var=LD_LIBRARY_PATH
  2867. - shlibpath_overrides_runpath=yes
  2868. - hardcode_into_libs=yes
  2869. - # ldd complains unless libraries are executable
  2870. - postinstall_cmds='chmod +x $lib'
  2871. - ;;
  2872. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2873. + find out it does not work in some platform. */
  2874. +#ifndef LT_DLLAZY_OR_NOW
  2875. +# ifdef RTLD_LAZY
  2876. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2877. +# else
  2878. +# ifdef DL_LAZY
  2879. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2880. +# else
  2881. +# ifdef RTLD_NOW
  2882. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2883. +# else
  2884. +# ifdef DL_NOW
  2885. +# define LT_DLLAZY_OR_NOW DL_NOW
  2886. +# else
  2887. +# define LT_DLLAZY_OR_NOW 0
  2888. +# endif
  2889. +# endif
  2890. +# endif
  2891. +# endif
  2892. +#endif
  2893. -sunos4*)
  2894. - version_type=sunos
  2895. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2896. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2897. - shlibpath_var=LD_LIBRARY_PATH
  2898. - shlibpath_overrides_runpath=yes
  2899. - if test "$with_gnu_ld" = yes; then
  2900. - need_lib_prefix=no
  2901. - fi
  2902. - need_version=yes
  2903. - ;;
  2904. +void fnord() { int i=42;}
  2905. +int main ()
  2906. +{
  2907. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2908. + int status = $lt_dlunknown;
  2909. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2910. - version_type=linux
  2911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2912. - soname_spec='${libname}${release}${shared_ext}$major'
  2913. - shlibpath_var=LD_LIBRARY_PATH
  2914. - case $host_vendor in
  2915. - sni)
  2916. - shlibpath_overrides_runpath=no
  2917. - need_lib_prefix=no
  2918. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2919. - runpath_var=LD_RUN_PATH
  2920. - ;;
  2921. - siemens)
  2922. - need_lib_prefix=no
  2923. - ;;
  2924. - motorola)
  2925. - need_lib_prefix=no
  2926. - need_version=no
  2927. - shlibpath_overrides_runpath=no
  2928. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2929. - ;;
  2930. - esac
  2931. - ;;
  2932. + if (self)
  2933. + {
  2934. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2935. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2936. + /* dlclose (self); */
  2937. + }
  2938. + else
  2939. + puts (dlerror ());
  2940. -sysv4*MP*)
  2941. - if test -d /usr/nec ;then
  2942. - version_type=linux
  2943. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2944. - soname_spec='$libname${shared_ext}.$major'
  2945. - shlibpath_var=LD_LIBRARY_PATH
  2946. + return status;
  2947. +}]
  2948. +_LT_EOF
  2949. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2950. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2951. + lt_status=$?
  2952. + case x$lt_status in
  2953. + x$lt_dlno_uscore) $1 ;;
  2954. + x$lt_dlneed_uscore) $2 ;;
  2955. + x$lt_dlunknown|x*) $3 ;;
  2956. + esac
  2957. + else :
  2958. + # compilation failed
  2959. + $3
  2960. fi
  2961. - ;;
  2962. -
  2963. -uts4*)
  2964. - version_type=linux
  2965. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2966. - soname_spec='${libname}${release}${shared_ext}$major'
  2967. - shlibpath_var=LD_LIBRARY_PATH
  2968. - ;;
  2969. +fi
  2970. +rm -fr conftest*
  2971. +])# _LT_TRY_DLOPEN_SELF
  2972. -*)
  2973. - dynamic_linker=no
  2974. - ;;
  2975. -esac
  2976. -AC_MSG_RESULT([$dynamic_linker])
  2977. -test "$dynamic_linker" = no && can_build_shared=no
  2978. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2979. +# LT_SYS_DLOPEN_SELF
  2980. +# ------------------
  2981. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  2982. +[m4_require([_LT_HEADER_DLFCN])dnl
  2983. +if test "x$enable_dlopen" != xyes; then
  2984. + enable_dlopen=unknown
  2985. + enable_dlopen_self=unknown
  2986. + enable_dlopen_self_static=unknown
  2987. +else
  2988. + lt_cv_dlopen=no
  2989. + lt_cv_dlopen_libs=
  2990. -# _LT_AC_TAGCONFIG
  2991. -# ----------------
  2992. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2993. -[AC_ARG_WITH([tags],
  2994. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2995. - [include additional configurations @<:@automatic@:>@])],
  2996. - [tagnames="$withval"])
  2997. -
  2998. -if test -f "$ltmain" && test -n "$tagnames"; then
  2999. - if test ! -f "${ofile}"; then
  3000. - AC_MSG_WARN([output file `$ofile' does not exist])
  3001. - fi
  3002. + case $host_os in
  3003. + beos*)
  3004. + lt_cv_dlopen="load_add_on"
  3005. + lt_cv_dlopen_libs=
  3006. + lt_cv_dlopen_self=yes
  3007. + ;;
  3008. - if test -z "$LTCC"; then
  3009. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3010. - if test -z "$LTCC"; then
  3011. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3012. - else
  3013. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3014. - fi
  3015. - fi
  3016. + mingw* | pw32* | cegcc*)
  3017. + lt_cv_dlopen="LoadLibrary"
  3018. + lt_cv_dlopen_libs=
  3019. + ;;
  3020. - # Extract list of available tagged configurations in $ofile.
  3021. - # Note that this assumes the entire list is on one line.
  3022. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3023. + cygwin*)
  3024. + lt_cv_dlopen="dlopen"
  3025. + lt_cv_dlopen_libs=
  3026. + ;;
  3027. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3028. - for tagname in $tagnames; do
  3029. - IFS="$lt_save_ifs"
  3030. - # Check whether tagname contains only valid characters
  3031. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3032. - "") ;;
  3033. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3034. - ;;
  3035. - esac
  3036. + darwin*)
  3037. + # if libdl is installed we need to link against it
  3038. + AC_CHECK_LIB([dl], [dlopen],
  3039. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3040. + lt_cv_dlopen="dyld"
  3041. + lt_cv_dlopen_libs=
  3042. + lt_cv_dlopen_self=yes
  3043. + ])
  3044. + ;;
  3045. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3046. - then
  3047. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3048. - fi
  3049. + *)
  3050. + AC_CHECK_FUNC([shl_load],
  3051. + [lt_cv_dlopen="shl_load"],
  3052. + [AC_CHECK_LIB([dld], [shl_load],
  3053. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3054. + [AC_CHECK_FUNC([dlopen],
  3055. + [lt_cv_dlopen="dlopen"],
  3056. + [AC_CHECK_LIB([dl], [dlopen],
  3057. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3058. + [AC_CHECK_LIB([svld], [dlopen],
  3059. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3060. + [AC_CHECK_LIB([dld], [dld_link],
  3061. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3062. + ])
  3063. + ])
  3064. + ])
  3065. + ])
  3066. + ])
  3067. + ;;
  3068. + esac
  3069. - # Update the list of available tags.
  3070. - if test -n "$tagname"; then
  3071. - echo appending configuration tag \"$tagname\" to $ofile
  3072. -
  3073. - case $tagname in
  3074. - CXX)
  3075. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  3076. - AC_LIBTOOL_LANG_CXX_CONFIG
  3077. - else
  3078. - tagname=""
  3079. - fi
  3080. - ;;
  3081. + if test "x$lt_cv_dlopen" != xno; then
  3082. + enable_dlopen=yes
  3083. + else
  3084. + enable_dlopen=no
  3085. + fi
  3086. - F77)
  3087. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3088. - AC_LIBTOOL_LANG_F77_CONFIG
  3089. - else
  3090. - tagname=""
  3091. - fi
  3092. - ;;
  3093. + case $lt_cv_dlopen in
  3094. + dlopen)
  3095. + save_CPPFLAGS="$CPPFLAGS"
  3096. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3097. - GCJ)
  3098. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3099. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3100. - else
  3101. - tagname=""
  3102. - fi
  3103. - ;;
  3104. + save_LDFLAGS="$LDFLAGS"
  3105. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3106. - RC)
  3107. - AC_LIBTOOL_LANG_RC_CONFIG
  3108. - ;;
  3109. + save_LIBS="$LIBS"
  3110. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3111. - *)
  3112. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3113. - ;;
  3114. - esac
  3115. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3116. + lt_cv_dlopen_self, [dnl
  3117. + _LT_TRY_DLOPEN_SELF(
  3118. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3119. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3120. + ])
  3121. - # Append the new tag name to the list of available tags.
  3122. - if test -n "$tagname" ; then
  3123. - available_tags="$available_tags $tagname"
  3124. - fi
  3125. + if test "x$lt_cv_dlopen_self" = xyes; then
  3126. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3127. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3128. + lt_cv_dlopen_self_static, [dnl
  3129. + _LT_TRY_DLOPEN_SELF(
  3130. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3131. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3132. + ])
  3133. fi
  3134. - done
  3135. - IFS="$lt_save_ifs"
  3136. -
  3137. - # Now substitute the updated list of available tags.
  3138. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3139. - mv "${ofile}T" "$ofile"
  3140. - chmod +x "$ofile"
  3141. - else
  3142. - rm -f "${ofile}T"
  3143. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3144. - fi
  3145. -fi
  3146. -])# _LT_AC_TAGCONFIG
  3147. + CPPFLAGS="$save_CPPFLAGS"
  3148. + LDFLAGS="$save_LDFLAGS"
  3149. + LIBS="$save_LIBS"
  3150. + ;;
  3151. + esac
  3152. -# AC_LIBTOOL_DLOPEN
  3153. -# -----------------
  3154. -# enable checks for dlopen support
  3155. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3156. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3157. -])# AC_LIBTOOL_DLOPEN
  3158. -
  3159. + case $lt_cv_dlopen_self in
  3160. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3161. + *) enable_dlopen_self=unknown ;;
  3162. + esac
  3163. -# AC_LIBTOOL_WIN32_DLL
  3164. -# --------------------
  3165. -# declare package support for building win32 dll's
  3166. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3167. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3168. -])# AC_LIBTOOL_WIN32_DLL
  3169. + case $lt_cv_dlopen_self_static in
  3170. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3171. + *) enable_dlopen_self_static=unknown ;;
  3172. + esac
  3173. +fi
  3174. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3175. + [Whether dlopen is supported])
  3176. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3177. + [Whether dlopen of programs is supported])
  3178. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3179. + [Whether dlopen of statically linked programs is supported])
  3180. +])# LT_SYS_DLOPEN_SELF
  3181. +
  3182. +# Old name:
  3183. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3184. +dnl aclocal-1.4 backwards compatibility:
  3185. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3186. -# AC_ENABLE_SHARED([DEFAULT])
  3187. +# _LT_COMPILER_C_O([TAGNAME])
  3188. # ---------------------------
  3189. -# implement the --enable-shared flag
  3190. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3191. -AC_DEFUN([AC_ENABLE_SHARED],
  3192. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3193. -AC_ARG_ENABLE([shared],
  3194. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3195. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3196. - [p=${PACKAGE-default}
  3197. - case $enableval in
  3198. - yes) enable_shared=yes ;;
  3199. - no) enable_shared=no ;;
  3200. - *)
  3201. - enable_shared=no
  3202. - # Look at the argument we got. We use all the common list separators.
  3203. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3204. - for pkg in $enableval; do
  3205. - IFS="$lt_save_ifs"
  3206. - if test "X$pkg" = "X$p"; then
  3207. - enable_shared=yes
  3208. - fi
  3209. - done
  3210. - IFS="$lt_save_ifs"
  3211. - ;;
  3212. - esac],
  3213. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3214. -])# AC_ENABLE_SHARED
  3215. -
  3216. -
  3217. -# AC_DISABLE_SHARED
  3218. -# -----------------
  3219. -#- set the default shared flag to --disable-shared
  3220. -AC_DEFUN([AC_DISABLE_SHARED],
  3221. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3222. -AC_ENABLE_SHARED(no)
  3223. -])# AC_DISABLE_SHARED
  3224. -
  3225. -
  3226. -# AC_ENABLE_STATIC([DEFAULT])
  3227. -# ---------------------------
  3228. -# implement the --enable-static flag
  3229. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3230. -AC_DEFUN([AC_ENABLE_STATIC],
  3231. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3232. -AC_ARG_ENABLE([static],
  3233. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3234. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3235. - [p=${PACKAGE-default}
  3236. - case $enableval in
  3237. - yes) enable_static=yes ;;
  3238. - no) enable_static=no ;;
  3239. - *)
  3240. - enable_static=no
  3241. - # Look at the argument we got. We use all the common list separators.
  3242. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3243. - for pkg in $enableval; do
  3244. - IFS="$lt_save_ifs"
  3245. - if test "X$pkg" = "X$p"; then
  3246. - enable_static=yes
  3247. - fi
  3248. - done
  3249. - IFS="$lt_save_ifs"
  3250. - ;;
  3251. - esac],
  3252. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3253. -])# AC_ENABLE_STATIC
  3254. -
  3255. -
  3256. -# AC_DISABLE_STATIC
  3257. -# -----------------
  3258. -# set the default static flag to --disable-static
  3259. -AC_DEFUN([AC_DISABLE_STATIC],
  3260. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3261. -AC_ENABLE_STATIC(no)
  3262. -])# AC_DISABLE_STATIC
  3263. -
  3264. -
  3265. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3266. -# ---------------------------------
  3267. -# implement the --enable-fast-install flag
  3268. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3269. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3270. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3271. -AC_ARG_ENABLE([fast-install],
  3272. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3273. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3274. - [p=${PACKAGE-default}
  3275. - case $enableval in
  3276. - yes) enable_fast_install=yes ;;
  3277. - no) enable_fast_install=no ;;
  3278. - *)
  3279. - enable_fast_install=no
  3280. - # Look at the argument we got. We use all the common list separators.
  3281. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3282. - for pkg in $enableval; do
  3283. - IFS="$lt_save_ifs"
  3284. - if test "X$pkg" = "X$p"; then
  3285. - enable_fast_install=yes
  3286. - fi
  3287. - done
  3288. - IFS="$lt_save_ifs"
  3289. - ;;
  3290. - esac],
  3291. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3292. -])# AC_ENABLE_FAST_INSTALL
  3293. -
  3294. -
  3295. -# AC_DISABLE_FAST_INSTALL
  3296. -# -----------------------
  3297. -# set the default to --disable-fast-install
  3298. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3299. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3300. -AC_ENABLE_FAST_INSTALL(no)
  3301. -])# AC_DISABLE_FAST_INSTALL
  3302. -
  3303. -
  3304. -# AC_LIBTOOL_PICMODE([MODE])
  3305. -# --------------------------
  3306. -# implement the --with-pic flag
  3307. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3308. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3309. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3310. -pic_mode=ifelse($#,1,$1,default)
  3311. -])# AC_LIBTOOL_PICMODE
  3312. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3313. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3314. +m4_defun([_LT_COMPILER_C_O],
  3315. +[m4_require([_LT_DECL_SED])dnl
  3316. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3317. +m4_require([_LT_TAG_COMPILER])dnl
  3318. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3319. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3320. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3321. + $RM -r conftest 2>/dev/null
  3322. + mkdir conftest
  3323. + cd conftest
  3324. + mkdir out
  3325. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3326. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3327. + # Insert the option either (1) after the last *FLAGS variable, or
  3328. + # (2) before a word containing "conftest.", or (3) at the end.
  3329. + # Note that $ac_compile itself does not contain backslashes and begins
  3330. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3331. + lt_compile=`echo "$ac_compile" | $SED \
  3332. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3333. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3334. + -e 's:$: $lt_compiler_flag:'`
  3335. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3336. + (eval "$lt_compile" 2>out/conftest.err)
  3337. + ac_status=$?
  3338. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3339. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3340. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3341. + then
  3342. + # The compiler can only warn and ignore the option if not recognized
  3343. + # So say no if there are warnings
  3344. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3345. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3346. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3347. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3348. + fi
  3349. + fi
  3350. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3351. + $RM conftest*
  3352. + # SGI C++ compiler will create directory out/ii_files/ for
  3353. + # template instantiation
  3354. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3355. + $RM out/* && rmdir out
  3356. + cd ..
  3357. + $RM -r conftest
  3358. + $RM conftest*
  3359. +])
  3360. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3361. + [Does compiler simultaneously support -c and -o options?])
  3362. +])# _LT_COMPILER_C_O
  3363. -# AC_PROG_EGREP
  3364. -# -------------
  3365. -# This is predefined starting with Autoconf 2.54, so this conditional
  3366. -# definition can be removed once we require Autoconf 2.54 or later.
  3367. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3368. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3369. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3370. - then ac_cv_prog_egrep='grep -E'
  3371. - else ac_cv_prog_egrep='egrep'
  3372. - fi])
  3373. - EGREP=$ac_cv_prog_egrep
  3374. - AC_SUBST([EGREP])
  3375. -])])
  3376. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3377. +# ----------------------------------
  3378. +# Check to see if we can do hard links to lock some files if needed
  3379. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3380. +[m4_require([_LT_ENABLE_LOCK])dnl
  3381. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3382. +_LT_COMPILER_C_O([$1])
  3383. -# AC_PATH_TOOL_PREFIX
  3384. -# -------------------
  3385. -# find a file program which can recognise shared library
  3386. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3387. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3388. -AC_MSG_CHECKING([for $1])
  3389. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3390. -[case $MAGIC_CMD in
  3391. -[[\\/*] | ?:[\\/]*])
  3392. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3393. - ;;
  3394. -*)
  3395. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3396. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3397. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3398. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3399. -dnl not every word. This closes a longstanding sh security hole.
  3400. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3401. - for ac_dir in $ac_dummy; do
  3402. - IFS="$lt_save_ifs"
  3403. - test -z "$ac_dir" && ac_dir=.
  3404. - if test -f $ac_dir/$1; then
  3405. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3406. - if test -n "$file_magic_test_file"; then
  3407. - case $deplibs_check_method in
  3408. - "file_magic "*)
  3409. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3410. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3411. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3412. - $EGREP "$file_magic_regex" > /dev/null; then
  3413. - :
  3414. - else
  3415. - cat <<EOF 1>&2
  3416. +hard_links="nottested"
  3417. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3418. + # do not overwrite the value of need_locks provided by the user
  3419. + AC_MSG_CHECKING([if we can lock with hard links])
  3420. + hard_links=yes
  3421. + $RM conftest*
  3422. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3423. + touch conftest.a
  3424. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3425. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3426. + AC_MSG_RESULT([$hard_links])
  3427. + if test "$hard_links" = no; then
  3428. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3429. + need_locks=warn
  3430. + fi
  3431. +else
  3432. + need_locks=no
  3433. +fi
  3434. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3435. +])# _LT_COMPILER_FILE_LOCKS
  3436. -*** Warning: the command libtool uses to detect shared libraries,
  3437. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3438. -*** The result is that libtool may fail to recognize shared libraries
  3439. -*** as such. This will affect the creation of libtool libraries that
  3440. -*** depend on shared libraries, but programs linked with such libtool
  3441. -*** libraries will work regardless of this problem. Nevertheless, you
  3442. -*** may want to report the problem to your system manager and/or to
  3443. -*** bug-libtool@gnu.org
  3444. -EOF
  3445. - fi ;;
  3446. - esac
  3447. - fi
  3448. - break
  3449. - fi
  3450. - done
  3451. - IFS="$lt_save_ifs"
  3452. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3453. - ;;
  3454. -esac])
  3455. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3456. -if test -n "$MAGIC_CMD"; then
  3457. - AC_MSG_RESULT($MAGIC_CMD)
  3458. +# _LT_CHECK_OBJDIR
  3459. +# ----------------
  3460. +m4_defun([_LT_CHECK_OBJDIR],
  3461. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3462. +[rm -f .libs 2>/dev/null
  3463. +mkdir .libs 2>/dev/null
  3464. +if test -d .libs; then
  3465. + lt_cv_objdir=.libs
  3466. else
  3467. - AC_MSG_RESULT(no)
  3468. + # MS-DOS does not allow filenames that begin with a dot.
  3469. + lt_cv_objdir=_libs
  3470. fi
  3471. -])# AC_PATH_TOOL_PREFIX
  3472. +rmdir .libs 2>/dev/null])
  3473. +objdir=$lt_cv_objdir
  3474. +_LT_DECL([], [objdir], [0],
  3475. + [The name of the directory that contains temporary libtool files])dnl
  3476. +m4_pattern_allow([LT_OBJDIR])dnl
  3477. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3478. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3479. +])# _LT_CHECK_OBJDIR
  3480. -# AC_PATH_MAGIC
  3481. -# -------------
  3482. -# find a file program which can recognise a shared library
  3483. -AC_DEFUN([AC_PATH_MAGIC],
  3484. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3485. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3486. - if test -n "$ac_tool_prefix"; then
  3487. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3488. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3489. +# --------------------------------------
  3490. +# Check hardcoding attributes.
  3491. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3492. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3493. +_LT_TAGVAR(hardcode_action, $1)=
  3494. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3495. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3496. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3497. +
  3498. + # We can hardcode non-existent directories.
  3499. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3500. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3501. + # have to relink, otherwise we might link with an installed library
  3502. + # when we should be linking with a yet-to-be-installed one
  3503. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3504. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3505. + # Linking always hardcodes the temporary library directory.
  3506. + _LT_TAGVAR(hardcode_action, $1)=relink
  3507. else
  3508. - MAGIC_CMD=:
  3509. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3510. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3511. fi
  3512. +else
  3513. + # We cannot hardcode anything, or else we can only hardcode existing
  3514. + # directories.
  3515. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3516. fi
  3517. -])# AC_PATH_MAGIC
  3518. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3519. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3520. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3521. + # Fast installation is not supported
  3522. + enable_fast_install=no
  3523. +elif test "$shlibpath_overrides_runpath" = yes ||
  3524. + test "$enable_shared" = no; then
  3525. + # Fast installation is not necessary
  3526. + enable_fast_install=needless
  3527. +fi
  3528. +_LT_TAGDECL([], [hardcode_action], [0],
  3529. + [How to hardcode a shared library path into an executable])
  3530. +])# _LT_LINKER_HARDCODE_LIBPATH
  3531. -# AC_PROG_LD
  3532. -# ----------
  3533. -# find the pathname to the GNU or non-GNU linker
  3534. -AC_DEFUN([AC_PROG_LD],
  3535. -[AC_ARG_WITH([gnu-ld],
  3536. - [AC_HELP_STRING([--with-gnu-ld],
  3537. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3538. - [test "$withval" = no || with_gnu_ld=yes],
  3539. - [with_gnu_ld=no])
  3540. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3541. -AC_REQUIRE([AC_PROG_CC])dnl
  3542. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3543. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3544. -ac_prog=ld
  3545. -if test "$GCC" = yes; then
  3546. - # Check if gcc -print-prog-name=ld gives a path.
  3547. - AC_MSG_CHECKING([for ld used by $CC])
  3548. - case $host in
  3549. - *-*-mingw*)
  3550. - # gcc leaves a trailing carriage return which upsets mingw
  3551. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3552. - *)
  3553. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3554. - esac
  3555. - case $ac_prog in
  3556. - # Accept absolute paths.
  3557. - [[\\/]]* | ?:[[\\/]]*)
  3558. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3559. - # Canonicalize the pathname of ld
  3560. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3561. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3562. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3563. - done
  3564. - test -z "$LD" && LD="$ac_prog"
  3565. - ;;
  3566. - "")
  3567. - # If it fails, then pretend we aren't using GCC.
  3568. - ac_prog=ld
  3569. +
  3570. +# _LT_CMD_STRIPLIB
  3571. +# ----------------
  3572. +m4_defun([_LT_CMD_STRIPLIB],
  3573. +[m4_require([_LT_DECL_EGREP])
  3574. +striplib=
  3575. +old_striplib=
  3576. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3577. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3578. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3579. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3580. + AC_MSG_RESULT([yes])
  3581. +else
  3582. +# FIXME - insert some real tests, host_os isn't really good enough
  3583. + case $host_os in
  3584. + darwin*)
  3585. + if test -n "$STRIP" ; then
  3586. + striplib="$STRIP -x"
  3587. + old_striplib="$STRIP -S"
  3588. + AC_MSG_RESULT([yes])
  3589. + else
  3590. + AC_MSG_RESULT([no])
  3591. + fi
  3592. ;;
  3593. *)
  3594. - # If it is relative, then search for the first ld in PATH.
  3595. - with_gnu_ld=unknown
  3596. + AC_MSG_RESULT([no])
  3597. ;;
  3598. esac
  3599. -elif test "$with_gnu_ld" = yes; then
  3600. - AC_MSG_CHECKING([for GNU ld])
  3601. -else
  3602. - AC_MSG_CHECKING([for non-GNU ld])
  3603. fi
  3604. -AC_CACHE_VAL(lt_cv_path_LD,
  3605. -[if test -z "$LD"; then
  3606. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3607. - for ac_dir in $PATH; do
  3608. - IFS="$lt_save_ifs"
  3609. - test -z "$ac_dir" && ac_dir=.
  3610. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3611. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3612. - # Check to see if the program is GNU ld. I'd rather use --version,
  3613. - # but apparently some GNU ld's only accept -v.
  3614. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3615. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3616. - *GNU* | *'with BFD'*)
  3617. - test "$with_gnu_ld" != no && break
  3618. - ;;
  3619. - *)
  3620. - test "$with_gnu_ld" != yes && break
  3621. - ;;
  3622. - esac
  3623. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3624. +_LT_DECL([], [striplib], [1])
  3625. +])# _LT_CMD_STRIPLIB
  3626. +
  3627. +
  3628. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3629. +# -----------------------------
  3630. +# PORTME Fill in your ld.so characteristics
  3631. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3632. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3633. +m4_require([_LT_DECL_EGREP])dnl
  3634. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3635. +m4_require([_LT_DECL_OBJDUMP])dnl
  3636. +m4_require([_LT_DECL_SED])dnl
  3637. +AC_MSG_CHECKING([dynamic linker characteristics])
  3638. +m4_if([$1],
  3639. + [], [
  3640. +if test "$GCC" = yes; then
  3641. + case $host_os in
  3642. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3643. + *) lt_awk_arg="/^libraries:/" ;;
  3644. + esac
  3645. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3646. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3647. + # if the path contains ";" then we assume it to be the separator
  3648. + # otherwise default to the standard path separator (i.e. ":") - it is
  3649. + # assumed that no part of a normal pathname contains ";" but that should
  3650. + # okay in the real world where ";" in dirpaths is itself problematic.
  3651. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3652. + else
  3653. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3654. + fi
  3655. + # Ok, now we have the path, separated by spaces, we can step through it
  3656. + # and add multilib dir if necessary.
  3657. + lt_tmp_lt_search_path_spec=
  3658. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3659. + for lt_sys_path in $lt_search_path_spec; do
  3660. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3661. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3662. + else
  3663. + test -d "$lt_sys_path" && \
  3664. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3665. fi
  3666. done
  3667. - IFS="$lt_save_ifs"
  3668. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3669. +BEGIN {RS=" "; FS="/|\n";} {
  3670. + lt_foo="";
  3671. + lt_count=0;
  3672. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3673. + if ($lt_i != "" && $lt_i != ".") {
  3674. + if ($lt_i == "..") {
  3675. + lt_count++;
  3676. + } else {
  3677. + if (lt_count == 0) {
  3678. + lt_foo="/" $lt_i lt_foo;
  3679. + } else {
  3680. + lt_count--;
  3681. + }
  3682. + }
  3683. + }
  3684. + }
  3685. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3686. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3687. +}'`
  3688. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3689. else
  3690. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3691. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3692. fi])
  3693. -LD="$lt_cv_path_LD"
  3694. -if test -n "$LD"; then
  3695. - AC_MSG_RESULT($LD)
  3696. -else
  3697. - AC_MSG_RESULT(no)
  3698. -fi
  3699. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3700. -AC_PROG_LD_GNU
  3701. -])# AC_PROG_LD
  3702. -
  3703. -
  3704. -# AC_PROG_LD_GNU
  3705. -# --------------
  3706. -AC_DEFUN([AC_PROG_LD_GNU],
  3707. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3708. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3709. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3710. -case `$LD -v 2>&1 </dev/null` in
  3711. -*GNU* | *'with BFD'*)
  3712. - lt_cv_prog_gnu_ld=yes
  3713. - ;;
  3714. -*)
  3715. - lt_cv_prog_gnu_ld=no
  3716. - ;;
  3717. -esac])
  3718. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3719. -])# AC_PROG_LD_GNU
  3720. -
  3721. -
  3722. -# AC_PROG_LD_RELOAD_FLAG
  3723. -# ----------------------
  3724. -# find reload flag for linker
  3725. -# -- PORTME Some linkers may need a different reload flag.
  3726. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3727. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3728. - lt_cv_ld_reload_flag,
  3729. - [lt_cv_ld_reload_flag='-r'])
  3730. -reload_flag=$lt_cv_ld_reload_flag
  3731. -case $reload_flag in
  3732. -"" | " "*) ;;
  3733. -*) reload_flag=" $reload_flag" ;;
  3734. -esac
  3735. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3736. -])# AC_PROG_LD_RELOAD_FLAG
  3737. -
  3738. +library_names_spec=
  3739. +libname_spec='lib$name'
  3740. +soname_spec=
  3741. +shrext_cmds=".so"
  3742. +postinstall_cmds=
  3743. +postuninstall_cmds=
  3744. +finish_cmds=
  3745. +finish_eval=
  3746. +shlibpath_var=
  3747. +shlibpath_overrides_runpath=unknown
  3748. +version_type=none
  3749. +dynamic_linker="$host_os ld.so"
  3750. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3751. +need_lib_prefix=unknown
  3752. +hardcode_into_libs=no
  3753. -# AC_DEPLIBS_CHECK_METHOD
  3754. -# -----------------------
  3755. -# how to check for library dependencies
  3756. -# -- PORTME fill in with the dynamic library characteristics
  3757. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3758. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3759. -lt_cv_deplibs_check_method,
  3760. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3761. -lt_cv_file_magic_test_file=
  3762. -lt_cv_deplibs_check_method='unknown'
  3763. -# Need to set the preceding variable on all platforms that support
  3764. -# interlibrary dependencies.
  3765. -# 'none' -- dependencies not supported.
  3766. -# `unknown' -- same as none, but documents that we really don't know.
  3767. -# 'pass_all' -- all dependencies passed with no checks.
  3768. -# 'test_compile' -- check by making test program.
  3769. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3770. -# which responds to the $file_magic_cmd with a given extended regex.
  3771. -# If you have `file' or equivalent on your system and you're not sure
  3772. -# whether `pass_all' will *always* work, you probably want this one.
  3773. +# when you set need_version to no, make sure it does not cause -set_version
  3774. +# flags to be left without arguments
  3775. +need_version=unknown
  3776. case $host_os in
  3777. -aix4* | aix5*)
  3778. - lt_cv_deplibs_check_method=pass_all
  3779. - ;;
  3780. -
  3781. -beos*)
  3782. - lt_cv_deplibs_check_method=pass_all
  3783. - ;;
  3784. -
  3785. -bsdi4*)
  3786. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3787. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3788. - lt_cv_file_magic_test_file=/shlib/libc.so
  3789. - ;;
  3790. -
  3791. -cygwin*)
  3792. - # win32_libid is a shell function defined in ltmain.sh
  3793. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3794. - lt_cv_file_magic_cmd='win32_libid'
  3795. - ;;
  3796. -
  3797. -mingw* | pw32*)
  3798. - # Base MSYS/MinGW do not provide the 'file' command needed by
  3799. - # win32_libid shell function, so use a weaker test based on 'objdump'.
  3800. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3801. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  3802. - ;;
  3803. +aix3*)
  3804. + version_type=linux
  3805. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3806. + shlibpath_var=LIBPATH
  3807. -darwin* | rhapsody*)
  3808. - lt_cv_deplibs_check_method=pass_all
  3809. + # AIX 3 has no versioning support, so we append a major version to the name.
  3810. + soname_spec='${libname}${release}${shared_ext}$major'
  3811. ;;
  3812. -freebsd* | kfreebsd*-gnu)
  3813. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3814. - case $host_cpu in
  3815. - i*86 )
  3816. - # Not sure whether the presence of OpenBSD here was a mistake.
  3817. - # Let's accept both of them until this is cleared up.
  3818. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3819. - lt_cv_file_magic_cmd=/usr/bin/file
  3820. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3821. +aix[[4-9]]*)
  3822. + version_type=linux
  3823. + need_lib_prefix=no
  3824. + need_version=no
  3825. + hardcode_into_libs=yes
  3826. + if test "$host_cpu" = ia64; then
  3827. + # AIX 5 supports IA64
  3828. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3829. + shlibpath_var=LD_LIBRARY_PATH
  3830. + else
  3831. + # With GCC up to 2.95.x, collect2 would create an import file
  3832. + # for dependence libraries. The import file would start with
  3833. + # the line `#! .'. This would cause the generated library to
  3834. + # depend on `.', always an invalid library. This was fixed in
  3835. + # development snapshots of GCC prior to 3.0.
  3836. + case $host_os in
  3837. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3838. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3839. + echo ' yes '
  3840. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3841. + :
  3842. + else
  3843. + can_build_shared=no
  3844. + fi
  3845. ;;
  3846. esac
  3847. - else
  3848. - lt_cv_deplibs_check_method=pass_all
  3849. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3850. + # soname into executable. Probably we can add versioning support to
  3851. + # collect2, so additional links can be useful in future.
  3852. + if test "$aix_use_runtimelinking" = yes; then
  3853. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3854. + # instead of lib<name>.a to let people know that these are not
  3855. + # typical AIX shared libraries.
  3856. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3857. + else
  3858. + # We preserve .a as extension for shared libraries through AIX4.2
  3859. + # and later when we are not doing run time linking.
  3860. + library_names_spec='${libname}${release}.a $libname.a'
  3861. + soname_spec='${libname}${release}${shared_ext}$major'
  3862. + fi
  3863. + shlibpath_var=LIBPATH
  3864. fi
  3865. ;;
  3866. -gnu*)
  3867. - lt_cv_deplibs_check_method=pass_all
  3868. - ;;
  3869. -
  3870. -hpux10.20* | hpux11*)
  3871. - lt_cv_file_magic_cmd=/usr/bin/file
  3872. - case "$host_cpu" in
  3873. - ia64*)
  3874. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3875. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3876. - ;;
  3877. - hppa*64*)
  3878. - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  3879. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3880. +amigaos*)
  3881. + case $host_cpu in
  3882. + powerpc)
  3883. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3884. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3885. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3886. ;;
  3887. - *)
  3888. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3889. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3890. + m68k)
  3891. + library_names_spec='$libname.ixlibrary $libname.a'
  3892. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3893. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  3894. ;;
  3895. esac
  3896. ;;
  3897. -irix5* | irix6* | nonstopux*)
  3898. - case $LD in
  3899. - *-32|*"-32 ") libmagic=32-bit;;
  3900. - *-n32|*"-n32 ") libmagic=N32;;
  3901. - *-64|*"-64 ") libmagic=64-bit;;
  3902. - *) libmagic=never-match;;
  3903. - esac
  3904. - lt_cv_deplibs_check_method=pass_all
  3905. - ;;
  3906. -
  3907. -# This must be Linux ELF.
  3908. -linux*)
  3909. - lt_cv_deplibs_check_method=pass_all
  3910. - ;;
  3911. -
  3912. -netbsd* | knetbsd*-gnu)
  3913. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3914. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3915. - else
  3916. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3917. - fi
  3918. +beos*)
  3919. + library_names_spec='${libname}${shared_ext}'
  3920. + dynamic_linker="$host_os ld.so"
  3921. + shlibpath_var=LIBRARY_PATH
  3922. ;;
  3923. -newos6*)
  3924. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3925. - lt_cv_file_magic_cmd=/usr/bin/file
  3926. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3927. +bsdi[[45]]*)
  3928. + version_type=linux
  3929. + need_version=no
  3930. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3931. + soname_spec='${libname}${release}${shared_ext}$major'
  3932. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3933. + shlibpath_var=LD_LIBRARY_PATH
  3934. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3935. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3936. + # the default ld.so.conf also contains /usr/contrib/lib and
  3937. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3938. + # libtool to hard-code these into programs
  3939. ;;
  3940. -nto-qnx*)
  3941. - lt_cv_deplibs_check_method=unknown
  3942. - ;;
  3943. +cygwin* | mingw* | pw32* | cegcc*)
  3944. + version_type=windows
  3945. + shrext_cmds=".dll"
  3946. + need_version=no
  3947. + need_lib_prefix=no
  3948. -openbsd*)
  3949. - lt_cv_file_magic_cmd=/usr/bin/file
  3950. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3951. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3952. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  3953. - else
  3954. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3955. - fi
  3956. - ;;
  3957. + case $GCC,$host_os in
  3958. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  3959. + library_names_spec='$libname.dll.a'
  3960. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3961. + postinstall_cmds='base_file=`basename \${file}`~
  3962. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  3963. + dldir=$destdir/`dirname \$dlpath`~
  3964. + test -d \$dldir || mkdir -p \$dldir~
  3965. + $install_prog $dir/$dlname \$dldir/$dlname~
  3966. + chmod a+x \$dldir/$dlname~
  3967. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3968. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3969. + fi'
  3970. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3971. + dlpath=$dir/\$dldll~
  3972. + $RM \$dlpath'
  3973. + shlibpath_overrides_runpath=yes
  3974. -osf3* | osf4* | osf5*)
  3975. - lt_cv_deplibs_check_method=pass_all
  3976. - ;;
  3977. + case $host_os in
  3978. + cygwin*)
  3979. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3980. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3981. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3982. + ;;
  3983. + mingw* | cegcc*)
  3984. + # MinGW DLLs use traditional 'lib' prefix
  3985. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3986. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3987. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  3988. + # It is most probably a Windows format PATH printed by
  3989. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3990. + # path with ; separators, and with drive letters. We can handle the
  3991. + # drive letters (cygwin fileutils understands them), so leave them,
  3992. + # especially as we might pass files found there to a mingw objdump,
  3993. + # which wouldn't understand a cygwinified path. Ahh.
  3994. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3995. + else
  3996. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3997. + fi
  3998. + ;;
  3999. + pw32*)
  4000. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  4001. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  4002. + ;;
  4003. + esac
  4004. + ;;
  4005. -sco3.2v5*)
  4006. - lt_cv_deplibs_check_method=pass_all
  4007. + *)
  4008. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4009. + ;;
  4010. + esac
  4011. + dynamic_linker='Win32 ld.exe'
  4012. + # FIXME: first we should search . and the directory the executable is in
  4013. + shlibpath_var=PATH
  4014. ;;
  4015. -solaris*)
  4016. - lt_cv_deplibs_check_method=pass_all
  4017. +darwin* | rhapsody*)
  4018. + dynamic_linker="$host_os dyld"
  4019. + version_type=darwin
  4020. + need_lib_prefix=no
  4021. + need_version=no
  4022. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4023. + soname_spec='${libname}${release}${major}$shared_ext'
  4024. + shlibpath_overrides_runpath=yes
  4025. + shlibpath_var=DYLD_LIBRARY_PATH
  4026. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4027. +m4_if([$1], [],[
  4028. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4029. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4030. ;;
  4031. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4032. - case $host_vendor in
  4033. - motorola)
  4034. - 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]]'
  4035. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4036. - ;;
  4037. - ncr)
  4038. - lt_cv_deplibs_check_method=pass_all
  4039. +dgux*)
  4040. + version_type=linux
  4041. + need_lib_prefix=no
  4042. + need_version=no
  4043. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4044. + soname_spec='${libname}${release}${shared_ext}$major'
  4045. + shlibpath_var=LD_LIBRARY_PATH
  4046. + ;;
  4047. +
  4048. +freebsd1*)
  4049. + dynamic_linker=no
  4050. + ;;
  4051. +
  4052. +freebsd* | dragonfly*)
  4053. + # DragonFly does not have aout. When/if they implement a new
  4054. + # versioning mechanism, adjust this.
  4055. + if test -x /usr/bin/objformat; then
  4056. + objformat=`/usr/bin/objformat`
  4057. + else
  4058. + case $host_os in
  4059. + freebsd[[123]]*) objformat=aout ;;
  4060. + *) objformat=elf ;;
  4061. + esac
  4062. + fi
  4063. + version_type=freebsd-$objformat
  4064. + case $version_type in
  4065. + freebsd-elf*)
  4066. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4067. + need_version=no
  4068. + need_lib_prefix=no
  4069. + ;;
  4070. + freebsd-*)
  4071. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4072. + need_version=yes
  4073. + ;;
  4074. + esac
  4075. + shlibpath_var=LD_LIBRARY_PATH
  4076. + case $host_os in
  4077. + freebsd2*)
  4078. + shlibpath_overrides_runpath=yes
  4079. ;;
  4080. - sequent)
  4081. - lt_cv_file_magic_cmd='/bin/file'
  4082. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4083. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4084. + shlibpath_overrides_runpath=yes
  4085. + hardcode_into_libs=yes
  4086. ;;
  4087. - sni)
  4088. - lt_cv_file_magic_cmd='/bin/file'
  4089. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4090. - lt_cv_file_magic_test_file=/lib/libc.so
  4091. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4092. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4093. + shlibpath_overrides_runpath=no
  4094. + hardcode_into_libs=yes
  4095. ;;
  4096. - siemens)
  4097. - lt_cv_deplibs_check_method=pass_all
  4098. + *) # from 4.6 on, and DragonFly
  4099. + shlibpath_overrides_runpath=yes
  4100. + hardcode_into_libs=yes
  4101. ;;
  4102. esac
  4103. ;;
  4104. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  4105. - lt_cv_deplibs_check_method=pass_all
  4106. +gnu*)
  4107. + version_type=linux
  4108. + need_lib_prefix=no
  4109. + need_version=no
  4110. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4111. + soname_spec='${libname}${release}${shared_ext}$major'
  4112. + shlibpath_var=LD_LIBRARY_PATH
  4113. + hardcode_into_libs=yes
  4114. ;;
  4115. -esac
  4116. -])
  4117. -file_magic_cmd=$lt_cv_file_magic_cmd
  4118. -deplibs_check_method=$lt_cv_deplibs_check_method
  4119. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4120. -])# AC_DEPLIBS_CHECK_METHOD
  4121. -
  4122. -# AC_PROG_NM
  4123. -# ----------
  4124. -# find the pathname to a BSD-compatible name lister
  4125. -AC_DEFUN([AC_PROG_NM],
  4126. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4127. -[if test -n "$NM"; then
  4128. - # Let the user override the test.
  4129. - lt_cv_path_NM="$NM"
  4130. -else
  4131. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4132. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4133. - IFS="$lt_save_ifs"
  4134. - test -z "$ac_dir" && ac_dir=.
  4135. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4136. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4137. - # Check to see if the nm accepts a BSD-compat flag.
  4138. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4139. - # nm: unknown option "B" ignored
  4140. - # Tru64's nm complains that /dev/null is an invalid object file
  4141. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4142. - */dev/null* | *'Invalid file or object type'*)
  4143. - lt_cv_path_NM="$tmp_nm -B"
  4144. - break
  4145. - ;;
  4146. - *)
  4147. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4148. - */dev/null*)
  4149. - lt_cv_path_NM="$tmp_nm -p"
  4150. - break
  4151. - ;;
  4152. - *)
  4153. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4154. - continue # so that we can try to find one that supports BSD flags
  4155. - ;;
  4156. - esac
  4157. - esac
  4158. +hpux9* | hpux10* | hpux11*)
  4159. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4160. + # link against other versions.
  4161. + version_type=sunos
  4162. + need_lib_prefix=no
  4163. + need_version=no
  4164. + case $host_cpu in
  4165. + ia64*)
  4166. + shrext_cmds='.so'
  4167. + hardcode_into_libs=yes
  4168. + dynamic_linker="$host_os dld.so"
  4169. + shlibpath_var=LD_LIBRARY_PATH
  4170. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4171. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4172. + soname_spec='${libname}${release}${shared_ext}$major'
  4173. + if test "X$HPUX_IA64_MODE" = X32; then
  4174. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4175. + else
  4176. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4177. fi
  4178. - done
  4179. - IFS="$lt_save_ifs"
  4180. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4181. -fi])
  4182. -NM="$lt_cv_path_NM"
  4183. -])# AC_PROG_NM
  4184. -
  4185. -
  4186. -# AC_CHECK_LIBM
  4187. -# -------------
  4188. -# check for math library
  4189. -AC_DEFUN([AC_CHECK_LIBM],
  4190. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4191. -LIBM=
  4192. -case $host in
  4193. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4194. - # These system don't have libm, or don't need it
  4195. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4196. + ;;
  4197. + hppa*64*)
  4198. + shrext_cmds='.sl'
  4199. + hardcode_into_libs=yes
  4200. + dynamic_linker="$host_os dld.sl"
  4201. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4202. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4203. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4204. + soname_spec='${libname}${release}${shared_ext}$major'
  4205. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4206. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4207. + ;;
  4208. + *)
  4209. + shrext_cmds='.sl'
  4210. + dynamic_linker="$host_os dld.sl"
  4211. + shlibpath_var=SHLIB_PATH
  4212. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4213. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4214. + soname_spec='${libname}${release}${shared_ext}$major'
  4215. + ;;
  4216. + esac
  4217. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4218. + postinstall_cmds='chmod 555 $lib'
  4219. ;;
  4220. -*-ncr-sysv4.3*)
  4221. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4222. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4223. +
  4224. +interix[[3-9]]*)
  4225. + version_type=linux
  4226. + need_lib_prefix=no
  4227. + need_version=no
  4228. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4229. + soname_spec='${libname}${release}${shared_ext}$major'
  4230. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4231. + shlibpath_var=LD_LIBRARY_PATH
  4232. + shlibpath_overrides_runpath=no
  4233. + hardcode_into_libs=yes
  4234. ;;
  4235. -*)
  4236. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4237. +
  4238. +irix5* | irix6* | nonstopux*)
  4239. + case $host_os in
  4240. + nonstopux*) version_type=nonstopux ;;
  4241. + *)
  4242. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4243. + version_type=linux
  4244. + else
  4245. + version_type=irix
  4246. + fi ;;
  4247. + esac
  4248. + need_lib_prefix=no
  4249. + need_version=no
  4250. + soname_spec='${libname}${release}${shared_ext}$major'
  4251. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4252. + case $host_os in
  4253. + irix5* | nonstopux*)
  4254. + libsuff= shlibsuff=
  4255. + ;;
  4256. + *)
  4257. + case $LD in # libtool.m4 will add one of these switches to LD
  4258. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4259. + libsuff= shlibsuff= libmagic=32-bit;;
  4260. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4261. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4262. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4263. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4264. + *) libsuff= shlibsuff= libmagic=never-match;;
  4265. + esac
  4266. + ;;
  4267. + esac
  4268. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4269. + shlibpath_overrides_runpath=no
  4270. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4271. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4272. + hardcode_into_libs=yes
  4273. ;;
  4274. -esac
  4275. -])# AC_CHECK_LIBM
  4276. +# No shared lib support for Linux oldld, aout, or coff.
  4277. +linux*oldld* | linux*aout* | linux*coff*)
  4278. + dynamic_linker=no
  4279. + ;;
  4280. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4281. -# -----------------------------------
  4282. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4283. -# LTDLINCL to the include flags for the libltdl header and adds
  4284. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  4285. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4286. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  4287. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  4288. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4289. -# flat and you're not using automake, define top_builddir and
  4290. -# top_srcdir appropriately in the Makefiles.
  4291. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4292. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4293. - case $enable_ltdl_convenience in
  4294. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4295. - "") enable_ltdl_convenience=yes
  4296. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4297. - esac
  4298. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4299. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4300. - # For backwards non-gettext consistent compatibility...
  4301. - INCLTDL="$LTDLINCL"
  4302. -])# AC_LIBLTDL_CONVENIENCE
  4303. +# This must be Linux ELF.
  4304. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4305. + version_type=linux
  4306. + need_lib_prefix=no
  4307. + need_version=no
  4308. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4309. + soname_spec='${libname}${release}${shared_ext}$major'
  4310. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4311. + shlibpath_var=LD_LIBRARY_PATH
  4312. + shlibpath_overrides_runpath=no
  4313. + # Some binutils ld are patched to set DT_RUNPATH
  4314. + save_LDFLAGS=$LDFLAGS
  4315. + save_libdir=$libdir
  4316. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4317. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4318. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4319. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4320. + [shlibpath_overrides_runpath=yes])])
  4321. + LDFLAGS=$save_LDFLAGS
  4322. + libdir=$save_libdir
  4323. + # This implies no fast_install, which is unacceptable.
  4324. + # Some rework will be needed to allow for fast_install
  4325. + # before this can be enabled.
  4326. + hardcode_into_libs=yes
  4327. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4328. -# -----------------------------------
  4329. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4330. -# LTDLINCL to the include flags for the libltdl header and adds
  4331. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  4332. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4333. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  4334. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  4335. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  4336. -# quotes!). If your package is not flat and you're not using automake,
  4337. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  4338. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4339. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4340. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4341. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4342. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4343. - [if test x"$enable_ltdl_install" = xno; then
  4344. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4345. - else
  4346. - enable_ltdl_install=yes
  4347. - fi
  4348. - ])
  4349. - if test x"$enable_ltdl_install" = x"yes"; then
  4350. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4351. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4352. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4353. - else
  4354. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4355. - LIBLTDL="-lltdl"
  4356. - LTDLINCL=
  4357. + # Append ld.so.conf contents to the search path
  4358. + if test -f /etc/ld.so.conf; then
  4359. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  4360. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4361. fi
  4362. - # For backwards non-gettext consistent compatibility...
  4363. - INCLTDL="$LTDLINCL"
  4364. -])# AC_LIBLTDL_INSTALLABLE
  4365. -
  4366. -
  4367. -# AC_LIBTOOL_CXX
  4368. -# --------------
  4369. -# enable support for C++ libraries
  4370. -AC_DEFUN([AC_LIBTOOL_CXX],
  4371. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4372. -])# AC_LIBTOOL_CXX
  4373. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4374. + # powerpc, because MkLinux only supported shared libraries with the
  4375. + # GNU dynamic linker. Since this was broken with cross compilers,
  4376. + # most powerpc-linux boxes support dynamic linking these days and
  4377. + # people can always --disable-shared, the test was removed, and we
  4378. + # assume the GNU/Linux dynamic linker is in use.
  4379. + dynamic_linker='GNU/Linux ld.so'
  4380. + ;;
  4381. -# _LT_AC_LANG_CXX
  4382. -# ---------------
  4383. -AC_DEFUN([_LT_AC_LANG_CXX],
  4384. -[AC_REQUIRE([AC_PROG_CXX])
  4385. -AC_REQUIRE([AC_PROG_CXXCPP])
  4386. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4387. -])# _LT_AC_LANG_CXX
  4388. -
  4389. -
  4390. -# AC_LIBTOOL_F77
  4391. -# --------------
  4392. -# enable support for Fortran 77 libraries
  4393. -AC_DEFUN([AC_LIBTOOL_F77],
  4394. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4395. -])# AC_LIBTOOL_F77
  4396. -
  4397. -
  4398. -# _LT_AC_LANG_F77
  4399. -# ---------------
  4400. -AC_DEFUN([_LT_AC_LANG_F77],
  4401. -[AC_REQUIRE([AC_PROG_F77])
  4402. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4403. -])# _LT_AC_LANG_F77
  4404. -
  4405. -
  4406. -# AC_LIBTOOL_GCJ
  4407. -# --------------
  4408. -# enable support for GCJ libraries
  4409. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4410. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4411. -])# AC_LIBTOOL_GCJ
  4412. -
  4413. -
  4414. -# _LT_AC_LANG_GCJ
  4415. -# ---------------
  4416. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4417. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4418. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4419. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4420. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4421. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4422. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4423. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4424. -])# _LT_AC_LANG_GCJ
  4425. -
  4426. -
  4427. -# AC_LIBTOOL_RC
  4428. -# --------------
  4429. -# enable support for Windows resource files
  4430. -AC_DEFUN([AC_LIBTOOL_RC],
  4431. -[AC_REQUIRE([LT_AC_PROG_RC])
  4432. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4433. -])# AC_LIBTOOL_RC
  4434. -
  4435. -
  4436. -# AC_LIBTOOL_LANG_C_CONFIG
  4437. -# ------------------------
  4438. -# Ensure that the configuration vars for the C compiler are
  4439. -# suitably defined. Those variables are subsequently used by
  4440. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4441. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4442. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4443. -[lt_save_CC="$CC"
  4444. -AC_LANG_PUSH(C)
  4445. -
  4446. -# Source file extension for C test sources.
  4447. -ac_ext=c
  4448. -
  4449. -# Object file extension for compiled C test sources.
  4450. -objext=o
  4451. -_LT_AC_TAGVAR(objext, $1)=$objext
  4452. +netbsdelf*-gnu)
  4453. + version_type=linux
  4454. + need_lib_prefix=no
  4455. + need_version=no
  4456. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4457. + soname_spec='${libname}${release}${shared_ext}$major'
  4458. + shlibpath_var=LD_LIBRARY_PATH
  4459. + shlibpath_overrides_runpath=no
  4460. + hardcode_into_libs=yes
  4461. + dynamic_linker='NetBSD ld.elf_so'
  4462. + ;;
  4463. -# Code to be used in simple compile tests
  4464. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4465. +netbsd*)
  4466. + version_type=sunos
  4467. + need_lib_prefix=no
  4468. + need_version=no
  4469. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4470. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4471. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4472. + dynamic_linker='NetBSD (a.out) ld.so'
  4473. + else
  4474. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4475. + soname_spec='${libname}${release}${shared_ext}$major'
  4476. + dynamic_linker='NetBSD ld.elf_so'
  4477. + fi
  4478. + shlibpath_var=LD_LIBRARY_PATH
  4479. + shlibpath_overrides_runpath=yes
  4480. + hardcode_into_libs=yes
  4481. + ;;
  4482. -# Code to be used in simple link tests
  4483. -lt_simple_link_test_code='int main(){return(0);}\n'
  4484. +newsos6)
  4485. + version_type=linux
  4486. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4487. + shlibpath_var=LD_LIBRARY_PATH
  4488. + shlibpath_overrides_runpath=yes
  4489. + ;;
  4490. -_LT_AC_SYS_COMPILER
  4491. +*nto* | *qnx*)
  4492. + version_type=qnx
  4493. + need_lib_prefix=no
  4494. + need_version=no
  4495. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4496. + soname_spec='${libname}${release}${shared_ext}$major'
  4497. + shlibpath_var=LD_LIBRARY_PATH
  4498. + shlibpath_overrides_runpath=no
  4499. + hardcode_into_libs=yes
  4500. + dynamic_linker='ldqnx.so'
  4501. + ;;
  4502. -#
  4503. -# Check for any special shared library compilation flags.
  4504. -#
  4505. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  4506. -if test "$GCC" = no; then
  4507. +openbsd*)
  4508. + version_type=sunos
  4509. + sys_lib_dlsearch_path_spec="/usr/lib"
  4510. + need_lib_prefix=no
  4511. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4512. case $host_os in
  4513. - sco3.2v5*)
  4514. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  4515. - ;;
  4516. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4517. + *) need_version=no ;;
  4518. esac
  4519. -fi
  4520. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  4521. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  4522. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  4523. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4524. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4525. + shlibpath_var=LD_LIBRARY_PATH
  4526. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4527. + case $host_os in
  4528. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4529. + shlibpath_overrides_runpath=no
  4530. + ;;
  4531. + *)
  4532. + shlibpath_overrides_runpath=yes
  4533. + ;;
  4534. + esac
  4535. else
  4536. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  4537. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  4538. + shlibpath_overrides_runpath=yes
  4539. fi
  4540. -fi
  4541. + ;;
  4542. +os2*)
  4543. + libname_spec='$name'
  4544. + shrext_cmds=".dll"
  4545. + need_lib_prefix=no
  4546. + library_names_spec='$libname${shared_ext} $libname.a'
  4547. + dynamic_linker='OS/2 ld.exe'
  4548. + shlibpath_var=LIBPATH
  4549. + ;;
  4550. -#
  4551. -# Check to make sure the static flag actually works.
  4552. -#
  4553. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4554. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4555. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4556. - [],
  4557. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4558. +osf3* | osf4* | osf5*)
  4559. + version_type=osf
  4560. + need_lib_prefix=no
  4561. + need_version=no
  4562. + soname_spec='${libname}${release}${shared_ext}$major'
  4563. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4564. + shlibpath_var=LD_LIBRARY_PATH
  4565. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4566. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4567. + ;;
  4568. +rdos*)
  4569. + dynamic_linker=no
  4570. + ;;
  4571. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4572. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4573. -AC_LIBTOOL_PROG_CC_C_O($1)
  4574. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4575. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4576. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4577. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4578. -AC_LIBTOOL_SYS_LIB_STRIP
  4579. -AC_LIBTOOL_DLOPEN_SELF($1)
  4580. -
  4581. -# Report which librarie types wil actually be built
  4582. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4583. -AC_MSG_RESULT([$can_build_shared])
  4584. -
  4585. -AC_MSG_CHECKING([whether to build shared libraries])
  4586. -test "$can_build_shared" = "no" && enable_shared=no
  4587. -
  4588. -# On AIX, shared libraries and static libraries use the same namespace, and
  4589. -# are all built from PIC.
  4590. -case "$host_os" in
  4591. -aix3*)
  4592. - test "$enable_shared" = yes && enable_static=no
  4593. - if test -n "$RANLIB"; then
  4594. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4595. - postinstall_cmds='$RANLIB $lib'
  4596. - fi
  4597. +solaris*)
  4598. + version_type=linux
  4599. + need_lib_prefix=no
  4600. + need_version=no
  4601. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4602. + soname_spec='${libname}${release}${shared_ext}$major'
  4603. + shlibpath_var=LD_LIBRARY_PATH
  4604. + shlibpath_overrides_runpath=yes
  4605. + hardcode_into_libs=yes
  4606. + # ldd complains unless libraries are executable
  4607. + postinstall_cmds='chmod +x $lib'
  4608. ;;
  4609. -aix4*)
  4610. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4611. - test "$enable_shared" = yes && enable_static=no
  4612. +sunos4*)
  4613. + version_type=sunos
  4614. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4615. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4616. + shlibpath_var=LD_LIBRARY_PATH
  4617. + shlibpath_overrides_runpath=yes
  4618. + if test "$with_gnu_ld" = yes; then
  4619. + need_lib_prefix=no
  4620. fi
  4621. + need_version=yes
  4622. ;;
  4623. - darwin* | rhapsody*)
  4624. - if test "$GCC" = yes; then
  4625. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4626. - case "$host_os" in
  4627. - rhapsody* | darwin1.[[012]])
  4628. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4629. +
  4630. +sysv4 | sysv4.3*)
  4631. + version_type=linux
  4632. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4633. + soname_spec='${libname}${release}${shared_ext}$major'
  4634. + shlibpath_var=LD_LIBRARY_PATH
  4635. + case $host_vendor in
  4636. + sni)
  4637. + shlibpath_overrides_runpath=no
  4638. + need_lib_prefix=no
  4639. + runpath_var=LD_RUN_PATH
  4640. ;;
  4641. - *) # Darwin 1.3 on
  4642. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4643. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4644. - else
  4645. - case ${MACOSX_DEPLOYMENT_TARGET} in
  4646. - 10.[[012]])
  4647. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4648. - ;;
  4649. - 10.*)
  4650. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4651. - ;;
  4652. - esac
  4653. - fi
  4654. + siemens)
  4655. + need_lib_prefix=no
  4656. ;;
  4657. - esac
  4658. - output_verbose_link_cmd='echo'
  4659. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  4660. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4661. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4662. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4663. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4664. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4665. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4666. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4667. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4668. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4669. - else
  4670. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4671. - fi
  4672. - ;;
  4673. -esac
  4674. -AC_MSG_RESULT([$enable_shared])
  4675. -
  4676. -AC_MSG_CHECKING([whether to build static libraries])
  4677. -# Make sure either enable_shared or enable_static is yes.
  4678. -test "$enable_shared" = yes || enable_static=yes
  4679. -AC_MSG_RESULT([$enable_static])
  4680. -
  4681. -AC_LIBTOOL_CONFIG($1)
  4682. -
  4683. -AC_LANG_POP
  4684. -CC="$lt_save_CC"
  4685. -])# AC_LIBTOOL_LANG_C_CONFIG
  4686. -
  4687. -
  4688. -# AC_LIBTOOL_LANG_CXX_CONFIG
  4689. -# --------------------------
  4690. -# Ensure that the configuration vars for the C compiler are
  4691. -# suitably defined. Those variables are subsequently used by
  4692. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4693. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4694. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4695. -[AC_LANG_PUSH(C++)
  4696. -AC_REQUIRE([AC_PROG_CXX])
  4697. -AC_REQUIRE([AC_PROG_CXXCPP])
  4698. -
  4699. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4700. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4701. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4702. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4703. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4704. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4705. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4706. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4707. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4708. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4709. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4710. -_LT_AC_TAGVAR(module_cmds, $1)=
  4711. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4712. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4713. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4714. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4715. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4716. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4717. -
  4718. -# Dependencies to place before and after the object being linked:
  4719. -_LT_AC_TAGVAR(predep_objects, $1)=
  4720. -_LT_AC_TAGVAR(postdep_objects, $1)=
  4721. -_LT_AC_TAGVAR(predeps, $1)=
  4722. -_LT_AC_TAGVAR(postdeps, $1)=
  4723. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4724. + motorola)
  4725. + need_lib_prefix=no
  4726. + need_version=no
  4727. + shlibpath_overrides_runpath=no
  4728. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4729. + ;;
  4730. + esac
  4731. + ;;
  4732. -# Source file extension for C++ test sources.
  4733. -ac_ext=cc
  4734. +sysv4*MP*)
  4735. + if test -d /usr/nec ;then
  4736. + version_type=linux
  4737. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4738. + soname_spec='$libname${shared_ext}.$major'
  4739. + shlibpath_var=LD_LIBRARY_PATH
  4740. + fi
  4741. + ;;
  4742. -# Object file extension for compiled C++ test sources.
  4743. -objext=o
  4744. -_LT_AC_TAGVAR(objext, $1)=$objext
  4745. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4746. + version_type=freebsd-elf
  4747. + need_lib_prefix=no
  4748. + need_version=no
  4749. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4750. + soname_spec='${libname}${release}${shared_ext}$major'
  4751. + shlibpath_var=LD_LIBRARY_PATH
  4752. + shlibpath_overrides_runpath=yes
  4753. + hardcode_into_libs=yes
  4754. + if test "$with_gnu_ld" = yes; then
  4755. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4756. + else
  4757. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4758. + case $host_os in
  4759. + sco3.2v5*)
  4760. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4761. + ;;
  4762. + esac
  4763. + fi
  4764. + sys_lib_dlsearch_path_spec='/usr/lib'
  4765. + ;;
  4766. -# Code to be used in simple compile tests
  4767. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4768. +tpf*)
  4769. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4770. + version_type=linux
  4771. + need_lib_prefix=no
  4772. + need_version=no
  4773. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4774. + shlibpath_var=LD_LIBRARY_PATH
  4775. + shlibpath_overrides_runpath=no
  4776. + hardcode_into_libs=yes
  4777. + ;;
  4778. -# Code to be used in simple link tests
  4779. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  4780. +uts4*)
  4781. + version_type=linux
  4782. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4783. + soname_spec='${libname}${release}${shared_ext}$major'
  4784. + shlibpath_var=LD_LIBRARY_PATH
  4785. + ;;
  4786. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4787. -_LT_AC_SYS_COMPILER
  4788. +*)
  4789. + dynamic_linker=no
  4790. + ;;
  4791. +esac
  4792. +AC_MSG_RESULT([$dynamic_linker])
  4793. +test "$dynamic_linker" = no && can_build_shared=no
  4794. -# Allow CC to be a program name with arguments.
  4795. -lt_save_CC=$CC
  4796. -lt_save_LD=$LD
  4797. -lt_save_GCC=$GCC
  4798. -GCC=$GXX
  4799. -lt_save_with_gnu_ld=$with_gnu_ld
  4800. -lt_save_path_LD=$lt_cv_path_LD
  4801. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4802. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4803. -else
  4804. - unset lt_cv_prog_gnu_ld
  4805. -fi
  4806. -if test -n "${lt_cv_path_LDCXX+set}"; then
  4807. - lt_cv_path_LD=$lt_cv_path_LDCXX
  4808. -else
  4809. - unset lt_cv_path_LD
  4810. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4811. +if test "$GCC" = yes; then
  4812. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4813. fi
  4814. -test -z "${LDCXX+set}" || LD=$LDCXX
  4815. -CC=${CXX-"c++"}
  4816. -compiler=$CC
  4817. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4818. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4819. -# We don't want -fno-exception wen compiling C++ code, so set the
  4820. -# no_builtin_flag separately
  4821. -if test "$GXX" = yes; then
  4822. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4823. -else
  4824. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4825. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4826. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4827. +fi
  4828. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4829. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4830. fi
  4831. -if test "$GXX" = yes; then
  4832. - # Set up default GNU C++ configuration
  4833. -
  4834. - AC_PROG_LD
  4835. -
  4836. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4837. - # archiving commands below assume that GNU ld is being used.
  4838. - if test "$with_gnu_ld" = yes; then
  4839. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4840. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4841. -
  4842. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4843. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4844. -
  4845. - # If archive_cmds runs LD, not CC, wlarc should be empty
  4846. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4847. - # investigate it a little bit more. (MM)
  4848. - wlarc='${wl}'
  4849. +_LT_DECL([], [variables_saved_for_relink], [1],
  4850. + [Variables whose values should be saved in libtool wrapper scripts and
  4851. + restored at link time])
  4852. +_LT_DECL([], [need_lib_prefix], [0],
  4853. + [Do we need the "lib" prefix for modules?])
  4854. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4855. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4856. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4857. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4858. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4859. + [Is shlibpath searched before the hard-coded library search path?])
  4860. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4861. +_LT_DECL([], [library_names_spec], [1],
  4862. + [[List of archive names. First name is the real one, the rest are links.
  4863. + The last name is the one that the linker finds with -lNAME]])
  4864. +_LT_DECL([], [soname_spec], [1],
  4865. + [[The coded name of the library, if different from the real name]])
  4866. +_LT_DECL([], [postinstall_cmds], [2],
  4867. + [Command to use after installation of a shared archive])
  4868. +_LT_DECL([], [postuninstall_cmds], [2],
  4869. + [Command to use after uninstallation of a shared archive])
  4870. +_LT_DECL([], [finish_cmds], [2],
  4871. + [Commands used to finish a libtool library installation in a directory])
  4872. +_LT_DECL([], [finish_eval], [1],
  4873. + [[As "finish_cmds", except a single script fragment to be evaled but
  4874. + not shown]])
  4875. +_LT_DECL([], [hardcode_into_libs], [0],
  4876. + [Whether we should hardcode library paths into libraries])
  4877. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4878. + [Compile-time system search path for libraries])
  4879. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4880. + [Run-time system search path for libraries])
  4881. +])# _LT_SYS_DYNAMIC_LINKER
  4882. - # ancient GNU ld didn't support --whole-archive et. al.
  4883. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4884. - grep 'no-whole-archive' > /dev/null; then
  4885. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4886. - else
  4887. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4888. - fi
  4889. - else
  4890. - with_gnu_ld=no
  4891. - wlarc=
  4892. - # A generic and very simple default shared library creation
  4893. - # command for GNU C++ for the case where it uses the native
  4894. - # linker, instead of GNU ld. If possible, this setting should
  4895. - # overridden to take advantage of the native linker features on
  4896. - # the platform it is being used on.
  4897. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4898. - fi
  4899. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4900. +# --------------------------
  4901. +# find a file program which can recognize shared library
  4902. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4903. +[m4_require([_LT_DECL_EGREP])dnl
  4904. +AC_MSG_CHECKING([for $1])
  4905. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4906. +[case $MAGIC_CMD in
  4907. +[[\\/*] | ?:[\\/]*])
  4908. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4909. + ;;
  4910. +*)
  4911. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4912. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4913. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4914. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4915. +dnl not every word. This closes a longstanding sh security hole.
  4916. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4917. + for ac_dir in $ac_dummy; do
  4918. + IFS="$lt_save_ifs"
  4919. + test -z "$ac_dir" && ac_dir=.
  4920. + if test -f $ac_dir/$1; then
  4921. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4922. + if test -n "$file_magic_test_file"; then
  4923. + case $deplibs_check_method in
  4924. + "file_magic "*)
  4925. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4926. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4927. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4928. + $EGREP "$file_magic_regex" > /dev/null; then
  4929. + :
  4930. + else
  4931. + cat <<_LT_EOF 1>&2
  4932. - # Commands to make compiler produce verbose output that lists
  4933. - # what "hidden" libraries, object files and flags are used when
  4934. - # linking a shared library.
  4935. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4936. +*** Warning: the command libtool uses to detect shared libraries,
  4937. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4938. +*** The result is that libtool may fail to recognize shared libraries
  4939. +*** as such. This will affect the creation of libtool libraries that
  4940. +*** depend on shared libraries, but programs linked with such libtool
  4941. +*** libraries will work regardless of this problem. Nevertheless, you
  4942. +*** may want to report the problem to your system manager and/or to
  4943. +*** bug-libtool@gnu.org
  4944. +_LT_EOF
  4945. + fi ;;
  4946. + esac
  4947. + fi
  4948. + break
  4949. + fi
  4950. + done
  4951. + IFS="$lt_save_ifs"
  4952. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4953. + ;;
  4954. +esac])
  4955. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4956. +if test -n "$MAGIC_CMD"; then
  4957. + AC_MSG_RESULT($MAGIC_CMD)
  4958. else
  4959. - GXX=no
  4960. - with_gnu_ld=no
  4961. - wlarc=
  4962. + AC_MSG_RESULT(no)
  4963. fi
  4964. +_LT_DECL([], [MAGIC_CMD], [0],
  4965. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4966. +])# _LT_PATH_TOOL_PREFIX
  4967. -# PORTME: fill in a description of your system's C++ link characteristics
  4968. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4969. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4970. -case $host_os in
  4971. - aix3*)
  4972. - # FIXME: insert proper C++ library support
  4973. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4974. - ;;
  4975. - aix4* | aix5*)
  4976. - if test "$host_cpu" = ia64; then
  4977. - # On IA64, the linker does run time linking by default, so we don't
  4978. - # have to do anything special.
  4979. - aix_use_runtimelinking=no
  4980. - exp_sym_flag='-Bexport'
  4981. - no_entry_flag=""
  4982. - else
  4983. - aix_use_runtimelinking=no
  4984. +# Old name:
  4985. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4986. +dnl aclocal-1.4 backwards compatibility:
  4987. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4988. - # Test if we are trying to use run time linking or normal
  4989. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4990. - # need to do runtime linking.
  4991. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  4992. - for ld_flag in $LDFLAGS; do
  4993. - case $ld_flag in
  4994. - *-brtl*)
  4995. - aix_use_runtimelinking=yes
  4996. - break
  4997. - ;;
  4998. - esac
  4999. - done
  5000. - esac
  5001. - exp_sym_flag='-bexport'
  5002. - no_entry_flag='-bnoentry'
  5003. - fi
  5004. +# _LT_PATH_MAGIC
  5005. +# --------------
  5006. +# find a file program which can recognize a shared library
  5007. +m4_defun([_LT_PATH_MAGIC],
  5008. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  5009. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5010. + if test -n "$ac_tool_prefix"; then
  5011. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  5012. + else
  5013. + MAGIC_CMD=:
  5014. + fi
  5015. +fi
  5016. +])# _LT_PATH_MAGIC
  5017. - # When large executables or shared objects are built, AIX ld can
  5018. - # have problems creating the table of contents. If linking a library
  5019. - # or program results in "error TOC overflow" add -mminimal-toc to
  5020. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5021. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5022. -
  5023. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5024. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5025. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5026. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5027. - if test "$GXX" = yes; then
  5028. - case $host_os in aix4.[012]|aix4.[012].*)
  5029. - # We only want to do this on AIX 4.2 and lower, the check
  5030. - # below for broken collect2 doesn't work under 4.3+
  5031. - collect2name=`${CC} -print-prog-name=collect2`
  5032. - if test -f "$collect2name" && \
  5033. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5034. - then
  5035. - # We have reworked collect2
  5036. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5037. - else
  5038. - # We have old collect2
  5039. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5040. - # It fails to find uninstalled libraries when the uninstalled
  5041. - # path is not listed in the libpath. Setting hardcode_minus_L
  5042. - # to unsupported forces relinking
  5043. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5044. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5045. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5046. - fi
  5047. - esac
  5048. - shared_flag='-shared'
  5049. - else
  5050. - # not using gcc
  5051. - if test "$host_cpu" = ia64; then
  5052. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5053. - # chokes on -Wl,-G. The following line is correct:
  5054. - shared_flag='-G'
  5055. - else
  5056. - if test "$aix_use_runtimelinking" = yes; then
  5057. - shared_flag='${wl}-G'
  5058. - else
  5059. - shared_flag='${wl}-bM:SRE'
  5060. - fi
  5061. - fi
  5062. - fi
  5063. +# LT_PATH_LD
  5064. +# ----------
  5065. +# find the pathname to the GNU or non-GNU linker
  5066. +AC_DEFUN([LT_PATH_LD],
  5067. +[AC_REQUIRE([AC_PROG_CC])dnl
  5068. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5069. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  5070. +m4_require([_LT_DECL_SED])dnl
  5071. +m4_require([_LT_DECL_EGREP])dnl
  5072. - # It seems that -bexpall does not export symbols beginning with
  5073. - # underscore (_), so it is better to generate a list of symbols to export.
  5074. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5075. - if test "$aix_use_runtimelinking" = yes; then
  5076. - # Warning - without using the other runtime loading flags (-brtl),
  5077. - # -berok will link without error, but may produce a broken library.
  5078. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5079. - # Determine the default libpath from the value encoded in an empty executable.
  5080. - _LT_AC_SYS_LIBPATH_AIX
  5081. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5082. +AC_ARG_WITH([gnu-ld],
  5083. + [AS_HELP_STRING([--with-gnu-ld],
  5084. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  5085. + [test "$withval" = no || with_gnu_ld=yes],
  5086. + [with_gnu_ld=no])dnl
  5087. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5088. - else
  5089. - if test "$host_cpu" = ia64; then
  5090. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5091. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5092. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  5093. - else
  5094. - # Determine the default libpath from the value encoded in an empty executable.
  5095. - _LT_AC_SYS_LIBPATH_AIX
  5096. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5097. - # Warning - without using the other run time loading flags,
  5098. - # -berok will link without error, but may produce a broken library.
  5099. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5100. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5101. - # -bexpall does not export symbols beginning with underscore (_)
  5102. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5103. - # Exported symbols can be pulled into shared objects from archives
  5104. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  5105. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5106. - # This is similar to how AIX traditionally builds it's shared libraries.
  5107. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5108. - fi
  5109. - fi
  5110. +ac_prog=ld
  5111. +if test "$GCC" = yes; then
  5112. + # Check if gcc -print-prog-name=ld gives a path.
  5113. + AC_MSG_CHECKING([for ld used by $CC])
  5114. + case $host in
  5115. + *-*-mingw*)
  5116. + # gcc leaves a trailing carriage return which upsets mingw
  5117. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5118. + *)
  5119. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5120. + esac
  5121. + case $ac_prog in
  5122. + # Accept absolute paths.
  5123. + [[\\/]]* | ?:[[\\/]]*)
  5124. + re_direlt='/[[^/]][[^/]]*/\.\./'
  5125. + # Canonicalize the pathname of ld
  5126. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5127. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5128. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5129. + done
  5130. + test -z "$LD" && LD="$ac_prog"
  5131. + ;;
  5132. + "")
  5133. + # If it fails, then pretend we aren't using GCC.
  5134. + ac_prog=ld
  5135. + ;;
  5136. + *)
  5137. + # If it is relative, then search for the first ld in PATH.
  5138. + with_gnu_ld=unknown
  5139. ;;
  5140. - chorus*)
  5141. - case $cc_basename in
  5142. + esac
  5143. +elif test "$with_gnu_ld" = yes; then
  5144. + AC_MSG_CHECKING([for GNU ld])
  5145. +else
  5146. + AC_MSG_CHECKING([for non-GNU ld])
  5147. +fi
  5148. +AC_CACHE_VAL(lt_cv_path_LD,
  5149. +[if test -z "$LD"; then
  5150. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5151. + for ac_dir in $PATH; do
  5152. + IFS="$lt_save_ifs"
  5153. + test -z "$ac_dir" && ac_dir=.
  5154. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5155. + lt_cv_path_LD="$ac_dir/$ac_prog"
  5156. + # Check to see if the program is GNU ld. I'd rather use --version,
  5157. + # but apparently some variants of GNU ld only accept -v.
  5158. + # Break only if it was the GNU/non-GNU ld that we prefer.
  5159. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5160. + *GNU* | *'with BFD'*)
  5161. + test "$with_gnu_ld" != no && break
  5162. + ;;
  5163. *)
  5164. - # FIXME: insert proper C++ library support
  5165. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5166. + test "$with_gnu_ld" != yes && break
  5167. ;;
  5168. - esac
  5169. - ;;
  5170. -
  5171. - cygwin* | mingw* | pw32*)
  5172. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5173. - # as there is no search path for DLLs.
  5174. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5175. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5176. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5177. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5178. -
  5179. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5180. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5181. - # If the export-symbols file already is a .def file (1st line
  5182. - # is EXPORTS), use it as is; otherwise, prepend...
  5183. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5184. - cp $export_symbols $output_objdir/$soname.def;
  5185. - else
  5186. - echo EXPORTS > $output_objdir/$soname.def;
  5187. - cat $export_symbols >> $output_objdir/$soname.def;
  5188. - fi~
  5189. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  5190. - else
  5191. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5192. + esac
  5193. fi
  5194. + done
  5195. + IFS="$lt_save_ifs"
  5196. +else
  5197. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5198. +fi])
  5199. +LD="$lt_cv_path_LD"
  5200. +if test -n "$LD"; then
  5201. + AC_MSG_RESULT($LD)
  5202. +else
  5203. + AC_MSG_RESULT(no)
  5204. +fi
  5205. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  5206. +_LT_PATH_LD_GNU
  5207. +AC_SUBST([LD])
  5208. +
  5209. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  5210. +])# LT_PATH_LD
  5211. +
  5212. +# Old names:
  5213. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  5214. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  5215. +dnl aclocal-1.4 backwards compatibility:
  5216. +dnl AC_DEFUN([AM_PROG_LD], [])
  5217. +dnl AC_DEFUN([AC_PROG_LD], [])
  5218. +
  5219. +
  5220. +# _LT_PATH_LD_GNU
  5221. +#- --------------
  5222. +m4_defun([_LT_PATH_LD_GNU],
  5223. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  5224. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  5225. +case `$LD -v 2>&1 </dev/null` in
  5226. +*GNU* | *'with BFD'*)
  5227. + lt_cv_prog_gnu_ld=yes
  5228. + ;;
  5229. +*)
  5230. + lt_cv_prog_gnu_ld=no
  5231. ;;
  5232. +esac])
  5233. +with_gnu_ld=$lt_cv_prog_gnu_ld
  5234. +])# _LT_PATH_LD_GNU
  5235. - darwin* | rhapsody*)
  5236. - if test "$GXX" = yes; then
  5237. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5238. - case "$host_os" in
  5239. - rhapsody* | darwin1.[[012]])
  5240. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  5241. - ;;
  5242. - *) # Darwin 1.3 on
  5243. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5244. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  5245. - else
  5246. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5247. - 10.[[012]])
  5248. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  5249. - ;;
  5250. - 10.*)
  5251. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  5252. - ;;
  5253. - esac
  5254. - fi
  5255. - ;;
  5256. - esac
  5257. - lt_int_apple_cc_single_mod=no
  5258. - output_verbose_link_cmd='echo'
  5259. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  5260. - lt_int_apple_cc_single_mod=yes
  5261. - fi
  5262. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5263. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5264. - else
  5265. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
  5266. - fi
  5267. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5268. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5269. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5270. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5271. +# _LT_CMD_RELOAD
  5272. +# --------------
  5273. +# find reload flag for linker
  5274. +# -- PORTME Some linkers may need a different reload flag.
  5275. +m4_defun([_LT_CMD_RELOAD],
  5276. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5277. + lt_cv_ld_reload_flag,
  5278. + [lt_cv_ld_reload_flag='-r'])
  5279. +reload_flag=$lt_cv_ld_reload_flag
  5280. +case $reload_flag in
  5281. +"" | " "*) ;;
  5282. +*) reload_flag=" $reload_flag" ;;
  5283. +esac
  5284. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5285. +case $host_os in
  5286. + darwin*)
  5287. + if test "$GCC" = yes; then
  5288. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5289. else
  5290. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5291. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5292. fi
  5293. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  5294. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5295. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5296. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5297. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  5298. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5299. - else
  5300. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5301. - fi
  5302. ;;
  5303. +esac
  5304. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5305. +_LT_DECL([], [reload_cmds], [2])dnl
  5306. +])# _LT_CMD_RELOAD
  5307. - dgux*)
  5308. - case $cc_basename in
  5309. - ec++)
  5310. - # FIXME: insert proper C++ library support
  5311. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5312. - ;;
  5313. - ghcx)
  5314. - # Green Hills C++ Compiler
  5315. - # FIXME: insert proper C++ library support
  5316. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5317. - ;;
  5318. - *)
  5319. - # FIXME: insert proper C++ library support
  5320. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5321. - ;;
  5322. - esac
  5323. - ;;
  5324. - freebsd[12]*)
  5325. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5326. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5327. - ;;
  5328. - freebsd-elf*)
  5329. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5330. - ;;
  5331. - freebsd* | kfreebsd*-gnu)
  5332. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5333. - # conventions
  5334. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5335. - ;;
  5336. - gnu*)
  5337. - ;;
  5338. - hpux9*)
  5339. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5340. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5341. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5342. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5343. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5344. - # but as the default
  5345. - # location of the library.
  5346. -
  5347. - case $cc_basename in
  5348. - CC)
  5349. - # FIXME: insert proper C++ library support
  5350. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5351. - ;;
  5352. - aCC)
  5353. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5354. - # Commands to make compiler produce verbose output that lists
  5355. - # what "hidden" libraries, object files and flags are used when
  5356. - # linking a shared library.
  5357. - #
  5358. - # There doesn't appear to be a way to prevent this compiler from
  5359. - # explicitly linking system object files so we need to strip them
  5360. - # from the output so that they don't get included in the library
  5361. - # dependencies.
  5362. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5363. - ;;
  5364. - *)
  5365. - if test "$GXX" = yes; then
  5366. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5367. - else
  5368. - # FIXME: insert proper C++ library support
  5369. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5370. - fi
  5371. - ;;
  5372. - esac
  5373. - ;;
  5374. - hpux10*|hpux11*)
  5375. - if test $with_gnu_ld = no; then
  5376. - case "$host_cpu" in
  5377. - hppa*64*)
  5378. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5379. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5380. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5381. - ;;
  5382. - ia64*)
  5383. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5384. - ;;
  5385. - *)
  5386. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5387. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5388. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5389. - ;;
  5390. - esac
  5391. - fi
  5392. - case "$host_cpu" in
  5393. - hppa*64*)
  5394. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5395. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5396. - ;;
  5397. - ia64*)
  5398. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5399. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5400. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5401. - # but as the default
  5402. - # location of the library.
  5403. - ;;
  5404. - *)
  5405. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5406. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5407. - # but as the default
  5408. - # location of the library.
  5409. - ;;
  5410. - esac
  5411. - case $cc_basename in
  5412. - CC)
  5413. - # FIXME: insert proper C++ library support
  5414. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5415. - ;;
  5416. - aCC)
  5417. - case "$host_cpu" in
  5418. - hppa*64*|ia64*)
  5419. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5420. - ;;
  5421. - *)
  5422. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5423. - ;;
  5424. - esac
  5425. - # Commands to make compiler produce verbose output that lists
  5426. - # what "hidden" libraries, object files and flags are used when
  5427. - # linking a shared library.
  5428. - #
  5429. - # There doesn't appear to be a way to prevent this compiler from
  5430. - # explicitly linking system object files so we need to strip them
  5431. - # from the output so that they don't get included in the library
  5432. - # dependencies.
  5433. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5434. - ;;
  5435. - *)
  5436. - if test "$GXX" = yes; then
  5437. - if test $with_gnu_ld = no; then
  5438. - case "$host_cpu" in
  5439. - ia64*|hppa*64*)
  5440. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5441. - ;;
  5442. - *)
  5443. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5444. - ;;
  5445. - esac
  5446. - fi
  5447. - else
  5448. - # FIXME: insert proper C++ library support
  5449. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5450. - fi
  5451. - ;;
  5452. - esac
  5453. - ;;
  5454. - irix5* | irix6*)
  5455. - case $cc_basename in
  5456. - CC)
  5457. - # SGI C++
  5458. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5459. -
  5460. - # Archives containing C++ object files must be created using
  5461. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5462. - # necessary to make sure instantiated templates are included
  5463. - # in the archive.
  5464. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5465. - ;;
  5466. - *)
  5467. - if test "$GXX" = yes; then
  5468. - if test "$with_gnu_ld" = no; then
  5469. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5470. - else
  5471. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  5472. - fi
  5473. - fi
  5474. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5475. - ;;
  5476. - esac
  5477. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5478. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5479. - ;;
  5480. - linux*)
  5481. - case $cc_basename in
  5482. - KCC)
  5483. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5484. -
  5485. - # KCC will only create a shared library if the output file
  5486. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5487. - # to its proper name (with version) after linking.
  5488. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5489. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  5490. - # Commands to make compiler produce verbose output that lists
  5491. - # what "hidden" libraries, object files and flags are used when
  5492. - # linking a shared library.
  5493. - #
  5494. - # There doesn't appear to be a way to prevent this compiler from
  5495. - # explicitly linking system object files so we need to strip them
  5496. - # from the output so that they don't get included in the library
  5497. - # dependencies.
  5498. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5499. -
  5500. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5501. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5502. -
  5503. - # Archives containing C++ object files must be created using
  5504. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5505. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5506. - ;;
  5507. - icpc)
  5508. - # Intel C++
  5509. - with_gnu_ld=yes
  5510. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5511. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5512. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5513. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5514. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5515. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5516. - ;;
  5517. - cxx)
  5518. - # Compaq C++
  5519. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5520. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  5521. -
  5522. - runpath_var=LD_RUN_PATH
  5523. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5524. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5525. +# _LT_CHECK_MAGIC_METHOD
  5526. +# ----------------------
  5527. +# how to check for library dependencies
  5528. +# -- PORTME fill in with the dynamic library characteristics
  5529. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5530. +[m4_require([_LT_DECL_EGREP])
  5531. +m4_require([_LT_DECL_OBJDUMP])
  5532. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5533. +lt_cv_deplibs_check_method,
  5534. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5535. +lt_cv_file_magic_test_file=
  5536. +lt_cv_deplibs_check_method='unknown'
  5537. +# Need to set the preceding variable on all platforms that support
  5538. +# interlibrary dependencies.
  5539. +# 'none' -- dependencies not supported.
  5540. +# `unknown' -- same as none, but documents that we really don't know.
  5541. +# 'pass_all' -- all dependencies passed with no checks.
  5542. +# 'test_compile' -- check by making test program.
  5543. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5544. +# which responds to the $file_magic_cmd with a given extended regex.
  5545. +# If you have `file' or equivalent on your system and you're not sure
  5546. +# whether `pass_all' will *always* work, you probably want this one.
  5547. - # Commands to make compiler produce verbose output that lists
  5548. - # what "hidden" libraries, object files and flags are used when
  5549. - # linking a shared library.
  5550. - #
  5551. - # There doesn't appear to be a way to prevent this compiler from
  5552. - # explicitly linking system object files so we need to strip them
  5553. - # from the output so that they don't get included in the library
  5554. - # dependencies.
  5555. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5556. - ;;
  5557. - esac
  5558. - ;;
  5559. - lynxos*)
  5560. - # FIXME: insert proper C++ library support
  5561. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5562. - ;;
  5563. - m88k*)
  5564. - # FIXME: insert proper C++ library support
  5565. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5566. - ;;
  5567. - mvs*)
  5568. - case $cc_basename in
  5569. - cxx)
  5570. - # FIXME: insert proper C++ library support
  5571. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5572. - ;;
  5573. - *)
  5574. - # FIXME: insert proper C++ library support
  5575. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5576. - ;;
  5577. - esac
  5578. - ;;
  5579. - netbsd* | knetbsd*-gnu)
  5580. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5581. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5582. - wlarc=
  5583. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5584. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5585. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5586. - fi
  5587. - # Workaround some broken pre-1.5 toolchains
  5588. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5589. - ;;
  5590. - osf3*)
  5591. - case $cc_basename in
  5592. - KCC)
  5593. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5594. -
  5595. - # KCC will only create a shared library if the output file
  5596. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5597. - # to its proper name (with version) after linking.
  5598. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5599. -
  5600. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5601. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5602. -
  5603. - # Archives containing C++ object files must be created using
  5604. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5605. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5606. -
  5607. - ;;
  5608. - RCC)
  5609. - # Rational C++ 2.4.1
  5610. - # FIXME: insert proper C++ library support
  5611. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5612. - ;;
  5613. - cxx)
  5614. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5615. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5616. -
  5617. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5618. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5619. -
  5620. - # Commands to make compiler produce verbose output that lists
  5621. - # what "hidden" libraries, object files and flags are used when
  5622. - # linking a shared library.
  5623. - #
  5624. - # There doesn't appear to be a way to prevent this compiler from
  5625. - # explicitly linking system object files so we need to strip them
  5626. - # from the output so that they don't get included in the library
  5627. - # dependencies.
  5628. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5629. - ;;
  5630. - *)
  5631. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5632. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5633. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5634. -
  5635. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5636. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5637. -
  5638. - # Commands to make compiler produce verbose output that lists
  5639. - # what "hidden" libraries, object files and flags are used when
  5640. - # linking a shared library.
  5641. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5642. +case $host_os in
  5643. +aix[[4-9]]*)
  5644. + lt_cv_deplibs_check_method=pass_all
  5645. + ;;
  5646. - else
  5647. - # FIXME: insert proper C++ library support
  5648. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5649. - fi
  5650. - ;;
  5651. - esac
  5652. - ;;
  5653. - osf4* | osf5*)
  5654. - case $cc_basename in
  5655. - KCC)
  5656. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5657. -
  5658. - # KCC will only create a shared library if the output file
  5659. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5660. - # to its proper name (with version) after linking.
  5661. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  5662. -
  5663. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5664. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5665. -
  5666. - # Archives containing C++ object files must be created using
  5667. - # the KAI C++ compiler.
  5668. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5669. - ;;
  5670. - RCC)
  5671. - # Rational C++ 2.4.1
  5672. - # FIXME: insert proper C++ library support
  5673. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5674. - ;;
  5675. - cxx)
  5676. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5677. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5678. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5679. - echo "-hidden">> $lib.exp~
  5680. - $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 $objdir/so_locations -o $lib~
  5681. - $rm $lib.exp'
  5682. -
  5683. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5684. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5685. -
  5686. - # Commands to make compiler produce verbose output that lists
  5687. - # what "hidden" libraries, object files and flags are used when
  5688. - # linking a shared library.
  5689. - #
  5690. - # There doesn't appear to be a way to prevent this compiler from
  5691. - # explicitly linking system object files so we need to strip them
  5692. - # from the output so that they don't get included in the library
  5693. - # dependencies.
  5694. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5695. - ;;
  5696. - *)
  5697. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5698. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5699. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5700. -
  5701. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5702. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5703. -
  5704. - # Commands to make compiler produce verbose output that lists
  5705. - # what "hidden" libraries, object files and flags are used when
  5706. - # linking a shared library.
  5707. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5708. +beos*)
  5709. + lt_cv_deplibs_check_method=pass_all
  5710. + ;;
  5711. - else
  5712. - # FIXME: insert proper C++ library support
  5713. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5714. - fi
  5715. - ;;
  5716. - esac
  5717. - ;;
  5718. - psos*)
  5719. - # FIXME: insert proper C++ library support
  5720. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5721. - ;;
  5722. - sco*)
  5723. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5724. - case $cc_basename in
  5725. - CC)
  5726. - # FIXME: insert proper C++ library support
  5727. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5728. - ;;
  5729. - *)
  5730. - # FIXME: insert proper C++ library support
  5731. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5732. - ;;
  5733. - esac
  5734. - ;;
  5735. - sunos4*)
  5736. - case $cc_basename in
  5737. - CC)
  5738. - # Sun C++ 4.x
  5739. - # FIXME: insert proper C++ library support
  5740. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5741. - ;;
  5742. - lcc)
  5743. - # Lucid
  5744. - # FIXME: insert proper C++ library support
  5745. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5746. - ;;
  5747. - *)
  5748. - # FIXME: insert proper C++ library support
  5749. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5750. - ;;
  5751. - esac
  5752. - ;;
  5753. - solaris*)
  5754. - case $cc_basename in
  5755. - CC)
  5756. - # Sun C++ 4.2, 5.x and Centerline C++
  5757. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5758. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5759. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5760. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5761. -
  5762. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5763. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5764. - case $host_os in
  5765. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  5766. - *)
  5767. - # The C++ compiler is used as linker so we must use $wl
  5768. - # flag to pass the commands to the underlying system
  5769. - # linker.
  5770. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  5771. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5772. - ;;
  5773. - esac
  5774. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5775. +bsdi[[45]]*)
  5776. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5777. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5778. + lt_cv_file_magic_test_file=/shlib/libc.so
  5779. + ;;
  5780. - # Commands to make compiler produce verbose output that lists
  5781. - # what "hidden" libraries, object files and flags are used when
  5782. - # linking a shared library.
  5783. - #
  5784. - # There doesn't appear to be a way to prevent this compiler from
  5785. - # explicitly linking system object files so we need to strip them
  5786. - # from the output so that they don't get included in the library
  5787. - # dependencies.
  5788. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5789. -
  5790. - # Archives containing C++ object files must be created using
  5791. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5792. - # necessary to make sure instantiated templates are included
  5793. - # in the archive.
  5794. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5795. - ;;
  5796. - gcx)
  5797. - # Green Hills C++ Compiler
  5798. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5799. +cygwin*)
  5800. + # func_win32_libid is a shell function defined in ltmain.sh
  5801. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5802. + lt_cv_file_magic_cmd='func_win32_libid'
  5803. + ;;
  5804. - # The C++ compiler must be used to create the archive.
  5805. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5806. - ;;
  5807. - *)
  5808. - # GNU C++ compiler with Solaris linker
  5809. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5810. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5811. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  5812. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5813. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5814. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5815. +mingw* | pw32*)
  5816. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5817. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5818. + # unless we find 'file', for example because we are cross-compiling.
  5819. + if ( file / ) >/dev/null 2>&1; then
  5820. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5821. + lt_cv_file_magic_cmd='func_win32_libid'
  5822. + else
  5823. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5824. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5825. + fi
  5826. + ;;
  5827. - # Commands to make compiler produce verbose output that lists
  5828. - # what "hidden" libraries, object files and flags are used when
  5829. - # linking a shared library.
  5830. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5831. - else
  5832. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5833. - # platform.
  5834. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5835. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5836. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5837. +cegcc)
  5838. + # use the weaker test based on 'objdump'. See mingw*.
  5839. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5840. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5841. + ;;
  5842. - # Commands to make compiler produce verbose output that lists
  5843. - # what "hidden" libraries, object files and flags are used when
  5844. - # linking a shared library.
  5845. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5846. - fi
  5847. +darwin* | rhapsody*)
  5848. + lt_cv_deplibs_check_method=pass_all
  5849. + ;;
  5850. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5851. - fi
  5852. - ;;
  5853. - esac
  5854. - ;;
  5855. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5856. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5857. - ;;
  5858. - tandem*)
  5859. - case $cc_basename in
  5860. - NCC)
  5861. - # NonStop-UX NCC 3.20
  5862. - # FIXME: insert proper C++ library support
  5863. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5864. - ;;
  5865. - *)
  5866. - # FIXME: insert proper C++ library support
  5867. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5868. - ;;
  5869. +freebsd* | dragonfly*)
  5870. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5871. + case $host_cpu in
  5872. + i*86 )
  5873. + # Not sure whether the presence of OpenBSD here was a mistake.
  5874. + # Let's accept both of them until this is cleared up.
  5875. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5876. + lt_cv_file_magic_cmd=/usr/bin/file
  5877. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5878. + ;;
  5879. esac
  5880. + else
  5881. + lt_cv_deplibs_check_method=pass_all
  5882. + fi
  5883. + ;;
  5884. +
  5885. +gnu*)
  5886. + lt_cv_deplibs_check_method=pass_all
  5887. + ;;
  5888. +
  5889. +hpux10.20* | hpux11*)
  5890. + lt_cv_file_magic_cmd=/usr/bin/file
  5891. + case $host_cpu in
  5892. + ia64*)
  5893. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5894. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5895. ;;
  5896. - vxworks*)
  5897. - # FIXME: insert proper C++ library support
  5898. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5899. + hppa*64*)
  5900. + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  5901. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5902. ;;
  5903. *)
  5904. - # FIXME: insert proper C++ library support
  5905. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5906. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5907. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5908. ;;
  5909. -esac
  5910. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5911. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5912. + esac
  5913. + ;;
  5914. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  5915. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5916. +interix[[3-9]]*)
  5917. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5918. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5919. + ;;
  5920. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  5921. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5922. -AC_LIBTOOL_PROG_CC_C_O($1)
  5923. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5924. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5925. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5926. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5927. -AC_LIBTOOL_SYS_LIB_STRIP
  5928. -AC_LIBTOOL_DLOPEN_SELF($1)
  5929. +irix5* | irix6* | nonstopux*)
  5930. + case $LD in
  5931. + *-32|*"-32 ") libmagic=32-bit;;
  5932. + *-n32|*"-n32 ") libmagic=N32;;
  5933. + *-64|*"-64 ") libmagic=64-bit;;
  5934. + *) libmagic=never-match;;
  5935. + esac
  5936. + lt_cv_deplibs_check_method=pass_all
  5937. + ;;
  5938. -AC_LIBTOOL_CONFIG($1)
  5939. +# This must be Linux ELF.
  5940. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5941. + lt_cv_deplibs_check_method=pass_all
  5942. + ;;
  5943. -AC_LANG_POP
  5944. -CC=$lt_save_CC
  5945. -LDCXX=$LD
  5946. -LD=$lt_save_LD
  5947. -GCC=$lt_save_GCC
  5948. -with_gnu_ldcxx=$with_gnu_ld
  5949. -with_gnu_ld=$lt_save_with_gnu_ld
  5950. -lt_cv_path_LDCXX=$lt_cv_path_LD
  5951. -lt_cv_path_LD=$lt_save_path_LD
  5952. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  5953. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  5954. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  5955. +netbsd* | netbsdelf*-gnu)
  5956. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5957. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5958. + else
  5959. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5960. + fi
  5961. + ;;
  5962. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  5963. -# ------------------------
  5964. -# Figure out "hidden" library dependencies from verbose
  5965. -# compiler output when linking a shared library.
  5966. -# Parse the compiler output and extract the necessary
  5967. -# objects, libraries and library flags.
  5968. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  5969. -dnl we can't use the lt_simple_compile_test_code here,
  5970. -dnl because it contains code intended for an executable,
  5971. -dnl not a library. It's possible we should let each
  5972. -dnl tag define a new lt_????_link_test_code variable,
  5973. -dnl but it's only used here...
  5974. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  5975. -int a;
  5976. -void foo (void) { a = 0; }
  5977. -EOF
  5978. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  5979. -class Foo
  5980. -{
  5981. -public:
  5982. - Foo (void) { a = 0; }
  5983. -private:
  5984. - int a;
  5985. -};
  5986. -EOF
  5987. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  5988. - subroutine foo
  5989. - implicit none
  5990. - integer*4 a
  5991. - a=0
  5992. - return
  5993. - end
  5994. -EOF
  5995. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  5996. -public class foo {
  5997. - private int a;
  5998. - public void bar (void) {
  5999. - a = 0;
  6000. - }
  6001. -};
  6002. -EOF
  6003. -])
  6004. -dnl Parse the compiler output and extract the necessary
  6005. -dnl objects, libraries and library flags.
  6006. -if AC_TRY_EVAL(ac_compile); then
  6007. - # Parse the compiler output and extract the necessary
  6008. - # objects, libraries and library flags.
  6009. +newos6*)
  6010. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  6011. + lt_cv_file_magic_cmd=/usr/bin/file
  6012. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6013. + ;;
  6014. - # Sentinel used to keep track of whether or not we are before
  6015. - # the conftest object file.
  6016. - pre_test_object_deps_done=no
  6017. +*nto* | *qnx*)
  6018. + lt_cv_deplibs_check_method=pass_all
  6019. + ;;
  6020. - # The `*' in the case matches for architectures that use `case' in
  6021. - # $output_verbose_cmd can trigger glob expansion during the loop
  6022. - # eval without this substitution.
  6023. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  6024. +openbsd*)
  6025. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6026. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  6027. + else
  6028. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  6029. + fi
  6030. + ;;
  6031. - for p in `eval $output_verbose_link_cmd`; do
  6032. - case $p in
  6033. +osf3* | osf4* | osf5*)
  6034. + lt_cv_deplibs_check_method=pass_all
  6035. + ;;
  6036. - -L* | -R* | -l*)
  6037. - # Some compilers place space between "-{L,R}" and the path.
  6038. - # Remove the space.
  6039. - if test $p = "-L" \
  6040. - || test $p = "-R"; then
  6041. - prev=$p
  6042. - continue
  6043. - else
  6044. - prev=
  6045. - fi
  6046. +rdos*)
  6047. + lt_cv_deplibs_check_method=pass_all
  6048. + ;;
  6049. - if test "$pre_test_object_deps_done" = no; then
  6050. - case $p in
  6051. - -L* | -R*)
  6052. - # Internal compiler library paths should come after those
  6053. - # provided the user. The postdeps already come after the
  6054. - # user supplied libs so there is no need to process them.
  6055. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6056. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6057. - else
  6058. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6059. - fi
  6060. - ;;
  6061. - # The "-l" case would never come before the object being
  6062. - # linked, so don't bother handling this case.
  6063. - esac
  6064. - else
  6065. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6066. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6067. - else
  6068. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6069. - fi
  6070. - fi
  6071. - ;;
  6072. +solaris*)
  6073. + lt_cv_deplibs_check_method=pass_all
  6074. + ;;
  6075. - *.$objext)
  6076. - # This assumes that the test object file only shows up
  6077. - # once in the compiler output.
  6078. - if test "$p" = "conftest.$objext"; then
  6079. - pre_test_object_deps_done=yes
  6080. - continue
  6081. - fi
  6082. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6083. + lt_cv_deplibs_check_method=pass_all
  6084. + ;;
  6085. - if test "$pre_test_object_deps_done" = no; then
  6086. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6087. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6088. - else
  6089. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6090. - fi
  6091. - else
  6092. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6093. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6094. - else
  6095. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6096. - fi
  6097. - fi
  6098. - ;;
  6099. +sysv4 | sysv4.3*)
  6100. + case $host_vendor in
  6101. + motorola)
  6102. + 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]]'
  6103. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6104. + ;;
  6105. + ncr)
  6106. + lt_cv_deplibs_check_method=pass_all
  6107. + ;;
  6108. + sequent)
  6109. + lt_cv_file_magic_cmd='/bin/file'
  6110. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  6111. + ;;
  6112. + sni)
  6113. + lt_cv_file_magic_cmd='/bin/file'
  6114. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  6115. + lt_cv_file_magic_test_file=/lib/libc.so
  6116. + ;;
  6117. + siemens)
  6118. + lt_cv_deplibs_check_method=pass_all
  6119. + ;;
  6120. + pc)
  6121. + lt_cv_deplibs_check_method=pass_all
  6122. + ;;
  6123. + esac
  6124. + ;;
  6125. - *) ;; # Ignore the rest.
  6126. +tpf*)
  6127. + lt_cv_deplibs_check_method=pass_all
  6128. + ;;
  6129. +esac
  6130. +])
  6131. +file_magic_cmd=$lt_cv_file_magic_cmd
  6132. +deplibs_check_method=$lt_cv_deplibs_check_method
  6133. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6134. - esac
  6135. - done
  6136. +_LT_DECL([], [deplibs_check_method], [1],
  6137. + [Method to check whether dependent libraries are shared objects])
  6138. +_LT_DECL([], [file_magic_cmd], [1],
  6139. + [Command to use when deplibs_check_method == "file_magic"])
  6140. +])# _LT_CHECK_MAGIC_METHOD
  6141. - # Clean up.
  6142. - rm -f a.out a.exe
  6143. +
  6144. +# LT_PATH_NM
  6145. +# ----------
  6146. +# find the pathname to a BSD- or MS-compatible name lister
  6147. +AC_DEFUN([LT_PATH_NM],
  6148. +[AC_REQUIRE([AC_PROG_CC])dnl
  6149. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  6150. +[if test -n "$NM"; then
  6151. + # Let the user override the test.
  6152. + lt_cv_path_NM="$NM"
  6153. else
  6154. - echo "libtool.m4: error: problem compiling $1 test program"
  6155. + lt_nm_to_check="${ac_tool_prefix}nm"
  6156. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  6157. + lt_nm_to_check="$lt_nm_to_check nm"
  6158. + fi
  6159. + for lt_tmp_nm in $lt_nm_to_check; do
  6160. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6161. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  6162. + IFS="$lt_save_ifs"
  6163. + test -z "$ac_dir" && ac_dir=.
  6164. + tmp_nm="$ac_dir/$lt_tmp_nm"
  6165. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  6166. + # Check to see if the nm accepts a BSD-compat flag.
  6167. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  6168. + # nm: unknown option "B" ignored
  6169. + # Tru64's nm complains that /dev/null is an invalid object file
  6170. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  6171. + */dev/null* | *'Invalid file or object type'*)
  6172. + lt_cv_path_NM="$tmp_nm -B"
  6173. + break
  6174. + ;;
  6175. + *)
  6176. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  6177. + */dev/null*)
  6178. + lt_cv_path_NM="$tmp_nm -p"
  6179. + break
  6180. + ;;
  6181. + *)
  6182. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  6183. + continue # so that we can try to find one that supports BSD flags
  6184. + ;;
  6185. + esac
  6186. + ;;
  6187. + esac
  6188. + fi
  6189. + done
  6190. + IFS="$lt_save_ifs"
  6191. + done
  6192. + : ${lt_cv_path_NM=no}
  6193. +fi])
  6194. +if test "$lt_cv_path_NM" != "no"; then
  6195. + NM="$lt_cv_path_NM"
  6196. +else
  6197. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6198. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6199. + AC_SUBST([DUMPBIN])
  6200. + if test "$DUMPBIN" != ":"; then
  6201. + NM="$DUMPBIN"
  6202. + fi
  6203. fi
  6204. +test -z "$NM" && NM=nm
  6205. +AC_SUBST([NM])
  6206. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6207. +
  6208. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6209. + [lt_cv_nm_interface="BSD nm"
  6210. + echo "int some_variable = 0;" > conftest.$ac_ext
  6211. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6212. + (eval "$ac_compile" 2>conftest.err)
  6213. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6214. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6215. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6216. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6217. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6218. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6219. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6220. + lt_cv_nm_interface="MS dumpbin"
  6221. + fi
  6222. + rm -f conftest*])
  6223. +])# LT_PATH_NM
  6224. +
  6225. +# Old names:
  6226. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6227. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6228. +dnl aclocal-1.4 backwards compatibility:
  6229. +dnl AC_DEFUN([AM_PROG_NM], [])
  6230. +dnl AC_DEFUN([AC_PROG_NM], [])
  6231. -$rm -f confest.$objext
  6232. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6233. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6234. +# LT_LIB_M
  6235. +# --------
  6236. +# check for math library
  6237. +AC_DEFUN([LT_LIB_M],
  6238. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6239. +LIBM=
  6240. +case $host in
  6241. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6242. + # These system don't have libm, or don't need it
  6243. + ;;
  6244. +*-ncr-sysv4.3*)
  6245. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6246. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6247. + ;;
  6248. +*)
  6249. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6250. + ;;
  6251. esac
  6252. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6253. +AC_SUBST([LIBM])
  6254. +])# LT_LIB_M
  6255. -# AC_LIBTOOL_LANG_F77_CONFIG
  6256. -# ------------------------
  6257. -# Ensure that the configuration vars for the C compiler are
  6258. -# suitably defined. Those variables are subsequently used by
  6259. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6260. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6261. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6262. -[AC_REQUIRE([AC_PROG_F77])
  6263. -AC_LANG_PUSH(Fortran 77)
  6264. +# Old name:
  6265. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6266. +dnl aclocal-1.4 backwards compatibility:
  6267. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6268. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6269. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6270. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6271. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6272. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6273. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6274. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6275. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6276. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6277. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6278. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6279. -_LT_AC_TAGVAR(module_cmds, $1)=
  6280. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6281. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6282. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6283. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6284. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6285. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6286. -# Source file extension for f77 test sources.
  6287. -ac_ext=f
  6288. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6289. +# -------------------------------
  6290. +m4_defun([_LT_COMPILER_NO_RTTI],
  6291. +[m4_require([_LT_TAG_COMPILER])dnl
  6292. -# Object file extension for compiled f77 test sources.
  6293. -objext=o
  6294. -_LT_AC_TAGVAR(objext, $1)=$objext
  6295. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6296. -# Code to be used in simple compile tests
  6297. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6298. +if test "$GCC" = yes; then
  6299. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6300. -# Code to be used in simple link tests
  6301. -lt_simple_link_test_code=" program t\n end\n"
  6302. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6303. + lt_cv_prog_compiler_rtti_exceptions,
  6304. + [-fno-rtti -fno-exceptions], [],
  6305. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6306. +fi
  6307. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6308. + [Compiler flag to turn off builtin functions])
  6309. +])# _LT_COMPILER_NO_RTTI
  6310. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6311. -_LT_AC_SYS_COMPILER
  6312. -# Allow CC to be a program name with arguments.
  6313. -lt_save_CC="$CC"
  6314. -CC=${F77-"f77"}
  6315. -compiler=$CC
  6316. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6317. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  6318. +# _LT_CMD_GLOBAL_SYMBOLS
  6319. +# ----------------------
  6320. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6321. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6322. +AC_REQUIRE([AC_PROG_CC])dnl
  6323. +AC_REQUIRE([LT_PATH_NM])dnl
  6324. +AC_REQUIRE([LT_PATH_LD])dnl
  6325. +m4_require([_LT_DECL_SED])dnl
  6326. +m4_require([_LT_DECL_EGREP])dnl
  6327. +m4_require([_LT_TAG_COMPILER])dnl
  6328. +
  6329. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6330. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6331. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6332. +[
  6333. +# These are sane defaults that work on at least a few old systems.
  6334. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6335. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6336. -AC_MSG_RESULT([$can_build_shared])
  6337. +# Character class describing NM global symbol codes.
  6338. +symcode='[[BCDEGRST]]'
  6339. -AC_MSG_CHECKING([whether to build shared libraries])
  6340. -test "$can_build_shared" = "no" && enable_shared=no
  6341. +# Regexp to match symbols that can be accessed directly from C.
  6342. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6343. -# On AIX, shared libraries and static libraries use the same namespace, and
  6344. -# are all built from PIC.
  6345. -case "$host_os" in
  6346. -aix3*)
  6347. - test "$enable_shared" = yes && enable_static=no
  6348. - if test -n "$RANLIB"; then
  6349. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6350. - postinstall_cmds='$RANLIB $lib'
  6351. +# Define system-specific variables.
  6352. +case $host_os in
  6353. +aix*)
  6354. + symcode='[[BCDT]]'
  6355. + ;;
  6356. +cygwin* | mingw* | pw32* | cegcc*)
  6357. + symcode='[[ABCDGISTW]]'
  6358. + ;;
  6359. +hpux*)
  6360. + if test "$host_cpu" = ia64; then
  6361. + symcode='[[ABCDEGRST]]'
  6362. fi
  6363. ;;
  6364. -aix4*)
  6365. - test "$enable_shared" = yes && enable_static=no
  6366. +irix* | nonstopux*)
  6367. + symcode='[[BCDEGRST]]'
  6368. + ;;
  6369. +osf*)
  6370. + symcode='[[BCDEGQRST]]'
  6371. + ;;
  6372. +solaris*)
  6373. + symcode='[[BDRT]]'
  6374. + ;;
  6375. +sco3.2v5*)
  6376. + symcode='[[DT]]'
  6377. + ;;
  6378. +sysv4.2uw2*)
  6379. + symcode='[[DT]]'
  6380. + ;;
  6381. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6382. + symcode='[[ABDT]]'
  6383. + ;;
  6384. +sysv4)
  6385. + symcode='[[DFNSTU]]'
  6386. ;;
  6387. esac
  6388. -AC_MSG_RESULT([$enable_shared])
  6389. -AC_MSG_CHECKING([whether to build static libraries])
  6390. -# Make sure either enable_shared or enable_static is yes.
  6391. -test "$enable_shared" = yes || enable_static=yes
  6392. -AC_MSG_RESULT([$enable_static])
  6393. -
  6394. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6395. -
  6396. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6397. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6398. +# If we're using GNU nm, then use its standard symbol codes.
  6399. +case `$NM -V 2>&1` in
  6400. +*GNU* | *'with BFD'*)
  6401. + symcode='[[ABCDGIRSTW]]' ;;
  6402. +esac
  6403. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6404. -AC_LIBTOOL_PROG_CC_C_O($1)
  6405. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6406. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6407. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6408. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6409. -AC_LIBTOOL_SYS_LIB_STRIP
  6410. +# Transform an extracted symbol line into a proper C declaration.
  6411. +# Some systems (esp. on ia64) link data and code symbols differently,
  6412. +# so use this general approach.
  6413. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6414. +# Transform an extracted symbol line into symbol name and symbol address
  6415. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6416. +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'"
  6417. -AC_LIBTOOL_CONFIG($1)
  6418. +# Handle CRLF in mingw tool chain
  6419. +opt_cr=
  6420. +case $build_os in
  6421. +mingw*)
  6422. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6423. + ;;
  6424. +esac
  6425. -AC_LANG_POP
  6426. -CC="$lt_save_CC"
  6427. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6428. +# Try without a prefix underscore, then with it.
  6429. +for ac_symprfx in "" "_"; do
  6430. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6431. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6432. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6433. -# --------------------------
  6434. -# Ensure that the configuration vars for the C compiler are
  6435. -# suitably defined. Those variables are subsequently used by
  6436. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6437. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6438. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6439. -[AC_LANG_SAVE
  6440. + # Write the raw and C identifiers.
  6441. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6442. + # Fake it for dumpbin and say T for any non-static function
  6443. + # and D for any global variable.
  6444. + # Also find C++ and __fastcall symbols from MSVC++,
  6445. + # which start with @ or ?.
  6446. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6447. +" {last_section=section; section=\$ 3};"\
  6448. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6449. +" \$ 0!~/External *\|/{next};"\
  6450. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6451. +" {if(hide[section]) next};"\
  6452. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6453. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6454. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6455. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6456. +" ' prfx=^$ac_symprfx]"
  6457. + else
  6458. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6459. + fi
  6460. -# Source file extension for Java test sources.
  6461. -ac_ext=java
  6462. + # Check to see that the pipe works correctly.
  6463. + pipe_works=no
  6464. -# Object file extension for compiled Java test sources.
  6465. -objext=o
  6466. -_LT_AC_TAGVAR(objext, $1)=$objext
  6467. + rm -f conftest*
  6468. + cat > conftest.$ac_ext <<_LT_EOF
  6469. +#ifdef __cplusplus
  6470. +extern "C" {
  6471. +#endif
  6472. +char nm_test_var;
  6473. +void nm_test_func(void);
  6474. +void nm_test_func(void){}
  6475. +#ifdef __cplusplus
  6476. +}
  6477. +#endif
  6478. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6479. +_LT_EOF
  6480. -# Code to be used in simple compile tests
  6481. -lt_simple_compile_test_code="class foo {}\n"
  6482. + if AC_TRY_EVAL(ac_compile); then
  6483. + # Now try to grab the symbols.
  6484. + nlist=conftest.nm
  6485. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6486. + # Try sorting and uniquifying the output.
  6487. + if sort "$nlist" | uniq > "$nlist"T; then
  6488. + mv -f "$nlist"T "$nlist"
  6489. + else
  6490. + rm -f "$nlist"T
  6491. + fi
  6492. -# Code to be used in simple link tests
  6493. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  6494. + # Make sure that we snagged all the symbols we need.
  6495. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6496. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6497. + cat <<_LT_EOF > conftest.$ac_ext
  6498. +#ifdef __cplusplus
  6499. +extern "C" {
  6500. +#endif
  6501. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6502. -_LT_AC_SYS_COMPILER
  6503. +_LT_EOF
  6504. + # Now generate the symbol file.
  6505. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6506. -# Allow CC to be a program name with arguments.
  6507. -lt_save_CC="$CC"
  6508. -CC=${GCJ-"gcj"}
  6509. -compiler=$CC
  6510. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6511. + cat <<_LT_EOF >> conftest.$ac_ext
  6512. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6513. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6514. +/* The mapping between symbol names and symbols. */
  6515. +const struct {
  6516. + const char *name;
  6517. + void *address;
  6518. +}
  6519. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6520. +{
  6521. + { "@PROGRAM@", (void *) 0 },
  6522. +_LT_EOF
  6523. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6524. + cat <<\_LT_EOF >> conftest.$ac_ext
  6525. + {0, (void *) 0}
  6526. +};
  6527. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6528. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6529. -AC_LIBTOOL_PROG_CC_C_O($1)
  6530. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6531. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6532. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6533. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6534. -AC_LIBTOOL_SYS_LIB_STRIP
  6535. -AC_LIBTOOL_DLOPEN_SELF($1)
  6536. +/* This works around a problem in FreeBSD linker */
  6537. +#ifdef FREEBSD_WORKAROUND
  6538. +static const void *lt_preloaded_setup() {
  6539. + return lt__PROGRAM__LTX_preloaded_symbols;
  6540. +}
  6541. +#endif
  6542. -AC_LIBTOOL_CONFIG($1)
  6543. +#ifdef __cplusplus
  6544. +}
  6545. +#endif
  6546. +_LT_EOF
  6547. + # Now try linking the two files.
  6548. + mv conftest.$ac_objext conftstm.$ac_objext
  6549. + lt_save_LIBS="$LIBS"
  6550. + lt_save_CFLAGS="$CFLAGS"
  6551. + LIBS="conftstm.$ac_objext"
  6552. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6553. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6554. + pipe_works=yes
  6555. + fi
  6556. + LIBS="$lt_save_LIBS"
  6557. + CFLAGS="$lt_save_CFLAGS"
  6558. + else
  6559. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6560. + fi
  6561. + else
  6562. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6563. + fi
  6564. + else
  6565. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6566. + fi
  6567. + else
  6568. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6569. + cat conftest.$ac_ext >&5
  6570. + fi
  6571. + rm -rf conftest* conftst*
  6572. -AC_LANG_RESTORE
  6573. -CC="$lt_save_CC"
  6574. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6575. + # Do not use the global_symbol_pipe unless it works.
  6576. + if test "$pipe_works" = yes; then
  6577. + break
  6578. + else
  6579. + lt_cv_sys_global_symbol_pipe=
  6580. + fi
  6581. +done
  6582. +])
  6583. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6584. + lt_cv_sys_global_symbol_to_cdecl=
  6585. +fi
  6586. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6587. + AC_MSG_RESULT(failed)
  6588. +else
  6589. + AC_MSG_RESULT(ok)
  6590. +fi
  6591. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6592. + [Take the output of nm and produce a listing of raw symbols and C names])
  6593. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6594. + [Transform the output of nm in a proper C declaration])
  6595. +_LT_DECL([global_symbol_to_c_name_address],
  6596. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6597. + [Transform the output of nm in a C name address pair])
  6598. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6599. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6600. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6601. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6602. -# AC_LIBTOOL_LANG_RC_CONFIG
  6603. -# --------------------------
  6604. -# Ensure that the configuration vars for the Windows resource compiler are
  6605. -# suitably defined. Those variables are subsequently used by
  6606. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6607. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6608. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6609. -[AC_LANG_SAVE
  6610. -# Source file extension for RC test sources.
  6611. -ac_ext=rc
  6612. +# _LT_COMPILER_PIC([TAGNAME])
  6613. +# ---------------------------
  6614. +m4_defun([_LT_COMPILER_PIC],
  6615. +[m4_require([_LT_TAG_COMPILER])dnl
  6616. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6617. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6618. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6619. -# Object file extension for compiled RC test sources.
  6620. -objext=o
  6621. -_LT_AC_TAGVAR(objext, $1)=$objext
  6622. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6623. +m4_if([$1], [CXX], [
  6624. + # C++ specific cases for pic, static, wl, etc.
  6625. + if test "$GXX" = yes; then
  6626. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6627. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6628. -# Code to be used in simple compile tests
  6629. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6630. -
  6631. -# Code to be used in simple link tests
  6632. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6633. -
  6634. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6635. -_LT_AC_SYS_COMPILER
  6636. -
  6637. -# Allow CC to be a program name with arguments.
  6638. -lt_save_CC="$CC"
  6639. -CC=${RC-"windres"}
  6640. -compiler=$CC
  6641. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6642. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6643. -
  6644. -AC_LIBTOOL_CONFIG($1)
  6645. -
  6646. -AC_LANG_RESTORE
  6647. -CC="$lt_save_CC"
  6648. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6649. + case $host_os in
  6650. + aix*)
  6651. + # All AIX code is PIC.
  6652. + if test "$host_cpu" = ia64; then
  6653. + # AIX 5 now supports IA64 processor
  6654. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6655. + fi
  6656. + ;;
  6657. + amigaos*)
  6658. + case $host_cpu in
  6659. + powerpc)
  6660. + # see comment about AmigaOS4 .so support
  6661. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6662. + ;;
  6663. + m68k)
  6664. + # FIXME: we need at least 68020 code to build shared libraries, but
  6665. + # adding the `-m68020' flag to GCC prevents building anything better,
  6666. + # like `-m68040'.
  6667. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6668. + ;;
  6669. + esac
  6670. + ;;
  6671. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6672. -# ----------------------------
  6673. -# If TAGNAME is not passed, then create an initial libtool script
  6674. -# with a default configuration from the untagged config vars. Otherwise
  6675. -# add code to config.status for appending the configuration named by
  6676. -# TAGNAME from the matching tagged config vars.
  6677. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6678. -[# The else clause should only fire when bootstrapping the
  6679. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6680. -# with your package, and you will get complaints that there are
  6681. -# no rules to generate ltmain.sh.
  6682. -if test -f "$ltmain"; then
  6683. - # See if we are running on zsh, and set the options which allow our commands through
  6684. - # without removal of \ escapes.
  6685. - if test -n "${ZSH_VERSION+set}" ; then
  6686. - setopt NO_GLOB_SUBST
  6687. - fi
  6688. - # Now quote all the things that may contain metacharacters while being
  6689. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6690. - # variables and quote the copies for generation of the libtool script.
  6691. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  6692. - SED SHELL STRIP \
  6693. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6694. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6695. - deplibs_check_method reload_flag reload_cmds need_locks \
  6696. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6697. - lt_cv_sys_global_symbol_to_c_name_address \
  6698. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6699. - old_postinstall_cmds old_postuninstall_cmds \
  6700. - _LT_AC_TAGVAR(compiler, $1) \
  6701. - _LT_AC_TAGVAR(CC, $1) \
  6702. - _LT_AC_TAGVAR(LD, $1) \
  6703. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6704. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6705. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6706. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6707. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6708. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6709. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6710. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6711. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6712. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6713. - _LT_AC_TAGVAR(predep_objects, $1) \
  6714. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6715. - _LT_AC_TAGVAR(predeps, $1) \
  6716. - _LT_AC_TAGVAR(postdeps, $1) \
  6717. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6718. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6719. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6720. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6721. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6722. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6723. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6724. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6725. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6726. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6727. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6728. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6729. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6730. - _LT_AC_TAGVAR(module_cmds, $1) \
  6731. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6732. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6733. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6734. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6735. -
  6736. - case $var in
  6737. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6738. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6739. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6740. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6741. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6742. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6743. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6744. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6745. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6746. - postinstall_cmds | postuninstall_cmds | \
  6747. - old_postinstall_cmds | old_postuninstall_cmds | \
  6748. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6749. - # Double-quote double-evaled strings.
  6750. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6751. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6752. + # PIC is the default for these OSes.
  6753. + ;;
  6754. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  6755. + # This hack is so that the source file can tell whether it is being
  6756. + # built for inclusion in a dll (and should export symbols for example).
  6757. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6758. + # (--disable-auto-import) libraries
  6759. + m4_if([$1], [GCJ], [],
  6760. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6761. + ;;
  6762. + darwin* | rhapsody*)
  6763. + # PIC is the default on this platform
  6764. + # Common symbols not allowed in MH_DYLIB files
  6765. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6766. + ;;
  6767. + *djgpp*)
  6768. + # DJGPP does not support shared libraries at all
  6769. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6770. + ;;
  6771. + interix[[3-9]]*)
  6772. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6773. + # Instead, we relocate shared libraries at runtime.
  6774. + ;;
  6775. + sysv4*MP*)
  6776. + if test -d /usr/nec; then
  6777. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6778. + fi
  6779. + ;;
  6780. + hpux*)
  6781. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6782. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6783. + # sets the default TLS model and affects inlining.
  6784. + case $host_cpu in
  6785. + hppa*64*)
  6786. + ;;
  6787. + *)
  6788. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6789. + ;;
  6790. + esac
  6791. + ;;
  6792. + *qnx* | *nto*)
  6793. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6794. + # it will coredump.
  6795. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6796. ;;
  6797. *)
  6798. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6799. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6800. ;;
  6801. esac
  6802. - done
  6803. + else
  6804. + case $host_os in
  6805. + aix[[4-9]]*)
  6806. + # All AIX code is PIC.
  6807. + if test "$host_cpu" = ia64; then
  6808. + # AIX 5 now supports IA64 processor
  6809. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6810. + else
  6811. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6812. + fi
  6813. + ;;
  6814. + chorus*)
  6815. + case $cc_basename in
  6816. + cxch68*)
  6817. + # Green Hills C++ Compiler
  6818. + # _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"
  6819. + ;;
  6820. + esac
  6821. + ;;
  6822. + dgux*)
  6823. + case $cc_basename in
  6824. + ec++*)
  6825. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6826. + ;;
  6827. + ghcx*)
  6828. + # Green Hills C++ Compiler
  6829. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6830. + ;;
  6831. + *)
  6832. + ;;
  6833. + esac
  6834. + ;;
  6835. + freebsd* | dragonfly*)
  6836. + # FreeBSD uses GNU C++
  6837. + ;;
  6838. + hpux9* | hpux10* | hpux11*)
  6839. + case $cc_basename in
  6840. + CC*)
  6841. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6842. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6843. + if test "$host_cpu" != ia64; then
  6844. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6845. + fi
  6846. + ;;
  6847. + aCC*)
  6848. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6849. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6850. + case $host_cpu in
  6851. + hppa*64*|ia64*)
  6852. + # +Z the default
  6853. + ;;
  6854. + *)
  6855. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6856. + ;;
  6857. + esac
  6858. + ;;
  6859. + *)
  6860. + ;;
  6861. + esac
  6862. + ;;
  6863. + interix*)
  6864. + # This is c89, which is MS Visual C++ (no shared libs)
  6865. + # Anyone wants to do a port?
  6866. + ;;
  6867. + irix5* | irix6* | nonstopux*)
  6868. + case $cc_basename in
  6869. + CC*)
  6870. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6871. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6872. + # CC pic flag -KPIC is the default.
  6873. + ;;
  6874. + *)
  6875. + ;;
  6876. + esac
  6877. + ;;
  6878. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6879. + case $cc_basename in
  6880. + KCC*)
  6881. + # KAI C++ Compiler
  6882. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6883. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6884. + ;;
  6885. + ecpc* )
  6886. + # old Intel C++ for x86_64 which still supported -KPIC.
  6887. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6888. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6889. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6890. + ;;
  6891. + icpc* )
  6892. + # Intel C++, used to be incompatible with GCC.
  6893. + # ICC 10 doesn't accept -KPIC any more.
  6894. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6895. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6896. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6897. + ;;
  6898. + pgCC* | pgcpp*)
  6899. + # Portland Group C++ compiler
  6900. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6901. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6902. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6903. + ;;
  6904. + cxx*)
  6905. + # Compaq C++
  6906. + # Make sure the PIC flag is empty. It appears that all Alpha
  6907. + # Linux and Compaq Tru64 Unix objects are PIC.
  6908. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6909. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6910. + ;;
  6911. + xlc* | xlC*)
  6912. + # IBM XL 8.0 on PPC
  6913. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6914. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6915. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6916. + ;;
  6917. + *)
  6918. + case `$CC -V 2>&1 | sed 5q` in
  6919. + *Sun\ C*)
  6920. + # Sun C++ 5.9
  6921. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6922. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6923. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6924. + ;;
  6925. + esac
  6926. + ;;
  6927. + esac
  6928. + ;;
  6929. + lynxos*)
  6930. + ;;
  6931. + m88k*)
  6932. + ;;
  6933. + mvs*)
  6934. + case $cc_basename in
  6935. + cxx*)
  6936. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6937. + ;;
  6938. + *)
  6939. + ;;
  6940. + esac
  6941. + ;;
  6942. + netbsd* | netbsdelf*-gnu)
  6943. + ;;
  6944. + *qnx* | *nto*)
  6945. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6946. + # it will coredump.
  6947. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6948. + ;;
  6949. + osf3* | osf4* | osf5*)
  6950. + case $cc_basename in
  6951. + KCC*)
  6952. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6953. + ;;
  6954. + RCC*)
  6955. + # Rational C++ 2.4.1
  6956. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6957. + ;;
  6958. + cxx*)
  6959. + # Digital/Compaq C++
  6960. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6961. + # Make sure the PIC flag is empty. It appears that all Alpha
  6962. + # Linux and Compaq Tru64 Unix objects are PIC.
  6963. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6964. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6965. + ;;
  6966. + *)
  6967. + ;;
  6968. + esac
  6969. + ;;
  6970. + psos*)
  6971. + ;;
  6972. + solaris*)
  6973. + case $cc_basename in
  6974. + CC*)
  6975. + # Sun C++ 4.2, 5.x and Centerline C++
  6976. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6977. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6978. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6979. + ;;
  6980. + gcx*)
  6981. + # Green Hills C++ Compiler
  6982. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6983. + ;;
  6984. + *)
  6985. + ;;
  6986. + esac
  6987. + ;;
  6988. + sunos4*)
  6989. + case $cc_basename in
  6990. + CC*)
  6991. + # Sun C++ 4.x
  6992. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6993. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6994. + ;;
  6995. + lcc*)
  6996. + # Lucid
  6997. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6998. + ;;
  6999. + *)
  7000. + ;;
  7001. + esac
  7002. + ;;
  7003. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7004. + case $cc_basename in
  7005. + CC*)
  7006. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7007. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7008. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7009. + ;;
  7010. + esac
  7011. + ;;
  7012. + tandem*)
  7013. + case $cc_basename in
  7014. + NCC*)
  7015. + # NonStop-UX NCC 3.20
  7016. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7017. + ;;
  7018. + *)
  7019. + ;;
  7020. + esac
  7021. + ;;
  7022. + vxworks*)
  7023. + ;;
  7024. + *)
  7025. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7026. + ;;
  7027. + esac
  7028. + fi
  7029. +],
  7030. +[
  7031. + if test "$GCC" = yes; then
  7032. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7033. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7034. - case $lt_echo in
  7035. - *'\[$]0 --fallback-echo"')
  7036. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  7037. - ;;
  7038. - esac
  7039. + case $host_os in
  7040. + aix*)
  7041. + # All AIX code is PIC.
  7042. + if test "$host_cpu" = ia64; then
  7043. + # AIX 5 now supports IA64 processor
  7044. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7045. + fi
  7046. + ;;
  7047. -ifelse([$1], [],
  7048. - [cfgfile="${ofile}T"
  7049. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  7050. - $rm -f "$cfgfile"
  7051. - AC_MSG_NOTICE([creating $ofile])],
  7052. - [cfgfile="$ofile"])
  7053. + amigaos*)
  7054. + case $host_cpu in
  7055. + powerpc)
  7056. + # see comment about AmigaOS4 .so support
  7057. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7058. + ;;
  7059. + m68k)
  7060. + # FIXME: we need at least 68020 code to build shared libraries, but
  7061. + # adding the `-m68020' flag to GCC prevents building anything better,
  7062. + # like `-m68040'.
  7063. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7064. + ;;
  7065. + esac
  7066. + ;;
  7067. - cat <<__EOF__ >> "$cfgfile"
  7068. -ifelse([$1], [],
  7069. -[#! $SHELL
  7070. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7071. + # PIC is the default for these OSes.
  7072. + ;;
  7073. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  7074. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  7075. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  7076. -#
  7077. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  7078. -# Free Software Foundation, Inc.
  7079. -#
  7080. -# This file is part of GNU Libtool:
  7081. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  7082. -#
  7083. -# This program is free software; you can redistribute it and/or modify
  7084. -# it under the terms of the GNU General Public License as published by
  7085. -# the Free Software Foundation; either version 2 of the License, or
  7086. -# (at your option) any later version.
  7087. -#
  7088. -# This program is distributed in the hope that it will be useful, but
  7089. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  7090. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  7091. -# General Public License for more details.
  7092. -#
  7093. -# You should have received a copy of the GNU General Public License
  7094. -# along with this program; if not, write to the Free Software
  7095. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7096. -#
  7097. -# As a special exception to the GNU General Public License, if you
  7098. -# distribute this file as part of a program that contains a
  7099. -# configuration script generated by Autoconf, you may include it under
  7100. -# the same distribution terms that you use for the rest of that program.
  7101. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7102. + # This hack is so that the source file can tell whether it is being
  7103. + # built for inclusion in a dll (and should export symbols for example).
  7104. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7105. + # (--disable-auto-import) libraries
  7106. + m4_if([$1], [GCJ], [],
  7107. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7108. + ;;
  7109. -# A sed program that does not truncate output.
  7110. -SED=$lt_SED
  7111. + darwin* | rhapsody*)
  7112. + # PIC is the default on this platform
  7113. + # Common symbols not allowed in MH_DYLIB files
  7114. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7115. + ;;
  7116. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  7117. -Xsed="$SED -e s/^X//"
  7118. + hpux*)
  7119. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7120. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7121. + # sets the default TLS model and affects inlining.
  7122. + case $host_cpu in
  7123. + hppa*64*)
  7124. + # +Z the default
  7125. + ;;
  7126. + *)
  7127. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7128. + ;;
  7129. + esac
  7130. + ;;
  7131. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  7132. -# if CDPATH is set.
  7133. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  7134. + interix[[3-9]]*)
  7135. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7136. + # Instead, we relocate shared libraries at runtime.
  7137. + ;;
  7138. -# The names of the tagged configurations supported by this script.
  7139. -available_tags=
  7140. + msdosdjgpp*)
  7141. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7142. + # on systems that don't support them.
  7143. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7144. + enable_shared=no
  7145. + ;;
  7146. -# ### BEGIN LIBTOOL CONFIG],
  7147. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7148. + *nto* | *qnx*)
  7149. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7150. + # it will coredump.
  7151. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7152. + ;;
  7153. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7154. + sysv4*MP*)
  7155. + if test -d /usr/nec; then
  7156. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7157. + fi
  7158. + ;;
  7159. -# Shell to use when invoking shell scripts.
  7160. -SHELL=$lt_SHELL
  7161. + *)
  7162. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7163. + ;;
  7164. + esac
  7165. + else
  7166. + # PORTME Check for flag to pass linker flags through the system compiler.
  7167. + case $host_os in
  7168. + aix*)
  7169. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7170. + if test "$host_cpu" = ia64; then
  7171. + # AIX 5 now supports IA64 processor
  7172. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7173. + else
  7174. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7175. + fi
  7176. + ;;
  7177. -# Whether or not to build shared libraries.
  7178. -build_libtool_libs=$enable_shared
  7179. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7180. + # This hack is so that the source file can tell whether it is being
  7181. + # built for inclusion in a dll (and should export symbols for example).
  7182. + m4_if([$1], [GCJ], [],
  7183. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7184. + ;;
  7185. -# Whether or not to build static libraries.
  7186. -build_old_libs=$enable_static
  7187. -
  7188. -# Whether or not to add -lc for building shared libraries.
  7189. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7190. -
  7191. -# Whether or not to disallow shared libs when runtime libs are static
  7192. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7193. -
  7194. -# Whether or not to optimize for fast installation.
  7195. -fast_install=$enable_fast_install
  7196. -
  7197. -# The host system.
  7198. -host_alias=$host_alias
  7199. -host=$host
  7200. -
  7201. -# An echo program that does not interpret backslashes.
  7202. -echo=$lt_echo
  7203. -
  7204. -# The archiver.
  7205. -AR=$lt_AR
  7206. -AR_FLAGS=$lt_AR_FLAGS
  7207. -
  7208. -# A C compiler.
  7209. -LTCC=$lt_LTCC
  7210. -
  7211. -# A language-specific compiler.
  7212. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7213. -
  7214. -# Is the compiler the GNU C compiler?
  7215. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7216. -
  7217. -# An ERE matcher.
  7218. -EGREP=$lt_EGREP
  7219. -
  7220. -# The linker used to build libraries.
  7221. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7222. -
  7223. -# Whether we need hard or soft links.
  7224. -LN_S=$lt_LN_S
  7225. -
  7226. -# A BSD-compatible nm program.
  7227. -NM=$lt_NM
  7228. + hpux9* | hpux10* | hpux11*)
  7229. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7230. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7231. + # not for PA HP-UX.
  7232. + case $host_cpu in
  7233. + hppa*64*|ia64*)
  7234. + # +Z the default
  7235. + ;;
  7236. + *)
  7237. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7238. + ;;
  7239. + esac
  7240. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7241. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7242. + ;;
  7243. -# A symbol stripping program
  7244. -STRIP=$lt_STRIP
  7245. + irix5* | irix6* | nonstopux*)
  7246. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7247. + # PIC (with -KPIC) is the default.
  7248. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7249. + ;;
  7250. -# Used to examine libraries when file_magic_cmd begins "file"
  7251. -MAGIC_CMD=$MAGIC_CMD
  7252. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7253. + case $cc_basename in
  7254. + # old Intel for x86_64 which still supported -KPIC.
  7255. + ecc*)
  7256. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7257. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7258. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7259. + ;;
  7260. + # icc used to be incompatible with GCC.
  7261. + # ICC 10 doesn't accept -KPIC any more.
  7262. + icc* | ifort*)
  7263. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7264. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7265. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7266. + ;;
  7267. + # Lahey Fortran 8.1.
  7268. + lf95*)
  7269. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7270. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7271. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7272. + ;;
  7273. + pgcc* | pgf77* | pgf90* | pgf95*)
  7274. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7275. + # which looks to be a dead project)
  7276. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7277. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7278. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7279. + ;;
  7280. + ccc*)
  7281. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7282. + # All Alpha code is PIC.
  7283. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7284. + ;;
  7285. + xl*)
  7286. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7287. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7288. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7289. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7290. + ;;
  7291. + *)
  7292. + case `$CC -V 2>&1 | sed 5q` in
  7293. + *Sun\ C*)
  7294. + # Sun C 5.9
  7295. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7296. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7297. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7298. + ;;
  7299. + *Sun\ F*)
  7300. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7301. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7302. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7303. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7304. + ;;
  7305. + esac
  7306. + ;;
  7307. + esac
  7308. + ;;
  7309. -# Used on cygwin: DLL creation program.
  7310. -DLLTOOL="$DLLTOOL"
  7311. + newsos6)
  7312. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7313. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7314. + ;;
  7315. -# Used on cygwin: object dumper.
  7316. -OBJDUMP="$OBJDUMP"
  7317. + *nto* | *qnx*)
  7318. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7319. + # it will coredump.
  7320. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7321. + ;;
  7322. -# Used on cygwin: assembler.
  7323. -AS="$AS"
  7324. + osf3* | osf4* | osf5*)
  7325. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7326. + # All OSF/1 code is PIC.
  7327. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7328. + ;;
  7329. -# The name of the directory that contains temporary libtool files.
  7330. -objdir=$objdir
  7331. + rdos*)
  7332. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7333. + ;;
  7334. -# How to create reloadable object files.
  7335. -reload_flag=$lt_reload_flag
  7336. -reload_cmds=$lt_reload_cmds
  7337. + solaris*)
  7338. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7339. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7340. + case $cc_basename in
  7341. + f77* | f90* | f95*)
  7342. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7343. + *)
  7344. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7345. + esac
  7346. + ;;
  7347. -# How to pass a linker flag through the compiler.
  7348. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7349. + sunos4*)
  7350. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7351. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7352. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7353. + ;;
  7354. -# Object file suffix (normally "o").
  7355. -objext="$ac_objext"
  7356. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7357. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7358. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7359. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7360. + ;;
  7361. -# Old archive suffix (normally "a").
  7362. -libext="$libext"
  7363. + sysv4*MP*)
  7364. + if test -d /usr/nec ;then
  7365. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7366. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7367. + fi
  7368. + ;;
  7369. -# Shared library suffix (normally ".so").
  7370. -shrext='$shrext'
  7371. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7372. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7373. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7374. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7375. + ;;
  7376. -# Executable file suffix (normally "").
  7377. -exeext="$exeext"
  7378. + unicos*)
  7379. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7380. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7381. + ;;
  7382. -# Additional compiler flags for building library objects.
  7383. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7384. -pic_mode=$pic_mode
  7385. + uts4*)
  7386. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7387. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7388. + ;;
  7389. -# What is the maximum length of a command?
  7390. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7391. + *)
  7392. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7393. + ;;
  7394. + esac
  7395. + fi
  7396. +])
  7397. +case $host_os in
  7398. + # For platforms which do not support PIC, -DPIC is meaningless:
  7399. + *djgpp*)
  7400. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7401. + ;;
  7402. + *)
  7403. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7404. + ;;
  7405. +esac
  7406. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7407. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7408. + [How to pass a linker flag through the compiler])
  7409. -# Does compiler simultaneously support -c and -o options?
  7410. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7411. +#
  7412. +# Check to make sure the PIC flag actually works.
  7413. +#
  7414. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7415. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7416. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7417. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7418. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7419. + "" | " "*) ;;
  7420. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7421. + esac],
  7422. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7423. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7424. +fi
  7425. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7426. + [Additional compiler flags for building library objects])
  7427. -# Must we lock files when doing compilation ?
  7428. -need_locks=$lt_need_locks
  7429. +#
  7430. +# Check to make sure the static flag actually works.
  7431. +#
  7432. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7433. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7434. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7435. + $lt_tmp_static_flag,
  7436. + [],
  7437. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7438. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7439. + [Compiler flag to prevent dynamic linking])
  7440. +])# _LT_COMPILER_PIC
  7441. -# Do we need the lib prefix for modules?
  7442. -need_lib_prefix=$need_lib_prefix
  7443. -# Do we need a version for libraries?
  7444. -need_version=$need_version
  7445. +# _LT_LINKER_SHLIBS([TAGNAME])
  7446. +# ----------------------------
  7447. +# See if the linker supports building shared libraries.
  7448. +m4_defun([_LT_LINKER_SHLIBS],
  7449. +[AC_REQUIRE([LT_PATH_LD])dnl
  7450. +AC_REQUIRE([LT_PATH_NM])dnl
  7451. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7452. +m4_require([_LT_DECL_EGREP])dnl
  7453. +m4_require([_LT_DECL_SED])dnl
  7454. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7455. +m4_require([_LT_TAG_COMPILER])dnl
  7456. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7457. +m4_if([$1], [CXX], [
  7458. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7459. + case $host_os in
  7460. + aix[[4-9]]*)
  7461. + # If we're using GNU nm, then we don't want the "-C" option.
  7462. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7463. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7464. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7465. + else
  7466. + _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'
  7467. + fi
  7468. + ;;
  7469. + pw32*)
  7470. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7471. + ;;
  7472. + cygwin* | mingw* | cegcc*)
  7473. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  7474. + ;;
  7475. + linux* | k*bsd*-gnu)
  7476. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7477. + ;;
  7478. + *)
  7479. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7480. + ;;
  7481. + esac
  7482. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7483. +], [
  7484. + runpath_var=
  7485. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7486. + _LT_TAGVAR(always_export_symbols, $1)=no
  7487. + _LT_TAGVAR(archive_cmds, $1)=
  7488. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7489. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7490. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7491. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7492. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7493. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7494. + _LT_TAGVAR(hardcode_direct, $1)=no
  7495. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7496. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7497. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7498. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7499. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7500. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7501. + _LT_TAGVAR(inherit_rpath, $1)=no
  7502. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7503. + _LT_TAGVAR(module_cmds, $1)=
  7504. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7505. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7506. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7507. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7508. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7509. + # include_expsyms should be a list of space-separated symbols to be *always*
  7510. + # included in the symbol list
  7511. + _LT_TAGVAR(include_expsyms, $1)=
  7512. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7513. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7514. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7515. + # as well as any symbol that contains `d'.
  7516. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7517. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7518. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7519. + # the symbol is explicitly referenced. Since portable code cannot
  7520. + # rely on this symbol name, it's probably fine to never include it in
  7521. + # preloaded symbol tables.
  7522. + # Exclude shared library initialization/finalization symbols.
  7523. +dnl Note also adjust exclude_expsyms for C++ above.
  7524. + extract_expsyms_cmds=
  7525. -# Whether dlopen is supported.
  7526. -dlopen_support=$enable_dlopen
  7527. + case $host_os in
  7528. + cygwin* | mingw* | pw32* | cegcc*)
  7529. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7530. + # When not using gcc, we currently assume that we are using
  7531. + # Microsoft Visual C++.
  7532. + if test "$GCC" != yes; then
  7533. + with_gnu_ld=no
  7534. + fi
  7535. + ;;
  7536. + interix*)
  7537. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7538. + with_gnu_ld=yes
  7539. + ;;
  7540. + openbsd*)
  7541. + with_gnu_ld=no
  7542. + ;;
  7543. + linux* | k*bsd*-gnu)
  7544. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7545. + ;;
  7546. + esac
  7547. -# Whether dlopen of programs is supported.
  7548. -dlopen_self=$enable_dlopen_self
  7549. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7550. + if test "$with_gnu_ld" = yes; then
  7551. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7552. + wlarc='${wl}'
  7553. -# Whether dlopen of statically linked programs is supported.
  7554. -dlopen_self_static=$enable_dlopen_self_static
  7555. + # Set some defaults for GNU ld with shared library support. These
  7556. + # are reset later if shared libraries are not supported. Putting them
  7557. + # here allows them to be overridden if necessary.
  7558. + runpath_var=LD_RUN_PATH
  7559. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7560. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7561. + # ancient GNU ld didn't support --whole-archive et. al.
  7562. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7563. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7564. + else
  7565. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7566. + fi
  7567. + supports_anon_versioning=no
  7568. + case `$LD -v 2>&1` in
  7569. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7570. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7571. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7572. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7573. + *\ 2.11.*) ;; # other 2.11 versions
  7574. + *) supports_anon_versioning=yes ;;
  7575. + esac
  7576. -# Compiler flag to prevent dynamic linking.
  7577. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7578. + # See if GNU ld supports shared libraries.
  7579. + case $host_os in
  7580. + aix[[3-9]]*)
  7581. + # On AIX/PPC, the GNU linker is very broken
  7582. + if test "$host_cpu" != ia64; then
  7583. + _LT_TAGVAR(ld_shlibs, $1)=no
  7584. + cat <<_LT_EOF 1>&2
  7585. -# Compiler flag to turn off builtin functions.
  7586. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7587. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7588. +*** to be unable to reliably create shared libraries on AIX.
  7589. +*** Therefore, libtool is disabling shared libraries support. If you
  7590. +*** really care for shared libraries, you may want to modify your PATH
  7591. +*** so that a non-GNU linker is found, and then restart.
  7592. -# Compiler flag to allow reflexive dlopens.
  7593. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7594. +_LT_EOF
  7595. + fi
  7596. + ;;
  7597. -# Compiler flag to generate shared objects directly from archives.
  7598. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7599. + amigaos*)
  7600. + case $host_cpu in
  7601. + powerpc)
  7602. + # see comment about AmigaOS4 .so support
  7603. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7604. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7605. + ;;
  7606. + m68k)
  7607. + _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)'
  7608. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7609. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7610. + ;;
  7611. + esac
  7612. + ;;
  7613. -# Compiler flag to generate thread-safe objects.
  7614. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7615. + beos*)
  7616. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7617. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7618. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7619. + # support --undefined. This deserves some investigation. FIXME
  7620. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7621. + else
  7622. + _LT_TAGVAR(ld_shlibs, $1)=no
  7623. + fi
  7624. + ;;
  7625. -# Library versioning type.
  7626. -version_type=$version_type
  7627. + cygwin* | mingw* | pw32* | cegcc*)
  7628. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7629. + # as there is no search path for DLLs.
  7630. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7631. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7632. + _LT_TAGVAR(always_export_symbols, $1)=no
  7633. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7634. + _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'
  7635. -# Format of library name prefix.
  7636. -libname_spec=$lt_libname_spec
  7637. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7638. + _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'
  7639. + # If the export-symbols file already is a .def file (1st line
  7640. + # is EXPORTS), use it as is; otherwise, prepend...
  7641. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7642. + cp $export_symbols $output_objdir/$soname.def;
  7643. + else
  7644. + echo EXPORTS > $output_objdir/$soname.def;
  7645. + cat $export_symbols >> $output_objdir/$soname.def;
  7646. + fi~
  7647. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7648. + else
  7649. + _LT_TAGVAR(ld_shlibs, $1)=no
  7650. + fi
  7651. + ;;
  7652. -# List of archive names. First name is the real one, the rest are links.
  7653. -# The last name is the one that the linker finds with -lNAME.
  7654. -library_names_spec=$lt_library_names_spec
  7655. + interix[[3-9]]*)
  7656. + _LT_TAGVAR(hardcode_direct, $1)=no
  7657. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7658. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7659. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7660. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7661. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7662. + # default) and relocated if they conflict, which is a slow very memory
  7663. + # consuming and fragmenting process. To avoid this, we pick a random,
  7664. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7665. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7666. + _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'
  7667. + _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'
  7668. + ;;
  7669. +
  7670. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7671. + tmp_diet=no
  7672. + if test "$host_os" = linux-dietlibc; then
  7673. + case $cc_basename in
  7674. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7675. + esac
  7676. + fi
  7677. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7678. + && test "$tmp_diet" = no
  7679. + then
  7680. + tmp_addflag=
  7681. + tmp_sharedflag='-shared'
  7682. + case $cc_basename,$host_cpu in
  7683. + pgcc*) # Portland Group C compiler
  7684. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7685. + tmp_addflag=' $pic_flag'
  7686. + ;;
  7687. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7688. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7689. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7690. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7691. + tmp_addflag=' -i_dynamic' ;;
  7692. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7693. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7694. + ifc* | ifort*) # Intel Fortran compiler
  7695. + tmp_addflag=' -nofor_main' ;;
  7696. + lf95*) # Lahey Fortran 8.1
  7697. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7698. + tmp_sharedflag='--shared' ;;
  7699. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7700. + tmp_sharedflag='-qmkshrobj'
  7701. + tmp_addflag= ;;
  7702. + esac
  7703. + case `$CC -V 2>&1 | sed 5q` in
  7704. + *Sun\ C*) # Sun C 5.9
  7705. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7706. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7707. + tmp_sharedflag='-G' ;;
  7708. + *Sun\ F*) # Sun Fortran 8.3
  7709. + tmp_sharedflag='-G' ;;
  7710. + esac
  7711. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7712. -# The coded name of the library, if different from the real name.
  7713. -soname_spec=$lt_soname_spec
  7714. + if test "x$supports_anon_versioning" = xyes; then
  7715. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7716. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7717. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7718. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7719. + fi
  7720. -# Commands used to build and install an old-style archive.
  7721. -RANLIB=$lt_RANLIB
  7722. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7723. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7724. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7725. + case $cc_basename in
  7726. + xlf*)
  7727. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7728. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  7729. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7730. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  7731. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7732. + if test "x$supports_anon_versioning" = xyes; then
  7733. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7734. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7735. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7736. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7737. + fi
  7738. + ;;
  7739. + esac
  7740. + else
  7741. + _LT_TAGVAR(ld_shlibs, $1)=no
  7742. + fi
  7743. + ;;
  7744. -# Create an old-style archive from a shared archive.
  7745. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7746. + netbsd* | netbsdelf*-gnu)
  7747. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7748. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7749. + wlarc=
  7750. + else
  7751. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7752. + _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'
  7753. + fi
  7754. + ;;
  7755. -# Create a temporary old-style archive to link instead of a shared archive.
  7756. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7757. + solaris*)
  7758. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7759. + _LT_TAGVAR(ld_shlibs, $1)=no
  7760. + cat <<_LT_EOF 1>&2
  7761. -# Commands used to build and install a shared archive.
  7762. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7763. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7764. -postinstall_cmds=$lt_postinstall_cmds
  7765. -postuninstall_cmds=$lt_postuninstall_cmds
  7766. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7767. +*** create shared libraries on Solaris systems. Therefore, libtool
  7768. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7769. +*** binutils to release 2.9.1 or newer. Another option is to modify
  7770. +*** your PATH or compiler configuration so that the native linker is
  7771. +*** used, and then restart.
  7772. -# Commands used to build a loadable module (assumed same as above if empty)
  7773. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7774. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7775. +_LT_EOF
  7776. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7777. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7778. + _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'
  7779. + else
  7780. + _LT_TAGVAR(ld_shlibs, $1)=no
  7781. + fi
  7782. + ;;
  7783. -# Commands to strip libraries.
  7784. -old_striplib=$lt_old_striplib
  7785. -striplib=$lt_striplib
  7786. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7787. + case `$LD -v 2>&1` in
  7788. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  7789. + _LT_TAGVAR(ld_shlibs, $1)=no
  7790. + cat <<_LT_EOF 1>&2
  7791. -# Dependencies to place before the objects being linked to create a
  7792. -# shared library.
  7793. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7794. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7795. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  7796. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7797. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7798. +*** your PATH or compiler configuration so that the native linker is
  7799. +*** used, and then restart.
  7800. -# Dependencies to place after the objects being linked to create a
  7801. -# shared library.
  7802. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7803. +_LT_EOF
  7804. + ;;
  7805. + *)
  7806. + # For security reasons, it is highly recommended that you always
  7807. + # use absolute paths for naming shared libraries, and exclude the
  7808. + # DT_RUNPATH tag from executables and libraries. But doing so
  7809. + # requires that you compile everything twice, which is a pain.
  7810. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7811. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7812. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7813. + _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'
  7814. + else
  7815. + _LT_TAGVAR(ld_shlibs, $1)=no
  7816. + fi
  7817. + ;;
  7818. + esac
  7819. + ;;
  7820. -# Dependencies to place before the objects being linked to create a
  7821. -# shared library.
  7822. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7823. + sunos4*)
  7824. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7825. + wlarc=
  7826. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7827. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7828. + ;;
  7829. -# Dependencies to place after the objects being linked to create a
  7830. -# shared library.
  7831. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7832. + *)
  7833. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7834. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7835. + _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'
  7836. + else
  7837. + _LT_TAGVAR(ld_shlibs, $1)=no
  7838. + fi
  7839. + ;;
  7840. + esac
  7841. -# The library search path used internally by the compiler when linking
  7842. -# a shared library.
  7843. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7844. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  7845. + runpath_var=
  7846. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7847. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7848. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7849. + fi
  7850. + else
  7851. + # PORTME fill in a description of your system's linker (not GNU ld)
  7852. + case $host_os in
  7853. + aix3*)
  7854. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7855. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7856. + _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'
  7857. + # Note: this linker hardcodes the directories in LIBPATH if there
  7858. + # are no directories specified by -L.
  7859. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7860. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7861. + # Neither direct hardcoding nor static linking is supported with a
  7862. + # broken collect2.
  7863. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7864. + fi
  7865. + ;;
  7866. -# Method to check whether dependent libraries are shared objects.
  7867. -deplibs_check_method=$lt_deplibs_check_method
  7868. + aix[[4-9]]*)
  7869. + if test "$host_cpu" = ia64; then
  7870. + # On IA64, the linker does run time linking by default, so we don't
  7871. + # have to do anything special.
  7872. + aix_use_runtimelinking=no
  7873. + exp_sym_flag='-Bexport'
  7874. + no_entry_flag=""
  7875. + else
  7876. + # If we're using GNU nm, then we don't want the "-C" option.
  7877. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7878. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7879. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7880. + else
  7881. + _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'
  7882. + fi
  7883. + aix_use_runtimelinking=no
  7884. -# Command to use when deplibs_check_method == file_magic.
  7885. -file_magic_cmd=$lt_file_magic_cmd
  7886. + # Test if we are trying to use run time linking or normal
  7887. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7888. + # need to do runtime linking.
  7889. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7890. + for ld_flag in $LDFLAGS; do
  7891. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7892. + aix_use_runtimelinking=yes
  7893. + break
  7894. + fi
  7895. + done
  7896. + ;;
  7897. + esac
  7898. -# Flag that allows shared libraries with undefined symbols to be built.
  7899. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7900. + exp_sym_flag='-bexport'
  7901. + no_entry_flag='-bnoentry'
  7902. + fi
  7903. -# Flag that forces no undefined symbols.
  7904. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7905. + # When large executables or shared objects are built, AIX ld can
  7906. + # have problems creating the table of contents. If linking a library
  7907. + # or program results in "error TOC overflow" add -mminimal-toc to
  7908. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7909. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7910. -# Commands used to finish a libtool library installation in a directory.
  7911. -finish_cmds=$lt_finish_cmds
  7912. + _LT_TAGVAR(archive_cmds, $1)=''
  7913. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7914. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7915. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7916. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7917. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7918. -# Same as above, but a single script fragment to be evaled but not shown.
  7919. -finish_eval=$lt_finish_eval
  7920. + if test "$GCC" = yes; then
  7921. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7922. + # We only want to do this on AIX 4.2 and lower, the check
  7923. + # below for broken collect2 doesn't work under 4.3+
  7924. + collect2name=`${CC} -print-prog-name=collect2`
  7925. + if test -f "$collect2name" &&
  7926. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7927. + then
  7928. + # We have reworked collect2
  7929. + :
  7930. + else
  7931. + # We have old collect2
  7932. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7933. + # It fails to find uninstalled libraries when the uninstalled
  7934. + # path is not listed in the libpath. Setting hardcode_minus_L
  7935. + # to unsupported forces relinking
  7936. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7937. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7938. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7939. + fi
  7940. + ;;
  7941. + esac
  7942. + shared_flag='-shared'
  7943. + if test "$aix_use_runtimelinking" = yes; then
  7944. + shared_flag="$shared_flag "'${wl}-G'
  7945. + fi
  7946. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7947. + else
  7948. + # not using gcc
  7949. + if test "$host_cpu" = ia64; then
  7950. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7951. + # chokes on -Wl,-G. The following line is correct:
  7952. + shared_flag='-G'
  7953. + else
  7954. + if test "$aix_use_runtimelinking" = yes; then
  7955. + shared_flag='${wl}-G'
  7956. + else
  7957. + shared_flag='${wl}-bM:SRE'
  7958. + fi
  7959. + fi
  7960. + fi
  7961. -# Take the output of nm and produce a listing of raw symbols and C names.
  7962. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7963. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7964. + # It seems that -bexpall does not export symbols beginning with
  7965. + # underscore (_), so it is better to generate a list of symbols to export.
  7966. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7967. + if test "$aix_use_runtimelinking" = yes; then
  7968. + # Warning - without using the other runtime loading flags (-brtl),
  7969. + # -berok will link without error, but may produce a broken library.
  7970. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7971. + # Determine the default libpath from the value encoded in an
  7972. + # empty executable.
  7973. + _LT_SYS_MODULE_PATH_AIX
  7974. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7975. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7976. + else
  7977. + if test "$host_cpu" = ia64; then
  7978. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7979. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7980. + _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"
  7981. + else
  7982. + # Determine the default libpath from the value encoded in an
  7983. + # empty executable.
  7984. + _LT_SYS_MODULE_PATH_AIX
  7985. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7986. + # Warning - without using the other run time loading flags,
  7987. + # -berok will link without error, but may produce a broken library.
  7988. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7989. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7990. + # Exported symbols can be pulled into shared objects from archives
  7991. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7992. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7993. + # This is similar to how AIX traditionally builds its shared libraries.
  7994. + _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'
  7995. + fi
  7996. + fi
  7997. + ;;
  7998. -# Transform the output of nm in a proper C declaration
  7999. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  8000. + amigaos*)
  8001. + case $host_cpu in
  8002. + powerpc)
  8003. + # see comment about AmigaOS4 .so support
  8004. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8005. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8006. + ;;
  8007. + m68k)
  8008. + _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)'
  8009. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8010. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8011. + ;;
  8012. + esac
  8013. + ;;
  8014. -# Transform the output of nm in a C name address pair
  8015. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  8016. + bsdi[[45]]*)
  8017. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8018. + ;;
  8019. -# This is the shared library runtime path variable.
  8020. -runpath_var=$runpath_var
  8021. + cygwin* | mingw* | pw32* | cegcc*)
  8022. + # When not using gcc, we currently assume that we are using
  8023. + # Microsoft Visual C++.
  8024. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8025. + # no search path for DLLs.
  8026. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8027. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8028. + # Tell ltmain to make .lib files, not .a files.
  8029. + libext=lib
  8030. + # Tell ltmain to make .dll files, not .so files.
  8031. + shrext_cmds=".dll"
  8032. + # FIXME: Setting linknames here is a bad hack.
  8033. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8034. + # The linker will automatically build a .lib file if we build a DLL.
  8035. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8036. + # FIXME: Should let the user specify the lib program.
  8037. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8038. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8039. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8040. + ;;
  8041. -# This is the shared library path variable.
  8042. -shlibpath_var=$shlibpath_var
  8043. + darwin* | rhapsody*)
  8044. + _LT_DARWIN_LINKER_FEATURES($1)
  8045. + ;;
  8046. -# Is shlibpath searched before the hard-coded library search path?
  8047. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8048. + dgux*)
  8049. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8050. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8051. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8052. + ;;
  8053. -# How to hardcode a shared library path into an executable.
  8054. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  8055. + freebsd1*)
  8056. + _LT_TAGVAR(ld_shlibs, $1)=no
  8057. + ;;
  8058. -# Whether we should hardcode library paths into libraries.
  8059. -hardcode_into_libs=$hardcode_into_libs
  8060. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8061. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8062. + # does not break anything, and helps significantly (at the cost of a little
  8063. + # extra space).
  8064. + freebsd2.2*)
  8065. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8066. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8067. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8068. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8069. + ;;
  8070. -# Flag to hardcode \$libdir into a binary during linking.
  8071. -# This must work even if \$libdir does not exist.
  8072. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  8073. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8074. + freebsd2*)
  8075. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8076. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8077. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8078. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8079. + ;;
  8080. -# If ld is used when linking, flag to hardcode \$libdir into
  8081. -# a binary during linking. This must work even if \$libdir does
  8082. -# not exist.
  8083. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  8084. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8085. + freebsd* | dragonfly*)
  8086. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8087. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8088. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8089. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8090. + ;;
  8091. -# Whether we need a single -rpath flag with a separated argument.
  8092. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  8093. + hpux9*)
  8094. + if test "$GCC" = yes; then
  8095. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8096. + else
  8097. + _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'
  8098. + fi
  8099. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8100. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8101. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8102. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  8103. -# resulting binary.
  8104. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  8105. + # hardcode_minus_L: Not really in the search PATH,
  8106. + # but as the default location of the library.
  8107. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8108. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8109. + ;;
  8110. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8111. -# resulting binary.
  8112. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  8113. + hpux10*)
  8114. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8115. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8116. + else
  8117. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8118. + fi
  8119. + if test "$with_gnu_ld" = no; then
  8120. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8121. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8122. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8123. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8124. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8125. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8126. + # hardcode_minus_L: Not really in the search PATH,
  8127. + # but as the default location of the library.
  8128. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8129. + fi
  8130. + ;;
  8131. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8132. -# the resulting binary.
  8133. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8134. + hpux11*)
  8135. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8136. + case $host_cpu in
  8137. + hppa*64*)
  8138. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8139. + ;;
  8140. + ia64*)
  8141. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8142. + ;;
  8143. + *)
  8144. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8145. + ;;
  8146. + esac
  8147. + else
  8148. + case $host_cpu in
  8149. + hppa*64*)
  8150. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. + ;;
  8152. + ia64*)
  8153. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8154. + ;;
  8155. + *)
  8156. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8157. + ;;
  8158. + esac
  8159. + fi
  8160. + if test "$with_gnu_ld" = no; then
  8161. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8162. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8163. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8164. -# and all subsequent libraries and executables linked against it.
  8165. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8166. + case $host_cpu in
  8167. + hppa*64*|ia64*)
  8168. + _LT_TAGVAR(hardcode_direct, $1)=no
  8169. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8170. + ;;
  8171. + *)
  8172. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8173. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8174. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8175. -# Variables whose values should be saved in libtool wrapper scripts and
  8176. -# restored at relink time.
  8177. -variables_saved_for_relink="$variables_saved_for_relink"
  8178. + # hardcode_minus_L: Not really in the search PATH,
  8179. + # but as the default location of the library.
  8180. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8181. + ;;
  8182. + esac
  8183. + fi
  8184. + ;;
  8185. -# Whether libtool must link a program against all its dependency libraries.
  8186. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8187. + irix5* | irix6* | nonstopux*)
  8188. + if test "$GCC" = yes; then
  8189. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8190. + # Try to use the -exported_symbol ld option, if it does not
  8191. + # work, assume that -exports_file does not work either and
  8192. + # implicitly export all symbols.
  8193. + save_LDFLAGS="$LDFLAGS"
  8194. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8195. + AC_LINK_IFELSE(int foo(void) {},
  8196. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8197. + )
  8198. + LDFLAGS="$save_LDFLAGS"
  8199. + else
  8200. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8201. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8202. + fi
  8203. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8204. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8205. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8206. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8207. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8208. + ;;
  8209. -# Compile-time system search path for libraries
  8210. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8211. + netbsd* | netbsdelf*-gnu)
  8212. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8213. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8214. + else
  8215. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8216. + fi
  8217. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8218. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8219. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8220. + ;;
  8221. -# Run-time system search path for libraries
  8222. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8223. + newsos6)
  8224. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8225. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8226. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8227. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8228. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8229. + ;;
  8230. -# Fix the shell variable \$srcfile for the compiler.
  8231. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8232. + *nto* | *qnx*)
  8233. + ;;
  8234. -# Set to yes if exported symbols are required.
  8235. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8236. + openbsd*)
  8237. + if test -f /usr/libexec/ld.so; then
  8238. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8239. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8240. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8241. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8242. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8243. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8244. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8245. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8246. + else
  8247. + case $host_os in
  8248. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8249. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8250. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8251. + ;;
  8252. + *)
  8253. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8254. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8255. + ;;
  8256. + esac
  8257. + fi
  8258. + else
  8259. + _LT_TAGVAR(ld_shlibs, $1)=no
  8260. + fi
  8261. + ;;
  8262. -# The commands to list exported symbols.
  8263. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8264. + os2*)
  8265. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8266. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8267. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8268. + _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'
  8269. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8270. + ;;
  8271. -# The commands to extract the exported symbol list from a shared archive.
  8272. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8273. + osf3*)
  8274. + if test "$GCC" = yes; then
  8275. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8276. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8277. + else
  8278. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8279. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8280. + fi
  8281. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8282. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8283. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8284. + ;;
  8285. -# Symbols that should not be listed in the preloaded symbols.
  8286. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8287. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8288. + if test "$GCC" = yes; then
  8289. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8290. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8291. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8292. + else
  8293. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8294. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8295. + _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~
  8296. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8297. -# Symbols that must always be exported.
  8298. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8299. + # Both c and cxx compiler support -rpath directly
  8300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8301. + fi
  8302. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8303. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8304. + ;;
  8305. -ifelse([$1],[],
  8306. -[# ### END LIBTOOL CONFIG],
  8307. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8308. + solaris*)
  8309. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8310. + if test "$GCC" = yes; then
  8311. + wlarc='${wl}'
  8312. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8313. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8314. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8315. + else
  8316. + case `$CC -V 2>&1` in
  8317. + *"Compilers 5.0"*)
  8318. + wlarc=''
  8319. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8320. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8321. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8322. + ;;
  8323. + *)
  8324. + wlarc='${wl}'
  8325. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8326. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8327. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8328. + ;;
  8329. + esac
  8330. + fi
  8331. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8332. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8333. + case $host_os in
  8334. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8335. + *)
  8336. + # The compiler driver will combine and reorder linker options,
  8337. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8338. + # but is careful enough not to reorder.
  8339. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8340. + if test "$GCC" = yes; then
  8341. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8342. + else
  8343. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8344. + fi
  8345. + ;;
  8346. + esac
  8347. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8348. + ;;
  8349. -__EOF__
  8350. + sunos4*)
  8351. + if test "x$host_vendor" = xsequent; then
  8352. + # Use $CC to link under sequent, because it throws in some extra .o
  8353. + # files that make .init and .fini sections work.
  8354. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. + else
  8356. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8357. + fi
  8358. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8359. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8360. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8361. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8362. + ;;
  8363. -ifelse([$1],[], [
  8364. - case $host_os in
  8365. - aix3*)
  8366. - cat <<\EOF >> "$cfgfile"
  8367. + sysv4)
  8368. + case $host_vendor in
  8369. + sni)
  8370. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8371. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8372. + ;;
  8373. + siemens)
  8374. + ## LD is ld it makes a PLAMLIB
  8375. + ## CC just makes a GrossModule.
  8376. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8377. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8378. + _LT_TAGVAR(hardcode_direct, $1)=no
  8379. + ;;
  8380. + motorola)
  8381. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8382. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8383. + ;;
  8384. + esac
  8385. + runpath_var='LD_RUN_PATH'
  8386. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8387. + ;;
  8388. -# AIX sometimes has problems with the GCC collect2 program. For some
  8389. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8390. -# vanish in a puff of smoke.
  8391. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8392. - COLLECT_NAMES=
  8393. - export COLLECT_NAMES
  8394. -fi
  8395. -EOF
  8396. - ;;
  8397. - esac
  8398. + sysv4.3*)
  8399. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8400. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8401. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8402. + ;;
  8403. - # We use sed instead of cat because bash on DJGPP gets confused if
  8404. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8405. - # text mode, it properly converts lines to CR/LF. This bash problem
  8406. - # is reportedly fixed, but why not run on old versions too?
  8407. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8408. + sysv4*MP*)
  8409. + if test -d /usr/nec; then
  8410. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8411. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8412. + runpath_var=LD_RUN_PATH
  8413. + hardcode_runpath_var=yes
  8414. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8415. + fi
  8416. + ;;
  8417. - mv -f "$cfgfile" "$ofile" || \
  8418. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8419. - chmod +x "$ofile"
  8420. -])
  8421. -else
  8422. - # If there is no Makefile yet, we rely on a make rule to execute
  8423. - # `config.status --recheck' to rerun these tests and create the
  8424. - # libtool script then.
  8425. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8426. - if test -f "$ltmain_in"; then
  8427. - test -f Makefile && make "$ltmain"
  8428. - fi
  8429. -fi
  8430. -])# AC_LIBTOOL_CONFIG
  8431. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8432. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8433. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8434. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8435. + runpath_var='LD_RUN_PATH'
  8436. + if test "$GCC" = yes; then
  8437. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8438. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8439. + else
  8440. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8441. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8442. + fi
  8443. + ;;
  8444. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8445. -# -------------------------------------------
  8446. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8447. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8448. + sysv5* | sco3.2v5* | sco5v6*)
  8449. + # Note: We can NOT use -z defs as we might desire, because we do not
  8450. + # link with -lc, and that would cause any symbols used from libc to
  8451. + # always be unresolved, which means just about no library would
  8452. + # ever link correctly. If we're not using GNU ld we use -z text
  8453. + # though, which does catch some bad symbols but isn't as heavy-handed
  8454. + # as -z defs.
  8455. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8456. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8457. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8458. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8459. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8460. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8461. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8462. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8463. + runpath_var='LD_RUN_PATH'
  8464. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8465. + if test "$GCC" = yes; then
  8466. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8467. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8468. + else
  8469. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8470. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8471. + fi
  8472. + ;;
  8473. -if test "$GCC" = yes; then
  8474. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8475. + uts4*)
  8476. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8477. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8478. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8479. + ;;
  8480. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8481. - lt_cv_prog_compiler_rtti_exceptions,
  8482. - [-fno-rtti -fno-exceptions], [],
  8483. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8484. -fi
  8485. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8486. + *)
  8487. + _LT_TAGVAR(ld_shlibs, $1)=no
  8488. + ;;
  8489. + esac
  8490. + if test x$host_vendor = xsni; then
  8491. + case $host in
  8492. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8493. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8494. + ;;
  8495. + esac
  8496. + fi
  8497. + fi
  8498. +])
  8499. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8500. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8501. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8502. -# ---------------------------------
  8503. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8504. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8505. -AC_REQUIRE([AC_PROG_NM])
  8506. -AC_REQUIRE([AC_OBJEXT])
  8507. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8508. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8509. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8510. -[
  8511. -# These are sane defaults that work on at least a few old systems.
  8512. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8513. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8514. -# Character class describing NM global symbol codes.
  8515. -symcode='[[BCDEGRST]]'
  8516. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8517. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8518. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8519. + [The commands to extract the exported symbol list from a shared archive])
  8520. -# Regexp to match symbols that can be accessed directly from C.
  8521. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8522. +#
  8523. +# Do we need to explicitly link libc?
  8524. +#
  8525. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8526. +x|xyes)
  8527. + # Assume -lc should be added
  8528. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8529. -# Transform the above into a raw symbol and a C symbol.
  8530. -symxfrm='\1 \2\3 \3'
  8531. -
  8532. -# Transform an extracted symbol line into a proper C declaration
  8533. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8534. -
  8535. -# Transform an extracted symbol line into symbol name and symbol address
  8536. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8537. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8538. + case $_LT_TAGVAR(archive_cmds, $1) in
  8539. + *'~'*)
  8540. + # FIXME: we may have to deal with multi-command sequences.
  8541. + ;;
  8542. + '$CC '*)
  8543. + # Test whether the compiler implicitly links with -lc since on some
  8544. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8545. + # to ld, don't add -lc before -lgcc.
  8546. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8547. + $RM conftest*
  8548. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8549. -# Define system-specific variables.
  8550. -case $host_os in
  8551. -aix*)
  8552. - symcode='[[BCDT]]'
  8553. - ;;
  8554. -cygwin* | mingw* | pw32*)
  8555. - symcode='[[ABCDGISTW]]'
  8556. - ;;
  8557. -hpux*) # Its linker distinguishes data from code symbols
  8558. - if test "$host_cpu" = ia64; then
  8559. - symcode='[[ABCDEGRST]]'
  8560. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8561. + soname=conftest
  8562. + lib=conftest
  8563. + libobjs=conftest.$ac_objext
  8564. + deplibs=
  8565. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8566. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8567. + compiler_flags=-v
  8568. + linker_flags=-v
  8569. + verstring=
  8570. + output_objdir=.
  8571. + libname=conftest
  8572. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8573. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8574. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8575. + then
  8576. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8577. + else
  8578. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8579. + fi
  8580. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8581. + else
  8582. + cat conftest.err 1>&5
  8583. + fi
  8584. + $RM conftest*
  8585. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8586. + ;;
  8587. + esac
  8588. fi
  8589. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8590. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8591. - ;;
  8592. -irix* | nonstopux*)
  8593. - symcode='[[BCDEGRST]]'
  8594. - ;;
  8595. -osf*)
  8596. - symcode='[[BCDEGQRST]]'
  8597. - ;;
  8598. -solaris* | sysv5*)
  8599. - symcode='[[BDRT]]'
  8600. - ;;
  8601. -sysv4)
  8602. - symcode='[[DFNSTU]]'
  8603. - ;;
  8604. -esac
  8605. -
  8606. -# Handle CRLF in mingw tool chain
  8607. -opt_cr=
  8608. -case $build_os in
  8609. -mingw*)
  8610. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8611. ;;
  8612. esac
  8613. -# If we're using GNU nm, then use its standard symbol codes.
  8614. -case `$NM -V 2>&1` in
  8615. -*GNU* | *'with BFD'*)
  8616. - symcode='[[ABCDGIRSTW]]' ;;
  8617. -esac
  8618. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8619. + [Whether or not to add -lc for building shared libraries])
  8620. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8621. + [enable_shared_with_static_runtimes], [0],
  8622. + [Whether or not to disallow shared libs when runtime libs are static])
  8623. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8624. + [Compiler flag to allow reflexive dlopens])
  8625. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8626. + [Compiler flag to generate shared objects directly from archives])
  8627. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8628. + [Whether the compiler copes with passing no objects directly])
  8629. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8630. + [Create an old-style archive from a shared archive])
  8631. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8632. + [Create a temporary old-style archive to link instead of a shared archive])
  8633. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8634. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8635. +_LT_TAGDECL([], [module_cmds], [2],
  8636. + [Commands used to build a loadable module if different from building
  8637. + a shared archive.])
  8638. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8639. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8640. + [Whether we are building with GNU ld or not])
  8641. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8642. + [Flag that allows shared libraries with undefined symbols to be built])
  8643. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8644. + [Flag that enforces no undefined symbols])
  8645. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8646. + [Flag to hardcode $libdir into a binary during linking.
  8647. + This must work even if $libdir does not exist])
  8648. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8649. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8650. + during linking. This must work even if $libdir does not exist]])
  8651. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  8652. + [Whether we need a single "-rpath" flag with a separated argument])
  8653. +_LT_TAGDECL([], [hardcode_direct], [0],
  8654. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8655. + DIR into the resulting binary])
  8656. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  8657. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  8658. + DIR into the resulting binary and the resulting library dependency is
  8659. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  8660. + library is relocated])
  8661. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  8662. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  8663. + into the resulting binary])
  8664. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  8665. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  8666. + into the resulting binary])
  8667. +_LT_TAGDECL([], [hardcode_automatic], [0],
  8668. + [Set to "yes" if building a shared library automatically hardcodes DIR
  8669. + into the library and all subsequent libraries and executables linked
  8670. + against it])
  8671. +_LT_TAGDECL([], [inherit_rpath], [0],
  8672. + [Set to yes if linker adds runtime paths of dependent libraries
  8673. + to runtime path list])
  8674. +_LT_TAGDECL([], [link_all_deplibs], [0],
  8675. + [Whether libtool must link a program against all its dependency libraries])
  8676. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  8677. + [Fix the shell variable $srcfile for the compiler])
  8678. +_LT_TAGDECL([], [always_export_symbols], [0],
  8679. + [Set to "yes" if exported symbols are required])
  8680. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  8681. + [The commands to list exported symbols])
  8682. +_LT_TAGDECL([], [exclude_expsyms], [1],
  8683. + [Symbols that should not be listed in the preloaded symbols])
  8684. +_LT_TAGDECL([], [include_expsyms], [1],
  8685. + [Symbols that must always be exported])
  8686. +_LT_TAGDECL([], [prelink_cmds], [2],
  8687. + [Commands necessary for linking programs (against libraries) with templates])
  8688. +_LT_TAGDECL([], [file_list_spec], [1],
  8689. + [Specify filename containing input files])
  8690. +dnl FIXME: Not yet implemented
  8691. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  8692. +dnl [Compiler flag to generate thread safe objects])
  8693. +])# _LT_LINKER_SHLIBS
  8694. -# Try without a prefix undercore, then with it.
  8695. -for ac_symprfx in "" "_"; do
  8696. - # Write the raw and C identifiers.
  8697. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  8698. +# _LT_LANG_C_CONFIG([TAG])
  8699. +# ------------------------
  8700. +# Ensure that the configuration variables for a C compiler are suitably
  8701. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8702. +# the compiler configuration to `libtool'.
  8703. +m4_defun([_LT_LANG_C_CONFIG],
  8704. +[m4_require([_LT_DECL_EGREP])dnl
  8705. +lt_save_CC="$CC"
  8706. +AC_LANG_PUSH(C)
  8707. - # Check to see that the pipe works correctly.
  8708. - pipe_works=no
  8709. +# Source file extension for C test sources.
  8710. +ac_ext=c
  8711. - rm -f conftest*
  8712. - cat > conftest.$ac_ext <<EOF
  8713. -#ifdef __cplusplus
  8714. -extern "C" {
  8715. -#endif
  8716. -char nm_test_var;
  8717. -void nm_test_func(){}
  8718. -#ifdef __cplusplus
  8719. -}
  8720. -#endif
  8721. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8722. -EOF
  8723. +# Object file extension for compiled C test sources.
  8724. +objext=o
  8725. +_LT_TAGVAR(objext, $1)=$objext
  8726. - if AC_TRY_EVAL(ac_compile); then
  8727. - # Now try to grab the symbols.
  8728. - nlist=conftest.nm
  8729. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8730. - # Try sorting and uniquifying the output.
  8731. - if sort "$nlist" | uniq > "$nlist"T; then
  8732. - mv -f "$nlist"T "$nlist"
  8733. - else
  8734. - rm -f "$nlist"T
  8735. - fi
  8736. +# Code to be used in simple compile tests
  8737. +lt_simple_compile_test_code="int some_variable = 0;"
  8738. - # Make sure that we snagged all the symbols we need.
  8739. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8740. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8741. - cat <<EOF > conftest.$ac_ext
  8742. -#ifdef __cplusplus
  8743. -extern "C" {
  8744. -#endif
  8745. +# Code to be used in simple link tests
  8746. +lt_simple_link_test_code='int main(){return(0);}'
  8747. -EOF
  8748. - # Now generate the symbol file.
  8749. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8750. +_LT_TAG_COMPILER
  8751. +# Save the default compiler, since it gets overwritten when the other
  8752. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  8753. +compiler_DEFAULT=$CC
  8754. +
  8755. +# save warnings/boilerplate of simple test code
  8756. +_LT_COMPILER_BOILERPLATE
  8757. +_LT_LINKER_BOILERPLATE
  8758. +
  8759. +if test -n "$compiler"; then
  8760. + _LT_COMPILER_NO_RTTI($1)
  8761. + _LT_COMPILER_PIC($1)
  8762. + _LT_COMPILER_C_O($1)
  8763. + _LT_COMPILER_FILE_LOCKS($1)
  8764. + _LT_LINKER_SHLIBS($1)
  8765. + _LT_SYS_DYNAMIC_LINKER($1)
  8766. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8767. + LT_SYS_DLOPEN_SELF
  8768. + _LT_CMD_STRIPLIB
  8769. +
  8770. + # Report which library types will actually be built
  8771. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8772. + AC_MSG_RESULT([$can_build_shared])
  8773. - cat <<EOF >> conftest.$ac_ext
  8774. -#if defined (__STDC__) && __STDC__
  8775. -# define lt_ptr_t void *
  8776. -#else
  8777. -# define lt_ptr_t char *
  8778. -# define const
  8779. -#endif
  8780. + AC_MSG_CHECKING([whether to build shared libraries])
  8781. + test "$can_build_shared" = "no" && enable_shared=no
  8782. -/* The mapping between symbol names and symbols. */
  8783. -const struct {
  8784. - const char *name;
  8785. - lt_ptr_t address;
  8786. -}
  8787. -lt_preloaded_symbols[[]] =
  8788. -{
  8789. -EOF
  8790. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8791. - cat <<\EOF >> conftest.$ac_ext
  8792. - {0, (lt_ptr_t) 0}
  8793. -};
  8794. + # On AIX, shared libraries and static libraries use the same namespace, and
  8795. + # are all built from PIC.
  8796. + case $host_os in
  8797. + aix3*)
  8798. + test "$enable_shared" = yes && enable_static=no
  8799. + if test -n "$RANLIB"; then
  8800. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8801. + postinstall_cmds='$RANLIB $lib'
  8802. + fi
  8803. + ;;
  8804. -#ifdef __cplusplus
  8805. -}
  8806. -#endif
  8807. -EOF
  8808. - # Now try linking the two files.
  8809. - mv conftest.$ac_objext conftstm.$ac_objext
  8810. - lt_save_LIBS="$LIBS"
  8811. - lt_save_CFLAGS="$CFLAGS"
  8812. - LIBS="conftstm.$ac_objext"
  8813. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8814. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8815. - pipe_works=yes
  8816. - fi
  8817. - LIBS="$lt_save_LIBS"
  8818. - CFLAGS="$lt_save_CFLAGS"
  8819. - else
  8820. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8821. - fi
  8822. - else
  8823. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8824. - fi
  8825. - else
  8826. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8827. + aix[[4-9]]*)
  8828. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8829. + test "$enable_shared" = yes && enable_static=no
  8830. fi
  8831. - else
  8832. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8833. - cat conftest.$ac_ext >&5
  8834. - fi
  8835. - rm -f conftest* conftst*
  8836. + ;;
  8837. + esac
  8838. + AC_MSG_RESULT([$enable_shared])
  8839. - # Do not use the global_symbol_pipe unless it works.
  8840. - if test "$pipe_works" = yes; then
  8841. - break
  8842. - else
  8843. - lt_cv_sys_global_symbol_pipe=
  8844. - fi
  8845. -done
  8846. -])
  8847. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8848. - lt_cv_sys_global_symbol_to_cdecl=
  8849. + AC_MSG_CHECKING([whether to build static libraries])
  8850. + # Make sure either enable_shared or enable_static is yes.
  8851. + test "$enable_shared" = yes || enable_static=yes
  8852. + AC_MSG_RESULT([$enable_static])
  8853. +
  8854. + _LT_CONFIG($1)
  8855. fi
  8856. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8857. - AC_MSG_RESULT(failed)
  8858. +AC_LANG_POP
  8859. +CC="$lt_save_CC"
  8860. +])# _LT_LANG_C_CONFIG
  8861. +
  8862. +
  8863. +# _LT_PROG_CXX
  8864. +# ------------
  8865. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  8866. +# compiler, we have our own version here.
  8867. +m4_defun([_LT_PROG_CXX],
  8868. +[
  8869. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  8870. +AC_PROG_CXX
  8871. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  8872. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  8873. + (test "X$CXX" != "Xg++"))) ; then
  8874. + AC_PROG_CXXCPP
  8875. else
  8876. - AC_MSG_RESULT(ok)
  8877. + _lt_caught_CXX_error=yes
  8878. fi
  8879. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8880. +popdef([AC_MSG_ERROR])
  8881. +])# _LT_PROG_CXX
  8882. +dnl aclocal-1.4 backwards compatibility:
  8883. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  8884. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8885. -# ---------------------------------------
  8886. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8887. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8888. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8889. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8890. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8891. - ifelse([$1],[CXX],[
  8892. - # C++ specific cases for pic, static, wl, etc.
  8893. - if test "$GXX" = yes; then
  8894. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8895. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8896. +# _LT_LANG_CXX_CONFIG([TAG])
  8897. +# --------------------------
  8898. +# Ensure that the configuration variables for a C++ compiler are suitably
  8899. +# defined. These variables are subsequently used by _LT_CONFIG to write
  8900. +# the compiler configuration to `libtool'.
  8901. +m4_defun([_LT_LANG_CXX_CONFIG],
  8902. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  8903. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8904. +m4_require([_LT_DECL_EGREP])dnl
  8905. +
  8906. +AC_LANG_PUSH(C++)
  8907. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8908. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8909. +_LT_TAGVAR(always_export_symbols, $1)=no
  8910. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8911. +_LT_TAGVAR(compiler_needs_object, $1)=no
  8912. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8913. +_LT_TAGVAR(hardcode_direct, $1)=no
  8914. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8915. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8916. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8917. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8918. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8919. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8920. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8921. +_LT_TAGVAR(inherit_rpath, $1)=no
  8922. +_LT_TAGVAR(module_cmds, $1)=
  8923. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8924. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8925. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8926. +_LT_TAGVAR(no_undefined_flag, $1)=
  8927. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8928. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8929. - case $host_os in
  8930. - aix*)
  8931. - # All AIX code is PIC.
  8932. - if test "$host_cpu" = ia64; then
  8933. - # AIX 5 now supports IA64 processor
  8934. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8935. - fi
  8936. - ;;
  8937. - amigaos*)
  8938. - # FIXME: we need at least 68020 code to build shared libraries, but
  8939. - # adding the `-m68020' flag to GCC prevents building anything better,
  8940. - # like `-m68040'.
  8941. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8942. - ;;
  8943. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8944. - # PIC is the default for these OSes.
  8945. - ;;
  8946. - mingw* | os2* | pw32*)
  8947. - # This hack is so that the source file can tell whether it is being
  8948. - # built for inclusion in a dll (and should export symbols for example).
  8949. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  8950. - ;;
  8951. - darwin* | rhapsody*)
  8952. - # PIC is the default on this platform
  8953. - # Common symbols not allowed in MH_DYLIB files
  8954. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8955. - ;;
  8956. - *djgpp*)
  8957. - # DJGPP does not support shared libraries at all
  8958. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8959. - ;;
  8960. - sysv4*MP*)
  8961. - if test -d /usr/nec; then
  8962. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8963. - fi
  8964. - ;;
  8965. - hpux*)
  8966. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8967. - # not for PA HP-UX.
  8968. - case "$host_cpu" in
  8969. - hppa*64*|ia64*)
  8970. - ;;
  8971. - *)
  8972. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8973. - ;;
  8974. - esac
  8975. - ;;
  8976. - *)
  8977. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8978. - ;;
  8979. - esac
  8980. +# Source file extension for C++ test sources.
  8981. +ac_ext=cpp
  8982. +
  8983. +# Object file extension for compiled C++ test sources.
  8984. +objext=o
  8985. +_LT_TAGVAR(objext, $1)=$objext
  8986. +
  8987. +# No sense in running all these tests if we already determined that
  8988. +# the CXX compiler isn't working. Some variables (like enable_shared)
  8989. +# are currently assumed to apply to all compilers on this platform,
  8990. +# and will be corrupted by setting them based on a non-working compiler.
  8991. +if test "$_lt_caught_CXX_error" != yes; then
  8992. + # Code to be used in simple compile tests
  8993. + lt_simple_compile_test_code="int some_variable = 0;"
  8994. +
  8995. + # Code to be used in simple link tests
  8996. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  8997. +
  8998. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8999. + _LT_TAG_COMPILER
  9000. +
  9001. + # save warnings/boilerplate of simple test code
  9002. + _LT_COMPILER_BOILERPLATE
  9003. + _LT_LINKER_BOILERPLATE
  9004. +
  9005. + # Allow CC to be a program name with arguments.
  9006. + lt_save_CC=$CC
  9007. + lt_save_LD=$LD
  9008. + lt_save_GCC=$GCC
  9009. + GCC=$GXX
  9010. + lt_save_with_gnu_ld=$with_gnu_ld
  9011. + lt_save_path_LD=$lt_cv_path_LD
  9012. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9013. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9014. + else
  9015. + $as_unset lt_cv_prog_gnu_ld
  9016. + fi
  9017. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9018. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9019. else
  9020. + $as_unset lt_cv_path_LD
  9021. + fi
  9022. + test -z "${LDCXX+set}" || LD=$LDCXX
  9023. + CC=${CXX-"c++"}
  9024. + compiler=$CC
  9025. + _LT_TAGVAR(compiler, $1)=$CC
  9026. + _LT_CC_BASENAME([$compiler])
  9027. +
  9028. + if test -n "$compiler"; then
  9029. + # We don't want -fno-exception when compiling C++ code, so set the
  9030. + # no_builtin_flag separately
  9031. + if test "$GXX" = yes; then
  9032. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9033. + else
  9034. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9035. + fi
  9036. +
  9037. + if test "$GXX" = yes; then
  9038. + # Set up default GNU C++ configuration
  9039. +
  9040. + LT_PATH_LD
  9041. +
  9042. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9043. + # archiving commands below assume that GNU ld is being used.
  9044. + if test "$with_gnu_ld" = yes; then
  9045. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9046. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9047. +
  9048. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9049. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9050. +
  9051. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9052. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9053. + # investigate it a little bit more. (MM)
  9054. + wlarc='${wl}'
  9055. +
  9056. + # ancient GNU ld didn't support --whole-archive et. al.
  9057. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9058. + $GREP 'no-whole-archive' > /dev/null; then
  9059. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9060. + else
  9061. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9062. + fi
  9063. + else
  9064. + with_gnu_ld=no
  9065. + wlarc=
  9066. +
  9067. + # A generic and very simple default shared library creation
  9068. + # command for GNU C++ for the case where it uses the native
  9069. + # linker, instead of GNU ld. If possible, this setting should
  9070. + # overridden to take advantage of the native linker features on
  9071. + # the platform it is being used on.
  9072. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9073. + fi
  9074. +
  9075. + # Commands to make compiler produce verbose output that lists
  9076. + # what "hidden" libraries, object files and flags are used when
  9077. + # linking a shared library.
  9078. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9079. +
  9080. + else
  9081. + GXX=no
  9082. + with_gnu_ld=no
  9083. + wlarc=
  9084. + fi
  9085. +
  9086. + # PORTME: fill in a description of your system's C++ link characteristics
  9087. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9088. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9089. case $host_os in
  9090. - aix4* | aix5*)
  9091. - # All AIX code is PIC.
  9092. - if test "$host_cpu" = ia64; then
  9093. - # AIX 5 now supports IA64 processor
  9094. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9095. - else
  9096. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9097. - fi
  9098. - ;;
  9099. - chorus*)
  9100. - case $cc_basename in
  9101. - cxch68)
  9102. - # Green Hills C++ Compiler
  9103. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  9104. - ;;
  9105. - esac
  9106. - ;;
  9107. - dgux*)
  9108. - case $cc_basename in
  9109. - ec++)
  9110. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9111. - ;;
  9112. - ghcx)
  9113. - # Green Hills C++ Compiler
  9114. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9115. - ;;
  9116. - *)
  9117. + aix3*)
  9118. + # FIXME: insert proper C++ library support
  9119. + _LT_TAGVAR(ld_shlibs, $1)=no
  9120. + ;;
  9121. + aix[[4-9]]*)
  9122. + if test "$host_cpu" = ia64; then
  9123. + # On IA64, the linker does run time linking by default, so we don't
  9124. + # have to do anything special.
  9125. + aix_use_runtimelinking=no
  9126. + exp_sym_flag='-Bexport'
  9127. + no_entry_flag=""
  9128. + else
  9129. + aix_use_runtimelinking=no
  9130. +
  9131. + # Test if we are trying to use run time linking or normal
  9132. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9133. + # need to do runtime linking.
  9134. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9135. + for ld_flag in $LDFLAGS; do
  9136. + case $ld_flag in
  9137. + *-brtl*)
  9138. + aix_use_runtimelinking=yes
  9139. + break
  9140. + ;;
  9141. + esac
  9142. + done
  9143. ;;
  9144. - esac
  9145. - ;;
  9146. - freebsd* | kfreebsd*-gnu)
  9147. - # FreeBSD uses GNU C++
  9148. - ;;
  9149. - hpux9* | hpux10* | hpux11*)
  9150. - case $cc_basename in
  9151. - CC)
  9152. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9153. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9154. - if test "$host_cpu" != ia64; then
  9155. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9156. + esac
  9157. +
  9158. + exp_sym_flag='-bexport'
  9159. + no_entry_flag='-bnoentry'
  9160. + fi
  9161. +
  9162. + # When large executables or shared objects are built, AIX ld can
  9163. + # have problems creating the table of contents. If linking a library
  9164. + # or program results in "error TOC overflow" add -mminimal-toc to
  9165. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9166. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9167. +
  9168. + _LT_TAGVAR(archive_cmds, $1)=''
  9169. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9170. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9171. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9172. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9173. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9174. +
  9175. + if test "$GXX" = yes; then
  9176. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9177. + # We only want to do this on AIX 4.2 and lower, the check
  9178. + # below for broken collect2 doesn't work under 4.3+
  9179. + collect2name=`${CC} -print-prog-name=collect2`
  9180. + if test -f "$collect2name" &&
  9181. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9182. + then
  9183. + # We have reworked collect2
  9184. + :
  9185. + else
  9186. + # We have old collect2
  9187. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9188. + # It fails to find uninstalled libraries when the uninstalled
  9189. + # path is not listed in the libpath. Setting hardcode_minus_L
  9190. + # to unsupported forces relinking
  9191. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9192. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9193. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9194. + fi
  9195. + esac
  9196. + shared_flag='-shared'
  9197. + if test "$aix_use_runtimelinking" = yes; then
  9198. + shared_flag="$shared_flag "'${wl}-G'
  9199. + fi
  9200. + else
  9201. + # not using gcc
  9202. + if test "$host_cpu" = ia64; then
  9203. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9204. + # chokes on -Wl,-G. The following line is correct:
  9205. + shared_flag='-G'
  9206. + else
  9207. + if test "$aix_use_runtimelinking" = yes; then
  9208. + shared_flag='${wl}-G'
  9209. + else
  9210. + shared_flag='${wl}-bM:SRE'
  9211. fi
  9212. + fi
  9213. + fi
  9214. +
  9215. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9216. + # It seems that -bexpall does not export symbols beginning with
  9217. + # underscore (_), so it is better to generate a list of symbols to
  9218. + # export.
  9219. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9220. + if test "$aix_use_runtimelinking" = yes; then
  9221. + # Warning - without using the other runtime loading flags (-brtl),
  9222. + # -berok will link without error, but may produce a broken library.
  9223. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9224. + # Determine the default libpath from the value encoded in an empty
  9225. + # executable.
  9226. + _LT_SYS_MODULE_PATH_AIX
  9227. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9228. +
  9229. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9230. + else
  9231. + if test "$host_cpu" = ia64; then
  9232. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9233. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9234. + _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"
  9235. + else
  9236. + # Determine the default libpath from the value encoded in an
  9237. + # empty executable.
  9238. + _LT_SYS_MODULE_PATH_AIX
  9239. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9240. + # Warning - without using the other run time loading flags,
  9241. + # -berok will link without error, but may produce a broken library.
  9242. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9243. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9244. + # Exported symbols can be pulled into shared objects from archives
  9245. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9246. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9247. + # This is similar to how AIX traditionally builds its shared
  9248. + # libraries.
  9249. + _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'
  9250. + fi
  9251. + fi
  9252. + ;;
  9253. +
  9254. + beos*)
  9255. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9256. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9257. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9258. + # support --undefined. This deserves some investigation. FIXME
  9259. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9260. + else
  9261. + _LT_TAGVAR(ld_shlibs, $1)=no
  9262. + fi
  9263. + ;;
  9264. +
  9265. + chorus*)
  9266. + case $cc_basename in
  9267. + *)
  9268. + # FIXME: insert proper C++ library support
  9269. + _LT_TAGVAR(ld_shlibs, $1)=no
  9270. + ;;
  9271. + esac
  9272. + ;;
  9273. +
  9274. + cygwin* | mingw* | pw32* | cegcc*)
  9275. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9276. + # as there is no search path for DLLs.
  9277. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9278. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9279. + _LT_TAGVAR(always_export_symbols, $1)=no
  9280. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9281. +
  9282. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9283. + _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'
  9284. + # If the export-symbols file already is a .def file (1st line
  9285. + # is EXPORTS), use it as is; otherwise, prepend...
  9286. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9287. + cp $export_symbols $output_objdir/$soname.def;
  9288. + else
  9289. + echo EXPORTS > $output_objdir/$soname.def;
  9290. + cat $export_symbols >> $output_objdir/$soname.def;
  9291. + fi~
  9292. + $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'
  9293. + else
  9294. + _LT_TAGVAR(ld_shlibs, $1)=no
  9295. + fi
  9296. + ;;
  9297. + darwin* | rhapsody*)
  9298. + _LT_DARWIN_LINKER_FEATURES($1)
  9299. + ;;
  9300. +
  9301. + dgux*)
  9302. + case $cc_basename in
  9303. + ec++*)
  9304. + # FIXME: insert proper C++ library support
  9305. + _LT_TAGVAR(ld_shlibs, $1)=no
  9306. ;;
  9307. - aCC)
  9308. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9309. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9310. - case "$host_cpu" in
  9311. - hppa*64*|ia64*)
  9312. - # +Z the default
  9313. - ;;
  9314. - *)
  9315. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9316. - ;;
  9317. + ghcx*)
  9318. + # Green Hills C++ Compiler
  9319. + # FIXME: insert proper C++ library support
  9320. + _LT_TAGVAR(ld_shlibs, $1)=no
  9321. + ;;
  9322. + *)
  9323. + # FIXME: insert proper C++ library support
  9324. + _LT_TAGVAR(ld_shlibs, $1)=no
  9325. + ;;
  9326. + esac
  9327. + ;;
  9328. +
  9329. + freebsd[[12]]*)
  9330. + # C++ shared libraries reported to be fairly broken before
  9331. + # switch to ELF
  9332. + _LT_TAGVAR(ld_shlibs, $1)=no
  9333. + ;;
  9334. +
  9335. + freebsd-elf*)
  9336. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9337. + ;;
  9338. +
  9339. + freebsd* | dragonfly*)
  9340. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9341. + # conventions
  9342. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9343. + ;;
  9344. +
  9345. + gnu*)
  9346. + ;;
  9347. +
  9348. + hpux9*)
  9349. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9350. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9351. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9352. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9353. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9354. + # but as the default
  9355. + # location of the library.
  9356. +
  9357. + case $cc_basename in
  9358. + CC*)
  9359. + # FIXME: insert proper C++ library support
  9360. + _LT_TAGVAR(ld_shlibs, $1)=no
  9361. + ;;
  9362. + aCC*)
  9363. + _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'
  9364. + # Commands to make compiler produce verbose output that lists
  9365. + # what "hidden" libraries, object files and flags are used when
  9366. + # linking a shared library.
  9367. + #
  9368. + # There doesn't appear to be a way to prevent this compiler from
  9369. + # explicitly linking system object files so we need to strip them
  9370. + # from the output so that they don't get included in the library
  9371. + # dependencies.
  9372. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9373. + ;;
  9374. + *)
  9375. + if test "$GXX" = yes; then
  9376. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9377. + else
  9378. + # FIXME: insert proper C++ library support
  9379. + _LT_TAGVAR(ld_shlibs, $1)=no
  9380. + fi
  9381. + ;;
  9382. + esac
  9383. + ;;
  9384. +
  9385. + hpux10*|hpux11*)
  9386. + if test $with_gnu_ld = no; then
  9387. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9388. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9389. +
  9390. + case $host_cpu in
  9391. + hppa*64*|ia64*)
  9392. + ;;
  9393. + *)
  9394. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9395. + ;;
  9396. + esac
  9397. + fi
  9398. + case $host_cpu in
  9399. + hppa*64*|ia64*)
  9400. + _LT_TAGVAR(hardcode_direct, $1)=no
  9401. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9402. + ;;
  9403. + *)
  9404. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9405. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9406. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9407. + # but as the default
  9408. + # location of the library.
  9409. + ;;
  9410. + esac
  9411. +
  9412. + case $cc_basename in
  9413. + CC*)
  9414. + # FIXME: insert proper C++ library support
  9415. + _LT_TAGVAR(ld_shlibs, $1)=no
  9416. + ;;
  9417. + aCC*)
  9418. + case $host_cpu in
  9419. + hppa*64*)
  9420. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9421. + ;;
  9422. + ia64*)
  9423. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9424. + ;;
  9425. + *)
  9426. + _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'
  9427. + ;;
  9428. esac
  9429. + # Commands to make compiler produce verbose output that lists
  9430. + # what "hidden" libraries, object files and flags are used when
  9431. + # linking a shared library.
  9432. + #
  9433. + # There doesn't appear to be a way to prevent this compiler from
  9434. + # explicitly linking system object files so we need to strip them
  9435. + # from the output so that they don't get included in the library
  9436. + # dependencies.
  9437. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9438. ;;
  9439. - *)
  9440. + *)
  9441. + if test "$GXX" = yes; then
  9442. + if test $with_gnu_ld = no; then
  9443. + case $host_cpu in
  9444. + hppa*64*)
  9445. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9446. + ;;
  9447. + ia64*)
  9448. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9449. + ;;
  9450. + *)
  9451. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9452. + ;;
  9453. + esac
  9454. + fi
  9455. + else
  9456. + # FIXME: insert proper C++ library support
  9457. + _LT_TAGVAR(ld_shlibs, $1)=no
  9458. + fi
  9459. ;;
  9460. - esac
  9461. - ;;
  9462. - irix5* | irix6* | nonstopux*)
  9463. - case $cc_basename in
  9464. - CC)
  9465. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9466. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9467. - # CC pic flag -KPIC is the default.
  9468. + esac
  9469. + ;;
  9470. +
  9471. + interix[[3-9]]*)
  9472. + _LT_TAGVAR(hardcode_direct, $1)=no
  9473. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9474. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9475. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9476. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9477. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9478. + # default) and relocated if they conflict, which is a slow very memory
  9479. + # consuming and fragmenting process. To avoid this, we pick a random,
  9480. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9481. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9482. + _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'
  9483. + _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'
  9484. + ;;
  9485. + irix5* | irix6*)
  9486. + case $cc_basename in
  9487. + CC*)
  9488. + # SGI C++
  9489. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9490. +
  9491. + # Archives containing C++ object files must be created using
  9492. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9493. + # necessary to make sure instantiated templates are included
  9494. + # in the archive.
  9495. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9496. ;;
  9497. - *)
  9498. + *)
  9499. + if test "$GXX" = yes; then
  9500. + if test "$with_gnu_ld" = no; then
  9501. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9502. + else
  9503. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  9504. + fi
  9505. + fi
  9506. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9507. ;;
  9508. - esac
  9509. - ;;
  9510. - linux*)
  9511. - case $cc_basename in
  9512. - KCC)
  9513. - # KAI C++ Compiler
  9514. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9515. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9516. + esac
  9517. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9518. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9519. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9520. + ;;
  9521. +
  9522. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9523. + case $cc_basename in
  9524. + KCC*)
  9525. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9526. +
  9527. + # KCC will only create a shared library if the output file
  9528. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9529. + # to its proper name (with version) after linking.
  9530. + _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'
  9531. + _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'
  9532. + # Commands to make compiler produce verbose output that lists
  9533. + # what "hidden" libraries, object files and flags are used when
  9534. + # linking a shared library.
  9535. + #
  9536. + # There doesn't appear to be a way to prevent this compiler from
  9537. + # explicitly linking system object files so we need to strip them
  9538. + # from the output so that they don't get included in the library
  9539. + # dependencies.
  9540. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9541. +
  9542. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9543. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9544. +
  9545. + # Archives containing C++ object files must be created using
  9546. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9547. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9548. ;;
  9549. - icpc)
  9550. + icpc* | ecpc* )
  9551. # Intel C++
  9552. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9553. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9554. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9555. + with_gnu_ld=yes
  9556. + # version 8.0 and above of icpc choke on multiply defined symbols
  9557. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9558. + # earlier do not add the objects themselves.
  9559. + case `$CC -V 2>&1` in
  9560. + *"Version 7."*)
  9561. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9562. + _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'
  9563. + ;;
  9564. + *) # Version 8.0 or newer
  9565. + tmp_idyn=
  9566. + case $host_cpu in
  9567. + ia64*) tmp_idyn=' -i_dynamic';;
  9568. + esac
  9569. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9570. + _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'
  9571. + ;;
  9572. + esac
  9573. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9574. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9575. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9576. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9577. ;;
  9578. - cxx)
  9579. + pgCC* | pgcpp*)
  9580. + # Portland Group C++ compiler
  9581. + case `$CC -V` in
  9582. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9583. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9584. + rm -rf $tpldir~
  9585. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9586. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9587. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9588. + rm -rf $tpldir~
  9589. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9590. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9591. + $RANLIB $oldlib'
  9592. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9593. + rm -rf $tpldir~
  9594. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9595. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9596. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9597. + rm -rf $tpldir~
  9598. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9599. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9600. + ;;
  9601. + *) # Version 6 will use weak symbols
  9602. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9603. + _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'
  9604. + ;;
  9605. + esac
  9606. +
  9607. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9608. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9609. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9610. + ;;
  9611. + cxx*)
  9612. # Compaq C++
  9613. - # Make sure the PIC flag is empty. It appears that all Alpha
  9614. - # Linux and Compaq Tru64 Unix objects are PIC.
  9615. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9616. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9617. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9618. + _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'
  9619. +
  9620. + runpath_var=LD_RUN_PATH
  9621. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9622. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9623. +
  9624. + # Commands to make compiler produce verbose output that lists
  9625. + # what "hidden" libraries, object files and flags are used when
  9626. + # linking a shared library.
  9627. + #
  9628. + # There doesn't appear to be a way to prevent this compiler from
  9629. + # explicitly linking system object files so we need to strip them
  9630. + # from the output so that they don't get included in the library
  9631. + # dependencies.
  9632. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9633. + ;;
  9634. + xl*)
  9635. + # IBM XL 8.0 on PPC, with GNU ld
  9636. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9637. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9638. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9639. + if test "x$supports_anon_versioning" = xyes; then
  9640. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9641. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9642. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9643. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9644. + fi
  9645. ;;
  9646. *)
  9647. + case `$CC -V 2>&1 | sed 5q` in
  9648. + *Sun\ C*)
  9649. + # Sun C++ 5.9
  9650. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9651. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9652. + _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'
  9653. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9654. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9655. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  9656. +
  9657. + # Not sure whether something based on
  9658. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9659. + # would be better.
  9660. + output_verbose_link_cmd='echo'
  9661. +
  9662. + # Archives containing C++ object files must be created using
  9663. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9664. + # necessary to make sure instantiated templates are included
  9665. + # in the archive.
  9666. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9667. + ;;
  9668. + esac
  9669. ;;
  9670. esac
  9671. ;;
  9672. +
  9673. lynxos*)
  9674. + # FIXME: insert proper C++ library support
  9675. + _LT_TAGVAR(ld_shlibs, $1)=no
  9676. ;;
  9677. +
  9678. m88k*)
  9679. + # FIXME: insert proper C++ library support
  9680. + _LT_TAGVAR(ld_shlibs, $1)=no
  9681. ;;
  9682. +
  9683. mvs*)
  9684. - case $cc_basename in
  9685. - cxx)
  9686. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  9687. + case $cc_basename in
  9688. + cxx*)
  9689. + # FIXME: insert proper C++ library support
  9690. + _LT_TAGVAR(ld_shlibs, $1)=no
  9691. ;;
  9692. *)
  9693. + # FIXME: insert proper C++ library support
  9694. + _LT_TAGVAR(ld_shlibs, $1)=no
  9695. ;;
  9696. esac
  9697. ;;
  9698. - netbsd* | knetbsd*-gnu)
  9699. +
  9700. + netbsd*)
  9701. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9702. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9703. + wlarc=
  9704. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9705. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9706. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9707. + fi
  9708. + # Workaround some broken pre-1.5 toolchains
  9709. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9710. + ;;
  9711. +
  9712. + *nto* | *qnx*)
  9713. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9714. + ;;
  9715. +
  9716. + openbsd2*)
  9717. + # C++ shared libraries are fairly broken
  9718. + _LT_TAGVAR(ld_shlibs, $1)=no
  9719. + ;;
  9720. +
  9721. + openbsd*)
  9722. + if test -f /usr/libexec/ld.so; then
  9723. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9724. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9725. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9726. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9727. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9728. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9729. + _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'
  9730. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9731. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9732. + fi
  9733. + output_verbose_link_cmd=echo
  9734. + else
  9735. + _LT_TAGVAR(ld_shlibs, $1)=no
  9736. + fi
  9737. ;;
  9738. +
  9739. osf3* | osf4* | osf5*)
  9740. - case $cc_basename in
  9741. - KCC)
  9742. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9743. + case $cc_basename in
  9744. + KCC*)
  9745. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9746. +
  9747. + # KCC will only create a shared library if the output file
  9748. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9749. + # to its proper name (with version) after linking.
  9750. + _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'
  9751. +
  9752. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9753. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9754. +
  9755. + # Archives containing C++ object files must be created using
  9756. + # the KAI C++ compiler.
  9757. + case $host in
  9758. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  9759. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  9760. + esac
  9761. ;;
  9762. - RCC)
  9763. + RCC*)
  9764. # Rational C++ 2.4.1
  9765. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9766. + # FIXME: insert proper C++ library support
  9767. + _LT_TAGVAR(ld_shlibs, $1)=no
  9768. ;;
  9769. - cxx)
  9770. - # Digital/Compaq C++
  9771. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9772. - # Make sure the PIC flag is empty. It appears that all Alpha
  9773. - # Linux and Compaq Tru64 Unix objects are PIC.
  9774. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9775. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9776. + cxx*)
  9777. + case $host in
  9778. + osf3*)
  9779. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9780. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9781. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9782. + ;;
  9783. + *)
  9784. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  9785. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9786. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  9787. + echo "-hidden">> $lib.exp~
  9788. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  9789. + $RM $lib.exp'
  9790. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9791. + ;;
  9792. + esac
  9793. +
  9794. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9795. +
  9796. + # Commands to make compiler produce verbose output that lists
  9797. + # what "hidden" libraries, object files and flags are used when
  9798. + # linking a shared library.
  9799. + #
  9800. + # There doesn't appear to be a way to prevent this compiler from
  9801. + # explicitly linking system object files so we need to strip them
  9802. + # from the output so that they don't get included in the library
  9803. + # dependencies.
  9804. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9805. ;;
  9806. *)
  9807. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9808. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9809. + case $host in
  9810. + osf3*)
  9811. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9812. + ;;
  9813. + *)
  9814. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9815. + ;;
  9816. + esac
  9817. +
  9818. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9819. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9820. +
  9821. + # Commands to make compiler produce verbose output that lists
  9822. + # what "hidden" libraries, object files and flags are used when
  9823. + # linking a shared library.
  9824. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9825. +
  9826. + else
  9827. + # FIXME: insert proper C++ library support
  9828. + _LT_TAGVAR(ld_shlibs, $1)=no
  9829. + fi
  9830. ;;
  9831. - esac
  9832. - ;;
  9833. + esac
  9834. + ;;
  9835. +
  9836. psos*)
  9837. - ;;
  9838. - sco*)
  9839. - case $cc_basename in
  9840. - CC)
  9841. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9842. + # FIXME: insert proper C++ library support
  9843. + _LT_TAGVAR(ld_shlibs, $1)=no
  9844. + ;;
  9845. +
  9846. + sunos4*)
  9847. + case $cc_basename in
  9848. + CC*)
  9849. + # Sun C++ 4.x
  9850. + # FIXME: insert proper C++ library support
  9851. + _LT_TAGVAR(ld_shlibs, $1)=no
  9852. ;;
  9853. - *)
  9854. + lcc*)
  9855. + # Lucid
  9856. + # FIXME: insert proper C++ library support
  9857. + _LT_TAGVAR(ld_shlibs, $1)=no
  9858. ;;
  9859. - esac
  9860. - ;;
  9861. + *)
  9862. + # FIXME: insert proper C++ library support
  9863. + _LT_TAGVAR(ld_shlibs, $1)=no
  9864. + ;;
  9865. + esac
  9866. + ;;
  9867. +
  9868. solaris*)
  9869. - case $cc_basename in
  9870. - CC)
  9871. + case $cc_basename in
  9872. + CC*)
  9873. # Sun C++ 4.2, 5.x and Centerline C++
  9874. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9875. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9876. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9877. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  9878. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9879. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9880. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9881. + $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'
  9882. +
  9883. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9884. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9885. + case $host_os in
  9886. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9887. + *)
  9888. + # The compiler driver will combine and reorder linker options,
  9889. + # but understands `-z linker_flag'.
  9890. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  9891. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  9892. + ;;
  9893. + esac
  9894. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9895. +
  9896. + output_verbose_link_cmd='echo'
  9897. +
  9898. + # Archives containing C++ object files must be created using
  9899. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9900. + # necessary to make sure instantiated templates are included
  9901. + # in the archive.
  9902. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9903. ;;
  9904. - gcx)
  9905. + gcx*)
  9906. # Green Hills C++ Compiler
  9907. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9908. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9909. +
  9910. + # The C++ compiler must be used to create the archive.
  9911. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  9912. ;;
  9913. - *)
  9914. + *)
  9915. + # GNU C++ compiler with Solaris linker
  9916. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  9917. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  9918. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  9919. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9920. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9921. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  9922. +
  9923. + # Commands to make compiler produce verbose output that lists
  9924. + # what "hidden" libraries, object files and flags are used when
  9925. + # linking a shared library.
  9926. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9927. + else
  9928. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  9929. + # platform.
  9930. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  9931. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9932. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  9933. +
  9934. + # Commands to make compiler produce verbose output that lists
  9935. + # what "hidden" libraries, object files and flags are used when
  9936. + # linking a shared library.
  9937. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9938. + fi
  9939. +
  9940. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  9941. + case $host_os in
  9942. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  9943. + *)
  9944. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9945. + ;;
  9946. + esac
  9947. + fi
  9948. ;;
  9949. - esac
  9950. - ;;
  9951. - sunos4*)
  9952. + esac
  9953. + ;;
  9954. +
  9955. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  9956. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9957. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9958. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9959. + runpath_var='LD_RUN_PATH'
  9960. +
  9961. + case $cc_basename in
  9962. + CC*)
  9963. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9964. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9965. + ;;
  9966. + *)
  9967. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9968. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9969. + ;;
  9970. + esac
  9971. + ;;
  9972. +
  9973. + sysv5* | sco3.2v5* | sco5v6*)
  9974. + # Note: We can NOT use -z defs as we might desire, because we do not
  9975. + # link with -lc, and that would cause any symbols used from libc to
  9976. + # always be unresolved, which means just about no library would
  9977. + # ever link correctly. If we're not using GNU ld we use -z text
  9978. + # though, which does catch some bad symbols but isn't as heavy-handed
  9979. + # as -z defs.
  9980. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  9981. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  9982. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9983. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9984. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  9985. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9986. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9987. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  9988. + runpath_var='LD_RUN_PATH'
  9989. +
  9990. case $cc_basename in
  9991. - CC)
  9992. - # Sun C++ 4.x
  9993. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9994. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9995. - ;;
  9996. - lcc)
  9997. - # Lucid
  9998. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9999. + CC*)
  10000. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10001. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10002. ;;
  10003. *)
  10004. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10005. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10006. ;;
  10007. esac
  10008. - ;;
  10009. + ;;
  10010. +
  10011. tandem*)
  10012. - case $cc_basename in
  10013. - NCC)
  10014. + case $cc_basename in
  10015. + NCC*)
  10016. # NonStop-UX NCC 3.20
  10017. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10018. + # FIXME: insert proper C++ library support
  10019. + _LT_TAGVAR(ld_shlibs, $1)=no
  10020. ;;
  10021. - *)
  10022. + *)
  10023. + # FIXME: insert proper C++ library support
  10024. + _LT_TAGVAR(ld_shlibs, $1)=no
  10025. ;;
  10026. - esac
  10027. - ;;
  10028. - unixware*)
  10029. - ;;
  10030. + esac
  10031. + ;;
  10032. +
  10033. vxworks*)
  10034. - ;;
  10035. + # FIXME: insert proper C++ library support
  10036. + _LT_TAGVAR(ld_shlibs, $1)=no
  10037. + ;;
  10038. +
  10039. *)
  10040. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10041. - ;;
  10042. + # FIXME: insert proper C++ library support
  10043. + _LT_TAGVAR(ld_shlibs, $1)=no
  10044. + ;;
  10045. esac
  10046. +
  10047. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10048. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10049. +
  10050. + _LT_TAGVAR(GCC, $1)="$GXX"
  10051. + _LT_TAGVAR(LD, $1)="$LD"
  10052. +
  10053. + ## CAVEAT EMPTOR:
  10054. + ## There is no encapsulation within the following macros, do not change
  10055. + ## the running order or otherwise move them around unless you know exactly
  10056. + ## what you are doing...
  10057. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10058. + _LT_COMPILER_PIC($1)
  10059. + _LT_COMPILER_C_O($1)
  10060. + _LT_COMPILER_FILE_LOCKS($1)
  10061. + _LT_LINKER_SHLIBS($1)
  10062. + _LT_SYS_DYNAMIC_LINKER($1)
  10063. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10064. +
  10065. + _LT_CONFIG($1)
  10066. + fi # test -n "$compiler"
  10067. +
  10068. + CC=$lt_save_CC
  10069. + LDCXX=$LD
  10070. + LD=$lt_save_LD
  10071. + GCC=$lt_save_GCC
  10072. + with_gnu_ld=$lt_save_with_gnu_ld
  10073. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10074. + lt_cv_path_LD=$lt_save_path_LD
  10075. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10076. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10077. +fi # test "$_lt_caught_CXX_error" != yes
  10078. +
  10079. +AC_LANG_POP
  10080. +])# _LT_LANG_CXX_CONFIG
  10081. +
  10082. +
  10083. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10084. +# ---------------------------------
  10085. +# Figure out "hidden" library dependencies from verbose
  10086. +# compiler output when linking a shared library.
  10087. +# Parse the compiler output and extract the necessary
  10088. +# objects, libraries and library flags.
  10089. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10090. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10091. +# Dependencies to place before and after the object being linked:
  10092. +_LT_TAGVAR(predep_objects, $1)=
  10093. +_LT_TAGVAR(postdep_objects, $1)=
  10094. +_LT_TAGVAR(predeps, $1)=
  10095. +_LT_TAGVAR(postdeps, $1)=
  10096. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10097. +
  10098. +dnl we can't use the lt_simple_compile_test_code here,
  10099. +dnl because it contains code intended for an executable,
  10100. +dnl not a library. It's possible we should let each
  10101. +dnl tag define a new lt_????_link_test_code variable,
  10102. +dnl but it's only used here...
  10103. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10104. +int a;
  10105. +void foo (void) { a = 0; }
  10106. +_LT_EOF
  10107. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10108. +class Foo
  10109. +{
  10110. +public:
  10111. + Foo (void) { a = 0; }
  10112. +private:
  10113. + int a;
  10114. +};
  10115. +_LT_EOF
  10116. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10117. + subroutine foo
  10118. + implicit none
  10119. + integer*4 a
  10120. + a=0
  10121. + return
  10122. + end
  10123. +_LT_EOF
  10124. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10125. + subroutine foo
  10126. + implicit none
  10127. + integer a
  10128. + a=0
  10129. + return
  10130. + end
  10131. +_LT_EOF
  10132. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10133. +public class foo {
  10134. + private int a;
  10135. + public void bar (void) {
  10136. + a = 0;
  10137. + }
  10138. +};
  10139. +_LT_EOF
  10140. +])
  10141. +dnl Parse the compiler output and extract the necessary
  10142. +dnl objects, libraries and library flags.
  10143. +if AC_TRY_EVAL(ac_compile); then
  10144. + # Parse the compiler output and extract the necessary
  10145. + # objects, libraries and library flags.
  10146. +
  10147. + # Sentinel used to keep track of whether or not we are before
  10148. + # the conftest object file.
  10149. + pre_test_object_deps_done=no
  10150. +
  10151. + for p in `eval "$output_verbose_link_cmd"`; do
  10152. + case $p in
  10153. +
  10154. + -L* | -R* | -l*)
  10155. + # Some compilers place space between "-{L,R}" and the path.
  10156. + # Remove the space.
  10157. + if test $p = "-L" ||
  10158. + test $p = "-R"; then
  10159. + prev=$p
  10160. + continue
  10161. + else
  10162. + prev=
  10163. + fi
  10164. +
  10165. + if test "$pre_test_object_deps_done" = no; then
  10166. + case $p in
  10167. + -L* | -R*)
  10168. + # Internal compiler library paths should come after those
  10169. + # provided the user. The postdeps already come after the
  10170. + # user supplied libs so there is no need to process them.
  10171. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10172. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10173. + else
  10174. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10175. + fi
  10176. + ;;
  10177. + # The "-l" case would never come before the object being
  10178. + # linked, so don't bother handling this case.
  10179. + esac
  10180. + else
  10181. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10182. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10183. + else
  10184. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10185. + fi
  10186. + fi
  10187. + ;;
  10188. +
  10189. + *.$objext)
  10190. + # This assumes that the test object file only shows up
  10191. + # once in the compiler output.
  10192. + if test "$p" = "conftest.$objext"; then
  10193. + pre_test_object_deps_done=yes
  10194. + continue
  10195. + fi
  10196. +
  10197. + if test "$pre_test_object_deps_done" = no; then
  10198. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10199. + _LT_TAGVAR(predep_objects, $1)="$p"
  10200. + else
  10201. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10202. + fi
  10203. + else
  10204. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10205. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10206. + else
  10207. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10208. + fi
  10209. + fi
  10210. + ;;
  10211. +
  10212. + *) ;; # Ignore the rest.
  10213. +
  10214. + esac
  10215. + done
  10216. +
  10217. + # Clean up.
  10218. + rm -f a.out a.exe
  10219. +else
  10220. + echo "libtool.m4: error: problem compiling $1 test program"
  10221. +fi
  10222. +
  10223. +$RM -f confest.$objext
  10224. +
  10225. +# PORTME: override above test on systems where it is broken
  10226. +m4_if([$1], [CXX],
  10227. +[case $host_os in
  10228. +interix[[3-9]]*)
  10229. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10230. + # hack all around it, let's just trust "g++" to DTRT.
  10231. + _LT_TAGVAR(predep_objects,$1)=
  10232. + _LT_TAGVAR(postdep_objects,$1)=
  10233. + _LT_TAGVAR(postdeps,$1)=
  10234. + ;;
  10235. +
  10236. +linux*)
  10237. + case `$CC -V 2>&1 | sed 5q` in
  10238. + *Sun\ C*)
  10239. + # Sun C++ 5.9
  10240. +
  10241. + # The more standards-conforming stlport4 library is
  10242. + # incompatible with the Cstd library. Avoid specifying
  10243. + # it if it's in CXXFLAGS. Ignore libCrun as
  10244. + # -library=stlport4 depends on it.
  10245. + case " $CXX $CXXFLAGS " in
  10246. + *" -library=stlport4 "*)
  10247. + solaris_use_stlport4=yes
  10248. + ;;
  10249. + esac
  10250. +
  10251. + if test "$solaris_use_stlport4" != yes; then
  10252. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10253. + fi
  10254. + ;;
  10255. + esac
  10256. + ;;
  10257. +
  10258. +solaris*)
  10259. + case $cc_basename in
  10260. + CC*)
  10261. + # The more standards-conforming stlport4 library is
  10262. + # incompatible with the Cstd library. Avoid specifying
  10263. + # it if it's in CXXFLAGS. Ignore libCrun as
  10264. + # -library=stlport4 depends on it.
  10265. + case " $CXX $CXXFLAGS " in
  10266. + *" -library=stlport4 "*)
  10267. + solaris_use_stlport4=yes
  10268. + ;;
  10269. + esac
  10270. +
  10271. + # Adding this requires a known-good setup of shared libraries for
  10272. + # Sun compiler versions before 5.6, else PIC objects from an old
  10273. + # archive will be linked into the output, leading to subtle bugs.
  10274. + if test "$solaris_use_stlport4" != yes; then
  10275. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10276. + fi
  10277. + ;;
  10278. + esac
  10279. + ;;
  10280. +esac
  10281. +])
  10282. +
  10283. +case " $_LT_TAGVAR(postdeps, $1) " in
  10284. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10285. +esac
  10286. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10287. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10288. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10289. +fi
  10290. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10291. + [The directories searched by this compiler when creating a shared library])
  10292. +_LT_TAGDECL([], [predep_objects], [1],
  10293. + [Dependencies to place before and after the objects being linked to
  10294. + create a shared library])
  10295. +_LT_TAGDECL([], [postdep_objects], [1])
  10296. +_LT_TAGDECL([], [predeps], [1])
  10297. +_LT_TAGDECL([], [postdeps], [1])
  10298. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10299. + [The library search path used internally by the compiler when linking
  10300. + a shared library])
  10301. +])# _LT_SYS_HIDDEN_LIBDEPS
  10302. +
  10303. +
  10304. +# _LT_PROG_F77
  10305. +# ------------
  10306. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10307. +# if there is no fortran compiler, we have our own version here.
  10308. +m4_defun([_LT_PROG_F77],
  10309. +[
  10310. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10311. +AC_PROG_F77
  10312. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10313. + _lt_disable_F77=yes
  10314. +fi
  10315. +popdef([AC_MSG_ERROR])
  10316. +])# _LT_PROG_F77
  10317. +
  10318. +dnl aclocal-1.4 backwards compatibility:
  10319. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10320. +
  10321. +
  10322. +# _LT_LANG_F77_CONFIG([TAG])
  10323. +# --------------------------
  10324. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10325. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10326. +# to write the compiler configuration to `libtool'.
  10327. +m4_defun([_LT_LANG_F77_CONFIG],
  10328. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10329. +AC_LANG_PUSH(Fortran 77)
  10330. +
  10331. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10332. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10333. +_LT_TAGVAR(always_export_symbols, $1)=no
  10334. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10335. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10336. +_LT_TAGVAR(hardcode_direct, $1)=no
  10337. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10338. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10339. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10340. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10341. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10342. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10343. +_LT_TAGVAR(inherit_rpath, $1)=no
  10344. +_LT_TAGVAR(module_cmds, $1)=
  10345. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10346. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10347. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10348. +_LT_TAGVAR(no_undefined_flag, $1)=
  10349. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10350. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10351. +
  10352. +# Source file extension for f77 test sources.
  10353. +ac_ext=f
  10354. +
  10355. +# Object file extension for compiled f77 test sources.
  10356. +objext=o
  10357. +_LT_TAGVAR(objext, $1)=$objext
  10358. +
  10359. +# No sense in running all these tests if we already determined that
  10360. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10361. +# are currently assumed to apply to all compilers on this platform,
  10362. +# and will be corrupted by setting them based on a non-working compiler.
  10363. +if test "$_lt_disable_F77" != yes; then
  10364. + # Code to be used in simple compile tests
  10365. + lt_simple_compile_test_code="\
  10366. + subroutine t
  10367. + return
  10368. + end
  10369. +"
  10370. +
  10371. + # Code to be used in simple link tests
  10372. + lt_simple_link_test_code="\
  10373. + program t
  10374. + end
  10375. +"
  10376. +
  10377. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10378. + _LT_TAG_COMPILER
  10379. +
  10380. + # save warnings/boilerplate of simple test code
  10381. + _LT_COMPILER_BOILERPLATE
  10382. + _LT_LINKER_BOILERPLATE
  10383. +
  10384. + # Allow CC to be a program name with arguments.
  10385. + lt_save_CC="$CC"
  10386. + lt_save_GCC=$GCC
  10387. + CC=${F77-"f77"}
  10388. + compiler=$CC
  10389. + _LT_TAGVAR(compiler, $1)=$CC
  10390. + _LT_CC_BASENAME([$compiler])
  10391. + GCC=$G77
  10392. + if test -n "$compiler"; then
  10393. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10394. + AC_MSG_RESULT([$can_build_shared])
  10395. +
  10396. + AC_MSG_CHECKING([whether to build shared libraries])
  10397. + test "$can_build_shared" = "no" && enable_shared=no
  10398. +
  10399. + # On AIX, shared libraries and static libraries use the same namespace, and
  10400. + # are all built from PIC.
  10401. + case $host_os in
  10402. + aix3*)
  10403. + test "$enable_shared" = yes && enable_static=no
  10404. + if test -n "$RANLIB"; then
  10405. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10406. + postinstall_cmds='$RANLIB $lib'
  10407. + fi
  10408. + ;;
  10409. + aix[[4-9]]*)
  10410. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10411. + test "$enable_shared" = yes && enable_static=no
  10412. + fi
  10413. + ;;
  10414. + esac
  10415. + AC_MSG_RESULT([$enable_shared])
  10416. +
  10417. + AC_MSG_CHECKING([whether to build static libraries])
  10418. + # Make sure either enable_shared or enable_static is yes.
  10419. + test "$enable_shared" = yes || enable_static=yes
  10420. + AC_MSG_RESULT([$enable_static])
  10421. +
  10422. + _LT_TAGVAR(GCC, $1)="$G77"
  10423. + _LT_TAGVAR(LD, $1)="$LD"
  10424. +
  10425. + ## CAVEAT EMPTOR:
  10426. + ## There is no encapsulation within the following macros, do not change
  10427. + ## the running order or otherwise move them around unless you know exactly
  10428. + ## what you are doing...
  10429. + _LT_COMPILER_PIC($1)
  10430. + _LT_COMPILER_C_O($1)
  10431. + _LT_COMPILER_FILE_LOCKS($1)
  10432. + _LT_LINKER_SHLIBS($1)
  10433. + _LT_SYS_DYNAMIC_LINKER($1)
  10434. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10435. +
  10436. + _LT_CONFIG($1)
  10437. + fi # test -n "$compiler"
  10438. +
  10439. + GCC=$lt_save_GCC
  10440. + CC="$lt_save_CC"
  10441. +fi # test "$_lt_disable_F77" != yes
  10442. +
  10443. +AC_LANG_POP
  10444. +])# _LT_LANG_F77_CONFIG
  10445. +
  10446. +
  10447. +# _LT_PROG_FC
  10448. +# -----------
  10449. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10450. +# if there is no fortran compiler, we have our own version here.
  10451. +m4_defun([_LT_PROG_FC],
  10452. +[
  10453. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10454. +AC_PROG_FC
  10455. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10456. + _lt_disable_FC=yes
  10457. +fi
  10458. +popdef([AC_MSG_ERROR])
  10459. +])# _LT_PROG_FC
  10460. +
  10461. +dnl aclocal-1.4 backwards compatibility:
  10462. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10463. +
  10464. +
  10465. +# _LT_LANG_FC_CONFIG([TAG])
  10466. +# -------------------------
  10467. +# Ensure that the configuration variables for a Fortran compiler are
  10468. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10469. +# to write the compiler configuration to `libtool'.
  10470. +m4_defun([_LT_LANG_FC_CONFIG],
  10471. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10472. +AC_LANG_PUSH(Fortran)
  10473. +
  10474. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10475. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10476. +_LT_TAGVAR(always_export_symbols, $1)=no
  10477. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10478. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10479. +_LT_TAGVAR(hardcode_direct, $1)=no
  10480. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10481. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10482. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10483. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10484. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10485. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10486. +_LT_TAGVAR(inherit_rpath, $1)=no
  10487. +_LT_TAGVAR(module_cmds, $1)=
  10488. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10489. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10490. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10491. +_LT_TAGVAR(no_undefined_flag, $1)=
  10492. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10493. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10494. +
  10495. +# Source file extension for fc test sources.
  10496. +ac_ext=${ac_fc_srcext-f}
  10497. +
  10498. +# Object file extension for compiled fc test sources.
  10499. +objext=o
  10500. +_LT_TAGVAR(objext, $1)=$objext
  10501. +
  10502. +# No sense in running all these tests if we already determined that
  10503. +# the FC compiler isn't working. Some variables (like enable_shared)
  10504. +# are currently assumed to apply to all compilers on this platform,
  10505. +# and will be corrupted by setting them based on a non-working compiler.
  10506. +if test "$_lt_disable_FC" != yes; then
  10507. + # Code to be used in simple compile tests
  10508. + lt_simple_compile_test_code="\
  10509. + subroutine t
  10510. + return
  10511. + end
  10512. +"
  10513. +
  10514. + # Code to be used in simple link tests
  10515. + lt_simple_link_test_code="\
  10516. + program t
  10517. + end
  10518. +"
  10519. +
  10520. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10521. + _LT_TAG_COMPILER
  10522. +
  10523. + # save warnings/boilerplate of simple test code
  10524. + _LT_COMPILER_BOILERPLATE
  10525. + _LT_LINKER_BOILERPLATE
  10526. +
  10527. + # Allow CC to be a program name with arguments.
  10528. + lt_save_CC="$CC"
  10529. + lt_save_GCC=$GCC
  10530. + CC=${FC-"f95"}
  10531. + compiler=$CC
  10532. + GCC=$ac_cv_fc_compiler_gnu
  10533. +
  10534. + _LT_TAGVAR(compiler, $1)=$CC
  10535. + _LT_CC_BASENAME([$compiler])
  10536. +
  10537. + if test -n "$compiler"; then
  10538. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10539. + AC_MSG_RESULT([$can_build_shared])
  10540. +
  10541. + AC_MSG_CHECKING([whether to build shared libraries])
  10542. + test "$can_build_shared" = "no" && enable_shared=no
  10543. +
  10544. + # On AIX, shared libraries and static libraries use the same namespace, and
  10545. + # are all built from PIC.
  10546. + case $host_os in
  10547. + aix3*)
  10548. + test "$enable_shared" = yes && enable_static=no
  10549. + if test -n "$RANLIB"; then
  10550. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10551. + postinstall_cmds='$RANLIB $lib'
  10552. + fi
  10553. + ;;
  10554. + aix[[4-9]]*)
  10555. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10556. + test "$enable_shared" = yes && enable_static=no
  10557. + fi
  10558. + ;;
  10559. + esac
  10560. + AC_MSG_RESULT([$enable_shared])
  10561. +
  10562. + AC_MSG_CHECKING([whether to build static libraries])
  10563. + # Make sure either enable_shared or enable_static is yes.
  10564. + test "$enable_shared" = yes || enable_static=yes
  10565. + AC_MSG_RESULT([$enable_static])
  10566. +
  10567. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10568. + _LT_TAGVAR(LD, $1)="$LD"
  10569. +
  10570. + ## CAVEAT EMPTOR:
  10571. + ## There is no encapsulation within the following macros, do not change
  10572. + ## the running order or otherwise move them around unless you know exactly
  10573. + ## what you are doing...
  10574. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10575. + _LT_COMPILER_PIC($1)
  10576. + _LT_COMPILER_C_O($1)
  10577. + _LT_COMPILER_FILE_LOCKS($1)
  10578. + _LT_LINKER_SHLIBS($1)
  10579. + _LT_SYS_DYNAMIC_LINKER($1)
  10580. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10581. +
  10582. + _LT_CONFIG($1)
  10583. + fi # test -n "$compiler"
  10584. +
  10585. + GCC=$lt_save_GCC
  10586. + CC="$lt_save_CC"
  10587. +fi # test "$_lt_disable_FC" != yes
  10588. +
  10589. +AC_LANG_POP
  10590. +])# _LT_LANG_FC_CONFIG
  10591. +
  10592. +
  10593. +# _LT_LANG_GCJ_CONFIG([TAG])
  10594. +# --------------------------
  10595. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10596. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10597. +# to write the compiler configuration to `libtool'.
  10598. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10599. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10600. +AC_LANG_SAVE
  10601. +
  10602. +# Source file extension for Java test sources.
  10603. +ac_ext=java
  10604. +
  10605. +# Object file extension for compiled Java test sources.
  10606. +objext=o
  10607. +_LT_TAGVAR(objext, $1)=$objext
  10608. +
  10609. +# Code to be used in simple compile tests
  10610. +lt_simple_compile_test_code="class foo {}"
  10611. +
  10612. +# Code to be used in simple link tests
  10613. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10614. +
  10615. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10616. +_LT_TAG_COMPILER
  10617. +
  10618. +# save warnings/boilerplate of simple test code
  10619. +_LT_COMPILER_BOILERPLATE
  10620. +_LT_LINKER_BOILERPLATE
  10621. +
  10622. +# Allow CC to be a program name with arguments.
  10623. +lt_save_CC="$CC"
  10624. +lt_save_GCC=$GCC
  10625. +GCC=yes
  10626. +CC=${GCJ-"gcj"}
  10627. +compiler=$CC
  10628. +_LT_TAGVAR(compiler, $1)=$CC
  10629. +_LT_TAGVAR(LD, $1)="$LD"
  10630. +_LT_CC_BASENAME([$compiler])
  10631. +
  10632. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10633. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10634. +
  10635. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10636. +
  10637. +if test -n "$compiler"; then
  10638. + _LT_COMPILER_NO_RTTI($1)
  10639. + _LT_COMPILER_PIC($1)
  10640. + _LT_COMPILER_C_O($1)
  10641. + _LT_COMPILER_FILE_LOCKS($1)
  10642. + _LT_LINKER_SHLIBS($1)
  10643. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10644. +
  10645. + _LT_CONFIG($1)
  10646. +fi
  10647. +
  10648. +AC_LANG_RESTORE
  10649. +
  10650. +GCC=$lt_save_GCC
  10651. +CC="$lt_save_CC"
  10652. +])# _LT_LANG_GCJ_CONFIG
  10653. +
  10654. +
  10655. +# _LT_LANG_RC_CONFIG([TAG])
  10656. +# -------------------------
  10657. +# Ensure that the configuration variables for the Windows resource compiler
  10658. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10659. +# to write the compiler configuration to `libtool'.
  10660. +m4_defun([_LT_LANG_RC_CONFIG],
  10661. +[AC_REQUIRE([LT_PROG_RC])dnl
  10662. +AC_LANG_SAVE
  10663. +
  10664. +# Source file extension for RC test sources.
  10665. +ac_ext=rc
  10666. +
  10667. +# Object file extension for compiled RC test sources.
  10668. +objext=o
  10669. +_LT_TAGVAR(objext, $1)=$objext
  10670. +
  10671. +# Code to be used in simple compile tests
  10672. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10673. +
  10674. +# Code to be used in simple link tests
  10675. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  10676. +
  10677. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10678. +_LT_TAG_COMPILER
  10679. +
  10680. +# save warnings/boilerplate of simple test code
  10681. +_LT_COMPILER_BOILERPLATE
  10682. +_LT_LINKER_BOILERPLATE
  10683. +
  10684. +# Allow CC to be a program name with arguments.
  10685. +lt_save_CC="$CC"
  10686. +lt_save_GCC=$GCC
  10687. +GCC=
  10688. +CC=${RC-"windres"}
  10689. +compiler=$CC
  10690. +_LT_TAGVAR(compiler, $1)=$CC
  10691. +_LT_CC_BASENAME([$compiler])
  10692. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  10693. +
  10694. +if test -n "$compiler"; then
  10695. + :
  10696. + _LT_CONFIG($1)
  10697. +fi
  10698. +
  10699. +GCC=$lt_save_GCC
  10700. +AC_LANG_RESTORE
  10701. +CC="$lt_save_CC"
  10702. +])# _LT_LANG_RC_CONFIG
  10703. +
  10704. +
  10705. +# LT_PROG_GCJ
  10706. +# -----------
  10707. +AC_DEFUN([LT_PROG_GCJ],
  10708. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  10709. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  10710. + [AC_CHECK_TOOL(GCJ, gcj,)
  10711. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10712. + AC_SUBST(GCJFLAGS)])])[]dnl
  10713. +])
  10714. +
  10715. +# Old name:
  10716. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  10717. +dnl aclocal-1.4 backwards compatibility:
  10718. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  10719. +
  10720. +
  10721. +# LT_PROG_RC
  10722. +# ----------
  10723. +AC_DEFUN([LT_PROG_RC],
  10724. +[AC_CHECK_TOOL(RC, windres,)
  10725. +])
  10726. +
  10727. +# Old name:
  10728. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  10729. +dnl aclocal-1.4 backwards compatibility:
  10730. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  10731. +
  10732. +
  10733. +# _LT_DECL_EGREP
  10734. +# --------------
  10735. +# If we don't have a new enough Autoconf to choose the best grep
  10736. +# available, choose the one first in the user's PATH.
  10737. +m4_defun([_LT_DECL_EGREP],
  10738. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  10739. +AC_REQUIRE([AC_PROG_FGREP])dnl
  10740. +test -z "$GREP" && GREP=grep
  10741. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  10742. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  10743. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  10744. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  10745. +AC_SUBST([GREP])
  10746. +])
  10747. +
  10748. +
  10749. +# _LT_DECL_OBJDUMP
  10750. +# --------------
  10751. +# If we don't have a new enough Autoconf to choose the best objdump
  10752. +# available, choose the one first in the user's PATH.
  10753. +m4_defun([_LT_DECL_OBJDUMP],
  10754. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10755. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10756. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  10757. +AC_SUBST([OBJDUMP])
  10758. +])
  10759. +
  10760. +
  10761. +# _LT_DECL_SED
  10762. +# ------------
  10763. +# Check for a fully-functional sed program, that truncates
  10764. +# as few characters as possible. Prefer GNU sed if found.
  10765. +m4_defun([_LT_DECL_SED],
  10766. +[AC_PROG_SED
  10767. +test -z "$SED" && SED=sed
  10768. +Xsed="$SED -e 1s/^X//"
  10769. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  10770. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  10771. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  10772. +])# _LT_DECL_SED
  10773. +
  10774. +m4_ifndef([AC_PROG_SED], [
  10775. +# NOTE: This macro has been submitted for inclusion into #
  10776. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  10777. +# a released version of Autoconf we should remove this #
  10778. +# macro and use it instead. #
  10779. +
  10780. +m4_defun([AC_PROG_SED],
  10781. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  10782. +AC_CACHE_VAL(lt_cv_path_SED,
  10783. +[# Loop through the user's path and test for sed and gsed.
  10784. +# Then use that list of sed's as ones to test for truncation.
  10785. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10786. +for as_dir in $PATH
  10787. +do
  10788. + IFS=$as_save_IFS
  10789. + test -z "$as_dir" && as_dir=.
  10790. + for lt_ac_prog in sed gsed; do
  10791. + for ac_exec_ext in '' $ac_executable_extensions; do
  10792. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  10793. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  10794. + fi
  10795. + done
  10796. + done
  10797. +done
  10798. +IFS=$as_save_IFS
  10799. +lt_ac_max=0
  10800. +lt_ac_count=0
  10801. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  10802. +# along with /bin/sed that truncates output.
  10803. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  10804. + test ! -f $lt_ac_sed && continue
  10805. + cat /dev/null > conftest.in
  10806. + lt_ac_count=0
  10807. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  10808. + # Check for GNU sed and select it if it is found.
  10809. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  10810. + lt_cv_path_SED=$lt_ac_sed
  10811. + break
  10812. fi
  10813. -],
  10814. -[
  10815. - if test "$GCC" = yes; then
  10816. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10817. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10818. + while true; do
  10819. + cat conftest.in conftest.in >conftest.tmp
  10820. + mv conftest.tmp conftest.in
  10821. + cp conftest.in conftest.nl
  10822. + echo >>conftest.nl
  10823. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  10824. + cmp -s conftest.out conftest.nl || break
  10825. + # 10000 chars as input seems more than enough
  10826. + test $lt_ac_count -gt 10 && break
  10827. + lt_ac_count=`expr $lt_ac_count + 1`
  10828. + if test $lt_ac_count -gt $lt_ac_max; then
  10829. + lt_ac_max=$lt_ac_count
  10830. + lt_cv_path_SED=$lt_ac_sed
  10831. + fi
  10832. + done
  10833. +done
  10834. +])
  10835. +SED=$lt_cv_path_SED
  10836. +AC_SUBST([SED])
  10837. +AC_MSG_RESULT([$SED])
  10838. +])#AC_PROG_SED
  10839. +])#m4_ifndef
  10840. - case $host_os in
  10841. - aix*)
  10842. - # All AIX code is PIC.
  10843. - if test "$host_cpu" = ia64; then
  10844. - # AIX 5 now supports IA64 processor
  10845. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10846. - fi
  10847. - ;;
  10848. +# Old name:
  10849. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  10850. +dnl aclocal-1.4 backwards compatibility:
  10851. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  10852. - amigaos*)
  10853. - # FIXME: we need at least 68020 code to build shared libraries, but
  10854. - # adding the `-m68020' flag to GCC prevents building anything better,
  10855. - # like `-m68040'.
  10856. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10857. - ;;
  10858. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10859. - # PIC is the default for these OSes.
  10860. - ;;
  10861. +# _LT_CHECK_SHELL_FEATURES
  10862. +# ------------------------
  10863. +# Find out whether the shell is Bourne or XSI compatible,
  10864. +# or has some other useful features.
  10865. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  10866. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  10867. +# Try some XSI features
  10868. +xsi_shell=no
  10869. +( _lt_dummy="a/b/c"
  10870. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  10871. + = c,a/b,, \
  10872. + && eval 'test $(( 1 + 1 )) -eq 2 \
  10873. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  10874. + && xsi_shell=yes
  10875. +AC_MSG_RESULT([$xsi_shell])
  10876. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  10877. +
  10878. +AC_MSG_CHECKING([whether the shell understands "+="])
  10879. +lt_shell_append=no
  10880. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  10881. + >/dev/null 2>&1 \
  10882. + && lt_shell_append=yes
  10883. +AC_MSG_RESULT([$lt_shell_append])
  10884. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  10885. - mingw* | pw32* | os2*)
  10886. - # This hack is so that the source file can tell whether it is being
  10887. - # built for inclusion in a dll (and should export symbols for example).
  10888. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10889. - ;;
  10890. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10891. + lt_unset=unset
  10892. +else
  10893. + lt_unset=false
  10894. +fi
  10895. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  10896. - darwin* | rhapsody*)
  10897. - # PIC is the default on this platform
  10898. - # Common symbols not allowed in MH_DYLIB files
  10899. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10900. - ;;
  10901. +# test EBCDIC or ASCII
  10902. +case `echo X|tr X '\101'` in
  10903. + A) # ASCII based system
  10904. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  10905. + lt_SP2NL='tr \040 \012'
  10906. + lt_NL2SP='tr \015\012 \040\040'
  10907. + ;;
  10908. + *) # EBCDIC based system
  10909. + lt_SP2NL='tr \100 \n'
  10910. + lt_NL2SP='tr \r\n \100\100'
  10911. + ;;
  10912. +esac
  10913. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  10914. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  10915. +])# _LT_CHECK_SHELL_FEATURES
  10916. +
  10917. +
  10918. +# _LT_PROG_XSI_SHELLFNS
  10919. +# ---------------------
  10920. +# Bourne and XSI compatible variants of some useful shell functions.
  10921. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  10922. +[case $xsi_shell in
  10923. + yes)
  10924. + cat << \_LT_EOF >> "$cfgfile"
  10925. +
  10926. +# func_dirname file append nondir_replacement
  10927. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  10928. +# otherwise set result to NONDIR_REPLACEMENT.
  10929. +func_dirname ()
  10930. +{
  10931. + case ${1} in
  10932. + */*) func_dirname_result="${1%/*}${2}" ;;
  10933. + * ) func_dirname_result="${3}" ;;
  10934. + esac
  10935. +}
  10936. - msdosdjgpp*)
  10937. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10938. - # on systems that don't support them.
  10939. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10940. - enable_shared=no
  10941. - ;;
  10942. +# func_basename file
  10943. +func_basename ()
  10944. +{
  10945. + func_basename_result="${1##*/}"
  10946. +}
  10947. - sysv4*MP*)
  10948. - if test -d /usr/nec; then
  10949. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  10950. - fi
  10951. - ;;
  10952. +# func_dirname_and_basename file append nondir_replacement
  10953. +# perform func_basename and func_dirname in a single function
  10954. +# call:
  10955. +# dirname: Compute the dirname of FILE. If nonempty,
  10956. +# add APPEND to the result, otherwise set result
  10957. +# to NONDIR_REPLACEMENT.
  10958. +# value returned in "$func_dirname_result"
  10959. +# basename: Compute filename of FILE.
  10960. +# value retuned in "$func_basename_result"
  10961. +# Implementation must be kept synchronized with func_dirname
  10962. +# and func_basename. For efficiency, we do not delegate to
  10963. +# those functions but instead duplicate the functionality here.
  10964. +func_dirname_and_basename ()
  10965. +{
  10966. + case ${1} in
  10967. + */*) func_dirname_result="${1%/*}${2}" ;;
  10968. + * ) func_dirname_result="${3}" ;;
  10969. + esac
  10970. + func_basename_result="${1##*/}"
  10971. +}
  10972. - hpux*)
  10973. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  10974. - # not for PA HP-UX.
  10975. - case "$host_cpu" in
  10976. - hppa*64*|ia64*)
  10977. - # +Z the default
  10978. - ;;
  10979. - *)
  10980. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10981. - ;;
  10982. - esac
  10983. - ;;
  10984. +# func_stripname prefix suffix name
  10985. +# strip PREFIX and SUFFIX off of NAME.
  10986. +# PREFIX and SUFFIX must not contain globbing or regex special
  10987. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  10988. +# dot (in which case that matches only a dot).
  10989. +func_stripname ()
  10990. +{
  10991. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  10992. + # positional parameters, so assign one to ordinary parameter first.
  10993. + func_stripname_result=${3}
  10994. + func_stripname_result=${func_stripname_result#"${1}"}
  10995. + func_stripname_result=${func_stripname_result%"${2}"}
  10996. +}
  10997. - *)
  10998. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10999. - ;;
  11000. - esac
  11001. - else
  11002. - # PORTME Check for flag to pass linker flags through the system compiler.
  11003. - case $host_os in
  11004. - aix*)
  11005. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11006. - if test "$host_cpu" = ia64; then
  11007. - # AIX 5 now supports IA64 processor
  11008. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11009. - else
  11010. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  11011. - fi
  11012. - ;;
  11013. +# func_opt_split
  11014. +func_opt_split ()
  11015. +{
  11016. + func_opt_split_opt=${1%%=*}
  11017. + func_opt_split_arg=${1#*=}
  11018. +}
  11019. - mingw* | pw32* | os2*)
  11020. - # This hack is so that the source file can tell whether it is being
  11021. - # built for inclusion in a dll (and should export symbols for example).
  11022. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11023. - ;;
  11024. +# func_lo2o object
  11025. +func_lo2o ()
  11026. +{
  11027. + case ${1} in
  11028. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11029. + *) func_lo2o_result=${1} ;;
  11030. + esac
  11031. +}
  11032. - hpux9* | hpux10* | hpux11*)
  11033. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11034. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11035. - # not for PA HP-UX.
  11036. - case "$host_cpu" in
  11037. - hppa*64*|ia64*)
  11038. - # +Z the default
  11039. - ;;
  11040. - *)
  11041. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  11042. - ;;
  11043. - esac
  11044. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11045. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11046. - ;;
  11047. +# func_xform libobj-or-source
  11048. +func_xform ()
  11049. +{
  11050. + func_xform_result=${1%.*}.lo
  11051. +}
  11052. - irix5* | irix6* | nonstopux*)
  11053. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11054. - # PIC (with -KPIC) is the default.
  11055. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11056. - ;;
  11057. +# func_arith arithmetic-term...
  11058. +func_arith ()
  11059. +{
  11060. + func_arith_result=$(( $[*] ))
  11061. +}
  11062. - newsos6)
  11063. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11064. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11065. - ;;
  11066. +# func_len string
  11067. +# STRING may not start with a hyphen.
  11068. +func_len ()
  11069. +{
  11070. + func_len_result=${#1}
  11071. +}
  11072. - linux*)
  11073. - case $CC in
  11074. - icc* | ecc*)
  11075. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11076. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11077. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11078. - ;;
  11079. - ccc*)
  11080. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11081. - # All Alpha code is PIC.
  11082. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11083. - ;;
  11084. - esac
  11085. - ;;
  11086. +_LT_EOF
  11087. + ;;
  11088. + *) # Bourne compatible functions.
  11089. + cat << \_LT_EOF >> "$cfgfile"
  11090. - osf3* | osf4* | osf5*)
  11091. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11092. - # All OSF/1 code is PIC.
  11093. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11094. - ;;
  11095. +# func_dirname file append nondir_replacement
  11096. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11097. +# otherwise set result to NONDIR_REPLACEMENT.
  11098. +func_dirname ()
  11099. +{
  11100. + # Extract subdirectory from the argument.
  11101. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11102. + if test "X$func_dirname_result" = "X${1}"; then
  11103. + func_dirname_result="${3}"
  11104. + else
  11105. + func_dirname_result="$func_dirname_result${2}"
  11106. + fi
  11107. +}
  11108. - sco3.2v5*)
  11109. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  11110. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  11111. - ;;
  11112. +# func_basename file
  11113. +func_basename ()
  11114. +{
  11115. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11116. +}
  11117. - solaris*)
  11118. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11119. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11120. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11121. - ;;
  11122. +dnl func_dirname_and_basename
  11123. +dnl A portable version of this function is already defined in general.m4sh
  11124. +dnl so there is no need for it here.
  11125. +
  11126. +# func_stripname prefix suffix name
  11127. +# strip PREFIX and SUFFIX off of NAME.
  11128. +# PREFIX and SUFFIX must not contain globbing or regex special
  11129. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11130. +# dot (in which case that matches only a dot).
  11131. +# func_strip_suffix prefix name
  11132. +func_stripname ()
  11133. +{
  11134. + case ${2} in
  11135. + .*) func_stripname_result=`$ECHO "X${3}" \
  11136. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11137. + *) func_stripname_result=`$ECHO "X${3}" \
  11138. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11139. + esac
  11140. +}
  11141. - sunos4*)
  11142. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11143. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11144. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11145. - ;;
  11146. +# sed scripts:
  11147. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11148. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11149. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11150. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11151. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11152. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11153. - ;;
  11154. +# func_opt_split
  11155. +func_opt_split ()
  11156. +{
  11157. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11158. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11159. +}
  11160. - sysv4*MP*)
  11161. - if test -d /usr/nec ;then
  11162. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11163. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11164. - fi
  11165. - ;;
  11166. +# func_lo2o object
  11167. +func_lo2o ()
  11168. +{
  11169. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11170. +}
  11171. - uts4*)
  11172. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11173. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11174. - ;;
  11175. +# func_xform libobj-or-source
  11176. +func_xform ()
  11177. +{
  11178. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11179. +}
  11180. - *)
  11181. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11182. - ;;
  11183. - esac
  11184. - fi
  11185. -])
  11186. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11187. +# func_arith arithmetic-term...
  11188. +func_arith ()
  11189. +{
  11190. + func_arith_result=`expr "$[@]"`
  11191. +}
  11192. -#
  11193. -# Check to make sure the PIC flag actually works.
  11194. -#
  11195. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11196. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11197. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11198. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11199. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11200. - "" | " "*) ;;
  11201. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11202. - esac],
  11203. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11204. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11205. -fi
  11206. -case "$host_os" in
  11207. - # For platforms which do not support PIC, -DPIC is meaningless:
  11208. - *djgpp*)
  11209. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11210. - ;;
  11211. - *)
  11212. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11213. - ;;
  11214. -esac
  11215. -])
  11216. +# func_len string
  11217. +# STRING may not start with a hyphen.
  11218. +func_len ()
  11219. +{
  11220. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11221. +}
  11222. +_LT_EOF
  11223. +esac
  11224. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11225. -# ------------------------------------
  11226. -# See if the linker supports building shared libraries.
  11227. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11228. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11229. -ifelse([$1],[CXX],[
  11230. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11231. - case $host_os in
  11232. - aix4* | aix5*)
  11233. - # If we're using GNU nm, then we don't want the "-C" option.
  11234. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11235. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11236. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11237. - else
  11238. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11239. - fi
  11240. +case $lt_shell_append in
  11241. + yes)
  11242. + cat << \_LT_EOF >> "$cfgfile"
  11243. +
  11244. +# func_append var value
  11245. +# Append VALUE to the end of shell variable VAR.
  11246. +func_append ()
  11247. +{
  11248. + eval "$[1]+=\$[2]"
  11249. +}
  11250. +_LT_EOF
  11251. ;;
  11252. - pw32*)
  11253. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11254. - ;;
  11255. - cygwin* | mingw*)
  11256. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11257. - ;;
  11258. *)
  11259. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11260. - ;;
  11261. - esac
  11262. -],[
  11263. - runpath_var=
  11264. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11265. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11266. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11267. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11268. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11269. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11270. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11271. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11272. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11273. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11274. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11275. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11276. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11277. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11278. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11279. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11280. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11281. - _LT_AC_TAGVAR(module_cmds, $1)=
  11282. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11283. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11284. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11285. - # include_expsyms should be a list of space-separated symbols to be *always*
  11286. - # included in the symbol list
  11287. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11288. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11289. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11290. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11291. - # as well as any symbol that contains `d'.
  11292. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11293. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11294. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11295. - # the symbol is explicitly referenced. Since portable code cannot
  11296. - # rely on this symbol name, it's probably fine to never include it in
  11297. - # preloaded symbol tables.
  11298. - extract_expsyms_cmds=
  11299. + cat << \_LT_EOF >> "$cfgfile"
  11300. - case $host_os in
  11301. - cygwin* | mingw* | pw32*)
  11302. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11303. - # When not using gcc, we currently assume that we are using
  11304. - # Microsoft Visual C++.
  11305. - if test "$GCC" != yes; then
  11306. - with_gnu_ld=no
  11307. - fi
  11308. - ;;
  11309. - openbsd*)
  11310. - with_gnu_ld=no
  11311. +# func_append var value
  11312. +# Append VALUE to the end of shell variable VAR.
  11313. +func_append ()
  11314. +{
  11315. + eval "$[1]=\$$[1]\$[2]"
  11316. +}
  11317. +
  11318. +_LT_EOF
  11319. ;;
  11320. esac
  11321. +])
  11322. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11323. - if test "$with_gnu_ld" = yes; then
  11324. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11325. - wlarc='${wl}'
  11326. +# Helper functions for option handling. -*- Autoconf -*-
  11327. +#
  11328. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11329. +# Written by Gary V. Vaughan, 2004
  11330. +#
  11331. +# This file is free software; the Free Software Foundation gives
  11332. +# unlimited permission to copy and/or distribute it, with or without
  11333. +# modifications, as long as this notice is preserved.
  11334. - # See if GNU ld supports shared libraries.
  11335. - case $host_os in
  11336. - aix3* | aix4* | aix5*)
  11337. - # On AIX/PPC, the GNU linker is very broken
  11338. - if test "$host_cpu" != ia64; then
  11339. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11340. - cat <<EOF 1>&2
  11341. +# serial 6 ltoptions.m4
  11342. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11343. -*** to be unable to reliably create shared libraries on AIX.
  11344. -*** Therefore, libtool is disabling shared libraries support. If you
  11345. -*** really care for shared libraries, you may want to modify your PATH
  11346. -*** so that a non-GNU linker is found, and then restart.
  11347. +# This is to help aclocal find these macros, as it can't see m4_define.
  11348. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11349. -EOF
  11350. - fi
  11351. - ;;
  11352. - amigaos*)
  11353. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11354. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11355. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11356. -
  11357. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11358. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11359. - # to version 4, is to share data among multiple programs linked
  11360. - # with the same dynamic library. Since this doesn't match the
  11361. - # behavior of shared libraries on other platforms, we can't use
  11362. - # them.
  11363. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11364. - ;;
  11365. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11366. +# ------------------------------------------
  11367. +m4_define([_LT_MANGLE_OPTION],
  11368. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11369. - beos*)
  11370. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11371. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11372. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11373. - # support --undefined. This deserves some investigation. FIXME
  11374. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11375. - else
  11376. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11377. - fi
  11378. - ;;
  11379. - cygwin* | mingw* | pw32*)
  11380. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11381. - # as there is no search path for DLLs.
  11382. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11383. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11384. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11385. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11386. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  11387. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11388. +# ---------------------------------------
  11389. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11390. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11391. +# saved as a flag.
  11392. +m4_define([_LT_SET_OPTION],
  11393. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11394. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11395. + _LT_MANGLE_DEFUN([$1], [$2]),
  11396. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11397. +])
  11398. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11399. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11400. - # If the export-symbols file already is a .def file (1st line
  11401. - # is EXPORTS), use it as is; otherwise, prepend...
  11402. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11403. - cp $export_symbols $output_objdir/$soname.def;
  11404. - else
  11405. - echo EXPORTS > $output_objdir/$soname.def;
  11406. - cat $export_symbols >> $output_objdir/$soname.def;
  11407. - fi~
  11408. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11409. - else
  11410. - ld_shlibs=no
  11411. - fi
  11412. - ;;
  11413. - netbsd* | knetbsd*-gnu)
  11414. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11415. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11416. - wlarc=
  11417. - else
  11418. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11419. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11420. - fi
  11421. - ;;
  11422. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11423. +# ------------------------------------------------------------
  11424. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11425. +m4_define([_LT_IF_OPTION],
  11426. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11427. - solaris* | sysv5*)
  11428. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11429. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11430. - cat <<EOF 1>&2
  11431. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11432. -*** create shared libraries on Solaris systems. Therefore, libtool
  11433. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11434. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11435. -*** your PATH or compiler configuration so that the native linker is
  11436. -*** used, and then restart.
  11437. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11438. +# -------------------------------------------------------
  11439. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11440. +# are set.
  11441. +m4_define([_LT_UNLESS_OPTIONS],
  11442. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11443. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11444. + [m4_define([$0_found])])])[]dnl
  11445. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11446. +])[]dnl
  11447. +])
  11448. -EOF
  11449. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11450. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11451. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11452. - else
  11453. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11454. - fi
  11455. - ;;
  11456. - sunos4*)
  11457. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11458. - wlarc=
  11459. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11460. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11461. - ;;
  11462. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11463. +# ----------------------------------------
  11464. +# OPTION-LIST is a space-separated list of Libtool options associated
  11465. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11466. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11467. +# the unknown option and exit.
  11468. +m4_defun([_LT_SET_OPTIONS],
  11469. +[# Set options
  11470. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11471. + [_LT_SET_OPTION([$1], _LT_Option)])
  11472. +
  11473. +m4_if([$1],[LT_INIT],[
  11474. + dnl
  11475. + dnl Simply set some default values (i.e off) if boolean options were not
  11476. + dnl specified:
  11477. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11478. + ])
  11479. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11480. + ])
  11481. + dnl
  11482. + dnl If no reference was made to various pairs of opposing options, then
  11483. + dnl we run the default mode handler for the pair. For example, if neither
  11484. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11485. + dnl archives by default:
  11486. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11487. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11488. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11489. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11490. + [_LT_ENABLE_FAST_INSTALL])
  11491. + ])
  11492. +])# _LT_SET_OPTIONS
  11493. - linux*)
  11494. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  11495. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11496. - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  11497. - supports_anon_versioning=no
  11498. - case `$LD -v 2>/dev/null` in
  11499. - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11500. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11501. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11502. - *\ 2.11.*) ;; # other 2.11 versions
  11503. - *) supports_anon_versioning=yes ;;
  11504. - esac
  11505. - if test $supports_anon_versioning = yes; then
  11506. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11507. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11508. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  11509. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11510. - else
  11511. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  11512. - fi
  11513. - else
  11514. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11515. - fi
  11516. - ;;
  11517. - *)
  11518. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11519. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11520. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11521. - else
  11522. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11523. - fi
  11524. - ;;
  11525. - esac
  11526. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  11527. - runpath_var=LD_RUN_PATH
  11528. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11529. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11530. - # ancient GNU ld didn't support --whole-archive et. al.
  11531. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11532. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11533. - else
  11534. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11535. - fi
  11536. - fi
  11537. - else
  11538. - # PORTME fill in a description of your system's linker (not GNU ld)
  11539. - case $host_os in
  11540. - aix3*)
  11541. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11542. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11543. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11544. - # Note: this linker hardcodes the directories in LIBPATH if there
  11545. - # are no directories specified by -L.
  11546. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11547. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  11548. - # Neither direct hardcoding nor static linking is supported with a
  11549. - # broken collect2.
  11550. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11551. - fi
  11552. - ;;
  11553. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  11554. +# -----------------------------------------
  11555. +m4_define([_LT_MANGLE_DEFUN],
  11556. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  11557. - aix4* | aix5*)
  11558. - if test "$host_cpu" = ia64; then
  11559. - # On IA64, the linker does run time linking by default, so we don't
  11560. - # have to do anything special.
  11561. - aix_use_runtimelinking=no
  11562. - exp_sym_flag='-Bexport'
  11563. - no_entry_flag=""
  11564. - else
  11565. - # If we're using GNU nm, then we don't want the "-C" option.
  11566. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11567. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11568. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11569. - else
  11570. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11571. - fi
  11572. - aix_use_runtimelinking=no
  11573. - # Test if we are trying to use run time linking or normal
  11574. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11575. - # need to do runtime linking.
  11576. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11577. - for ld_flag in $LDFLAGS; do
  11578. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11579. - aix_use_runtimelinking=yes
  11580. - break
  11581. - fi
  11582. - done
  11583. - esac
  11584. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  11585. +# -----------------------------------------------
  11586. +m4_define([LT_OPTION_DEFINE],
  11587. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  11588. +])# LT_OPTION_DEFINE
  11589. - exp_sym_flag='-bexport'
  11590. - no_entry_flag='-bnoentry'
  11591. - fi
  11592. - # When large executables or shared objects are built, AIX ld can
  11593. - # have problems creating the table of contents. If linking a library
  11594. - # or program results in "error TOC overflow" add -mminimal-toc to
  11595. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11596. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11597. +# dlopen
  11598. +# ------
  11599. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  11600. +])
  11601. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11602. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11603. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11604. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11605. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  11606. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  11607. +AC_DIAGNOSE([obsolete],
  11608. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11609. +put the `dlopen' option into LT_INIT's first parameter.])
  11610. +])
  11611. - if test "$GCC" = yes; then
  11612. - case $host_os in aix4.[012]|aix4.[012].*)
  11613. - # We only want to do this on AIX 4.2 and lower, the check
  11614. - # below for broken collect2 doesn't work under 4.3+
  11615. - collect2name=`${CC} -print-prog-name=collect2`
  11616. - if test -f "$collect2name" && \
  11617. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11618. - then
  11619. - # We have reworked collect2
  11620. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11621. - else
  11622. - # We have old collect2
  11623. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11624. - # It fails to find uninstalled libraries when the uninstalled
  11625. - # path is not listed in the libpath. Setting hardcode_minus_L
  11626. - # to unsupported forces relinking
  11627. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11628. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11629. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11630. - fi
  11631. - esac
  11632. - shared_flag='-shared'
  11633. - else
  11634. - # not using gcc
  11635. - if test "$host_cpu" = ia64; then
  11636. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11637. - # chokes on -Wl,-G. The following line is correct:
  11638. - shared_flag='-G'
  11639. - else
  11640. - if test "$aix_use_runtimelinking" = yes; then
  11641. - shared_flag='${wl}-G'
  11642. - else
  11643. - shared_flag='${wl}-bM:SRE'
  11644. - fi
  11645. - fi
  11646. - fi
  11647. +dnl aclocal-1.4 backwards compatibility:
  11648. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  11649. - # It seems that -bexpall does not export symbols beginning with
  11650. - # underscore (_), so it is better to generate a list of symbols to export.
  11651. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11652. - if test "$aix_use_runtimelinking" = yes; then
  11653. - # Warning - without using the other runtime loading flags (-brtl),
  11654. - # -berok will link without error, but may produce a broken library.
  11655. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11656. - # Determine the default libpath from the value encoded in an empty executable.
  11657. - _LT_AC_SYS_LIBPATH_AIX
  11658. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11659. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11660. - else
  11661. - if test "$host_cpu" = ia64; then
  11662. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11663. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11664. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  11665. - else
  11666. - # Determine the default libpath from the value encoded in an empty executable.
  11667. - _LT_AC_SYS_LIBPATH_AIX
  11668. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11669. - # Warning - without using the other run time loading flags,
  11670. - # -berok will link without error, but may produce a broken library.
  11671. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11672. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11673. - # -bexpall does not export symbols beginning with underscore (_)
  11674. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11675. - # Exported symbols can be pulled into shared objects from archives
  11676. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  11677. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11678. - # This is similar to how AIX traditionally builds it's shared libraries.
  11679. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11680. - fi
  11681. - fi
  11682. - ;;
  11683. - amigaos*)
  11684. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11685. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11686. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11687. - # see comment about different semantics on the GNU ld section
  11688. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11689. - ;;
  11690. +# win32-dll
  11691. +# ---------
  11692. +# Declare package support for building win32 dll's.
  11693. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  11694. +[enable_win32_dll=yes
  11695. - bsdi4*)
  11696. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11697. - ;;
  11698. +case $host in
  11699. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  11700. + AC_CHECK_TOOL(AS, as, false)
  11701. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  11702. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11703. + ;;
  11704. +esac
  11705. - cygwin* | mingw* | pw32*)
  11706. - # When not using gcc, we currently assume that we are using
  11707. - # Microsoft Visual C++.
  11708. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  11709. - # no search path for DLLs.
  11710. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  11711. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11712. - # Tell ltmain to make .lib files, not .a files.
  11713. - libext=lib
  11714. - # Tell ltmain to make .dll files, not .so files.
  11715. - shrext=".dll"
  11716. - # FIXME: Setting linknames here is a bad hack.
  11717. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  11718. - # The linker will automatically build a .lib file if we build a DLL.
  11719. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  11720. - # FIXME: Should let the user specify the lib program.
  11721. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  11722. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  11723. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11724. - ;;
  11725. +test -z "$AS" && AS=as
  11726. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  11727. - darwin* | rhapsody*)
  11728. - if test "$GXX" = yes ; then
  11729. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  11730. - case "$host_os" in
  11731. - rhapsody* | darwin1.[[012]])
  11732. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  11733. - ;;
  11734. - *) # Darwin 1.3 on
  11735. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  11736. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  11737. - else
  11738. - case ${MACOSX_DEPLOYMENT_TARGET} in
  11739. - 10.[[012]])
  11740. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  11741. - ;;
  11742. - 10.*)
  11743. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  11744. - ;;
  11745. - esac
  11746. - fi
  11747. - ;;
  11748. - esac
  11749. - lt_int_apple_cc_single_mod=no
  11750. - output_verbose_link_cmd='echo'
  11751. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  11752. - lt_int_apple_cc_single_mod=yes
  11753. - fi
  11754. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11755. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  11756. - else
  11757. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
  11758. - fi
  11759. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  11760. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  11761. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  11762. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11763. - else
  11764. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11765. - fi
  11766. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11767. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11768. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  11769. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11770. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  11771. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11772. - else
  11773. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11774. - fi
  11775. - ;;
  11776. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  11777. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  11778. - dgux*)
  11779. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11780. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11781. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11782. - ;;
  11783. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11784. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  11785. +])# win32-dll
  11786. - freebsd1*)
  11787. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11788. - ;;
  11789. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  11790. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  11791. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  11792. +AC_DIAGNOSE([obsolete],
  11793. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11794. +put the `win32-dll' option into LT_INIT's first parameter.])
  11795. +])
  11796. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  11797. - # support. Future versions do this automatically, but an explicit c++rt0.o
  11798. - # does not break anything, and helps significantly (at the cost of a little
  11799. - # extra space).
  11800. - freebsd2.2*)
  11801. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  11802. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11803. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11804. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11805. - ;;
  11806. +dnl aclocal-1.4 backwards compatibility:
  11807. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  11808. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  11809. - freebsd2*)
  11810. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11811. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11812. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11813. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11814. - ;;
  11815. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  11816. - freebsd* | kfreebsd*-gnu)
  11817. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  11818. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11819. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11820. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11821. +# _LT_ENABLE_SHARED([DEFAULT])
  11822. +# ----------------------------
  11823. +# implement the --enable-shared flag, and supports the `shared' and
  11824. +# `disable-shared' LT_INIT options.
  11825. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  11826. +m4_define([_LT_ENABLE_SHARED],
  11827. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  11828. +AC_ARG_ENABLE([shared],
  11829. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  11830. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  11831. + [p=${PACKAGE-default}
  11832. + case $enableval in
  11833. + yes) enable_shared=yes ;;
  11834. + no) enable_shared=no ;;
  11835. + *)
  11836. + enable_shared=no
  11837. + # Look at the argument we got. We use all the common list separators.
  11838. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11839. + for pkg in $enableval; do
  11840. + IFS="$lt_save_ifs"
  11841. + if test "X$pkg" = "X$p"; then
  11842. + enable_shared=yes
  11843. + fi
  11844. + done
  11845. + IFS="$lt_save_ifs"
  11846. ;;
  11847. + esac],
  11848. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  11849. - hpux9*)
  11850. - if test "$GCC" = yes; then
  11851. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11852. - else
  11853. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11854. - fi
  11855. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11856. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11857. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11858. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  11859. + [Whether or not to build shared libraries])
  11860. +])# _LT_ENABLE_SHARED
  11861. - # hardcode_minus_L: Not really in the search PATH,
  11862. - # but as the default location of the library.
  11863. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11864. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11865. - ;;
  11866. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  11867. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  11868. - hpux10* | hpux11*)
  11869. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  11870. - case "$host_cpu" in
  11871. - hppa*64*|ia64*)
  11872. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  11873. - ;;
  11874. - *)
  11875. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  11876. - ;;
  11877. - esac
  11878. - else
  11879. - case "$host_cpu" in
  11880. - hppa*64*|ia64*)
  11881. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  11882. - ;;
  11883. - *)
  11884. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  11885. - ;;
  11886. - esac
  11887. - fi
  11888. - if test "$with_gnu_ld" = no; then
  11889. - case "$host_cpu" in
  11890. - hppa*64*)
  11891. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11892. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  11893. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11894. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11895. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11896. - ;;
  11897. - ia64*)
  11898. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11899. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11900. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11901. +# Old names:
  11902. +AC_DEFUN([AC_ENABLE_SHARED],
  11903. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  11904. +])
  11905. - # hardcode_minus_L: Not really in the search PATH,
  11906. - # but as the default location of the library.
  11907. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11908. - ;;
  11909. - *)
  11910. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  11911. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11912. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11913. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11914. +AC_DEFUN([AC_DISABLE_SHARED],
  11915. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  11916. +])
  11917. - # hardcode_minus_L: Not really in the search PATH,
  11918. - # but as the default location of the library.
  11919. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11920. - ;;
  11921. - esac
  11922. - fi
  11923. - ;;
  11924. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  11925. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  11926. - irix5* | irix6* | nonstopux*)
  11927. - if test "$GCC" = yes; then
  11928. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11929. - else
  11930. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  11931. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  11932. - fi
  11933. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11934. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11935. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11936. - ;;
  11937. +dnl aclocal-1.4 backwards compatibility:
  11938. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  11939. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  11940. - netbsd* | knetbsd*-gnu)
  11941. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11942. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  11943. - else
  11944. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  11945. - fi
  11946. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11947. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11948. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11949. - ;;
  11950. - newsos6)
  11951. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  11952. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11953. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  11954. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  11955. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11956. - ;;
  11957. - openbsd*)
  11958. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11959. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11960. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11961. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11962. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11963. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  11964. - else
  11965. - case $host_os in
  11966. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  11967. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11968. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  11969. - ;;
  11970. - *)
  11971. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  11972. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  11973. - ;;
  11974. - esac
  11975. - fi
  11976. +# _LT_ENABLE_STATIC([DEFAULT])
  11977. +# ----------------------------
  11978. +# implement the --enable-static flag, and support the `static' and
  11979. +# `disable-static' LT_INIT options.
  11980. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  11981. +m4_define([_LT_ENABLE_STATIC],
  11982. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  11983. +AC_ARG_ENABLE([static],
  11984. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  11985. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  11986. + [p=${PACKAGE-default}
  11987. + case $enableval in
  11988. + yes) enable_static=yes ;;
  11989. + no) enable_static=no ;;
  11990. + *)
  11991. + enable_static=no
  11992. + # Look at the argument we got. We use all the common list separators.
  11993. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  11994. + for pkg in $enableval; do
  11995. + IFS="$lt_save_ifs"
  11996. + if test "X$pkg" = "X$p"; then
  11997. + enable_static=yes
  11998. + fi
  11999. + done
  12000. + IFS="$lt_save_ifs"
  12001. ;;
  12002. + esac],
  12003. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12004. +
  12005. + _LT_DECL([build_old_libs], [enable_static], [0],
  12006. + [Whether or not to build static libraries])
  12007. +])# _LT_ENABLE_STATIC
  12008. +
  12009. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12010. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12011. +
  12012. +# Old names:
  12013. +AC_DEFUN([AC_ENABLE_STATIC],
  12014. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12015. +])
  12016. - os2*)
  12017. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12018. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12019. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12020. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12021. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12022. - ;;
  12023. +AC_DEFUN([AC_DISABLE_STATIC],
  12024. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12025. +])
  12026. - osf3*)
  12027. - if test "$GCC" = yes; then
  12028. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12029. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12030. - else
  12031. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12032. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12033. - fi
  12034. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12035. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12036. - ;;
  12037. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12038. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12039. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12040. - if test "$GCC" = yes; then
  12041. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12042. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12043. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12044. - else
  12045. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12046. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12047. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  12048. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  12049. +dnl aclocal-1.4 backwards compatibility:
  12050. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12051. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12052. - # Both c and cxx compiler support -rpath directly
  12053. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12054. - fi
  12055. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12056. - ;;
  12057. - sco3.2v5*)
  12058. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12059. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12060. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12061. - runpath_var=LD_RUN_PATH
  12062. - hardcode_runpath_var=yes
  12063. - ;;
  12064. - solaris*)
  12065. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12066. - if test "$GCC" = yes; then
  12067. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12068. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12069. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12070. - else
  12071. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12072. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12073. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12074. - fi
  12075. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12076. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12077. - case $host_os in
  12078. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12079. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  12080. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12081. - esac
  12082. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12083. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12084. +# ----------------------------------
  12085. +# implement the --enable-fast-install flag, and support the `fast-install'
  12086. +# and `disable-fast-install' LT_INIT options.
  12087. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12088. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12089. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12090. +AC_ARG_ENABLE([fast-install],
  12091. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12092. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12093. + [p=${PACKAGE-default}
  12094. + case $enableval in
  12095. + yes) enable_fast_install=yes ;;
  12096. + no) enable_fast_install=no ;;
  12097. + *)
  12098. + enable_fast_install=no
  12099. + # Look at the argument we got. We use all the common list separators.
  12100. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12101. + for pkg in $enableval; do
  12102. + IFS="$lt_save_ifs"
  12103. + if test "X$pkg" = "X$p"; then
  12104. + enable_fast_install=yes
  12105. + fi
  12106. + done
  12107. + IFS="$lt_save_ifs"
  12108. ;;
  12109. + esac],
  12110. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12111. - sunos4*)
  12112. - if test "x$host_vendor" = xsequent; then
  12113. - # Use $CC to link under sequent, because it throws in some extra .o
  12114. - # files that make .init and .fini sections work.
  12115. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12116. - else
  12117. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12118. - fi
  12119. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12120. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12121. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12122. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12123. - ;;
  12124. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12125. + [Whether or not to optimize for fast installation])dnl
  12126. +])# _LT_ENABLE_FAST_INSTALL
  12127. +
  12128. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12129. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12130. +
  12131. +# Old names:
  12132. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12133. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12134. +AC_DIAGNOSE([obsolete],
  12135. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12136. +the `fast-install' option into LT_INIT's first parameter.])
  12137. +])
  12138. - sysv4)
  12139. - case $host_vendor in
  12140. - sni)
  12141. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12142. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12143. - ;;
  12144. - siemens)
  12145. - ## LD is ld it makes a PLAMLIB
  12146. - ## CC just makes a GrossModule.
  12147. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12148. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12149. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12150. - ;;
  12151. - motorola)
  12152. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12153. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12154. - ;;
  12155. - esac
  12156. - runpath_var='LD_RUN_PATH'
  12157. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12158. - ;;
  12159. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12160. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12161. +AC_DIAGNOSE([obsolete],
  12162. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12163. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12164. +])
  12165. - sysv4.3*)
  12166. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12167. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12168. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12169. - ;;
  12170. +dnl aclocal-1.4 backwards compatibility:
  12171. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12172. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12173. - sysv4*MP*)
  12174. - if test -d /usr/nec; then
  12175. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12176. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12177. - runpath_var=LD_RUN_PATH
  12178. - hardcode_runpath_var=yes
  12179. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12180. - fi
  12181. - ;;
  12182. - sysv4.2uw2*)
  12183. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12184. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12185. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  12186. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12187. - hardcode_runpath_var=yes
  12188. - runpath_var=LD_RUN_PATH
  12189. - ;;
  12190. +# _LT_WITH_PIC([MODE])
  12191. +# --------------------
  12192. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12193. +# LT_INIT options.
  12194. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12195. +m4_define([_LT_WITH_PIC],
  12196. +[AC_ARG_WITH([pic],
  12197. + [AS_HELP_STRING([--with-pic],
  12198. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12199. + [pic_mode="$withval"],
  12200. + [pic_mode=default])
  12201. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  12202. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  12203. - if test "$GCC" = yes; then
  12204. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12205. - else
  12206. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12207. - fi
  12208. - runpath_var='LD_RUN_PATH'
  12209. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12210. - ;;
  12211. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12212. - sysv5*)
  12213. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12214. - # $CC -shared without GNU ld will not create a library from C++
  12215. - # object files and a static libstdc++, better avoid it by now
  12216. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12217. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12218. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12219. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  12220. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12221. - runpath_var='LD_RUN_PATH'
  12222. - ;;
  12223. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12224. +])# _LT_WITH_PIC
  12225. - uts4*)
  12226. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12227. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12228. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12229. - ;;
  12230. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12231. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12232. - *)
  12233. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12234. - ;;
  12235. - esac
  12236. - fi
  12237. +# Old name:
  12238. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12239. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12240. +AC_DIAGNOSE([obsolete],
  12241. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12242. +put the `pic-only' option into LT_INIT's first parameter.])
  12243. ])
  12244. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12245. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12246. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12247. -if test "$GCC" = yes; then
  12248. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12249. -fi
  12250. +dnl aclocal-1.4 backwards compatibility:
  12251. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12252. +
  12253. +m4_define([_LTDL_MODE], [])
  12254. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12255. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12256. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12257. + [m4_define([_LTDL_MODE], [recursive])])
  12258. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12259. + [m4_define([_LTDL_MODE], [subproject])])
  12260. +
  12261. +m4_define([_LTDL_TYPE], [])
  12262. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12263. + [m4_define([_LTDL_TYPE], [installable])])
  12264. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12265. + [m4_define([_LTDL_TYPE], [convenience])])
  12266. +
  12267. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12268. #
  12269. -# Do we need to explicitly link libc?
  12270. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12271. +# Written by Gary V. Vaughan, 2004
  12272. #
  12273. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12274. -x|xyes)
  12275. - # Assume -lc should be added
  12276. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12277. +# This file is free software; the Free Software Foundation gives
  12278. +# unlimited permission to copy and/or distribute it, with or without
  12279. +# modifications, as long as this notice is preserved.
  12280. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12281. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12282. - *'~'*)
  12283. - # FIXME: we may have to deal with multi-command sequences.
  12284. - ;;
  12285. - '$CC '*)
  12286. - # Test whether the compiler implicitly links with -lc since on some
  12287. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12288. - # to ld, don't add -lc before -lgcc.
  12289. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12290. - $rm conftest*
  12291. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12292. +# serial 6 ltsugar.m4
  12293. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12294. - soname=conftest
  12295. - lib=conftest
  12296. - libobjs=conftest.$ac_objext
  12297. - deplibs=
  12298. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12299. - compiler_flags=-v
  12300. - linker_flags=-v
  12301. - verstring=
  12302. - output_objdir=.
  12303. - libname=conftest
  12304. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12305. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12306. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12307. - then
  12308. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12309. - else
  12310. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12311. - fi
  12312. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12313. - else
  12314. - cat conftest.err 1>&5
  12315. - fi
  12316. - $rm conftest*
  12317. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12318. - ;;
  12319. - esac
  12320. - fi
  12321. - ;;
  12322. -esac
  12323. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12324. +# This is to help aclocal find these macros, as it can't see m4_define.
  12325. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12326. -# _LT_AC_FILE_LTDLL_C
  12327. -# -------------------
  12328. -# Be careful that the start marker always follows a newline.
  12329. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12330. -# /* ltdll.c starts here */
  12331. -# #define WIN32_LEAN_AND_MEAN
  12332. -# #include <windows.h>
  12333. -# #undef WIN32_LEAN_AND_MEAN
  12334. -# #include <stdio.h>
  12335. -#
  12336. -# #ifndef __CYGWIN__
  12337. -# # ifdef __CYGWIN32__
  12338. -# # define __CYGWIN__ __CYGWIN32__
  12339. -# # endif
  12340. -# #endif
  12341. -#
  12342. -# #ifdef __cplusplus
  12343. -# extern "C" {
  12344. -# #endif
  12345. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12346. -# #ifdef __cplusplus
  12347. -# }
  12348. -# #endif
  12349. -#
  12350. -# #ifdef __CYGWIN__
  12351. -# #include <cygwin/cygwin_dll.h>
  12352. -# DECLARE_CYGWIN_DLL( DllMain );
  12353. -# #endif
  12354. -# HINSTANCE __hDllInstance_base;
  12355. -#
  12356. -# BOOL APIENTRY
  12357. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12358. -# {
  12359. -# __hDllInstance_base = hInst;
  12360. -# return TRUE;
  12361. -# }
  12362. -# /* ltdll.c ends here */
  12363. -])# _LT_AC_FILE_LTDLL_C
  12364. +# lt_join(SEP, ARG1, [ARG2...])
  12365. +# -----------------------------
  12366. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12367. +# associated separator.
  12368. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12369. +# versions in m4sugar had bugs.
  12370. +m4_define([lt_join],
  12371. +[m4_if([$#], [1], [],
  12372. + [$#], [2], [[$2]],
  12373. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12374. +m4_define([_lt_join],
  12375. +[m4_if([$#$2], [2], [],
  12376. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12377. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12378. -# ---------------------------------
  12379. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12380. +# lt_car(LIST)
  12381. +# lt_cdr(LIST)
  12382. +# ------------
  12383. +# Manipulate m4 lists.
  12384. +# These macros are necessary as long as will still need to support
  12385. +# Autoconf-2.59 which quotes differently.
  12386. +m4_define([lt_car], [[$1]])
  12387. +m4_define([lt_cdr],
  12388. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12389. + [$#], 1, [],
  12390. + [m4_dquote(m4_shift($@))])])
  12391. +m4_define([lt_unquote], $1)
  12392. +
  12393. +
  12394. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12395. +# ------------------------------------------
  12396. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12397. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12398. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12399. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12400. +# than defined and empty).
  12401. +#
  12402. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12403. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12404. +m4_define([lt_append],
  12405. +[m4_define([$1],
  12406. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12407. -# old names
  12408. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12409. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12410. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12411. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12412. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12413. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12414. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12415. -# This is just to silence aclocal about the macro not being used
  12416. -ifelse([AC_DISABLE_FAST_INSTALL])
  12417. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12418. +# ----------------------------------------------------------
  12419. +# Produce a SEP delimited list of all paired combinations of elements of
  12420. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12421. +# has the form PREFIXmINFIXSUFFIXn.
  12422. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12423. +m4_define([lt_combine],
  12424. +[m4_if(m4_eval([$# > 3]), [1],
  12425. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12426. +[[m4_foreach([_Lt_prefix], [$2],
  12427. + [m4_foreach([_Lt_suffix],
  12428. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12429. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12430. +
  12431. +
  12432. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12433. +# -----------------------------------------------------------------------
  12434. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12435. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12436. +m4_define([lt_if_append_uniq],
  12437. +[m4_ifdef([$1],
  12438. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12439. + [lt_append([$1], [$2], [$3])$4],
  12440. + [$5])],
  12441. + [lt_append([$1], [$2], [$3])$4])])
  12442. -AC_DEFUN([LT_AC_PROG_GCJ],
  12443. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12444. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12445. - AC_SUBST(GCJFLAGS)
  12446. -])
  12447. -AC_DEFUN([LT_AC_PROG_RC],
  12448. -[AC_CHECK_TOOL(RC, windres, no)
  12449. -])
  12450. +# lt_dict_add(DICT, KEY, VALUE)
  12451. +# -----------------------------
  12452. +m4_define([lt_dict_add],
  12453. +[m4_define([$1($2)], [$3])])
  12454. -# NOTE: This macro has been submitted for inclusion into #
  12455. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12456. -# a released version of Autoconf we should remove this #
  12457. -# macro and use it instead. #
  12458. -# LT_AC_PROG_SED
  12459. -# --------------
  12460. -# Check for a fully-functional sed program, that truncates
  12461. -# as few characters as possible. Prefer GNU sed if found.
  12462. -AC_DEFUN([LT_AC_PROG_SED],
  12463. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12464. -AC_CACHE_VAL(lt_cv_path_SED,
  12465. -[# Loop through the user's path and test for sed and gsed.
  12466. -# Then use that list of sed's as ones to test for truncation.
  12467. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12468. -for as_dir in $PATH
  12469. -do
  12470. - IFS=$as_save_IFS
  12471. - test -z "$as_dir" && as_dir=.
  12472. - for lt_ac_prog in sed gsed; do
  12473. - for ac_exec_ext in '' $ac_executable_extensions; do
  12474. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12475. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12476. - fi
  12477. - done
  12478. - done
  12479. -done
  12480. -lt_ac_max=0
  12481. -lt_ac_count=0
  12482. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12483. -# along with /bin/sed that truncates output.
  12484. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12485. - test ! -f $lt_ac_sed && break
  12486. - cat /dev/null > conftest.in
  12487. - lt_ac_count=0
  12488. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12489. - # Check for GNU sed and select it if it is found.
  12490. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12491. - lt_cv_path_SED=$lt_ac_sed
  12492. - break
  12493. - fi
  12494. - while true; do
  12495. - cat conftest.in conftest.in >conftest.tmp
  12496. - mv conftest.tmp conftest.in
  12497. - cp conftest.in conftest.nl
  12498. - echo >>conftest.nl
  12499. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12500. - cmp -s conftest.out conftest.nl || break
  12501. - # 10000 chars as input seems more than enough
  12502. - test $lt_ac_count -gt 10 && break
  12503. - lt_ac_count=`expr $lt_ac_count + 1`
  12504. - if test $lt_ac_count -gt $lt_ac_max; then
  12505. - lt_ac_max=$lt_ac_count
  12506. - lt_cv_path_SED=$lt_ac_sed
  12507. - fi
  12508. - done
  12509. -done
  12510. -SED=$lt_cv_path_SED
  12511. +
  12512. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12513. +# --------------------------------------------
  12514. +m4_define([lt_dict_add_subkey],
  12515. +[m4_define([$1($2:$3)], [$4])])
  12516. +
  12517. +
  12518. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12519. +# ----------------------------------
  12520. +m4_define([lt_dict_fetch],
  12521. +[m4_ifval([$3],
  12522. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12523. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12524. +
  12525. +
  12526. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12527. +# -----------------------------------------------------------------
  12528. +m4_define([lt_if_dict_fetch],
  12529. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12530. + [$5],
  12531. + [$6])])
  12532. +
  12533. +
  12534. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12535. +# --------------------------------------------------------------
  12536. +m4_define([lt_dict_filter],
  12537. +[m4_if([$5], [], [],
  12538. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12539. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12540. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12541. ])
  12542. -AC_MSG_RESULT([$SED])
  12543. +
  12544. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12545. +#
  12546. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12547. +# Written by Scott James Remnant, 2004
  12548. +#
  12549. +# This file is free software; the Free Software Foundation gives
  12550. +# unlimited permission to copy and/or distribute it, with or without
  12551. +# modifications, as long as this notice is preserved.
  12552. +
  12553. +# Generated from ltversion.in.
  12554. +
  12555. +# serial 3017 ltversion.m4
  12556. +# This file is part of GNU Libtool
  12557. +
  12558. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12559. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12560. +
  12561. +AC_DEFUN([LTVERSION_VERSION],
  12562. +[macro_version='2.2.6b'
  12563. +macro_revision='1.3017'
  12564. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12565. +_LT_DECL(, macro_revision, 0)
  12566. ])
  12567. -# -*- Autoconf -*-
  12568. -# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  12569. -# Generated from amversion.in; do not edit by hand.
  12570. -
  12571. -# This program is free software; you can redistribute it and/or modify
  12572. -# it under the terms of the GNU General Public License as published by
  12573. -# the Free Software Foundation; either version 2, or (at your option)
  12574. -# any later version.
  12575. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12576. +#
  12577. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12578. +# Written by Scott James Remnant, 2004.
  12579. +#
  12580. +# This file is free software; the Free Software Foundation gives
  12581. +# unlimited permission to copy and/or distribute it, with or without
  12582. +# modifications, as long as this notice is preserved.
  12583. -# This program is distributed in the hope that it will be useful,
  12584. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12585. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12586. -# GNU General Public License for more details.
  12587. +# serial 4 lt~obsolete.m4
  12588. -# You should have received a copy of the GNU General Public License
  12589. -# along with this program; if not, write to the Free Software
  12590. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12591. +# These exist entirely to fool aclocal when bootstrapping libtool.
  12592. +#
  12593. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12594. +# which have later been changed to m4_define as they aren't part of the
  12595. +# exported API, or moved to Autoconf or Automake where they belong.
  12596. +#
  12597. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12598. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12599. +# using a macro with the same name in our local m4/libtool.m4 it'll
  12600. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  12601. +# and doesn't know about Autoconf macros at all.)
  12602. +#
  12603. +# So we provide this file, which has a silly filename so it's always
  12604. +# included after everything else. This provides aclocal with the
  12605. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  12606. +# because those macros already exist, or will be overwritten later.
  12607. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  12608. +#
  12609. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  12610. +# Yes, that means every name once taken will need to remain here until
  12611. +# we give up compatibility with versions before 1.7, at which point
  12612. +# we need to keep only those names which we still refer to.
  12613. +
  12614. +# This is to help aclocal find these macros, as it can't see m4_define.
  12615. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  12616. +
  12617. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  12618. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  12619. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  12620. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  12621. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  12622. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  12623. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  12624. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  12625. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  12626. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  12627. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  12628. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  12629. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  12630. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  12631. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  12632. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  12633. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  12634. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  12635. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  12636. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  12637. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  12638. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  12639. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  12640. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  12641. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  12642. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  12643. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  12644. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  12645. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  12646. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  12647. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  12648. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  12649. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  12650. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  12651. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  12652. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  12653. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  12654. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  12655. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  12656. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  12657. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  12658. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  12659. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  12660. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  12661. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  12662. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  12663. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  12664. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  12665. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  12666. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  12667. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  12668. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  12669. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  12670. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  12671. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  12672. +
  12673. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12674. +#
  12675. +# This file is free software; the Free Software Foundation
  12676. +# gives unlimited permission to copy and/or distribute it,
  12677. +# with or without modifications, as long as this notice is preserved.
  12678. # AM_AUTOMAKE_VERSION(VERSION)
  12679. # ----------------------------
  12680. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  12681. # generated from the m4 files accompanying Automake X.Y.
  12682. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
  12683. +# (This private macro should not be called outside this file.)
  12684. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  12685. +[am__api_version='1.11'
  12686. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  12687. +dnl require some minimum version. Point them to the right macro.
  12688. +m4_if([$1], [1.11.1], [],
  12689. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  12690. +])
  12691. +
  12692. +# _AM_AUTOCONF_VERSION(VERSION)
  12693. +# -----------------------------
  12694. +# aclocal traces this macro to find the Autoconf version.
  12695. +# This is a private macro too. Using m4_define simplifies
  12696. +# the logic in aclocal, which can simply ignore this definition.
  12697. +m4_define([_AM_AUTOCONF_VERSION], [])
  12698. # AM_SET_CURRENT_AUTOMAKE_VERSION
  12699. # -------------------------------
  12700. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  12701. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  12702. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  12703. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  12704. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  12705. - [AM_AUTOMAKE_VERSION([1.8.2])])
  12706. -
  12707. -# Figure out how to run the assembler. -*- Autoconf -*-
  12708. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  12709. +m4_ifndef([AC_AUTOCONF_VERSION],
  12710. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  12711. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  12712. -# serial 3
  12713. +# Figure out how to run the assembler. -*- Autoconf -*-
  12714. -# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
  12715. -
  12716. -# This program is free software; you can redistribute it and/or modify
  12717. -# it under the terms of the GNU General Public License as published by
  12718. -# the Free Software Foundation; either version 2, or (at your option)
  12719. -# any later version.
  12720. -
  12721. -# This program is distributed in the hope that it will be useful,
  12722. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12723. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12724. -# GNU General Public License for more details.
  12725. +# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  12726. +#
  12727. +# This file is free software; the Free Software Foundation
  12728. +# gives unlimited permission to copy and/or distribute it,
  12729. +# with or without modifications, as long as this notice is preserved.
  12730. -# You should have received a copy of the GNU General Public License
  12731. -# along with this program; if not, write to the Free Software
  12732. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12733. -# 02111-1307, USA.
  12734. +# serial 5
  12735. # AM_PROG_AS
  12736. # ----------
  12737. @@ -5972,26 +8040,16 @@
  12738. test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
  12739. AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
  12740. AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
  12741. +_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
  12742. ])
  12743. -# AM_AUX_DIR_EXPAND
  12744. -
  12745. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  12746. -
  12747. -# This program is free software; you can redistribute it and/or modify
  12748. -# it under the terms of the GNU General Public License as published by
  12749. -# the Free Software Foundation; either version 2, or (at your option)
  12750. -# any later version.
  12751. -
  12752. -# This program is distributed in the hope that it will be useful,
  12753. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12754. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12755. -# GNU General Public License for more details.
  12756. +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
  12757. -# You should have received a copy of the GNU General Public License
  12758. -# along with this program; if not, write to the Free Software
  12759. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12760. -# 02111-1307, USA.
  12761. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  12762. +#
  12763. +# This file is free software; the Free Software Foundation
  12764. +# gives unlimited permission to copy and/or distribute it,
  12765. +# with or without modifications, as long as this notice is preserved.
  12766. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  12767. # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  12768. @@ -6038,26 +8096,16 @@
  12769. am_aux_dir=`cd $ac_aux_dir && pwd`
  12770. ])
  12771. -# AM_CONDITIONAL -*- Autoconf -*-
  12772. -
  12773. -# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  12774. +# AM_CONDITIONAL -*- Autoconf -*-
  12775. -# This program is free software; you can redistribute it and/or modify
  12776. -# it under the terms of the GNU General Public License as published by
  12777. -# the Free Software Foundation; either version 2, or (at your option)
  12778. -# any later version.
  12779. -
  12780. -# This program is distributed in the hope that it will be useful,
  12781. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12782. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12783. -# GNU General Public License for more details.
  12784. -
  12785. -# You should have received a copy of the GNU General Public License
  12786. -# along with this program; if not, write to the Free Software
  12787. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12788. -# 02111-1307, USA.
  12789. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  12790. +# Free Software Foundation, Inc.
  12791. +#
  12792. +# This file is free software; the Free Software Foundation
  12793. +# gives unlimited permission to copy and/or distribute it,
  12794. +# with or without modifications, as long as this notice is preserved.
  12795. -# serial 6
  12796. +# serial 9
  12797. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  12798. # -------------------------------------
  12799. @@ -6066,8 +8114,11 @@
  12800. [AC_PREREQ(2.52)dnl
  12801. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  12802. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  12803. -AC_SUBST([$1_TRUE])
  12804. -AC_SUBST([$1_FALSE])
  12805. +AC_SUBST([$1_TRUE])dnl
  12806. +AC_SUBST([$1_FALSE])dnl
  12807. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  12808. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  12809. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  12810. if $2; then
  12811. $1_TRUE=
  12812. $1_FALSE='#'
  12813. @@ -6077,30 +8128,18 @@
  12814. fi
  12815. AC_CONFIG_COMMANDS_PRE(
  12816. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  12817. - AC_MSG_ERROR([conditional "$1" was never defined.
  12818. -Usually this means the macro was only invoked conditionally.])
  12819. + AC_MSG_ERROR([[conditional "$1" was never defined.
  12820. +Usually this means the macro was only invoked conditionally.]])
  12821. fi])])
  12822. -# serial 6 -*- Autoconf -*-
  12823. -
  12824. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
  12825. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  12826. # Free Software Foundation, Inc.
  12827. +#
  12828. +# This file is free software; the Free Software Foundation
  12829. +# gives unlimited permission to copy and/or distribute it,
  12830. +# with or without modifications, as long as this notice is preserved.
  12831. -# This program is free software; you can redistribute it and/or modify
  12832. -# it under the terms of the GNU General Public License as published by
  12833. -# the Free Software Foundation; either version 2, or (at your option)
  12834. -# any later version.
  12835. -
  12836. -# This program is distributed in the hope that it will be useful,
  12837. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12838. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12839. -# GNU General Public License for more details.
  12840. -
  12841. -# You should have received a copy of the GNU General Public License
  12842. -# along with this program; if not, write to the Free Software
  12843. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12844. -# 02111-1307, USA.
  12845. -
  12846. +# serial 10
  12847. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  12848. # written in clear, in which case automake, when reading aclocal.m4,
  12849. @@ -6109,7 +8148,6 @@
  12850. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  12851. -
  12852. # _AM_DEPENDENCIES(NAME)
  12853. # ----------------------
  12854. # See how the compiler implements dependency checking.
  12855. @@ -6129,6 +8167,7 @@
  12856. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  12857. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  12858. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  12859. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  12860. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  12861. [depcc="$$1" am_compiler_list=])
  12862. @@ -6157,6 +8196,16 @@
  12863. if test "$am_compiler_list" = ""; then
  12864. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  12865. fi
  12866. + am__universal=false
  12867. + m4_case([$1], [CC],
  12868. + [case " $depcc " in #(
  12869. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12870. + esac],
  12871. + [CXX],
  12872. + [case " $depcc " in #(
  12873. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  12874. + esac])
  12875. +
  12876. for depmode in $am_compiler_list; do
  12877. # Setup a source with many dependencies, because some compilers
  12878. # like to wrap large dependency lists on column 80 (with \), and
  12879. @@ -6168,11 +8217,23 @@
  12880. : > sub/conftest.c
  12881. for i in 1 2 3 4 5 6; do
  12882. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12883. - : > sub/conftst$i.h
  12884. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12885. + # Solaris 8's {/usr,}/bin/sh.
  12886. + touch sub/conftst$i.h
  12887. done
  12888. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12889. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12890. + # mode. It turns out that the SunPro C++ compiler does not properly
  12891. + # handle `-M -o', and we need to detect this. Also, some Intel
  12892. + # versions had trouble with output in subdirs
  12893. + am__obj=sub/conftest.${OBJEXT-o}
  12894. + am__minus_obj="-o $am__obj"
  12895. case $depmode in
  12896. + gcc)
  12897. + # This depmode causes a compiler race in universal mode.
  12898. + test "$am__universal" = false || continue
  12899. + ;;
  12900. nosideeffect)
  12901. # after this tag, mechanisms are not by side-effect, so they'll
  12902. # only be used when explicitly requested
  12903. @@ -6182,23 +8243,33 @@
  12904. break
  12905. fi
  12906. ;;
  12907. + msvisualcpp | msvcmsys)
  12908. + # This compiler won't grok `-c -o', but also, the minuso test has
  12909. + # not run yet. These depmodes are late enough in the game, and
  12910. + # so weak that their functioning should not be impacted.
  12911. + am__obj=conftest.${OBJEXT-o}
  12912. + am__minus_obj=
  12913. + ;;
  12914. none) break ;;
  12915. esac
  12916. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12917. - # mode. It turns out that the SunPro C++ compiler does not properly
  12918. - # handle `-M -o', and we need to detect this.
  12919. if depmode=$depmode \
  12920. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  12921. + source=sub/conftest.c object=$am__obj \
  12922. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12923. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  12924. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  12925. >/dev/null 2>conftest.err &&
  12926. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  12927. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12928. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  12929. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  12930. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12931. # icc doesn't choke on unknown options, it will just issue warnings
  12932. - # (even with -Werror). So we grep stderr for any message
  12933. - # that says an option was ignored.
  12934. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  12935. + # or remarks (even with -Werror). So we grep stderr for any message
  12936. + # that says an option was ignored or not supported.
  12937. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  12938. + # icc: Command line warning: ignoring option '-M'; no argument required
  12939. + # The diagnosis changed in icc 8.0:
  12940. + # icc: Command line remark: option '-MP' not supported
  12941. + if (grep 'ignoring option' conftest.err ||
  12942. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12943. am_cv_$1_dependencies_compiler_type=$depmode
  12944. break
  12945. fi
  12946. @@ -6239,77 +8310,74 @@
  12947. AMDEPBACKSLASH='\'
  12948. fi
  12949. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  12950. -AC_SUBST([AMDEPBACKSLASH])
  12951. +AC_SUBST([AMDEPBACKSLASH])dnl
  12952. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  12953. ])
  12954. -# Generate code to set up dependency tracking. -*- Autoconf -*-
  12955. -
  12956. -# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  12957. -
  12958. -# This program is free software; you can redistribute it and/or modify
  12959. -# it under the terms of the GNU General Public License as published by
  12960. -# the Free Software Foundation; either version 2, or (at your option)
  12961. -# any later version.
  12962. -
  12963. -# This program is distributed in the hope that it will be useful,
  12964. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  12965. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12966. -# GNU General Public License for more details.
  12967. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  12968. -# You should have received a copy of the GNU General Public License
  12969. -# along with this program; if not, write to the Free Software
  12970. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  12971. -# 02111-1307, USA.
  12972. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  12973. +# Free Software Foundation, Inc.
  12974. +#
  12975. +# This file is free software; the Free Software Foundation
  12976. +# gives unlimited permission to copy and/or distribute it,
  12977. +# with or without modifications, as long as this notice is preserved.
  12978. -#serial 2
  12979. +#serial 5
  12980. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  12981. # ------------------------------
  12982. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  12983. -[for mf in $CONFIG_FILES; do
  12984. - # Strip MF so we end up with the name of the file.
  12985. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  12986. - # Check whether this is an Automake generated Makefile or not.
  12987. - # We used to match only the files named `Makefile.in', but
  12988. - # some people rename them; so instead we look at the file content.
  12989. - # Grep'ing the first line is not enough: some people post-process
  12990. - # each Makefile.in and add a new line on top of each file to say so.
  12991. - # So let's grep whole file.
  12992. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12993. - dirpart=`AS_DIRNAME("$mf")`
  12994. - else
  12995. - continue
  12996. - fi
  12997. - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
  12998. - # Extract the definition of DEP_FILES from the Makefile without
  12999. - # running `make'.
  13000. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  13001. - test -z "$DEPDIR" && continue
  13002. - # When using ansi2knr, U may be empty or an underscore; expand it
  13003. - U=`sed -n -e '/^U = / s///p' < "$mf"`
  13004. - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  13005. - # We invoke sed twice because it is the simplest approach to
  13006. - # changing $(DEPDIR) to its actual value in the expansion.
  13007. - for file in `sed -n -e '
  13008. - /^DEP_FILES = .*\\\\$/ {
  13009. - s/^DEP_FILES = //
  13010. - :loop
  13011. - s/\\\\$//
  13012. - p
  13013. - n
  13014. - /\\\\$/ b loop
  13015. - p
  13016. - }
  13017. - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  13018. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13019. - # Make sure the directory exists.
  13020. - test -f "$dirpart/$file" && continue
  13021. - fdir=`AS_DIRNAME(["$file"])`
  13022. - AS_MKDIR_P([$dirpart/$fdir])
  13023. - # echo "creating $dirpart/$file"
  13024. - echo '# dummy' > "$dirpart/$file"
  13025. +[{
  13026. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13027. + # are listed without --file. Let's play safe and only enable the eval
  13028. + # if we detect the quoting.
  13029. + case $CONFIG_FILES in
  13030. + *\'*) eval set x "$CONFIG_FILES" ;;
  13031. + *) set x $CONFIG_FILES ;;
  13032. + esac
  13033. + shift
  13034. + for mf
  13035. + do
  13036. + # Strip MF so we end up with the name of the file.
  13037. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13038. + # Check whether this is an Automake generated Makefile or not.
  13039. + # We used to match only the files named `Makefile.in', but
  13040. + # some people rename them; so instead we look at the file content.
  13041. + # Grep'ing the first line is not enough: some people post-process
  13042. + # each Makefile.in and add a new line on top of each file to say so.
  13043. + # Grep'ing the whole file is not good either: AIX grep has a line
  13044. + # limit of 2048, but all sed's we know have understand at least 4000.
  13045. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13046. + dirpart=`AS_DIRNAME("$mf")`
  13047. + else
  13048. + continue
  13049. + fi
  13050. + # Extract the definition of DEPDIR, am__include, and am__quote
  13051. + # from the Makefile without running `make'.
  13052. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13053. + test -z "$DEPDIR" && continue
  13054. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13055. + test -z "am__include" && continue
  13056. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13057. + # When using ansi2knr, U may be empty or an underscore; expand it
  13058. + U=`sed -n 's/^U = //p' < "$mf"`
  13059. + # Find all dependency output files, they are included files with
  13060. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13061. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13062. + # expansion.
  13063. + for file in `sed -n "
  13064. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13065. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13066. + # Make sure the directory exists.
  13067. + test -f "$dirpart/$file" && continue
  13068. + fdir=`AS_DIRNAME(["$file"])`
  13069. + AS_MKDIR_P([$dirpart/$fdir])
  13070. + # echo "creating $dirpart/$file"
  13071. + echo '# dummy' > "$dirpart/$file"
  13072. + done
  13073. done
  13074. -done
  13075. +}
  13076. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13077. @@ -6326,54 +8394,31 @@
  13078. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  13079. ])
  13080. -# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
  13081. -
  13082. -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  13083. -
  13084. -# This program is free software; you can redistribute it and/or modify
  13085. -# it under the terms of the GNU General Public License as published by
  13086. -# the Free Software Foundation; either version 2, or (at your option)
  13087. -# any later version.
  13088. -
  13089. -# This program is distributed in the hope that it will be useful,
  13090. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13091. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13092. -# GNU General Public License for more details.
  13093. -
  13094. -# You should have received a copy of the GNU General Public License
  13095. -# along with this program; if not, write to the Free Software
  13096. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13097. -# 02111-1307, USA.
  13098. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13099. +# Free Software Foundation, Inc.
  13100. +#
  13101. +# This file is free software; the Free Software Foundation
  13102. +# gives unlimited permission to copy and/or distribute it,
  13103. +# with or without modifications, as long as this notice is preserved.
  13104. -# serial 7
  13105. +# serial 8
  13106. # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
  13107. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
  13108. -# Do all the work for Automake. -*- Autoconf -*-
  13109. -
  13110. -# This macro actually does too much some checks are only needed if
  13111. -# your package does certain things. But this isn't really a big deal.
  13112. -
  13113. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
  13114. -# Free Software Foundation, Inc.
  13115. -
  13116. -# This program is free software; you can redistribute it and/or modify
  13117. -# it under the terms of the GNU General Public License as published by
  13118. -# the Free Software Foundation; either version 2, or (at your option)
  13119. -# any later version.
  13120. +# Do all the work for Automake. -*- Autoconf -*-
  13121. -# This program is distributed in the hope that it will be useful,
  13122. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13123. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13124. -# GNU General Public License for more details.
  13125. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13126. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13127. +#
  13128. +# This file is free software; the Free Software Foundation
  13129. +# gives unlimited permission to copy and/or distribute it,
  13130. +# with or without modifications, as long as this notice is preserved.
  13131. -# You should have received a copy of the GNU General Public License
  13132. -# along with this program; if not, write to the Free Software
  13133. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13134. -# 02111-1307, USA.
  13135. +# serial 16
  13136. -# serial 11
  13137. +# This macro actually does too much. Some checks are only needed if
  13138. +# your package does certain things. But this isn't really a big deal.
  13139. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  13140. # AM_INIT_AUTOMAKE([OPTIONS])
  13141. @@ -6387,16 +8432,20 @@
  13142. # arguments mandatory, and then we can depend on a new Autoconf
  13143. # release and drop the old call support.
  13144. AC_DEFUN([AM_INIT_AUTOMAKE],
  13145. -[AC_PREREQ([2.58])dnl
  13146. +[AC_PREREQ([2.62])dnl
  13147. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13148. dnl the ones we care about.
  13149. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13150. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13151. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13152. -# test to see if srcdir already configured
  13153. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13154. - test -f $srcdir/config.status; then
  13155. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13156. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13157. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13158. + # is not polluted with repeated "-I."
  13159. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13160. + # test to see if srcdir already configured
  13161. + if test -f $srcdir/config.status; then
  13162. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13163. + fi
  13164. fi
  13165. # test whether we have cygpath
  13166. @@ -6416,6 +8465,9 @@
  13167. AC_SUBST([PACKAGE], [$1])dnl
  13168. AC_SUBST([VERSION], [$2])],
  13169. [_AM_SET_OPTIONS([$1])dnl
  13170. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13171. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13172. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13173. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13174. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13175. @@ -6431,28 +8483,46 @@
  13176. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13177. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13178. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13179. -AM_MISSING_PROG(AMTAR, tar)
  13180. -AM_PROG_INSTALL_SH
  13181. -AM_PROG_INSTALL_STRIP
  13182. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13183. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13184. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13185. # We need awk for the "check" target. The system "awk" is bad on
  13186. # some platforms.
  13187. AC_REQUIRE([AC_PROG_AWK])dnl
  13188. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13189. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13190. -
  13191. +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13192. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13193. + [_AM_PROG_TAR([v7])])])
  13194. _AM_IF_OPTION([no-dependencies],,
  13195. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13196. - [_AM_DEPENDENCIES(CC)],
  13197. - [define([AC_PROG_CC],
  13198. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13199. + [_AM_DEPENDENCIES(CC)],
  13200. + [define([AC_PROG_CC],
  13201. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13202. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13203. - [_AM_DEPENDENCIES(CXX)],
  13204. - [define([AC_PROG_CXX],
  13205. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13206. + [_AM_DEPENDENCIES(CXX)],
  13207. + [define([AC_PROG_CXX],
  13208. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13209. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13210. + [_AM_DEPENDENCIES(OBJC)],
  13211. + [define([AC_PROG_OBJC],
  13212. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13213. ])
  13214. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13215. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13216. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13217. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13218. +AC_CONFIG_COMMANDS_PRE(dnl
  13219. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13220. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13221. ])
  13222. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13223. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13224. +dnl mangled by Autoconf and run in a shell conditional statement.
  13225. +m4_define([_AC_COMPILER_EXEEXT],
  13226. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13227. +
  13228. # When config.status generates a header, we must update the stamp-h file.
  13229. # This file resides in the same directory as the config header
  13230. @@ -6463,62 +8533,46 @@
  13231. # our stamp files there.
  13232. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13233. [# Compute $1's index in $config_headers.
  13234. +_am_arg=$1
  13235. _am_stamp_count=1
  13236. for _am_header in $config_headers :; do
  13237. case $_am_header in
  13238. - $1 | $1:* )
  13239. + $_am_arg | $_am_arg:* )
  13240. break ;;
  13241. * )
  13242. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13243. esac
  13244. done
  13245. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13246. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13247. +
  13248. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13249. +#
  13250. +# This file is free software; the Free Software Foundation
  13251. +# gives unlimited permission to copy and/or distribute it,
  13252. +# with or without modifications, as long as this notice is preserved.
  13253. # AM_PROG_INSTALL_SH
  13254. # ------------------
  13255. # Define $install_sh.
  13256. -
  13257. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  13258. -
  13259. -# This program is free software; you can redistribute it and/or modify
  13260. -# it under the terms of the GNU General Public License as published by
  13261. -# the Free Software Foundation; either version 2, or (at your option)
  13262. -# any later version.
  13263. -
  13264. -# This program is distributed in the hope that it will be useful,
  13265. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13266. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13267. -# GNU General Public License for more details.
  13268. -
  13269. -# You should have received a copy of the GNU General Public License
  13270. -# along with this program; if not, write to the Free Software
  13271. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13272. -# 02111-1307, USA.
  13273. -
  13274. AC_DEFUN([AM_PROG_INSTALL_SH],
  13275. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13276. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13277. +if test x"${install_sh}" != xset; then
  13278. + case $am_aux_dir in
  13279. + *\ * | *\ *)
  13280. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13281. + *)
  13282. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13283. + esac
  13284. +fi
  13285. AC_SUBST(install_sh)])
  13286. -# -*- Autoconf -*-
  13287. -# Copyright (C) 2003 Free Software Foundation, Inc.
  13288. -
  13289. -# This program is free software; you can redistribute it and/or modify
  13290. -# it under the terms of the GNU General Public License as published by
  13291. -# the Free Software Foundation; either version 2, or (at your option)
  13292. -# any later version.
  13293. -
  13294. -# This program is distributed in the hope that it will be useful,
  13295. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13296. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13297. -# GNU General Public License for more details.
  13298. -
  13299. -# You should have received a copy of the GNU General Public License
  13300. -# along with this program; if not, write to the Free Software
  13301. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13302. -# 02111-1307, USA.
  13303. +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13304. +#
  13305. +# This file is free software; the Free Software Foundation
  13306. +# gives unlimited permission to copy and/or distribute it,
  13307. +# with or without modifications, as long as this notice is preserved.
  13308. -# serial 1
  13309. +# serial 2
  13310. # Check whether the underlying file-system supports filenames
  13311. # with a leading dot. For instance MS-DOS doesn't.
  13312. @@ -6533,26 +8587,15 @@
  13313. rmdir .tst 2>/dev/null
  13314. AC_SUBST([am__leading_dot])])
  13315. -# Check to see how 'make' treats includes. -*- Autoconf -*-
  13316. -
  13317. -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  13318. -
  13319. -# This program is free software; you can redistribute it and/or modify
  13320. -# it under the terms of the GNU General Public License as published by
  13321. -# the Free Software Foundation; either version 2, or (at your option)
  13322. -# any later version.
  13323. -
  13324. -# This program is distributed in the hope that it will be useful,
  13325. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13326. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13327. -# GNU General Public License for more details.
  13328. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  13329. -# You should have received a copy of the GNU General Public License
  13330. -# along with this program; if not, write to the Free Software
  13331. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13332. -# 02111-1307, USA.
  13333. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13334. +#
  13335. +# This file is free software; the Free Software Foundation
  13336. +# gives unlimited permission to copy and/or distribute it,
  13337. +# with or without modifications, as long as this notice is preserved.
  13338. -# serial 2
  13339. +# serial 4
  13340. # AM_MAKE_INCLUDE()
  13341. # -----------------
  13342. @@ -6561,7 +8604,7 @@
  13343. [am_make=${MAKE-make}
  13344. cat > confinc << 'END'
  13345. am__doit:
  13346. - @echo done
  13347. + @echo this is the am__doit target
  13348. .PHONY: am__doit
  13349. END
  13350. # If we don't find an include directive, just comment out the code.
  13351. @@ -6571,24 +8614,24 @@
  13352. _am_result=none
  13353. # First try GNU make style include.
  13354. echo "include confinc" > confmf
  13355. -# We grep out `Entering directory' and `Leaving directory'
  13356. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13357. -# In particular we don't look at `^make:' because GNU make might
  13358. -# be invoked under some other name (usually "gmake"), in which
  13359. -# case it prints its new name instead of `make'.
  13360. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13361. - am__include=include
  13362. - am__quote=
  13363. - _am_result=GNU
  13364. -fi
  13365. +# Ignore all kinds of additional output from `make'.
  13366. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13367. +*the\ am__doit\ target*)
  13368. + am__include=include
  13369. + am__quote=
  13370. + _am_result=GNU
  13371. + ;;
  13372. +esac
  13373. # Now try BSD make style include.
  13374. if test "$am__include" = "#"; then
  13375. echo '.include "confinc"' > confmf
  13376. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13377. - am__include=.include
  13378. - am__quote="\""
  13379. - _am_result=BSD
  13380. - fi
  13381. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13382. + *the\ am__doit\ target*)
  13383. + am__include=.include
  13384. + am__quote="\""
  13385. + _am_result=BSD
  13386. + ;;
  13387. + esac
  13388. fi
  13389. AC_SUBST([am__include])
  13390. AC_SUBST([am__quote])
  13391. @@ -6596,27 +8639,16 @@
  13392. rm -f confinc confmf
  13393. ])
  13394. -# -*- Autoconf -*-
  13395. -
  13396. -
  13397. -# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  13398. -
  13399. -# This program is free software; you can redistribute it and/or modify
  13400. -# it under the terms of the GNU General Public License as published by
  13401. -# the Free Software Foundation; either version 2, or (at your option)
  13402. -# any later version.
  13403. -
  13404. -# This program is distributed in the hope that it will be useful,
  13405. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13406. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13407. -# GNU General Public License for more details.
  13408. +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13409. -# You should have received a copy of the GNU General Public License
  13410. -# along with this program; if not, write to the Free Software
  13411. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13412. -# 02111-1307, USA.
  13413. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13414. +# Free Software Foundation, Inc.
  13415. +#
  13416. +# This file is free software; the Free Software Foundation
  13417. +# gives unlimited permission to copy and/or distribute it,
  13418. +# with or without modifications, as long as this notice is preserved.
  13419. -# serial 3
  13420. +# serial 6
  13421. # AM_MISSING_PROG(NAME, PROGRAM)
  13422. # ------------------------------
  13423. @@ -6632,7 +8664,15 @@
  13424. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13425. AC_DEFUN([AM_MISSING_HAS_RUN],
  13426. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13427. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13428. +AC_REQUIRE_AUX_FILE([missing])dnl
  13429. +if test x"${MISSING+set}" != xset; then
  13430. + case $am_aux_dir in
  13431. + *\ * | *\ *)
  13432. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13433. + *)
  13434. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13435. + esac
  13436. +fi
  13437. # Use eval to expand $SHELL
  13438. if eval "$MISSING --run true"; then
  13439. am_missing_run="$MISSING --run "
  13440. @@ -6642,84 +8682,41 @@
  13441. fi
  13442. ])
  13443. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13444. +#
  13445. +# This file is free software; the Free Software Foundation
  13446. +# gives unlimited permission to copy and/or distribute it,
  13447. +# with or without modifications, as long as this notice is preserved.
  13448. +
  13449. # AM_PROG_MKDIR_P
  13450. # ---------------
  13451. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13452. -
  13453. -# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  13454. -
  13455. -# This program is free software; you can redistribute it and/or modify
  13456. -# it under the terms of the GNU General Public License as published by
  13457. -# the Free Software Foundation; either version 2, or (at your option)
  13458. -# any later version.
  13459. -
  13460. -# This program is distributed in the hope that it will be useful,
  13461. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13462. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13463. -# GNU General Public License for more details.
  13464. -
  13465. -# You should have received a copy of the GNU General Public License
  13466. -# along with this program; if not, write to the Free Software
  13467. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13468. -# 02111-1307, USA.
  13469. -
  13470. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13471. -# created by `make install' are always world readable, even if the
  13472. -# installer happens to have an overly restrictive umask (e.g. 077).
  13473. -# This was a mistake. There are at least two reasons why we must not
  13474. -# use `-m 0755':
  13475. -# - it causes special bits like SGID to be ignored,
  13476. -# - it may be too restrictive (some setups expect 775 directories).
  13477. -#
  13478. -# Do not use -m 0755 and let people choose whatever they expect by
  13479. -# setting umask.
  13480. +# Check for `mkdir -p'.
  13481. AC_DEFUN([AM_PROG_MKDIR_P],
  13482. -[if mkdir -p -- . 2>/dev/null; then
  13483. - # Keeping the `.' argument allows $(mkdir_p) to be used without
  13484. - # argument. Indeed, we sometimes output rules like
  13485. - # $(mkdir_p) $(somedir)
  13486. - # where $(somedir) is conditionally defined.
  13487. - # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  13488. - # expensive solution, as it forces Make to start a sub-shell.)
  13489. - mkdir_p='mkdir -p -- .'
  13490. -else
  13491. - # On NextStep and OpenStep, the `mkdir' command does not
  13492. - # recognize any option. It will interpret all options as
  13493. - # directories to create, and then abort because `.' already
  13494. - # exists.
  13495. - for d in ./-p ./--;
  13496. - do
  13497. - test -d $d && rmdir $d
  13498. - done
  13499. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13500. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13501. - mkdir_p='$(mkinstalldirs)'
  13502. - else
  13503. - mkdir_p='$(install_sh) -d'
  13504. - fi
  13505. -fi
  13506. -AC_SUBST([mkdir_p])])
  13507. -
  13508. -# Helper functions for option handling. -*- Autoconf -*-
  13509. -
  13510. -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  13511. -
  13512. -# This program is free software; you can redistribute it and/or modify
  13513. -# it under the terms of the GNU General Public License as published by
  13514. -# the Free Software Foundation; either version 2, or (at your option)
  13515. -# any later version.
  13516. +[AC_PREREQ([2.60])dnl
  13517. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13518. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13519. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13520. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13521. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13522. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13523. +dnl adjustment using top_builddir (which is defined more often than
  13524. +dnl MKDIR_P).
  13525. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13526. +case $mkdir_p in
  13527. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13528. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13529. +esac
  13530. +])
  13531. -# This program is distributed in the hope that it will be useful,
  13532. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13533. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13534. -# GNU General Public License for more details.
  13535. +# Helper functions for option handling. -*- Autoconf -*-
  13536. -# You should have received a copy of the GNU General Public License
  13537. -# along with this program; if not, write to the Free Software
  13538. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13539. -# 02111-1307, USA.
  13540. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13541. +#
  13542. +# This file is free software; the Free Software Foundation
  13543. +# gives unlimited permission to copy and/or distribute it,
  13544. +# with or without modifications, as long as this notice is preserved.
  13545. -# serial 2
  13546. +# serial 4
  13547. # _AM_MANGLE_OPTION(NAME)
  13548. # -----------------------
  13549. @@ -6736,7 +8733,7 @@
  13550. # ----------------------------------
  13551. # OPTIONS is a space-separated list of Automake options.
  13552. AC_DEFUN([_AM_SET_OPTIONS],
  13553. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13554. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13555. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13556. # -------------------------------------------
  13557. @@ -6744,28 +8741,16 @@
  13558. AC_DEFUN([_AM_IF_OPTION],
  13559. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  13560. -#
  13561. -# Check to make sure that the build environment is sane.
  13562. -#
  13563. -
  13564. -# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  13565. -
  13566. -# This program is free software; you can redistribute it and/or modify
  13567. -# it under the terms of the GNU General Public License as published by
  13568. -# the Free Software Foundation; either version 2, or (at your option)
  13569. -# any later version.
  13570. -
  13571. -# This program is distributed in the hope that it will be useful,
  13572. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13573. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13574. -# GNU General Public License for more details.
  13575. +# Check to make sure that the build environment is sane. -*- Autoconf -*-
  13576. -# You should have received a copy of the GNU General Public License
  13577. -# along with this program; if not, write to the Free Software
  13578. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13579. -# 02111-1307, USA.
  13580. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13581. +# Free Software Foundation, Inc.
  13582. +#
  13583. +# This file is free software; the Free Software Foundation
  13584. +# gives unlimited permission to copy and/or distribute it,
  13585. +# with or without modifications, as long as this notice is preserved.
  13586. -# serial 3
  13587. +# serial 5
  13588. # AM_SANITY_CHECK
  13589. # ---------------
  13590. @@ -6774,16 +8759,29 @@
  13591. # Just in case
  13592. sleep 1
  13593. echo timestamp > conftest.file
  13594. +# Reject unsafe characters in $srcdir or the absolute working directory
  13595. +# name. Accept space and tab only in the latter.
  13596. +am_lf='
  13597. +'
  13598. +case `pwd` in
  13599. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13600. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13601. +esac
  13602. +case $srcdir in
  13603. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13604. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13605. +esac
  13606. +
  13607. # Do `set' in a subshell so we don't clobber the current shell's
  13608. # arguments. Must try -L first in case configure is actually a
  13609. # symlink; some systems play weird games with the mod time of symlinks
  13610. # (eg FreeBSD returns the mod time of the symlink's containing
  13611. # directory).
  13612. if (
  13613. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13614. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13615. if test "$[*]" = "X"; then
  13616. # -L didn't work.
  13617. - set X `ls -t $srcdir/configure conftest.file`
  13618. + set X `ls -t "$srcdir/configure" conftest.file`
  13619. fi
  13620. rm -f conftest.file
  13621. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13622. @@ -6808,25 +8806,14 @@
  13623. fi
  13624. AC_MSG_RESULT(yes)])
  13625. -# AM_PROG_INSTALL_STRIP
  13626. -
  13627. -# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  13628. -
  13629. -# This program is free software; you can redistribute it and/or modify
  13630. -# it under the terms of the GNU General Public License as published by
  13631. -# the Free Software Foundation; either version 2, or (at your option)
  13632. -# any later version.
  13633. -
  13634. -# This program is distributed in the hope that it will be useful,
  13635. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  13636. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13637. -# GNU General Public License for more details.
  13638. -
  13639. -# You should have received a copy of the GNU General Public License
  13640. -# along with this program; if not, write to the Free Software
  13641. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  13642. -# 02111-1307, USA.
  13643. +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13644. +#
  13645. +# This file is free software; the Free Software Foundation
  13646. +# gives unlimited permission to copy and/or distribute it,
  13647. +# with or without modifications, as long as this notice is preserved.
  13648. +# AM_PROG_INSTALL_STRIP
  13649. +# ---------------------
  13650. # One issue with vendor `install' (even GNU) is that you can't
  13651. # specify the program used to strip binaries. This is especially
  13652. # annoying in cross-compiling environments, where the build's strip
  13653. @@ -6844,6 +8831,121 @@
  13654. if test "$cross_compiling" != no; then
  13655. AC_CHECK_TOOL([STRIP], [strip], :)
  13656. fi
  13657. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13658. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13659. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13660. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13661. +#
  13662. +# This file is free software; the Free Software Foundation
  13663. +# gives unlimited permission to copy and/or distribute it,
  13664. +# with or without modifications, as long as this notice is preserved.
  13665. +
  13666. +# serial 2
  13667. +
  13668. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13669. +# ---------------------------
  13670. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13671. +# This macro is traced by Automake.
  13672. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13673. +
  13674. +# AM_SUBST_NOTMAKE(VARIABLE)
  13675. +# ---------------------------
  13676. +# Public sister of _AM_SUBST_NOTMAKE.
  13677. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13678. +
  13679. +# Check how to create a tarball. -*- Autoconf -*-
  13680. +
  13681. +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13682. +#
  13683. +# This file is free software; the Free Software Foundation
  13684. +# gives unlimited permission to copy and/or distribute it,
  13685. +# with or without modifications, as long as this notice is preserved.
  13686. +
  13687. +# serial 2
  13688. +
  13689. +# _AM_PROG_TAR(FORMAT)
  13690. +# --------------------
  13691. +# Check how to create a tarball in format FORMAT.
  13692. +# FORMAT should be one of `v7', `ustar', or `pax'.
  13693. +#
  13694. +# Substitute a variable $(am__tar) that is a command
  13695. +# writing to stdout a FORMAT-tarball containing the directory
  13696. +# $tardir.
  13697. +# tardir=directory && $(am__tar) > result.tar
  13698. +#
  13699. +# Substitute a variable $(am__untar) that extract such
  13700. +# a tarball read from stdin.
  13701. +# $(am__untar) < result.tar
  13702. +AC_DEFUN([_AM_PROG_TAR],
  13703. +[# Always define AMTAR for backward compatibility.
  13704. +AM_MISSING_PROG([AMTAR], [tar])
  13705. +m4_if([$1], [v7],
  13706. + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
  13707. + [m4_case([$1], [ustar],, [pax],,
  13708. + [m4_fatal([Unknown tar format])])
  13709. +AC_MSG_CHECKING([how to create a $1 tar archive])
  13710. +# Loop over all known methods to create a tar archive until one works.
  13711. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  13712. +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
  13713. +# Do not fold the above two line into one, because Tru64 sh and
  13714. +# Solaris sh will not grok spaces in the rhs of `-'.
  13715. +for _am_tool in $_am_tools
  13716. +do
  13717. + case $_am_tool in
  13718. + gnutar)
  13719. + for _am_tar in tar gnutar gtar;
  13720. + do
  13721. + AM_RUN_LOG([$_am_tar --version]) && break
  13722. + done
  13723. + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  13724. + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  13725. + am__untar="$_am_tar -xf -"
  13726. + ;;
  13727. + plaintar)
  13728. + # Must skip GNU tar: if it does not support --format= it doesn't create
  13729. + # ustar tarball either.
  13730. + (tar --version) >/dev/null 2>&1 && continue
  13731. + am__tar='tar chf - "$$tardir"'
  13732. + am__tar_='tar chf - "$tardir"'
  13733. + am__untar='tar xf -'
  13734. + ;;
  13735. + pax)
  13736. + am__tar='pax -L -x $1 -w "$$tardir"'
  13737. + am__tar_='pax -L -x $1 -w "$tardir"'
  13738. + am__untar='pax -r'
  13739. + ;;
  13740. + cpio)
  13741. + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  13742. + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  13743. + am__untar='cpio -i -H $1 -d'
  13744. + ;;
  13745. + none)
  13746. + am__tar=false
  13747. + am__tar_=false
  13748. + am__untar=false
  13749. + ;;
  13750. + esac
  13751. +
  13752. + # If the value was cached, stop now. We just wanted to have am__tar
  13753. + # and am__untar set.
  13754. + test -n "${am_cv_prog_tar_$1}" && break
  13755. +
  13756. + # tar/untar a dummy directory, and stop if the command works
  13757. + rm -rf conftest.dir
  13758. + mkdir conftest.dir
  13759. + echo GrepMe > conftest.dir/file
  13760. + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  13761. + rm -rf conftest.dir
  13762. + if test -s conftest.tar; then
  13763. + AM_RUN_LOG([$am__untar <conftest.tar])
  13764. + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  13765. + fi
  13766. +done
  13767. +rm -rf conftest.dir
  13768. +
  13769. +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  13770. +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  13771. +AC_SUBST([am__tar])
  13772. +AC_SUBST([am__untar])
  13773. +]) # _AM_PROG_TAR
  13774. +
  13775. diff -Nur libmad-0.15.1b.orig/config.guess libmad-0.15.1b/config.guess
  13776. --- libmad-0.15.1b.orig/config.guess 2004-02-17 02:51:24.000000000 +0100
  13777. +++ libmad-0.15.1b/config.guess 2011-02-17 17:22:46.483551847 +0100
  13778. @@ -1,9 +1,10 @@
  13779. #! /bin/sh
  13780. # Attempt to guess a canonical system name.
  13781. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13782. -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  13783. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13784. +# Free Software Foundation, Inc.
  13785. -timestamp='2004-01-05'
  13786. +timestamp='2009-06-10'
  13787. # This file is free software; you can redistribute it and/or modify it
  13788. # under the terms of the GNU General Public License as published by
  13789. @@ -17,13 +18,15 @@
  13790. #
  13791. # You should have received a copy of the GNU General Public License
  13792. # along with this program; if not, write to the Free Software
  13793. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13794. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  13795. +# 02110-1301, USA.
  13796. #
  13797. # As a special exception to the GNU General Public License, if you
  13798. # distribute this file as part of a program that contains a
  13799. # configuration script generated by Autoconf, you may include it under
  13800. # the same distribution terms that you use for the rest of that program.
  13801. +
  13802. # Originally written by Per Bothner <per@bothner.com>.
  13803. # Please send patches to <config-patches@gnu.org>. Submit a context
  13804. # diff and a properly formatted ChangeLog entry.
  13805. @@ -53,8 +56,8 @@
  13806. GNU config.guess ($timestamp)
  13807. Originally written by Per Bothner.
  13808. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  13809. -Free Software Foundation, Inc.
  13810. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13811. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13812. This is free software; see the source for copying conditions. There is NO
  13813. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13814. @@ -66,11 +69,11 @@
  13815. while test $# -gt 0 ; do
  13816. case $1 in
  13817. --time-stamp | --time* | -t )
  13818. - echo "$timestamp" ; exit 0 ;;
  13819. + echo "$timestamp" ; exit ;;
  13820. --version | -v )
  13821. - echo "$version" ; exit 0 ;;
  13822. + echo "$version" ; exit ;;
  13823. --help | --h* | -h )
  13824. - echo "$usage"; exit 0 ;;
  13825. + echo "$usage"; exit ;;
  13826. -- ) # Stop option processing
  13827. shift; break ;;
  13828. - ) # Use stdin as input.
  13829. @@ -104,7 +107,7 @@
  13830. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13831. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13832. : ${TMPDIR=/tmp} ;
  13833. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13834. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13835. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13836. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13837. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13838. @@ -123,7 +126,7 @@
  13839. ;;
  13840. ,,*) CC_FOR_BUILD=$CC ;;
  13841. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  13842. -esac ;'
  13843. +esac ; set_cc_for_build= ;'
  13844. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  13845. # (ghazi@noc.rutgers.edu 1994-08-24)
  13846. @@ -158,6 +161,7 @@
  13847. arm*) machine=arm-unknown ;;
  13848. sh3el) machine=shl-unknown ;;
  13849. sh3eb) machine=sh-unknown ;;
  13850. + sh5el) machine=sh5le-unknown ;;
  13851. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13852. esac
  13853. # The Operating System including object format, if it has switched
  13854. @@ -166,7 +170,7 @@
  13855. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13856. eval $set_cc_for_build
  13857. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13858. - | grep __ELF__ >/dev/null
  13859. + | grep -q __ELF__
  13860. then
  13861. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13862. # Return netbsd for either. FIX?
  13863. @@ -196,53 +200,32 @@
  13864. # contains redundant information, the shorter form:
  13865. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  13866. echo "${machine}-${os}${release}"
  13867. - exit 0 ;;
  13868. - amiga:OpenBSD:*:*)
  13869. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13870. - exit 0 ;;
  13871. - arc:OpenBSD:*:*)
  13872. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13873. - exit 0 ;;
  13874. - hp300:OpenBSD:*:*)
  13875. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13876. - exit 0 ;;
  13877. - mac68k:OpenBSD:*:*)
  13878. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13879. - exit 0 ;;
  13880. - macppc:OpenBSD:*:*)
  13881. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13882. - exit 0 ;;
  13883. - mvme68k:OpenBSD:*:*)
  13884. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13885. - exit 0 ;;
  13886. - mvme88k:OpenBSD:*:*)
  13887. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13888. - exit 0 ;;
  13889. - mvmeppc:OpenBSD:*:*)
  13890. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13891. - exit 0 ;;
  13892. - pegasos:OpenBSD:*:*)
  13893. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13894. - exit 0 ;;
  13895. - pmax:OpenBSD:*:*)
  13896. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13897. - exit 0 ;;
  13898. - sgi:OpenBSD:*:*)
  13899. - echo mipseb-unknown-openbsd${UNAME_RELEASE}
  13900. - exit 0 ;;
  13901. - sun3:OpenBSD:*:*)
  13902. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13903. - exit 0 ;;
  13904. - wgrisc:OpenBSD:*:*)
  13905. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13906. - exit 0 ;;
  13907. + exit ;;
  13908. *:OpenBSD:*:*)
  13909. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  13910. - exit 0 ;;
  13911. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  13912. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  13913. + exit ;;
  13914. + *:ekkoBSD:*:*)
  13915. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13916. + exit ;;
  13917. + *:SolidBSD:*:*)
  13918. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13919. + exit ;;
  13920. + macppc:MirBSD:*:*)
  13921. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13922. + exit ;;
  13923. + *:MirBSD:*:*)
  13924. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13925. + exit ;;
  13926. alpha:OSF1:*:*)
  13927. - if test $UNAME_RELEASE = "V4.0"; then
  13928. + case $UNAME_RELEASE in
  13929. + *4.0)
  13930. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  13931. - fi
  13932. + ;;
  13933. + *5.*)
  13934. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  13935. + ;;
  13936. + esac
  13937. # According to Compaq, /usr/sbin/psrinfo has been available on
  13938. # OSF/1 and Tru64 systems produced since 1995. I hope that
  13939. # covers most systems running today. This code pipes the CPU
  13940. @@ -280,45 +263,49 @@
  13941. "EV7.9 (21364A)")
  13942. UNAME_MACHINE="alphaev79" ;;
  13943. esac
  13944. + # A Pn.n version is a patched version.
  13945. # A Vn.n version is a released version.
  13946. # A Tn.n version is a released field test version.
  13947. # A Xn.n version is an unreleased experimental baselevel.
  13948. # 1.2 uses "1.2" for uname -r.
  13949. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13950. - exit 0 ;;
  13951. - Alpha*:OpenVMS:*:*)
  13952. - echo alpha-hp-vms
  13953. - exit 0 ;;
  13954. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13955. + exit ;;
  13956. Alpha\ *:Windows_NT*:*)
  13957. # How do we know it's Interix rather than the generic POSIX subsystem?
  13958. # Should we change UNAME_MACHINE based on the output of uname instead
  13959. # of the specific Alpha model?
  13960. echo alpha-pc-interix
  13961. - exit 0 ;;
  13962. + exit ;;
  13963. 21064:Windows_NT:50:3)
  13964. echo alpha-dec-winnt3.5
  13965. - exit 0 ;;
  13966. + exit ;;
  13967. Amiga*:UNIX_System_V:4.0:*)
  13968. echo m68k-unknown-sysv4
  13969. - exit 0;;
  13970. + exit ;;
  13971. *:[Aa]miga[Oo][Ss]:*:*)
  13972. echo ${UNAME_MACHINE}-unknown-amigaos
  13973. - exit 0 ;;
  13974. + exit ;;
  13975. *:[Mm]orph[Oo][Ss]:*:*)
  13976. echo ${UNAME_MACHINE}-unknown-morphos
  13977. - exit 0 ;;
  13978. + exit ;;
  13979. *:OS/390:*:*)
  13980. echo i370-ibm-openedition
  13981. - exit 0 ;;
  13982. + exit ;;
  13983. + *:z/VM:*:*)
  13984. + echo s390-ibm-zvmoe
  13985. + exit ;;
  13986. *:OS400:*:*)
  13987. echo powerpc-ibm-os400
  13988. - exit 0 ;;
  13989. + exit ;;
  13990. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  13991. echo arm-acorn-riscix${UNAME_RELEASE}
  13992. - exit 0;;
  13993. + exit ;;
  13994. + arm:riscos:*:*|arm:RISCOS:*:*)
  13995. + echo arm-unknown-riscos
  13996. + exit ;;
  13997. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  13998. echo hppa1.1-hitachi-hiuxmpp
  13999. - exit 0;;
  14000. + exit ;;
  14001. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  14002. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  14003. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  14004. @@ -326,32 +313,48 @@
  14005. else
  14006. echo pyramid-pyramid-bsd
  14007. fi
  14008. - exit 0 ;;
  14009. + exit ;;
  14010. NILE*:*:*:dcosx)
  14011. echo pyramid-pyramid-svr4
  14012. - exit 0 ;;
  14013. + exit ;;
  14014. DRS?6000:unix:4.0:6*)
  14015. echo sparc-icl-nx6
  14016. - exit 0 ;;
  14017. - DRS?6000:UNIX_SV:4.2*:7*)
  14018. + exit ;;
  14019. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  14020. case `/usr/bin/uname -p` in
  14021. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  14022. + sparc) echo sparc-icl-nx7; exit ;;
  14023. esac ;;
  14024. + s390x:SunOS:*:*)
  14025. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14026. + exit ;;
  14027. sun4H:SunOS:5.*:*)
  14028. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14029. - exit 0 ;;
  14030. + exit ;;
  14031. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  14032. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14033. - exit 0 ;;
  14034. - i86pc:SunOS:5.*:*)
  14035. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14036. - exit 0 ;;
  14037. + exit ;;
  14038. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  14039. + eval $set_cc_for_build
  14040. + SUN_ARCH="i386"
  14041. + # If there is a compiler, see if it is configured for 64-bit objects.
  14042. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  14043. + # This test works for both compilers.
  14044. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  14045. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  14046. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  14047. + grep IS_64BIT_ARCH >/dev/null
  14048. + then
  14049. + SUN_ARCH="x86_64"
  14050. + fi
  14051. + fi
  14052. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14053. + exit ;;
  14054. sun4*:SunOS:6*:*)
  14055. # According to config.sub, this is the proper way to canonicalize
  14056. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  14057. # it's likely to be more like Solaris than SunOS4.
  14058. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14059. - exit 0 ;;
  14060. + exit ;;
  14061. sun4*:SunOS:*:*)
  14062. case "`/usr/bin/arch -k`" in
  14063. Series*|S4*)
  14064. @@ -360,10 +363,10 @@
  14065. esac
  14066. # Japanese Language versions have a version number like `4.1.3-JL'.
  14067. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  14068. - exit 0 ;;
  14069. + exit ;;
  14070. sun3*:SunOS:*:*)
  14071. echo m68k-sun-sunos${UNAME_RELEASE}
  14072. - exit 0 ;;
  14073. + exit ;;
  14074. sun*:*:4.2BSD:*)
  14075. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  14076. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  14077. @@ -375,10 +378,10 @@
  14078. echo sparc-sun-sunos${UNAME_RELEASE}
  14079. ;;
  14080. esac
  14081. - exit 0 ;;
  14082. + exit ;;
  14083. aushp:SunOS:*:*)
  14084. echo sparc-auspex-sunos${UNAME_RELEASE}
  14085. - exit 0 ;;
  14086. + exit ;;
  14087. # The situation for MiNT is a little confusing. The machine name
  14088. # can be virtually everything (everything which is not
  14089. # "atarist" or "atariste" at least should have a processor
  14090. @@ -389,37 +392,40 @@
  14091. # be no problem.
  14092. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  14093. echo m68k-atari-mint${UNAME_RELEASE}
  14094. - exit 0 ;;
  14095. + exit ;;
  14096. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  14097. echo m68k-atari-mint${UNAME_RELEASE}
  14098. - exit 0 ;;
  14099. + exit ;;
  14100. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  14101. echo m68k-atari-mint${UNAME_RELEASE}
  14102. - exit 0 ;;
  14103. + exit ;;
  14104. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  14105. echo m68k-milan-mint${UNAME_RELEASE}
  14106. - exit 0 ;;
  14107. + exit ;;
  14108. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  14109. echo m68k-hades-mint${UNAME_RELEASE}
  14110. - exit 0 ;;
  14111. + exit ;;
  14112. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  14113. echo m68k-unknown-mint${UNAME_RELEASE}
  14114. - exit 0 ;;
  14115. + exit ;;
  14116. + m68k:machten:*:*)
  14117. + echo m68k-apple-machten${UNAME_RELEASE}
  14118. + exit ;;
  14119. powerpc:machten:*:*)
  14120. echo powerpc-apple-machten${UNAME_RELEASE}
  14121. - exit 0 ;;
  14122. + exit ;;
  14123. RISC*:Mach:*:*)
  14124. echo mips-dec-mach_bsd4.3
  14125. - exit 0 ;;
  14126. + exit ;;
  14127. RISC*:ULTRIX:*:*)
  14128. echo mips-dec-ultrix${UNAME_RELEASE}
  14129. - exit 0 ;;
  14130. + exit ;;
  14131. VAX*:ULTRIX*:*:*)
  14132. echo vax-dec-ultrix${UNAME_RELEASE}
  14133. - exit 0 ;;
  14134. + exit ;;
  14135. 2020:CLIX:*:* | 2430:CLIX:*:*)
  14136. echo clipper-intergraph-clix${UNAME_RELEASE}
  14137. - exit 0 ;;
  14138. + exit ;;
  14139. mips:*:*:UMIPS | mips:*:*:RISCos)
  14140. eval $set_cc_for_build
  14141. sed 's/^ //' << EOF >$dummy.c
  14142. @@ -443,32 +449,33 @@
  14143. exit (-1);
  14144. }
  14145. EOF
  14146. - $CC_FOR_BUILD -o $dummy $dummy.c \
  14147. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  14148. - && exit 0
  14149. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  14150. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  14151. + SYSTEM_NAME=`$dummy $dummyarg` &&
  14152. + { echo "$SYSTEM_NAME"; exit; }
  14153. echo mips-mips-riscos${UNAME_RELEASE}
  14154. - exit 0 ;;
  14155. + exit ;;
  14156. Motorola:PowerMAX_OS:*:*)
  14157. echo powerpc-motorola-powermax
  14158. - exit 0 ;;
  14159. + exit ;;
  14160. Motorola:*:4.3:PL8-*)
  14161. echo powerpc-harris-powermax
  14162. - exit 0 ;;
  14163. + exit ;;
  14164. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  14165. echo powerpc-harris-powermax
  14166. - exit 0 ;;
  14167. + exit ;;
  14168. Night_Hawk:Power_UNIX:*:*)
  14169. echo powerpc-harris-powerunix
  14170. - exit 0 ;;
  14171. + exit ;;
  14172. m88k:CX/UX:7*:*)
  14173. echo m88k-harris-cxux7
  14174. - exit 0 ;;
  14175. + exit ;;
  14176. m88k:*:4*:R4*)
  14177. echo m88k-motorola-sysv4
  14178. - exit 0 ;;
  14179. + exit ;;
  14180. m88k:*:3*:R3*)
  14181. echo m88k-motorola-sysv3
  14182. - exit 0 ;;
  14183. + exit ;;
  14184. AViiON:dgux:*:*)
  14185. # DG/UX returns AViiON for all architectures
  14186. UNAME_PROCESSOR=`/usr/bin/uname -p`
  14187. @@ -484,29 +491,29 @@
  14188. else
  14189. echo i586-dg-dgux${UNAME_RELEASE}
  14190. fi
  14191. - exit 0 ;;
  14192. + exit ;;
  14193. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  14194. echo m88k-dolphin-sysv3
  14195. - exit 0 ;;
  14196. + exit ;;
  14197. M88*:*:R3*:*)
  14198. # Delta 88k system running SVR3
  14199. echo m88k-motorola-sysv3
  14200. - exit 0 ;;
  14201. + exit ;;
  14202. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  14203. echo m88k-tektronix-sysv3
  14204. - exit 0 ;;
  14205. + exit ;;
  14206. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  14207. echo m68k-tektronix-bsd
  14208. - exit 0 ;;
  14209. + exit ;;
  14210. *:IRIX*:*:*)
  14211. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  14212. - exit 0 ;;
  14213. + exit ;;
  14214. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  14215. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14216. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14217. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14218. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14219. i*86:AIX:*:*)
  14220. echo i386-ibm-aix
  14221. - exit 0 ;;
  14222. + exit ;;
  14223. ia64:AIX:*:*)
  14224. if [ -x /usr/bin/oslevel ] ; then
  14225. IBM_REV=`/usr/bin/oslevel`
  14226. @@ -514,7 +521,7 @@
  14227. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14228. fi
  14229. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  14230. - exit 0 ;;
  14231. + exit ;;
  14232. *:AIX:2:3)
  14233. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  14234. eval $set_cc_for_build
  14235. @@ -529,15 +536,19 @@
  14236. exit(0);
  14237. }
  14238. EOF
  14239. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14240. - echo rs6000-ibm-aix3.2.5
  14241. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  14242. + then
  14243. + echo "$SYSTEM_NAME"
  14244. + else
  14245. + echo rs6000-ibm-aix3.2.5
  14246. + fi
  14247. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  14248. echo rs6000-ibm-aix3.2.4
  14249. else
  14250. echo rs6000-ibm-aix3.2
  14251. fi
  14252. - exit 0 ;;
  14253. - *:AIX:*:[45])
  14254. + exit ;;
  14255. + *:AIX:*:[456])
  14256. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  14257. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  14258. IBM_ARCH=rs6000
  14259. @@ -550,28 +561,28 @@
  14260. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14261. fi
  14262. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  14263. - exit 0 ;;
  14264. + exit ;;
  14265. *:AIX:*:*)
  14266. echo rs6000-ibm-aix
  14267. - exit 0 ;;
  14268. + exit ;;
  14269. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  14270. echo romp-ibm-bsd4.4
  14271. - exit 0 ;;
  14272. + exit ;;
  14273. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  14274. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  14275. - exit 0 ;; # report: romp-ibm BSD 4.3
  14276. + exit ;; # report: romp-ibm BSD 4.3
  14277. *:BOSX:*:*)
  14278. echo rs6000-bull-bosx
  14279. - exit 0 ;;
  14280. + exit ;;
  14281. DPX/2?00:B.O.S.:*:*)
  14282. echo m68k-bull-sysv3
  14283. - exit 0 ;;
  14284. + exit ;;
  14285. 9000/[34]??:4.3bsd:1.*:*)
  14286. echo m68k-hp-bsd
  14287. - exit 0 ;;
  14288. + exit ;;
  14289. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  14290. echo m68k-hp-bsd4.4
  14291. - exit 0 ;;
  14292. + exit ;;
  14293. 9000/[34678]??:HP-UX:*:*)
  14294. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14295. case "${UNAME_MACHINE}" in
  14296. @@ -633,9 +644,19 @@
  14297. esac
  14298. if [ ${HP_ARCH} = "hppa2.0w" ]
  14299. then
  14300. - # avoid double evaluation of $set_cc_for_build
  14301. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  14302. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  14303. + eval $set_cc_for_build
  14304. +
  14305. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  14306. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  14307. + # generating 64-bit code. GNU and HP use different nomenclature:
  14308. + #
  14309. + # $ CC_FOR_BUILD=cc ./config.guess
  14310. + # => hppa2.0w-hp-hpux11.23
  14311. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  14312. + # => hppa64-hp-hpux11.23
  14313. +
  14314. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14315. + grep -q __LP64__
  14316. then
  14317. HP_ARCH="hppa2.0w"
  14318. else
  14319. @@ -643,11 +664,11 @@
  14320. fi
  14321. fi
  14322. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  14323. - exit 0 ;;
  14324. + exit ;;
  14325. ia64:HP-UX:*:*)
  14326. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14327. echo ia64-hp-hpux${HPUX_REV}
  14328. - exit 0 ;;
  14329. + exit ;;
  14330. 3050*:HI-UX:*:*)
  14331. eval $set_cc_for_build
  14332. sed 's/^ //' << EOF >$dummy.c
  14333. @@ -675,207 +696,227 @@
  14334. exit (0);
  14335. }
  14336. EOF
  14337. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14338. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  14339. + { echo "$SYSTEM_NAME"; exit; }
  14340. echo unknown-hitachi-hiuxwe2
  14341. - exit 0 ;;
  14342. + exit ;;
  14343. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  14344. echo hppa1.1-hp-bsd
  14345. - exit 0 ;;
  14346. + exit ;;
  14347. 9000/8??:4.3bsd:*:*)
  14348. echo hppa1.0-hp-bsd
  14349. - exit 0 ;;
  14350. + exit ;;
  14351. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  14352. echo hppa1.0-hp-mpeix
  14353. - exit 0 ;;
  14354. + exit ;;
  14355. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  14356. echo hppa1.1-hp-osf
  14357. - exit 0 ;;
  14358. + exit ;;
  14359. hp8??:OSF1:*:*)
  14360. echo hppa1.0-hp-osf
  14361. - exit 0 ;;
  14362. + exit ;;
  14363. i*86:OSF1:*:*)
  14364. if [ -x /usr/sbin/sysversion ] ; then
  14365. echo ${UNAME_MACHINE}-unknown-osf1mk
  14366. else
  14367. echo ${UNAME_MACHINE}-unknown-osf1
  14368. fi
  14369. - exit 0 ;;
  14370. + exit ;;
  14371. parisc*:Lites*:*:*)
  14372. echo hppa1.1-hp-lites
  14373. - exit 0 ;;
  14374. + exit ;;
  14375. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  14376. echo c1-convex-bsd
  14377. - exit 0 ;;
  14378. + exit ;;
  14379. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  14380. if getsysinfo -f scalar_acc
  14381. then echo c32-convex-bsd
  14382. else echo c2-convex-bsd
  14383. fi
  14384. - exit 0 ;;
  14385. + exit ;;
  14386. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  14387. echo c34-convex-bsd
  14388. - exit 0 ;;
  14389. + exit ;;
  14390. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  14391. echo c38-convex-bsd
  14392. - exit 0 ;;
  14393. + exit ;;
  14394. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  14395. echo c4-convex-bsd
  14396. - exit 0 ;;
  14397. + exit ;;
  14398. CRAY*Y-MP:*:*:*)
  14399. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14400. - exit 0 ;;
  14401. + exit ;;
  14402. CRAY*[A-Z]90:*:*:*)
  14403. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  14404. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  14405. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  14406. -e 's/\.[^.]*$/.X/'
  14407. - exit 0 ;;
  14408. + exit ;;
  14409. CRAY*TS:*:*:*)
  14410. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14411. - exit 0 ;;
  14412. + exit ;;
  14413. CRAY*T3E:*:*:*)
  14414. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14415. - exit 0 ;;
  14416. + exit ;;
  14417. CRAY*SV1:*:*:*)
  14418. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14419. - exit 0 ;;
  14420. + exit ;;
  14421. *:UNICOS/mp:*:*)
  14422. - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14423. - exit 0 ;;
  14424. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14425. + exit ;;
  14426. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  14427. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  14428. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14429. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  14430. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14431. - exit 0 ;;
  14432. + exit ;;
  14433. 5000:UNIX_System_V:4.*:*)
  14434. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14435. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  14436. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14437. - exit 0 ;;
  14438. + exit ;;
  14439. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  14440. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  14441. - exit 0 ;;
  14442. + exit ;;
  14443. sparc*:BSD/OS:*:*)
  14444. echo sparc-unknown-bsdi${UNAME_RELEASE}
  14445. - exit 0 ;;
  14446. + exit ;;
  14447. *:BSD/OS:*:*)
  14448. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  14449. - exit 0 ;;
  14450. + exit ;;
  14451. *:FreeBSD:*:*)
  14452. - # Determine whether the default compiler uses glibc.
  14453. - eval $set_cc_for_build
  14454. - sed 's/^ //' << EOF >$dummy.c
  14455. - #include <features.h>
  14456. - #if __GLIBC__ >= 2
  14457. - LIBC=gnu
  14458. - #else
  14459. - LIBC=
  14460. - #endif
  14461. -EOF
  14462. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14463. - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
  14464. - # FreeBSD's kernel, but not the complete OS.
  14465. - case ${LIBC} in gnu) kernel_only='k' ;; esac
  14466. - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  14467. - exit 0 ;;
  14468. + case ${UNAME_MACHINE} in
  14469. + pc98)
  14470. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14471. + amd64)
  14472. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14473. + *)
  14474. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14475. + esac
  14476. + exit ;;
  14477. i*:CYGWIN*:*)
  14478. echo ${UNAME_MACHINE}-pc-cygwin
  14479. - exit 0 ;;
  14480. - i*:MINGW*:*)
  14481. + exit ;;
  14482. + *:MINGW*:*)
  14483. echo ${UNAME_MACHINE}-pc-mingw32
  14484. - exit 0 ;;
  14485. + exit ;;
  14486. + i*:windows32*:*)
  14487. + # uname -m includes "-pc" on this system.
  14488. + echo ${UNAME_MACHINE}-mingw32
  14489. + exit ;;
  14490. i*:PW*:*)
  14491. echo ${UNAME_MACHINE}-pc-pw32
  14492. - exit 0 ;;
  14493. - x86:Interix*:[34]*)
  14494. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  14495. - exit 0 ;;
  14496. + exit ;;
  14497. + *:Interix*:[3456]*)
  14498. + case ${UNAME_MACHINE} in
  14499. + x86)
  14500. + echo i586-pc-interix${UNAME_RELEASE}
  14501. + exit ;;
  14502. + EM64T | authenticamd | genuineintel)
  14503. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14504. + exit ;;
  14505. + IA64)
  14506. + echo ia64-unknown-interix${UNAME_RELEASE}
  14507. + exit ;;
  14508. + esac ;;
  14509. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14510. echo i${UNAME_MACHINE}-pc-mks
  14511. - exit 0 ;;
  14512. + exit ;;
  14513. + 8664:Windows_NT:*)
  14514. + echo x86_64-pc-mks
  14515. + exit ;;
  14516. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14517. # How do we know it's Interix rather than the generic POSIX subsystem?
  14518. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14519. # UNAME_MACHINE based on the output of uname instead of i386?
  14520. echo i586-pc-interix
  14521. - exit 0 ;;
  14522. + exit ;;
  14523. i*:UWIN*:*)
  14524. echo ${UNAME_MACHINE}-pc-uwin
  14525. - exit 0 ;;
  14526. + exit ;;
  14527. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  14528. + echo x86_64-unknown-cygwin
  14529. + exit ;;
  14530. p*:CYGWIN*:*)
  14531. echo powerpcle-unknown-cygwin
  14532. - exit 0 ;;
  14533. + exit ;;
  14534. prep*:SunOS:5.*:*)
  14535. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14536. - exit 0 ;;
  14537. + exit ;;
  14538. *:GNU:*:*)
  14539. # the GNU system
  14540. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  14541. - exit 0 ;;
  14542. + exit ;;
  14543. *:GNU/*:*:*)
  14544. # other systems with GNU libc and userland
  14545. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  14546. - exit 0 ;;
  14547. + exit ;;
  14548. i*86:Minix:*:*)
  14549. echo ${UNAME_MACHINE}-pc-minix
  14550. - exit 0 ;;
  14551. + exit ;;
  14552. arm*:Linux:*:*)
  14553. + eval $set_cc_for_build
  14554. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14555. + | grep -q __ARM_EABI__
  14556. + then
  14557. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14558. + else
  14559. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14560. + fi
  14561. + exit ;;
  14562. + avr32*:Linux:*:*)
  14563. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14564. - exit 0 ;;
  14565. + exit ;;
  14566. cris:Linux:*:*)
  14567. echo cris-axis-linux-gnu
  14568. - exit 0 ;;
  14569. + exit ;;
  14570. + crisv32:Linux:*:*)
  14571. + echo crisv32-axis-linux-gnu
  14572. + exit ;;
  14573. + frv:Linux:*:*)
  14574. + echo frv-unknown-linux-gnu
  14575. + exit ;;
  14576. ia64:Linux:*:*)
  14577. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14578. - exit 0 ;;
  14579. + exit ;;
  14580. + m32r*:Linux:*:*)
  14581. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14582. + exit ;;
  14583. m68*:Linux:*:*)
  14584. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14585. - exit 0 ;;
  14586. - mips:Linux:*:*)
  14587. - eval $set_cc_for_build
  14588. - sed 's/^ //' << EOF >$dummy.c
  14589. - #undef CPU
  14590. - #undef mips
  14591. - #undef mipsel
  14592. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14593. - CPU=mipsel
  14594. - #else
  14595. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14596. - CPU=mips
  14597. - #else
  14598. - CPU=
  14599. - #endif
  14600. - #endif
  14601. -EOF
  14602. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14603. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14604. - ;;
  14605. - mips64:Linux:*:*)
  14606. + exit ;;
  14607. + mips:Linux:*:* | mips64:Linux:*:*)
  14608. eval $set_cc_for_build
  14609. sed 's/^ //' << EOF >$dummy.c
  14610. #undef CPU
  14611. - #undef mips64
  14612. - #undef mips64el
  14613. + #undef ${UNAME_MACHINE}
  14614. + #undef ${UNAME_MACHINE}el
  14615. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14616. - CPU=mips64el
  14617. + CPU=${UNAME_MACHINE}el
  14618. #else
  14619. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14620. - CPU=mips64
  14621. + CPU=${UNAME_MACHINE}
  14622. #else
  14623. CPU=
  14624. #endif
  14625. #endif
  14626. EOF
  14627. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14628. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14629. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14630. + /^CPU/{
  14631. + s: ::g
  14632. + p
  14633. + }'`"
  14634. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14635. ;;
  14636. + or32:Linux:*:*)
  14637. + echo or32-unknown-linux-gnu
  14638. + exit ;;
  14639. ppc:Linux:*:*)
  14640. echo powerpc-unknown-linux-gnu
  14641. - exit 0 ;;
  14642. + exit ;;
  14643. ppc64:Linux:*:*)
  14644. echo powerpc64-unknown-linux-gnu
  14645. - exit 0 ;;
  14646. + exit ;;
  14647. alpha:Linux:*:*)
  14648. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  14649. EV5) UNAME_MACHINE=alphaev5 ;;
  14650. @@ -886,10 +927,13 @@
  14651. EV67) UNAME_MACHINE=alphaev67 ;;
  14652. EV68*) UNAME_MACHINE=alphaev68 ;;
  14653. esac
  14654. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14655. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14656. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14657. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14658. - exit 0 ;;
  14659. + exit ;;
  14660. + padre:Linux:*:*)
  14661. + echo sparc-unknown-linux-gnu
  14662. + exit ;;
  14663. parisc:Linux:*:* | hppa:Linux:*:*)
  14664. # Look for CPU level
  14665. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14666. @@ -897,25 +941,31 @@
  14667. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  14668. *) echo hppa-unknown-linux-gnu ;;
  14669. esac
  14670. - exit 0 ;;
  14671. + exit ;;
  14672. parisc64:Linux:*:* | hppa64:Linux:*:*)
  14673. echo hppa64-unknown-linux-gnu
  14674. - exit 0 ;;
  14675. + exit ;;
  14676. s390:Linux:*:* | s390x:Linux:*:*)
  14677. echo ${UNAME_MACHINE}-ibm-linux
  14678. - exit 0 ;;
  14679. + exit ;;
  14680. sh64*:Linux:*:*)
  14681. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14682. - exit 0 ;;
  14683. + exit ;;
  14684. sh*:Linux:*:*)
  14685. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14686. - exit 0 ;;
  14687. + exit ;;
  14688. sparc:Linux:*:* | sparc64:Linux:*:*)
  14689. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14690. - exit 0 ;;
  14691. + exit ;;
  14692. + vax:Linux:*:*)
  14693. + echo ${UNAME_MACHINE}-dec-linux-gnu
  14694. + exit ;;
  14695. x86_64:Linux:*:*)
  14696. echo x86_64-unknown-linux-gnu
  14697. - exit 0 ;;
  14698. + exit ;;
  14699. + xtensa*:Linux:*:*)
  14700. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14701. + exit ;;
  14702. i*86:Linux:*:*)
  14703. # The BFD linker knows what the default object file format is, so
  14704. # first see if it will tell us. cd to the root directory to prevent
  14705. @@ -931,17 +981,6 @@
  14706. elf32-i386)
  14707. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14708. ;;
  14709. - a.out-i386-linux)
  14710. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14711. - exit 0 ;;
  14712. - coff-i386)
  14713. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14714. - exit 0 ;;
  14715. - "")
  14716. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14717. - # one that does not give us useful --help.
  14718. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14719. - exit 0 ;;
  14720. esac
  14721. # Determine whether the default compiler is a.out or elf
  14722. eval $set_cc_for_build
  14723. @@ -958,7 +997,7 @@
  14724. LIBC=gnulibc1
  14725. # endif
  14726. #else
  14727. - #ifdef __INTEL_COMPILER
  14728. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14729. LIBC=gnu
  14730. #else
  14731. LIBC=gnuaout
  14732. @@ -968,16 +1007,23 @@
  14733. LIBC=dietlibc
  14734. #endif
  14735. EOF
  14736. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14737. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  14738. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  14739. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14740. + /^LIBC/{
  14741. + s: ::g
  14742. + p
  14743. + }'`"
  14744. + test x"${LIBC}" != x && {
  14745. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14746. + exit
  14747. + }
  14748. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  14749. ;;
  14750. i*86:DYNIX/ptx:4*:*)
  14751. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  14752. # earlier versions are messed up and put the nodename in both
  14753. # sysname and nodename.
  14754. echo i386-sequent-sysv4
  14755. - exit 0 ;;
  14756. + exit ;;
  14757. i*86:UNIX_SV:4.2MP:2.*)
  14758. # Unixware is an offshoot of SVR4, but it has its own version
  14759. # number series starting with 2...
  14760. @@ -985,27 +1031,27 @@
  14761. # I just have to hope. -- rms.
  14762. # Use sysv4.2uw... so that sysv4* matches it.
  14763. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  14764. - exit 0 ;;
  14765. + exit ;;
  14766. i*86:OS/2:*:*)
  14767. # If we were able to find `uname', then EMX Unix compatibility
  14768. # is probably installed.
  14769. echo ${UNAME_MACHINE}-pc-os2-emx
  14770. - exit 0 ;;
  14771. + exit ;;
  14772. i*86:XTS-300:*:STOP)
  14773. echo ${UNAME_MACHINE}-unknown-stop
  14774. - exit 0 ;;
  14775. + exit ;;
  14776. i*86:atheos:*:*)
  14777. echo ${UNAME_MACHINE}-unknown-atheos
  14778. - exit 0 ;;
  14779. - i*86:syllable:*:*)
  14780. + exit ;;
  14781. + i*86:syllable:*:*)
  14782. echo ${UNAME_MACHINE}-pc-syllable
  14783. - exit 0 ;;
  14784. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14785. + exit ;;
  14786. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14787. echo i386-unknown-lynxos${UNAME_RELEASE}
  14788. - exit 0 ;;
  14789. + exit ;;
  14790. i*86:*DOS:*:*)
  14791. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  14792. - exit 0 ;;
  14793. + exit ;;
  14794. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  14795. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  14796. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  14797. @@ -1013,15 +1059,16 @@
  14798. else
  14799. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  14800. fi
  14801. - exit 0 ;;
  14802. - i*86:*:5:[78]*)
  14803. + exit ;;
  14804. + i*86:*:5:[678]*)
  14805. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  14806. case `/bin/uname -X | grep "^Machine"` in
  14807. *486*) UNAME_MACHINE=i486 ;;
  14808. *Pentium) UNAME_MACHINE=i586 ;;
  14809. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  14810. esac
  14811. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  14812. - exit 0 ;;
  14813. + exit ;;
  14814. i*86:*:3.2:*)
  14815. if test -f /usr/options/cb.name; then
  14816. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  14817. @@ -1039,73 +1086,86 @@
  14818. else
  14819. echo ${UNAME_MACHINE}-pc-sysv32
  14820. fi
  14821. - exit 0 ;;
  14822. + exit ;;
  14823. pc:*:*:*)
  14824. # Left here for compatibility:
  14825. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14826. - # the processor, so we play safe by assuming i386.
  14827. - echo i386-pc-msdosdjgpp
  14828. - exit 0 ;;
  14829. + # the processor, so we play safe by assuming i586.
  14830. + # Note: whatever this is, it MUST be the same as what config.sub
  14831. + # prints for the "djgpp" host, or else GDB configury will decide that
  14832. + # this is a cross-build.
  14833. + echo i586-pc-msdosdjgpp
  14834. + exit ;;
  14835. Intel:Mach:3*:*)
  14836. echo i386-pc-mach3
  14837. - exit 0 ;;
  14838. + exit ;;
  14839. paragon:*:*:*)
  14840. echo i860-intel-osf1
  14841. - exit 0 ;;
  14842. + exit ;;
  14843. i860:*:4.*:*) # i860-SVR4
  14844. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  14845. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  14846. else # Add other i860-SVR4 vendors below as they are discovered.
  14847. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  14848. fi
  14849. - exit 0 ;;
  14850. + exit ;;
  14851. mini*:CTIX:SYS*5:*)
  14852. # "miniframe"
  14853. echo m68010-convergent-sysv
  14854. - exit 0 ;;
  14855. + exit ;;
  14856. mc68k:UNIX:SYSTEM5:3.51m)
  14857. echo m68k-convergent-sysv
  14858. - exit 0 ;;
  14859. + exit ;;
  14860. M680?0:D-NIX:5.3:*)
  14861. echo m68k-diab-dnix
  14862. - exit 0 ;;
  14863. - M68*:*:R3V[567]*:*)
  14864. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  14865. - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
  14866. + exit ;;
  14867. + M68*:*:R3V[5678]*:*)
  14868. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  14869. + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  14870. OS_REL=''
  14871. test -r /etc/.relid \
  14872. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14873. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14874. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  14875. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14876. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14877. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  14878. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14879. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14880. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14881. - && echo i486-ncr-sysv4 && exit 0 ;;
  14882. + && { echo i486-ncr-sysv4; exit; } ;;
  14883. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14884. + OS_REL='.3'
  14885. + test -r /etc/.relid \
  14886. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14887. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14888. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14889. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14890. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14891. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14892. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14893. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14894. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14895. - exit 0 ;;
  14896. + exit ;;
  14897. mc68030:UNIX_System_V:4.*:*)
  14898. echo m68k-atari-sysv4
  14899. - exit 0 ;;
  14900. + exit ;;
  14901. TSUNAMI:LynxOS:2.*:*)
  14902. echo sparc-unknown-lynxos${UNAME_RELEASE}
  14903. - exit 0 ;;
  14904. + exit ;;
  14905. rs6000:LynxOS:2.*:*)
  14906. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14907. - exit 0 ;;
  14908. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14909. + exit ;;
  14910. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14911. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14912. - exit 0 ;;
  14913. + exit ;;
  14914. SM[BE]S:UNIX_SV:*:*)
  14915. echo mips-dde-sysv${UNAME_RELEASE}
  14916. - exit 0 ;;
  14917. + exit ;;
  14918. RM*:ReliantUNIX-*:*:*)
  14919. echo mips-sni-sysv4
  14920. - exit 0 ;;
  14921. + exit ;;
  14922. RM*:SINIX-*:*:*)
  14923. echo mips-sni-sysv4
  14924. - exit 0 ;;
  14925. + exit ;;
  14926. *:SINIX-*:*:*)
  14927. if uname -p 2>/dev/null >/dev/null ; then
  14928. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14929. @@ -1113,68 +1173,84 @@
  14930. else
  14931. echo ns32k-sni-sysv
  14932. fi
  14933. - exit 0 ;;
  14934. + exit ;;
  14935. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  14936. # says <Richard.M.Bartel@ccMail.Census.GOV>
  14937. echo i586-unisys-sysv4
  14938. - exit 0 ;;
  14939. + exit ;;
  14940. *:UNIX_System_V:4*:FTX*)
  14941. # From Gerald Hewes <hewes@openmarket.com>.
  14942. # How about differentiating between stratus architectures? -djm
  14943. echo hppa1.1-stratus-sysv4
  14944. - exit 0 ;;
  14945. + exit ;;
  14946. *:*:*:FTX*)
  14947. # From seanf@swdc.stratus.com.
  14948. echo i860-stratus-sysv4
  14949. - exit 0 ;;
  14950. + exit ;;
  14951. + i*86:VOS:*:*)
  14952. + # From Paul.Green@stratus.com.
  14953. + echo ${UNAME_MACHINE}-stratus-vos
  14954. + exit ;;
  14955. *:VOS:*:*)
  14956. # From Paul.Green@stratus.com.
  14957. echo hppa1.1-stratus-vos
  14958. - exit 0 ;;
  14959. + exit ;;
  14960. mc68*:A/UX:*:*)
  14961. echo m68k-apple-aux${UNAME_RELEASE}
  14962. - exit 0 ;;
  14963. + exit ;;
  14964. news*:NEWS-OS:6*:*)
  14965. echo mips-sony-newsos6
  14966. - exit 0 ;;
  14967. + exit ;;
  14968. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  14969. if [ -d /usr/nec ]; then
  14970. echo mips-nec-sysv${UNAME_RELEASE}
  14971. else
  14972. echo mips-unknown-sysv${UNAME_RELEASE}
  14973. fi
  14974. - exit 0 ;;
  14975. + exit ;;
  14976. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  14977. echo powerpc-be-beos
  14978. - exit 0 ;;
  14979. + exit ;;
  14980. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  14981. echo powerpc-apple-beos
  14982. - exit 0 ;;
  14983. + exit ;;
  14984. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14985. echo i586-pc-beos
  14986. - exit 0 ;;
  14987. + exit ;;
  14988. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14989. + echo i586-pc-haiku
  14990. + exit ;;
  14991. SX-4:SUPER-UX:*:*)
  14992. echo sx4-nec-superux${UNAME_RELEASE}
  14993. - exit 0 ;;
  14994. + exit ;;
  14995. SX-5:SUPER-UX:*:*)
  14996. echo sx5-nec-superux${UNAME_RELEASE}
  14997. - exit 0 ;;
  14998. + exit ;;
  14999. SX-6:SUPER-UX:*:*)
  15000. echo sx6-nec-superux${UNAME_RELEASE}
  15001. - exit 0 ;;
  15002. + exit ;;
  15003. + SX-7:SUPER-UX:*:*)
  15004. + echo sx7-nec-superux${UNAME_RELEASE}
  15005. + exit ;;
  15006. + SX-8:SUPER-UX:*:*)
  15007. + echo sx8-nec-superux${UNAME_RELEASE}
  15008. + exit ;;
  15009. + SX-8R:SUPER-UX:*:*)
  15010. + echo sx8r-nec-superux${UNAME_RELEASE}
  15011. + exit ;;
  15012. Power*:Rhapsody:*:*)
  15013. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  15014. - exit 0 ;;
  15015. + exit ;;
  15016. *:Rhapsody:*:*)
  15017. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  15018. - exit 0 ;;
  15019. + exit ;;
  15020. *:Darwin:*:*)
  15021. - case `uname -p` in
  15022. - *86) UNAME_PROCESSOR=i686 ;;
  15023. - powerpc) UNAME_PROCESSOR=powerpc ;;
  15024. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  15025. + case $UNAME_PROCESSOR in
  15026. + unknown) UNAME_PROCESSOR=powerpc ;;
  15027. esac
  15028. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  15029. - exit 0 ;;
  15030. + exit ;;
  15031. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  15032. UNAME_PROCESSOR=`uname -p`
  15033. if test "$UNAME_PROCESSOR" = "x86"; then
  15034. @@ -1182,22 +1258,25 @@
  15035. UNAME_MACHINE=pc
  15036. fi
  15037. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  15038. - exit 0 ;;
  15039. + exit ;;
  15040. *:QNX:*:4*)
  15041. echo i386-pc-qnx
  15042. - exit 0 ;;
  15043. + exit ;;
  15044. + NSE-?:NONSTOP_KERNEL:*:*)
  15045. + echo nse-tandem-nsk${UNAME_RELEASE}
  15046. + exit ;;
  15047. NSR-?:NONSTOP_KERNEL:*:*)
  15048. echo nsr-tandem-nsk${UNAME_RELEASE}
  15049. - exit 0 ;;
  15050. + exit ;;
  15051. *:NonStop-UX:*:*)
  15052. echo mips-compaq-nonstopux
  15053. - exit 0 ;;
  15054. + exit ;;
  15055. BS2000:POSIX*:*:*)
  15056. echo bs2000-siemens-sysv
  15057. - exit 0 ;;
  15058. + exit ;;
  15059. DS/*:UNIX_System_V:*:*)
  15060. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  15061. - exit 0 ;;
  15062. + exit ;;
  15063. *:Plan9:*:*)
  15064. # "uname -m" is not consistent, so use $cputype instead. 386
  15065. # is converted to i386 for consistency with other x86
  15066. @@ -1208,31 +1287,50 @@
  15067. UNAME_MACHINE="$cputype"
  15068. fi
  15069. echo ${UNAME_MACHINE}-unknown-plan9
  15070. - exit 0 ;;
  15071. + exit ;;
  15072. *:TOPS-10:*:*)
  15073. echo pdp10-unknown-tops10
  15074. - exit 0 ;;
  15075. + exit ;;
  15076. *:TENEX:*:*)
  15077. echo pdp10-unknown-tenex
  15078. - exit 0 ;;
  15079. + exit ;;
  15080. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  15081. echo pdp10-dec-tops20
  15082. - exit 0 ;;
  15083. + exit ;;
  15084. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  15085. echo pdp10-xkl-tops20
  15086. - exit 0 ;;
  15087. + exit ;;
  15088. *:TOPS-20:*:*)
  15089. echo pdp10-unknown-tops20
  15090. - exit 0 ;;
  15091. + exit ;;
  15092. *:ITS:*:*)
  15093. echo pdp10-unknown-its
  15094. - exit 0 ;;
  15095. + exit ;;
  15096. SEI:*:*:SEIUX)
  15097. echo mips-sei-seiux${UNAME_RELEASE}
  15098. - exit 0 ;;
  15099. - *:DRAGONFLY:*:*)
  15100. - echo ${UNAME_MACHINE}-unknown-dragonfly${UNAME_RELEASE}
  15101. - exit 0 ;;
  15102. + exit ;;
  15103. + *:DragonFly:*:*)
  15104. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  15105. + exit ;;
  15106. + *:*VMS:*:*)
  15107. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  15108. + case "${UNAME_MACHINE}" in
  15109. + A*) echo alpha-dec-vms ; exit ;;
  15110. + I*) echo ia64-dec-vms ; exit ;;
  15111. + V*) echo vax-dec-vms ; exit ;;
  15112. + esac ;;
  15113. + *:XENIX:*:SysV)
  15114. + echo i386-pc-xenix
  15115. + exit ;;
  15116. + i*86:skyos:*:*)
  15117. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  15118. + exit ;;
  15119. + i*86:rdos:*:*)
  15120. + echo ${UNAME_MACHINE}-pc-rdos
  15121. + exit ;;
  15122. + i*86:AROS:*:*)
  15123. + echo ${UNAME_MACHINE}-pc-aros
  15124. + exit ;;
  15125. esac
  15126. #echo '(No uname command or uname output not recognized.)' 1>&2
  15127. @@ -1264,7 +1362,7 @@
  15128. #endif
  15129. #if defined (__arm) && defined (__acorn) && defined (__unix)
  15130. - printf ("arm-acorn-riscix"); exit (0);
  15131. + printf ("arm-acorn-riscix\n"); exit (0);
  15132. #endif
  15133. #if defined (hp300) && !defined (hpux)
  15134. @@ -1353,11 +1451,12 @@
  15135. }
  15136. EOF
  15137. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  15138. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  15139. + { echo "$SYSTEM_NAME"; exit; }
  15140. # Apollos put the system type in the environment.
  15141. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  15142. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  15143. # Convex versions that predate uname can use getsysinfo(1)
  15144. @@ -1366,22 +1465,22 @@
  15145. case `getsysinfo -f cpu_type` in
  15146. c1*)
  15147. echo c1-convex-bsd
  15148. - exit 0 ;;
  15149. + exit ;;
  15150. c2*)
  15151. if getsysinfo -f scalar_acc
  15152. then echo c32-convex-bsd
  15153. else echo c2-convex-bsd
  15154. fi
  15155. - exit 0 ;;
  15156. + exit ;;
  15157. c34*)
  15158. echo c34-convex-bsd
  15159. - exit 0 ;;
  15160. + exit ;;
  15161. c38*)
  15162. echo c38-convex-bsd
  15163. - exit 0 ;;
  15164. + exit ;;
  15165. c4*)
  15166. echo c4-convex-bsd
  15167. - exit 0 ;;
  15168. + exit ;;
  15169. esac
  15170. fi
  15171. @@ -1392,7 +1491,9 @@
  15172. the operating system you are using. It is advised that you
  15173. download the most up to date version of the config scripts from
  15174. - ftp://ftp.gnu.org/pub/gnu/config/
  15175. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  15176. +and
  15177. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  15178. If the version you run ($0) is already up to date, please
  15179. send the following data and any information you think might be
  15180. diff -Nur libmad-0.15.1b.orig/config.h.in libmad-0.15.1b/config.h.in
  15181. --- libmad-0.15.1b.orig/config.h.in 2004-02-06 04:12:41.000000000 +0100
  15182. +++ libmad-0.15.1b/config.h.in 2011-02-17 17:22:45.000000000 +0100
  15183. @@ -1,5 +1,8 @@
  15184. /* config.h.in. Generated from configure.ac by autoheader. */
  15185. +/* Define if building universal (internal helper macro) */
  15186. +#undef AC_APPLE_UNIVERSAL_BUILD
  15187. +
  15188. /* Define to enable diagnostic debugging support. */
  15189. #undef DEBUG
  15190. @@ -69,6 +72,10 @@
  15191. /* Define to 1 if you have the `waitpid' function. */
  15192. #undef HAVE_WAITPID
  15193. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  15194. + */
  15195. +#undef LT_OBJDIR
  15196. +
  15197. /* Define to disable debugging assertions. */
  15198. #undef NDEBUG
  15199. @@ -100,16 +107,19 @@
  15200. /* Define to the one symbol short name of this package. */
  15201. #undef PACKAGE_TARNAME
  15202. +/* Define to the home page for this package. */
  15203. +#undef PACKAGE_URL
  15204. +
  15205. /* Define to the version of this package. */
  15206. #undef PACKAGE_VERSION
  15207. -/* The size of a `int', as computed by sizeof. */
  15208. +/* The size of `int', as computed by sizeof. */
  15209. #undef SIZEOF_INT
  15210. -/* The size of a `long', as computed by sizeof. */
  15211. +/* The size of `long', as computed by sizeof. */
  15212. #undef SIZEOF_LONG
  15213. -/* The size of a `long long', as computed by sizeof. */
  15214. +/* The size of `long long', as computed by sizeof. */
  15215. #undef SIZEOF_LONG_LONG
  15216. /* Define to 1 if you have the ANSI C header files. */
  15217. @@ -118,9 +128,17 @@
  15218. /* Version number of package */
  15219. #undef VERSION
  15220. -/* Define to 1 if your processor stores words with the most significant byte
  15221. - first (like Motorola and SPARC, unlike Intel and VAX). */
  15222. -#undef WORDS_BIGENDIAN
  15223. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  15224. + significant byte first (like Motorola and SPARC, unlike Intel). */
  15225. +#if defined AC_APPLE_UNIVERSAL_BUILD
  15226. +# if defined __BIG_ENDIAN__
  15227. +# define WORDS_BIGENDIAN 1
  15228. +# endif
  15229. +#else
  15230. +# ifndef WORDS_BIGENDIAN
  15231. +# undef WORDS_BIGENDIAN
  15232. +# endif
  15233. +#endif
  15234. /* Define to empty if `const' does not conform to ANSI C. */
  15235. #undef const
  15236. diff -Nur libmad-0.15.1b.orig/config.h.in~ libmad-0.15.1b/config.h.in~
  15237. --- libmad-0.15.1b.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  15238. +++ libmad-0.15.1b/config.h.in~ 2011-02-17 17:22:23.000000000 +0100
  15239. @@ -0,0 +1,153 @@
  15240. +/* config.h.in. Generated from configure.ac by autoheader. */
  15241. +
  15242. +/* Define if building universal (internal helper macro) */
  15243. +#undef AC_APPLE_UNIVERSAL_BUILD
  15244. +
  15245. +/* Define to enable diagnostic debugging support. */
  15246. +#undef DEBUG
  15247. +
  15248. +/* Define to enable experimental code. */
  15249. +#undef EXPERIMENTAL
  15250. +
  15251. +/* Define to 1 if you have the <assert.h> header file. */
  15252. +#undef HAVE_ASSERT_H
  15253. +
  15254. +/* Define to 1 if you have the <dlfcn.h> header file. */
  15255. +#undef HAVE_DLFCN_H
  15256. +
  15257. +/* Define to 1 if you have the <errno.h> header file. */
  15258. +#undef HAVE_ERRNO_H
  15259. +
  15260. +/* Define to 1 if you have the `fcntl' function. */
  15261. +#undef HAVE_FCNTL
  15262. +
  15263. +/* Define to 1 if you have the <fcntl.h> header file. */
  15264. +#undef HAVE_FCNTL_H
  15265. +
  15266. +/* Define to 1 if you have the `fork' function. */
  15267. +#undef HAVE_FORK
  15268. +
  15269. +/* Define to 1 if you have the <inttypes.h> header file. */
  15270. +#undef HAVE_INTTYPES_H
  15271. +
  15272. +/* Define to 1 if you have the <limits.h> header file. */
  15273. +#undef HAVE_LIMITS_H
  15274. +
  15275. +/* Define if your MIPS CPU supports a 2-operand MADD16 instruction. */
  15276. +#undef HAVE_MADD16_ASM
  15277. +
  15278. +/* Define if your MIPS CPU supports a 2-operand MADD instruction. */
  15279. +#undef HAVE_MADD_ASM
  15280. +
  15281. +/* Define to 1 if you have the <memory.h> header file. */
  15282. +#undef HAVE_MEMORY_H
  15283. +
  15284. +/* Define to 1 if you have the `pipe' function. */
  15285. +#undef HAVE_PIPE
  15286. +
  15287. +/* Define to 1 if you have the <stdint.h> header file. */
  15288. +#undef HAVE_STDINT_H
  15289. +
  15290. +/* Define to 1 if you have the <stdlib.h> header file. */
  15291. +#undef HAVE_STDLIB_H
  15292. +
  15293. +/* Define to 1 if you have the <strings.h> header file. */
  15294. +#undef HAVE_STRINGS_H
  15295. +
  15296. +/* Define to 1 if you have the <string.h> header file. */
  15297. +#undef HAVE_STRING_H
  15298. +
  15299. +/* Define to 1 if you have the <sys/stat.h> header file. */
  15300. +#undef HAVE_SYS_STAT_H
  15301. +
  15302. +/* Define to 1 if you have the <sys/types.h> header file. */
  15303. +#undef HAVE_SYS_TYPES_H
  15304. +
  15305. +/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
  15306. +#undef HAVE_SYS_WAIT_H
  15307. +
  15308. +/* Define to 1 if you have the <unistd.h> header file. */
  15309. +#undef HAVE_UNISTD_H
  15310. +
  15311. +/* Define to 1 if you have the `waitpid' function. */
  15312. +#undef HAVE_WAITPID
  15313. +
  15314. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  15315. + */
  15316. +#undef LT_OBJDIR
  15317. +
  15318. +/* Define to disable debugging assertions. */
  15319. +#undef NDEBUG
  15320. +
  15321. +/* Define to optimize for accuracy over speed. */
  15322. +#undef OPT_ACCURACY
  15323. +
  15324. +/* Define to optimize for speed over accuracy. */
  15325. +#undef OPT_SPEED
  15326. +
  15327. +/* Define to enable a fast subband synthesis approximation optimization. */
  15328. +#undef OPT_SSO
  15329. +
  15330. +/* Define to influence a strict interpretation of the ISO/IEC standards, even
  15331. + if this is in opposition with best accepted practices. */
  15332. +#undef OPT_STRICT
  15333. +
  15334. +/* Name of package */
  15335. +#undef PACKAGE
  15336. +
  15337. +/* Define to the address where bug reports for this package should be sent. */
  15338. +#undef PACKAGE_BUGREPORT
  15339. +
  15340. +/* Define to the full name of this package. */
  15341. +#undef PACKAGE_NAME
  15342. +
  15343. +/* Define to the full name and version of this package. */
  15344. +#undef PACKAGE_STRING
  15345. +
  15346. +/* Define to the one symbol short name of this package. */
  15347. +#undef PACKAGE_TARNAME
  15348. +
  15349. +/* Define to the home page for this package. */
  15350. +#undef PACKAGE_URL
  15351. +
  15352. +/* Define to the version of this package. */
  15353. +#undef PACKAGE_VERSION
  15354. +
  15355. +/* The size of `int', as computed by sizeof. */
  15356. +#undef SIZEOF_INT
  15357. +
  15358. +/* The size of `long', as computed by sizeof. */
  15359. +#undef SIZEOF_LONG
  15360. +
  15361. +/* The size of `long long', as computed by sizeof. */
  15362. +#undef SIZEOF_LONG_LONG
  15363. +
  15364. +/* Define to 1 if you have the ANSI C header files. */
  15365. +#undef STDC_HEADERS
  15366. +
  15367. +/* Version number of package */
  15368. +#undef VERSION
  15369. +
  15370. +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
  15371. + significant byte first (like Motorola and SPARC, unlike Intel). */
  15372. +#if defined AC_APPLE_UNIVERSAL_BUILD
  15373. +# if defined __BIG_ENDIAN__
  15374. +# define WORDS_BIGENDIAN 1
  15375. +# endif
  15376. +#else
  15377. +# ifndef WORDS_BIGENDIAN
  15378. +# undef WORDS_BIGENDIAN
  15379. +# endif
  15380. +#endif
  15381. +
  15382. +/* Define to empty if `const' does not conform to ANSI C. */
  15383. +#undef const
  15384. +
  15385. +/* Define to `__inline__' or `__inline' if that's what the C compiler
  15386. + calls it, or to nothing if 'inline' is not supported under any name. */
  15387. +#ifndef __cplusplus
  15388. +#undef inline
  15389. +#endif
  15390. +
  15391. +/* Define to `int' if <sys/types.h> does not define. */
  15392. +#undef pid_t
  15393. diff -Nur libmad-0.15.1b.orig/config.sub libmad-0.15.1b/config.sub
  15394. --- libmad-0.15.1b.orig/config.sub 2004-02-17 02:51:24.000000000 +0100
  15395. +++ libmad-0.15.1b/config.sub 2011-02-17 17:22:46.493559011 +0100
  15396. @@ -1,9 +1,10 @@
  15397. #! /bin/sh
  15398. # Configuration validation subroutine script.
  15399. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  15400. -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  15401. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  15402. +# Free Software Foundation, Inc.
  15403. -timestamp='2004-01-05'
  15404. +timestamp='2009-06-11'
  15405. # This file is (in principle) common to ALL GNU software.
  15406. # The presence of a machine in this file suggests that SOME GNU software
  15407. @@ -21,14 +22,15 @@
  15408. #
  15409. # You should have received a copy of the GNU General Public License
  15410. # along with this program; if not, write to the Free Software
  15411. -# Foundation, Inc., 59 Temple Place - Suite 330,
  15412. -# Boston, MA 02111-1307, USA.
  15413. -
  15414. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  15415. +# 02110-1301, USA.
  15416. +#
  15417. # As a special exception to the GNU General Public License, if you
  15418. # distribute this file as part of a program that contains a
  15419. # configuration script generated by Autoconf, you may include it under
  15420. # the same distribution terms that you use for the rest of that program.
  15421. +
  15422. # Please send patches to <config-patches@gnu.org>. Submit a context
  15423. # diff and a properly formatted ChangeLog entry.
  15424. #
  15425. @@ -70,8 +72,8 @@
  15426. version="\
  15427. GNU config.sub ($timestamp)
  15428. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  15429. -Free Software Foundation, Inc.
  15430. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  15431. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15432. This is free software; see the source for copying conditions. There is NO
  15433. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  15434. @@ -83,11 +85,11 @@
  15435. while test $# -gt 0 ; do
  15436. case $1 in
  15437. --time-stamp | --time* | -t )
  15438. - echo "$timestamp" ; exit 0 ;;
  15439. + echo "$timestamp" ; exit ;;
  15440. --version | -v )
  15441. - echo "$version" ; exit 0 ;;
  15442. + echo "$version" ; exit ;;
  15443. --help | --h* | -h )
  15444. - echo "$usage"; exit 0 ;;
  15445. + echo "$usage"; exit ;;
  15446. -- ) # Stop option processing
  15447. shift; break ;;
  15448. - ) # Use stdin as input.
  15449. @@ -99,7 +101,7 @@
  15450. *local*)
  15451. # First pass through any local machine types.
  15452. echo $1
  15453. - exit 0;;
  15454. + exit ;;
  15455. * )
  15456. break ;;
  15457. @@ -118,8 +120,10 @@
  15458. # Here we must recognize all the valid KERNEL-OS combinations.
  15459. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  15460. case $maybe_os in
  15461. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  15462. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  15463. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  15464. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  15465. + kopensolaris*-gnu* | \
  15466. + storm-chaos* | os2-emx* | rtmk-nova*)
  15467. os=-$maybe_os
  15468. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  15469. ;;
  15470. @@ -145,10 +149,13 @@
  15471. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  15472. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  15473. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  15474. - -apple | -axis)
  15475. + -apple | -axis | -knuth | -cray)
  15476. os=
  15477. basic_machine=$1
  15478. ;;
  15479. + -bluegene*)
  15480. + os=-cnk
  15481. + ;;
  15482. -sim | -cisco | -oki | -wec | -winbond)
  15483. os=
  15484. basic_machine=$1
  15485. @@ -170,6 +177,10 @@
  15486. -hiux*)
  15487. os=-hiuxwe2
  15488. ;;
  15489. + -sco6)
  15490. + os=-sco5v6
  15491. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15492. + ;;
  15493. -sco5)
  15494. os=-sco3.2v5
  15495. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15496. @@ -186,6 +197,10 @@
  15497. # Don't forget version if it is 3.2v4 or newer.
  15498. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15499. ;;
  15500. + -sco5v6*)
  15501. + # Don't forget version if it is 3.2v4 or newer.
  15502. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15503. + ;;
  15504. -sco*)
  15505. os=-sco3.2v2
  15506. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15507. @@ -230,22 +245,28 @@
  15508. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  15509. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  15510. | am33_2.0 \
  15511. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  15512. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  15513. + | bfin \
  15514. | c4x | clipper \
  15515. | d10v | d30v | dlx | dsp16xx \
  15516. - | fr30 | frv \
  15517. + | fido | fr30 | frv \
  15518. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  15519. | i370 | i860 | i960 | ia64 \
  15520. | ip2k | iq2000 \
  15521. - | m32r | m68000 | m68k | m88k | mcore \
  15522. + | lm32 \
  15523. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  15524. + | maxq | mb | microblaze | mcore | mep | metag \
  15525. | mips | mipsbe | mipseb | mipsel | mipsle \
  15526. | mips16 \
  15527. | mips64 | mips64el \
  15528. - | mips64vr | mips64vrel \
  15529. + | mips64octeon | mips64octeonel \
  15530. | mips64orion | mips64orionel \
  15531. + | mips64r5900 | mips64r5900el \
  15532. + | mips64vr | mips64vrel \
  15533. | mips64vr4100 | mips64vr4100el \
  15534. | mips64vr4300 | mips64vr4300el \
  15535. | mips64vr5000 | mips64vr5000el \
  15536. + | mips64vr5900 | mips64vr5900el \
  15537. | mipsisa32 | mipsisa32el \
  15538. | mipsisa32r2 | mipsisa32r2el \
  15539. | mipsisa64 | mipsisa64el \
  15540. @@ -254,21 +275,26 @@
  15541. | mipsisa64sr71k | mipsisa64sr71kel \
  15542. | mipstx39 | mipstx39el \
  15543. | mn10200 | mn10300 \
  15544. + | moxie \
  15545. + | mt \
  15546. | msp430 \
  15547. + | nios | nios2 \
  15548. | ns16k | ns32k \
  15549. - | openrisc | or32 \
  15550. + | or32 \
  15551. | pdp10 | pdp11 | pj | pjl \
  15552. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  15553. | pyramid \
  15554. - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  15555. + | score \
  15556. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15557. | sh64 | sh64le \
  15558. - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  15559. - | strongarm \
  15560. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  15561. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  15562. + | spu | strongarm \
  15563. | tahoe | thumb | tic4x | tic80 | tron \
  15564. | v850 | v850e \
  15565. | we32k \
  15566. - | x86 | xscale | xstormy16 | xtensa \
  15567. - | z8k)
  15568. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  15569. + | z8k | z80)
  15570. basic_machine=$basic_machine-unknown
  15571. ;;
  15572. m6811 | m68hc11 | m6812 | m68hc12)
  15573. @@ -278,6 +304,9 @@
  15574. ;;
  15575. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  15576. ;;
  15577. + ms1)
  15578. + basic_machine=mt-unknown
  15579. + ;;
  15580. # We use `pc' rather than `unknown'
  15581. # because (1) that's what they normally are, and
  15582. @@ -297,28 +326,32 @@
  15583. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  15584. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  15585. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  15586. - | avr-* \
  15587. - | bs2000-* \
  15588. + | avr-* | avr32-* \
  15589. + | bfin-* | bs2000-* \
  15590. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  15591. - | clipper-* | cydra-* \
  15592. + | clipper-* | craynv-* | cydra-* \
  15593. | d10v-* | d30v-* | dlx-* \
  15594. | elxsi-* \
  15595. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  15596. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15597. | h8300-* | h8500-* \
  15598. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15599. | i*86-* | i860-* | i960-* | ia64-* \
  15600. | ip2k-* | iq2000-* \
  15601. - | m32r-* \
  15602. + | lm32-* \
  15603. + | m32c-* | m32r-* | m32rle-* \
  15604. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15605. - | m88110-* | m88k-* | mcore-* \
  15606. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15607. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15608. | mips16-* \
  15609. | mips64-* | mips64el-* \
  15610. - | mips64vr-* | mips64vrel-* \
  15611. + | mips64octeon-* | mips64octeonel-* \
  15612. | mips64orion-* | mips64orionel-* \
  15613. + | mips64r5900-* | mips64r5900el-* \
  15614. + | mips64vr-* | mips64vrel-* \
  15615. | mips64vr4100-* | mips64vr4100el-* \
  15616. | mips64vr4300-* | mips64vr4300el-* \
  15617. | mips64vr5000-* | mips64vr5000el-* \
  15618. + | mips64vr5900-* | mips64vr5900el-* \
  15619. | mipsisa32-* | mipsisa32el-* \
  15620. | mipsisa32r2-* | mipsisa32r2el-* \
  15621. | mipsisa64-* | mipsisa64el-* \
  15622. @@ -326,26 +359,34 @@
  15623. | mipsisa64sb1-* | mipsisa64sb1el-* \
  15624. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  15625. | mipstx39-* | mipstx39el-* \
  15626. + | mmix-* \
  15627. + | mt-* \
  15628. | msp430-* \
  15629. - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
  15630. + | nios-* | nios2-* \
  15631. + | none-* | np1-* | ns16k-* | ns32k-* \
  15632. | orion-* \
  15633. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  15634. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15635. | pyramid-* \
  15636. | romp-* | rs6000-* \
  15637. - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  15638. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15639. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15640. - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  15641. - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  15642. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15643. + | sparclite-* \
  15644. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15645. | tahoe-* | thumb-* \
  15646. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  15647. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15648. | tron-* \
  15649. | v850-* | v850e-* | vax-* \
  15650. | we32k-* \
  15651. - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  15652. - | xtensa-* \
  15653. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15654. + | xstormy16-* | xtensa*-* \
  15655. | ymp-* \
  15656. - | z8k-*)
  15657. + | z8k-* | z80-*)
  15658. + ;;
  15659. + # Recognize the basic CPU types without company name, with glob match.
  15660. + xtensa*)
  15661. + basic_machine=$basic_machine-unknown
  15662. ;;
  15663. # Recognize the various machine names and aliases which stand
  15664. # for a CPU type and a company and sometimes even an OS.
  15665. @@ -363,6 +404,9 @@
  15666. basic_machine=a29k-amd
  15667. os=-udi
  15668. ;;
  15669. + abacus)
  15670. + basic_machine=abacus-unknown
  15671. + ;;
  15672. adobe68k)
  15673. basic_machine=m68010-adobe
  15674. os=-scout
  15675. @@ -406,6 +450,10 @@
  15676. basic_machine=m68k-apollo
  15677. os=-bsd
  15678. ;;
  15679. + aros)
  15680. + basic_machine=i386-pc
  15681. + os=-aros
  15682. + ;;
  15683. aux)
  15684. basic_machine=m68k-apple
  15685. os=-aux
  15686. @@ -414,10 +462,26 @@
  15687. basic_machine=ns32k-sequent
  15688. os=-dynix
  15689. ;;
  15690. + blackfin)
  15691. + basic_machine=bfin-unknown
  15692. + os=-linux
  15693. + ;;
  15694. + blackfin-*)
  15695. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15696. + os=-linux
  15697. + ;;
  15698. + bluegene*)
  15699. + basic_machine=powerpc-ibm
  15700. + os=-cnk
  15701. + ;;
  15702. c90)
  15703. basic_machine=c90-cray
  15704. os=-unicos
  15705. ;;
  15706. + cegcc)
  15707. + basic_machine=arm-unknown
  15708. + os=-cegcc
  15709. + ;;
  15710. convex-c1)
  15711. basic_machine=c1-convex
  15712. os=-bsd
  15713. @@ -442,12 +506,27 @@
  15714. basic_machine=j90-cray
  15715. os=-unicos
  15716. ;;
  15717. + craynv)
  15718. + basic_machine=craynv-cray
  15719. + os=-unicosmp
  15720. + ;;
  15721. + cr16)
  15722. + basic_machine=cr16-unknown
  15723. + os=-elf
  15724. + ;;
  15725. crds | unos)
  15726. basic_machine=m68k-crds
  15727. ;;
  15728. + crisv32 | crisv32-* | etraxfs*)
  15729. + basic_machine=crisv32-axis
  15730. + ;;
  15731. cris | cris-* | etrax*)
  15732. basic_machine=cris-axis
  15733. ;;
  15734. + crx)
  15735. + basic_machine=crx-unknown
  15736. + os=-elf
  15737. + ;;
  15738. da30 | da30-*)
  15739. basic_machine=m68k-da30
  15740. ;;
  15741. @@ -470,6 +549,14 @@
  15742. basic_machine=m88k-motorola
  15743. os=-sysv3
  15744. ;;
  15745. + dicos)
  15746. + basic_machine=i686-pc
  15747. + os=-dicos
  15748. + ;;
  15749. + djgpp)
  15750. + basic_machine=i586-pc
  15751. + os=-msdosdjgpp
  15752. + ;;
  15753. dpx20 | dpx20-*)
  15754. basic_machine=rs6000-bull
  15755. os=-bosx
  15756. @@ -620,6 +707,14 @@
  15757. basic_machine=m68k-isi
  15758. os=-sysv
  15759. ;;
  15760. + m68knommu)
  15761. + basic_machine=m68k-unknown
  15762. + os=-linux
  15763. + ;;
  15764. + m68knommu-*)
  15765. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15766. + os=-linux
  15767. + ;;
  15768. m88k-omron*)
  15769. basic_machine=m88k-omron
  15770. ;;
  15771. @@ -635,6 +730,10 @@
  15772. basic_machine=i386-pc
  15773. os=-mingw32
  15774. ;;
  15775. + mingw32ce)
  15776. + basic_machine=arm-unknown
  15777. + os=-mingw32ce
  15778. + ;;
  15779. miniframe)
  15780. basic_machine=m68000-convergent
  15781. ;;
  15782. @@ -648,10 +747,6 @@
  15783. mips3*)
  15784. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  15785. ;;
  15786. - mmix*)
  15787. - basic_machine=mmix-knuth
  15788. - os=-mmixware
  15789. - ;;
  15790. monitor)
  15791. basic_machine=m68k-rom68k
  15792. os=-coff
  15793. @@ -664,6 +759,9 @@
  15794. basic_machine=i386-pc
  15795. os=-msdos
  15796. ;;
  15797. + ms1-*)
  15798. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  15799. + ;;
  15800. mvs)
  15801. basic_machine=i370-ibm
  15802. os=-mvs
  15803. @@ -732,10 +830,6 @@
  15804. np1)
  15805. basic_machine=np1-gould
  15806. ;;
  15807. - nv1)
  15808. - basic_machine=nv1-cray
  15809. - os=-unicosmp
  15810. - ;;
  15811. nsr-tandem)
  15812. basic_machine=nsr-tandem
  15813. ;;
  15814. @@ -743,9 +837,8 @@
  15815. basic_machine=hppa1.1-oki
  15816. os=-proelf
  15817. ;;
  15818. - or32 | or32-*)
  15819. + openrisc | openrisc-*)
  15820. basic_machine=or32-unknown
  15821. - os=-coff
  15822. ;;
  15823. os400)
  15824. basic_machine=powerpc-ibm
  15825. @@ -767,6 +860,14 @@
  15826. basic_machine=i860-intel
  15827. os=-osf
  15828. ;;
  15829. + parisc)
  15830. + basic_machine=hppa-unknown
  15831. + os=-linux
  15832. + ;;
  15833. + parisc-*)
  15834. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15835. + os=-linux
  15836. + ;;
  15837. pbd)
  15838. basic_machine=sparc-tti
  15839. ;;
  15840. @@ -776,6 +877,12 @@
  15841. pc532 | pc532-*)
  15842. basic_machine=ns32k-pc532
  15843. ;;
  15844. + pc98)
  15845. + basic_machine=i386-pc
  15846. + ;;
  15847. + pc98-*)
  15848. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  15849. + ;;
  15850. pentium | p5 | k5 | k6 | nexgen | viac3)
  15851. basic_machine=i586-pc
  15852. ;;
  15853. @@ -832,6 +939,10 @@
  15854. basic_machine=i586-unknown
  15855. os=-pw32
  15856. ;;
  15857. + rdos)
  15858. + basic_machine=i386-pc
  15859. + os=-rdos
  15860. + ;;
  15861. rom68k)
  15862. basic_machine=m68k-rom68k
  15863. os=-coff
  15864. @@ -858,6 +969,10 @@
  15865. sb1el)
  15866. basic_machine=mipsisa64sb1el-unknown
  15867. ;;
  15868. + sde)
  15869. + basic_machine=mipsisa32-sde
  15870. + os=-elf
  15871. + ;;
  15872. sei)
  15873. basic_machine=mips-sei
  15874. os=-seiux
  15875. @@ -869,6 +984,9 @@
  15876. basic_machine=sh-hitachi
  15877. os=-hms
  15878. ;;
  15879. + sh5el)
  15880. + basic_machine=sh5le-unknown
  15881. + ;;
  15882. sh64)
  15883. basic_machine=sh64-unknown
  15884. ;;
  15885. @@ -958,6 +1076,10 @@
  15886. basic_machine=tic6x-unknown
  15887. os=-coff
  15888. ;;
  15889. + tile*)
  15890. + basic_machine=tile-unknown
  15891. + os=-linux-gnu
  15892. + ;;
  15893. tx39)
  15894. basic_machine=mipstx39-unknown
  15895. ;;
  15896. @@ -1018,6 +1140,10 @@
  15897. basic_machine=hppa1.1-winbond
  15898. os=-proelf
  15899. ;;
  15900. + xbox)
  15901. + basic_machine=i686-pc
  15902. + os=-mingw32
  15903. + ;;
  15904. xps | xps100)
  15905. basic_machine=xps100-honeywell
  15906. ;;
  15907. @@ -1029,6 +1155,10 @@
  15908. basic_machine=z8k-unknown
  15909. os=-sim
  15910. ;;
  15911. + z80-*-coff)
  15912. + basic_machine=z80-unknown
  15913. + os=-sim
  15914. + ;;
  15915. none)
  15916. basic_machine=none-none
  15917. os=-none
  15918. @@ -1048,6 +1178,9 @@
  15919. romp)
  15920. basic_machine=romp-ibm
  15921. ;;
  15922. + mmix)
  15923. + basic_machine=mmix-knuth
  15924. + ;;
  15925. rs6000)
  15926. basic_machine=rs6000-ibm
  15927. ;;
  15928. @@ -1064,13 +1197,10 @@
  15929. we32k)
  15930. basic_machine=we32k-att
  15931. ;;
  15932. - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  15933. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  15934. basic_machine=sh-unknown
  15935. ;;
  15936. - sh64)
  15937. - basic_machine=sh64-unknown
  15938. - ;;
  15939. - sparc | sparcv9 | sparcv9b)
  15940. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  15941. basic_machine=sparc-sun
  15942. ;;
  15943. cydra)
  15944. @@ -1137,25 +1267,30 @@
  15945. # Each alternative MUST END IN A *, to match a version number.
  15946. # -sysv* is not here because it comes later, after sysvr4.
  15947. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  15948. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  15949. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  15950. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  15951. + | -kopensolaris* \
  15952. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  15953. - | -aos* \
  15954. + | -aos* | -aros* \
  15955. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  15956. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  15957. - | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
  15958. - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15959. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  15960. + | -openbsd* | -solidbsd* \
  15961. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  15962. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15963. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  15964. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  15965. - | -chorusos* | -chorusrdb* \
  15966. + | -chorusos* | -chorusrdb* | -cegcc* \
  15967. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  15968. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  15969. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  15970. + | -uxpv* | -beos* | -mpeix* | -udk* \
  15971. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  15972. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  15973. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  15974. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  15975. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  15976. - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  15977. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  15978. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  15979. # Remember, each alternative MUST END IN *, to match a version number.
  15980. ;;
  15981. -qnx*)
  15982. @@ -1173,7 +1308,7 @@
  15983. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  15984. ;;
  15985. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  15986. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  15987. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  15988. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  15989. ;;
  15990. -mac*)
  15991. @@ -1282,6 +1417,12 @@
  15992. -kaos*)
  15993. os=-kaos
  15994. ;;
  15995. + -zvmoe)
  15996. + os=-zvmoe
  15997. + ;;
  15998. + -dicos*)
  15999. + os=-dicos
  16000. + ;;
  16001. -none)
  16002. ;;
  16003. *)
  16004. @@ -1304,6 +1445,12 @@
  16005. # system, and we'll never get to this point.
  16006. case $basic_machine in
  16007. + score-*)
  16008. + os=-elf
  16009. + ;;
  16010. + spu-*)
  16011. + os=-elf
  16012. + ;;
  16013. *-acorn)
  16014. os=-riscix1.2
  16015. ;;
  16016. @@ -1313,9 +1460,9 @@
  16017. arm*-semi)
  16018. os=-aout
  16019. ;;
  16020. - c4x-* | tic4x-*)
  16021. - os=-coff
  16022. - ;;
  16023. + c4x-* | tic4x-*)
  16024. + os=-coff
  16025. + ;;
  16026. # This must come before the *-dec entry.
  16027. pdp10-*)
  16028. os=-tops20
  16029. @@ -1341,6 +1488,9 @@
  16030. m68*-cisco)
  16031. os=-aout
  16032. ;;
  16033. + mep-*)
  16034. + os=-elf
  16035. + ;;
  16036. mips*-cisco)
  16037. os=-elf
  16038. ;;
  16039. @@ -1359,9 +1509,15 @@
  16040. *-be)
  16041. os=-beos
  16042. ;;
  16043. + *-haiku)
  16044. + os=-haiku
  16045. + ;;
  16046. *-ibm)
  16047. os=-aix
  16048. ;;
  16049. + *-knuth)
  16050. + os=-mmixware
  16051. + ;;
  16052. *-wec)
  16053. os=-proelf
  16054. ;;
  16055. @@ -1464,7 +1620,7 @@
  16056. -sunos*)
  16057. vendor=sun
  16058. ;;
  16059. - -aix*)
  16060. + -cnk*|-aix*)
  16061. vendor=ibm
  16062. ;;
  16063. -beos*)
  16064. @@ -1527,7 +1683,7 @@
  16065. esac
  16066. echo $basic_machine$os
  16067. -exit 0
  16068. +exit
  16069. # Local variables:
  16070. # eval: (add-hook 'write-file-hooks 'time-stamp)
  16071. diff -Nur libmad-0.15.1b.orig/configure libmad-0.15.1b/configure
  16072. --- libmad-0.15.1b.orig/configure 2004-02-05 10:34:07.000000000 +0100
  16073. +++ libmad-0.15.1b/configure 2011-02-17 17:22:45.403552236 +0100
  16074. @@ -1,84 +1,419 @@
  16075. #! /bin/sh
  16076. # From configure.ac Id: configure.ac,v 1.9 2004/01/23 09:41:32 rob Exp .
  16077. # Guess values for system-dependent variables and create Makefiles.
  16078. -# Generated by GNU Autoconf 2.59 for MPEG Audio Decoder 0.15.1b.
  16079. +# Generated by GNU Autoconf 2.65 for MPEG Audio Decoder 0.15.1b.
  16080. #
  16081. # Report bugs to <support@underbit.com>.
  16082. #
  16083. -# Copyright (C) 2003 Free Software Foundation, Inc.
  16084. +#
  16085. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  16086. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  16087. +# Inc.
  16088. +#
  16089. +#
  16090. # This configure script is free software; the Free Software Foundation
  16091. # gives unlimited permission to copy, distribute and modify it.
  16092. -## --------------------- ##
  16093. -## M4sh Initialization. ##
  16094. -## --------------------- ##
  16095. +## -------------------- ##
  16096. +## M4sh Initialization. ##
  16097. +## -------------------- ##
  16098. -# Be Bourne compatible
  16099. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16100. +# Be more Bourne compatible
  16101. +DUALCASE=1; export DUALCASE # for MKS sh
  16102. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  16103. emulate sh
  16104. NULLCMD=:
  16105. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16106. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  16107. # is contrary to our usage. Disable this feature.
  16108. alias -g '${1+"$@"}'='"$@"'
  16109. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  16110. - set -o posix
  16111. + setopt NO_GLOB_SUBST
  16112. +else
  16113. + case `(set -o) 2>/dev/null` in #(
  16114. + *posix*) :
  16115. + set -o posix ;; #(
  16116. + *) :
  16117. + ;;
  16118. +esac
  16119. fi
  16120. -DUALCASE=1; export DUALCASE # for MKS sh
  16121. -# Support unset when possible.
  16122. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  16123. - as_unset=unset
  16124. -else
  16125. - as_unset=false
  16126. +
  16127. +as_nl='
  16128. +'
  16129. +export as_nl
  16130. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  16131. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  16132. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  16133. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  16134. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  16135. +# but without wasting forks for bash or zsh.
  16136. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  16137. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  16138. + as_echo='print -r --'
  16139. + as_echo_n='print -rn --'
  16140. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  16141. + as_echo='printf %s\n'
  16142. + as_echo_n='printf %s'
  16143. +else
  16144. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  16145. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  16146. + as_echo_n='/usr/ucb/echo -n'
  16147. + else
  16148. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  16149. + as_echo_n_body='eval
  16150. + arg=$1;
  16151. + case $arg in #(
  16152. + *"$as_nl"*)
  16153. + expr "X$arg" : "X\\(.*\\)$as_nl";
  16154. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  16155. + esac;
  16156. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  16157. + '
  16158. + export as_echo_n_body
  16159. + as_echo_n='sh -c $as_echo_n_body as_echo'
  16160. + fi
  16161. + export as_echo_body
  16162. + as_echo='sh -c $as_echo_body as_echo'
  16163. fi
  16164. +# The user is always right.
  16165. +if test "${PATH_SEPARATOR+set}" != set; then
  16166. + PATH_SEPARATOR=:
  16167. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  16168. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  16169. + PATH_SEPARATOR=';'
  16170. + }
  16171. +fi
  16172. +
  16173. +
  16174. +# IFS
  16175. +# We need space, tab and new line, in precisely that order. Quoting is
  16176. +# there to prevent editors from complaining about space-tab.
  16177. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16178. +# splitting by setting IFS to empty value.)
  16179. +IFS=" "" $as_nl"
  16180. +
  16181. +# Find who we are. Look in the path if we contain no directory separator.
  16182. +case $0 in #((
  16183. + *[\\/]* ) as_myself=$0 ;;
  16184. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16185. +for as_dir in $PATH
  16186. +do
  16187. + IFS=$as_save_IFS
  16188. + test -z "$as_dir" && as_dir=.
  16189. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16190. + done
  16191. +IFS=$as_save_IFS
  16192. -# Work around bugs in pre-3.0 UWIN ksh.
  16193. -$as_unset ENV MAIL MAILPATH
  16194. + ;;
  16195. +esac
  16196. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  16197. +# in which case we are not to be found in the path.
  16198. +if test "x$as_myself" = x; then
  16199. + as_myself=$0
  16200. +fi
  16201. +if test ! -f "$as_myself"; then
  16202. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16203. + exit 1
  16204. +fi
  16205. +
  16206. +# Unset variables that we do not need and which cause bugs (e.g. in
  16207. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  16208. +# suppresses any "Segmentation fault" message there. '((' could
  16209. +# trigger a bug in pdksh 5.2.14.
  16210. +for as_var in BASH_ENV ENV MAIL MAILPATH
  16211. +do eval test x\${$as_var+set} = xset \
  16212. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  16213. +done
  16214. PS1='$ '
  16215. PS2='> '
  16216. PS4='+ '
  16217. # NLS nuisances.
  16218. -for as_var in \
  16219. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  16220. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  16221. - LC_TELEPHONE LC_TIME
  16222. +LC_ALL=C
  16223. +export LC_ALL
  16224. +LANGUAGE=C
  16225. +export LANGUAGE
  16226. +
  16227. +# CDPATH.
  16228. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16229. +
  16230. +if test "x$CONFIG_SHELL" = x; then
  16231. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  16232. + emulate sh
  16233. + NULLCMD=:
  16234. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  16235. + # is contrary to our usage. Disable this feature.
  16236. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  16237. + setopt NO_GLOB_SUBST
  16238. +else
  16239. + case \`(set -o) 2>/dev/null\` in #(
  16240. + *posix*) :
  16241. + set -o posix ;; #(
  16242. + *) :
  16243. + ;;
  16244. +esac
  16245. +fi
  16246. +"
  16247. + as_required="as_fn_return () { (exit \$1); }
  16248. +as_fn_success () { as_fn_return 0; }
  16249. +as_fn_failure () { as_fn_return 1; }
  16250. +as_fn_ret_success () { return 0; }
  16251. +as_fn_ret_failure () { return 1; }
  16252. +
  16253. +exitcode=0
  16254. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  16255. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  16256. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  16257. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  16258. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  16259. +
  16260. +else
  16261. + exitcode=1; echo positional parameters were not saved.
  16262. +fi
  16263. +test x\$exitcode = x0 || exit 1"
  16264. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  16265. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  16266. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  16267. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  16268. +test \$(( 1 + 1 )) = 2 || exit 1"
  16269. + if (eval "$as_required") 2>/dev/null; then :
  16270. + as_have_required=yes
  16271. +else
  16272. + as_have_required=no
  16273. +fi
  16274. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  16275. +
  16276. +else
  16277. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16278. +as_found=false
  16279. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16280. do
  16281. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  16282. - eval $as_var=C; export $as_var
  16283. - else
  16284. - $as_unset $as_var
  16285. - fi
  16286. + IFS=$as_save_IFS
  16287. + test -z "$as_dir" && as_dir=.
  16288. + as_found=:
  16289. + case $as_dir in #(
  16290. + /*)
  16291. + for as_base in sh bash ksh sh5; do
  16292. + # Try only shells that exist, to save several forks.
  16293. + as_shell=$as_dir/$as_base
  16294. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16295. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16296. + CONFIG_SHELL=$as_shell as_have_required=yes
  16297. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16298. + break 2
  16299. +fi
  16300. +fi
  16301. + done;;
  16302. + esac
  16303. + as_found=false
  16304. done
  16305. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  16306. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  16307. + CONFIG_SHELL=$SHELL as_have_required=yes
  16308. +fi; }
  16309. +IFS=$as_save_IFS
  16310. +
  16311. +
  16312. + if test "x$CONFIG_SHELL" != x; then :
  16313. + # We cannot yet assume a decent shell, so we have to provide a
  16314. + # neutralization value for shells without unset; and this also
  16315. + # works around shells that cannot unset nonexistent variables.
  16316. + BASH_ENV=/dev/null
  16317. + ENV=/dev/null
  16318. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  16319. + export CONFIG_SHELL
  16320. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16321. +fi
  16322. +
  16323. + if test x$as_have_required = xno; then :
  16324. + $as_echo "$0: This script requires a shell more modern than all"
  16325. + $as_echo "$0: the shells that I found on your system."
  16326. + if test x${ZSH_VERSION+set} = xset ; then
  16327. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  16328. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  16329. + else
  16330. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  16331. +$0: support@underbit.com about your system, including any
  16332. +$0: error possibly output before this message. Then install
  16333. +$0: a modern shell, or manually run the script under such a
  16334. +$0: shell if you do have one."
  16335. + fi
  16336. + exit 1
  16337. +fi
  16338. +fi
  16339. +fi
  16340. +SHELL=${CONFIG_SHELL-/bin/sh}
  16341. +export SHELL
  16342. +# Unset more variables known to interfere with behavior of common tools.
  16343. +CLICOLOR_FORCE= GREP_OPTIONS=
  16344. +unset CLICOLOR_FORCE GREP_OPTIONS
  16345. +
  16346. +## --------------------- ##
  16347. +## M4sh Shell Functions. ##
  16348. +## --------------------- ##
  16349. +# as_fn_unset VAR
  16350. +# ---------------
  16351. +# Portably unset VAR.
  16352. +as_fn_unset ()
  16353. +{
  16354. + { eval $1=; unset $1;}
  16355. +}
  16356. +as_unset=as_fn_unset
  16357. +
  16358. +# as_fn_set_status STATUS
  16359. +# -----------------------
  16360. +# Set $? to STATUS, without forking.
  16361. +as_fn_set_status ()
  16362. +{
  16363. + return $1
  16364. +} # as_fn_set_status
  16365. +
  16366. +# as_fn_exit STATUS
  16367. +# -----------------
  16368. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16369. +as_fn_exit ()
  16370. +{
  16371. + set +e
  16372. + as_fn_set_status $1
  16373. + exit $1
  16374. +} # as_fn_exit
  16375. +
  16376. +# as_fn_mkdir_p
  16377. +# -------------
  16378. +# Create "$as_dir" as a directory, including parents if necessary.
  16379. +as_fn_mkdir_p ()
  16380. +{
  16381. +
  16382. + case $as_dir in #(
  16383. + -*) as_dir=./$as_dir;;
  16384. + esac
  16385. + test -d "$as_dir" || eval $as_mkdir_p || {
  16386. + as_dirs=
  16387. + while :; do
  16388. + case $as_dir in #(
  16389. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16390. + *) as_qdir=$as_dir;;
  16391. + esac
  16392. + as_dirs="'$as_qdir' $as_dirs"
  16393. + as_dir=`$as_dirname -- "$as_dir" ||
  16394. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16395. + X"$as_dir" : 'X\(//\)[^/]' \| \
  16396. + X"$as_dir" : 'X\(//\)$' \| \
  16397. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16398. +$as_echo X"$as_dir" |
  16399. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16400. + s//\1/
  16401. + q
  16402. + }
  16403. + /^X\(\/\/\)[^/].*/{
  16404. + s//\1/
  16405. + q
  16406. + }
  16407. + /^X\(\/\/\)$/{
  16408. + s//\1/
  16409. + q
  16410. + }
  16411. + /^X\(\/\).*/{
  16412. + s//\1/
  16413. + q
  16414. + }
  16415. + s/.*/./; q'`
  16416. + test -d "$as_dir" && break
  16417. + done
  16418. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  16419. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  16420. +
  16421. +
  16422. +} # as_fn_mkdir_p
  16423. +# as_fn_append VAR VALUE
  16424. +# ----------------------
  16425. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  16426. +# advantage of any shell optimizations that allow amortized linear growth over
  16427. +# repeated appends, instead of the typical quadratic growth present in naive
  16428. +# implementations.
  16429. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16430. + eval 'as_fn_append ()
  16431. + {
  16432. + eval $1+=\$2
  16433. + }'
  16434. +else
  16435. + as_fn_append ()
  16436. + {
  16437. + eval $1=\$$1\$2
  16438. + }
  16439. +fi # as_fn_append
  16440. -# Required to use basename.
  16441. -if expr a : '\(a\)' >/dev/null 2>&1; then
  16442. +# as_fn_arith ARG...
  16443. +# ------------------
  16444. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  16445. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  16446. +# must be portable across $(()) and expr.
  16447. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16448. + eval 'as_fn_arith ()
  16449. + {
  16450. + as_val=$(( $* ))
  16451. + }'
  16452. +else
  16453. + as_fn_arith ()
  16454. + {
  16455. + as_val=`expr "$@" || test $? -eq 1`
  16456. + }
  16457. +fi # as_fn_arith
  16458. +
  16459. +
  16460. +# as_fn_error ERROR [LINENO LOG_FD]
  16461. +# ---------------------------------
  16462. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16463. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16464. +# script with status $?, using 1 if that was 0.
  16465. +as_fn_error ()
  16466. +{
  16467. + as_status=$?; test $as_status -eq 0 && as_status=1
  16468. + if test "$3"; then
  16469. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16470. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  16471. + fi
  16472. + $as_echo "$as_me: error: $1" >&2
  16473. + as_fn_exit $as_status
  16474. +} # as_fn_error
  16475. +
  16476. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  16477. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16478. as_expr=expr
  16479. else
  16480. as_expr=false
  16481. fi
  16482. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  16483. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16484. as_basename=basename
  16485. else
  16486. as_basename=false
  16487. fi
  16488. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16489. + as_dirname=dirname
  16490. +else
  16491. + as_dirname=false
  16492. +fi
  16493. -# Name of the executable.
  16494. -as_me=`$as_basename "$0" ||
  16495. +as_me=`$as_basename -- "$0" ||
  16496. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16497. X"$0" : 'X\(//\)$' \| \
  16498. - X"$0" : 'X\(/\)$' \| \
  16499. - . : '\(.\)' 2>/dev/null ||
  16500. -echo X/"$0" |
  16501. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  16502. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  16503. - /^X\/\(\/\).*/{ s//\1/; q; }
  16504. - s/.*/./; q'`
  16505. -
  16506. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16507. +$as_echo X/"$0" |
  16508. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  16509. + s//\1/
  16510. + q
  16511. + }
  16512. + /^X\/\(\/\/\)$/{
  16513. + s//\1/
  16514. + q
  16515. + }
  16516. + /^X\/\(\/\).*/{
  16517. + s//\1/
  16518. + q
  16519. + }
  16520. + s/.*/./; q'`
  16521. -# PATH needs CR, and LINENO needs CR and PATH.
  16522. # Avoid depending upon Character Ranges.
  16523. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16524. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16525. @@ -86,146 +421,107 @@
  16526. as_cr_digits='0123456789'
  16527. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16528. -# The user is always right.
  16529. -if test "${PATH_SEPARATOR+set}" != set; then
  16530. - echo "#! /bin/sh" >conf$$.sh
  16531. - echo "exit 0" >>conf$$.sh
  16532. - chmod +x conf$$.sh
  16533. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  16534. - PATH_SEPARATOR=';'
  16535. - else
  16536. - PATH_SEPARATOR=:
  16537. - fi
  16538. - rm -f conf$$.sh
  16539. -fi
  16540. -
  16541. -
  16542. - as_lineno_1=$LINENO
  16543. - as_lineno_2=$LINENO
  16544. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  16545. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16546. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  16547. - # Find who we are. Look in the path if we contain no path at all
  16548. - # relative or not.
  16549. - case $0 in
  16550. - *[\\/]* ) as_myself=$0 ;;
  16551. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16552. -for as_dir in $PATH
  16553. -do
  16554. - IFS=$as_save_IFS
  16555. - test -z "$as_dir" && as_dir=.
  16556. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16557. -done
  16558. -
  16559. - ;;
  16560. - esac
  16561. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  16562. - # in which case we are not to be found in the path.
  16563. - if test "x$as_myself" = x; then
  16564. - as_myself=$0
  16565. - fi
  16566. - if test ! -f "$as_myself"; then
  16567. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  16568. - { (exit 1); exit 1; }; }
  16569. - fi
  16570. - case $CONFIG_SHELL in
  16571. - '')
  16572. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16573. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16574. -do
  16575. - IFS=$as_save_IFS
  16576. - test -z "$as_dir" && as_dir=.
  16577. - for as_base in sh bash ksh sh5; do
  16578. - case $as_dir in
  16579. - /*)
  16580. - if ("$as_dir/$as_base" -c '
  16581. - as_lineno_1=$LINENO
  16582. - as_lineno_2=$LINENO
  16583. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  16584. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16585. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  16586. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  16587. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  16588. - CONFIG_SHELL=$as_dir/$as_base
  16589. - export CONFIG_SHELL
  16590. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  16591. - fi;;
  16592. - esac
  16593. - done
  16594. -done
  16595. -;;
  16596. - esac
  16597. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16598. - # uniformly replaced by the line number. The first 'sed' inserts a
  16599. - # line-number line before each line; the second 'sed' does the real
  16600. - # work. The second script uses 'N' to pair each line-number line
  16601. - # with the numbered line, and appends trailing '-' during
  16602. - # substitution so that $LINENO is not a special case at line end.
  16603. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16604. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  16605. - sed '=' <$as_myself |
  16606. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  16607. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  16608. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  16609. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  16610. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  16611. + sed -n '
  16612. + p
  16613. + /[$]LINENO/=
  16614. + ' <$as_myself |
  16615. sed '
  16616. + s/[$]LINENO.*/&-/
  16617. + t lineno
  16618. + b
  16619. + :lineno
  16620. N
  16621. - s,$,-,
  16622. - : loop
  16623. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  16624. + :loop
  16625. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16626. t loop
  16627. - s,-$,,
  16628. - s,^['$as_cr_digits']*\n,,
  16629. + s/-\n.*//
  16630. ' >$as_me.lineno &&
  16631. - chmod +x $as_me.lineno ||
  16632. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16633. - { (exit 1); exit 1; }; }
  16634. + chmod +x "$as_me.lineno" ||
  16635. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  16636. # Don't try to exec as it changes $[0], causing all sort of problems
  16637. # (the dirname of $[0] is not the place where we might find the
  16638. - # original and so on. Autoconf is especially sensible to this).
  16639. - . ./$as_me.lineno
  16640. + # original and so on. Autoconf is especially sensitive to this).
  16641. + . "./$as_me.lineno"
  16642. # Exit status is that of the last command.
  16643. exit
  16644. }
  16645. -
  16646. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  16647. - *c*,-n*) ECHO_N= ECHO_C='
  16648. -' ECHO_T=' ' ;;
  16649. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  16650. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  16651. +ECHO_C= ECHO_N= ECHO_T=
  16652. +case `echo -n x` in #(((((
  16653. +-n*)
  16654. + case `echo 'xy\c'` in
  16655. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16656. + xy) ECHO_C='\c';;
  16657. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16658. + ECHO_T=' ';;
  16659. + esac;;
  16660. +*)
  16661. + ECHO_N='-n';;
  16662. esac
  16663. -if expr a : '\(a\)' >/dev/null 2>&1; then
  16664. - as_expr=expr
  16665. +rm -f conf$$ conf$$.exe conf$$.file
  16666. +if test -d conf$$.dir; then
  16667. + rm -f conf$$.dir/conf$$.file
  16668. else
  16669. - as_expr=false
  16670. + rm -f conf$$.dir
  16671. + mkdir conf$$.dir 2>/dev/null
  16672. fi
  16673. -
  16674. -rm -f conf$$ conf$$.exe conf$$.file
  16675. -echo >conf$$.file
  16676. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  16677. - # We could just check for DJGPP; but this test a) works b) is more generic
  16678. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  16679. - if test -f conf$$.exe; then
  16680. - # Don't use ln at all; we don't have any links
  16681. - as_ln_s='cp -p'
  16682. - else
  16683. +if (echo >conf$$.file) 2>/dev/null; then
  16684. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  16685. as_ln_s='ln -s'
  16686. + # ... but there are two gotchas:
  16687. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16688. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16689. + # In both cases, we have to default to `cp -p'.
  16690. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16691. + as_ln_s='cp -p'
  16692. + elif ln conf$$.file conf$$ 2>/dev/null; then
  16693. + as_ln_s=ln
  16694. + else
  16695. + as_ln_s='cp -p'
  16696. fi
  16697. -elif ln conf$$.file conf$$ 2>/dev/null; then
  16698. - as_ln_s=ln
  16699. else
  16700. as_ln_s='cp -p'
  16701. fi
  16702. -rm -f conf$$ conf$$.exe conf$$.file
  16703. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16704. +rmdir conf$$.dir 2>/dev/null
  16705. if mkdir -p . 2>/dev/null; then
  16706. - as_mkdir_p=:
  16707. + as_mkdir_p='mkdir -p "$as_dir"'
  16708. else
  16709. test -d ./-p && rmdir ./-p
  16710. as_mkdir_p=false
  16711. fi
  16712. -as_executable_p="test -f"
  16713. +if test -x / >/dev/null 2>&1; then
  16714. + as_test_x='test -x'
  16715. +else
  16716. + if ls -dL / >/dev/null 2>&1; then
  16717. + as_ls_L_option=L
  16718. + else
  16719. + as_ls_L_option=
  16720. + fi
  16721. + as_test_x='
  16722. + eval sh -c '\''
  16723. + if test -d "$1"; then
  16724. + test -d "$1/.";
  16725. + else
  16726. + case $1 in #(
  16727. + -*)set "./$1";;
  16728. + esac;
  16729. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16730. + ???[sx]*):;;*)false;;esac;fi
  16731. + '\'' sh
  16732. + '
  16733. +fi
  16734. +as_executable_p=$as_test_x
  16735. # Sed expression to map a string onto a valid CPP name.
  16736. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16737. @@ -234,36 +530,26 @@
  16738. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16739. -# IFS
  16740. -# We need space, tab and new line, in precisely that order.
  16741. -as_nl='
  16742. -'
  16743. -IFS=" $as_nl"
  16744. -
  16745. -# CDPATH.
  16746. -$as_unset CDPATH
  16747. -
  16748. -
  16749. # Check that we are running under the correct shell.
  16750. SHELL=${CONFIG_SHELL-/bin/sh}
  16751. -case X$ECHO in
  16752. +case X$lt_ECHO in
  16753. X*--fallback-echo)
  16754. # Remove one level of quotation (which was required for Make).
  16755. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16756. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16757. ;;
  16758. esac
  16759. -echo=${ECHO-echo}
  16760. +ECHO=${lt_ECHO-echo}
  16761. if test "X$1" = X--no-reexec; then
  16762. # Discard the --no-reexec flag, and continue.
  16763. shift
  16764. elif test "X$1" = X--fallback-echo; then
  16765. # Avoid inline document here, it may be left over
  16766. :
  16767. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  16768. - # Yippee, $echo works!
  16769. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  16770. + # Yippee, $ECHO works!
  16771. :
  16772. else
  16773. # Restart under the correct shell.
  16774. @@ -273,153 +559,145 @@
  16775. if test "X$1" = X--fallback-echo; then
  16776. # used as fallback echo
  16777. shift
  16778. - cat <<EOF
  16779. + cat <<_LT_EOF
  16780. $*
  16781. -EOF
  16782. +_LT_EOF
  16783. exit 0
  16784. fi
  16785. # The HP-UX ksh and POSIX shell print the target directory to stdout
  16786. # if CDPATH is set.
  16787. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  16788. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16789. -if test -z "$ECHO"; then
  16790. -if test "X${echo_test_string+set}" != Xset; then
  16791. -# find a string as large as possible, as long as the shell can cope with it
  16792. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16793. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16794. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  16795. - echo_test_string="`eval $cmd`" &&
  16796. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  16797. - then
  16798. - break
  16799. - fi
  16800. - done
  16801. -fi
  16802. +if test -z "$lt_ECHO"; then
  16803. + if test "X${echo_test_string+set}" != Xset; then
  16804. + # find a string as large as possible, as long as the shell can cope with it
  16805. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16806. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16807. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  16808. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  16809. + then
  16810. + break
  16811. + fi
  16812. + done
  16813. + fi
  16814. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16815. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16816. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16817. - :
  16818. -else
  16819. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  16820. - # backslashes. This makes it impossible to quote backslashes using
  16821. - # echo "$something" | sed 's/\\/\\\\/g'
  16822. - #
  16823. - # So, first we look for a working echo in the user's PATH.
  16824. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16825. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16826. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16827. + :
  16828. + else
  16829. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  16830. + # backslashes. This makes it impossible to quote backslashes using
  16831. + # echo "$something" | sed 's/\\/\\\\/g'
  16832. + #
  16833. + # So, first we look for a working echo in the user's PATH.
  16834. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16835. - for dir in $PATH /usr/ucb; do
  16836. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16837. + for dir in $PATH /usr/ucb; do
  16838. + IFS="$lt_save_ifs"
  16839. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16840. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16841. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16842. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16843. + ECHO="$dir/echo"
  16844. + break
  16845. + fi
  16846. + done
  16847. IFS="$lt_save_ifs"
  16848. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16849. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16850. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16851. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16852. - echo="$dir/echo"
  16853. - break
  16854. - fi
  16855. - done
  16856. - IFS="$lt_save_ifs"
  16857. - if test "X$echo" = Xecho; then
  16858. - # We didn't find a better echo, so look for alternatives.
  16859. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  16860. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  16861. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16862. - # This shell has a builtin print -r that does the trick.
  16863. - echo='print -r'
  16864. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  16865. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  16866. - # If we have ksh, try running configure again with it.
  16867. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16868. - export ORIGINAL_CONFIG_SHELL
  16869. - CONFIG_SHELL=/bin/ksh
  16870. - export CONFIG_SHELL
  16871. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16872. - else
  16873. - # Try using printf.
  16874. - echo='printf %s\n'
  16875. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16876. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16877. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16878. - # Cool, printf works
  16879. - :
  16880. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16881. - test "X$echo_testing_string" = 'X\t' &&
  16882. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16883. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16884. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16885. - export CONFIG_SHELL
  16886. - SHELL="$CONFIG_SHELL"
  16887. - export SHELL
  16888. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16889. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16890. - test "X$echo_testing_string" = 'X\t' &&
  16891. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16892. + if test "X$ECHO" = Xecho; then
  16893. + # We didn't find a better echo, so look for alternatives.
  16894. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  16895. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  16896. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16897. + # This shell has a builtin print -r that does the trick.
  16898. + ECHO='print -r'
  16899. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  16900. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  16901. + # If we have ksh, try running configure again with it.
  16902. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16903. + export ORIGINAL_CONFIG_SHELL
  16904. + CONFIG_SHELL=/bin/ksh
  16905. + export CONFIG_SHELL
  16906. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16907. + else
  16908. + # Try using printf.
  16909. + ECHO='printf %s\n'
  16910. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16911. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16912. test "X$echo_testing_string" = "X$echo_test_string"; then
  16913. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16914. - else
  16915. - # maybe with a smaller string...
  16916. - prev=:
  16917. + # Cool, printf works
  16918. + :
  16919. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16920. + test "X$echo_testing_string" = 'X\t' &&
  16921. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16922. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16923. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16924. + export CONFIG_SHELL
  16925. + SHELL="$CONFIG_SHELL"
  16926. + export SHELL
  16927. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16928. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16929. + test "X$echo_testing_string" = 'X\t' &&
  16930. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16931. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16932. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16933. + else
  16934. + # maybe with a smaller string...
  16935. + prev=:
  16936. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16937. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  16938. - then
  16939. - break
  16940. - fi
  16941. - prev="$cmd"
  16942. - done
  16943. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16944. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  16945. + then
  16946. + break
  16947. + fi
  16948. + prev="$cmd"
  16949. + done
  16950. - if test "$prev" != 'sed 50q "$0"'; then
  16951. - echo_test_string=`eval $prev`
  16952. - export echo_test_string
  16953. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16954. - else
  16955. - # Oops. We lost completely, so just stick with echo.
  16956. - echo=echo
  16957. - fi
  16958. + if test "$prev" != 'sed 50q "$0"'; then
  16959. + echo_test_string=`eval $prev`
  16960. + export echo_test_string
  16961. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16962. + else
  16963. + # Oops. We lost completely, so just stick with echo.
  16964. + ECHO=echo
  16965. + fi
  16966. + fi
  16967. fi
  16968. fi
  16969. fi
  16970. fi
  16971. -fi
  16972. # Copy echo and quote the copy suitably for passing to libtool from
  16973. # the Makefile, instead of quoting the original, which is used later.
  16974. -ECHO=$echo
  16975. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16976. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16977. +lt_ECHO=$ECHO
  16978. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16979. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16980. fi
  16981. -tagnames=${tagnames+${tagnames},}CXX
  16982. -
  16983. -tagnames=${tagnames+${tagnames},}F77
  16984. +test -n "$DJDIR" || exec 7<&0 </dev/null
  16985. +exec 6>&1
  16986. # Name of the host.
  16987. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  16988. # so uname gets run too.
  16989. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  16990. -exec 6>&1
  16991. -
  16992. #
  16993. # Initializations.
  16994. #
  16995. ac_default_prefix=/usr/local
  16996. +ac_clean_files=
  16997. ac_config_libobj_dir=.
  16998. +LIBOBJS=
  16999. cross_compiling=no
  17000. subdirs=
  17001. MFLAGS=
  17002. MAKEFLAGS=
  17003. -SHELL=${CONFIG_SHELL-/bin/sh}
  17004. -
  17005. -# Maximum number of lines to put in a shell here document.
  17006. -# This variable seems obsolete. It should probably be removed, and
  17007. -# only ac_max_sed_lines should be used.
  17008. -: ${ac_max_here_lines=38}
  17009. # Identity of this package.
  17010. PACKAGE_NAME='MPEG Audio Decoder'
  17011. @@ -427,51 +705,201 @@
  17012. PACKAGE_VERSION='0.15.1b'
  17013. PACKAGE_STRING='MPEG Audio Decoder 0.15.1b'
  17014. PACKAGE_BUGREPORT='support@underbit.com'
  17015. +PACKAGE_URL=''
  17016. ac_unique_file="decoder.h"
  17017. # Factoring default headers for most tests.
  17018. ac_includes_default="\
  17019. #include <stdio.h>
  17020. -#if HAVE_SYS_TYPES_H
  17021. +#ifdef HAVE_SYS_TYPES_H
  17022. # include <sys/types.h>
  17023. #endif
  17024. -#if HAVE_SYS_STAT_H
  17025. +#ifdef HAVE_SYS_STAT_H
  17026. # include <sys/stat.h>
  17027. #endif
  17028. -#if STDC_HEADERS
  17029. +#ifdef STDC_HEADERS
  17030. # include <stdlib.h>
  17031. # include <stddef.h>
  17032. #else
  17033. -# if HAVE_STDLIB_H
  17034. +# ifdef HAVE_STDLIB_H
  17035. # include <stdlib.h>
  17036. # endif
  17037. #endif
  17038. -#if HAVE_STRING_H
  17039. -# if !STDC_HEADERS && HAVE_MEMORY_H
  17040. +#ifdef HAVE_STRING_H
  17041. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  17042. # include <memory.h>
  17043. # endif
  17044. # include <string.h>
  17045. #endif
  17046. -#if HAVE_STRINGS_H
  17047. +#ifdef HAVE_STRINGS_H
  17048. # include <strings.h>
  17049. #endif
  17050. -#if HAVE_INTTYPES_H
  17051. +#ifdef HAVE_INTTYPES_H
  17052. # include <inttypes.h>
  17053. -#else
  17054. -# if HAVE_STDINT_H
  17055. -# include <stdint.h>
  17056. -# endif
  17057. #endif
  17058. -#if HAVE_UNISTD_H
  17059. +#ifdef HAVE_STDINT_H
  17060. +# include <stdint.h>
  17061. +#endif
  17062. +#ifdef HAVE_UNISTD_H
  17063. # include <unistd.h>
  17064. #endif"
  17065. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS FPM ASO ASO_OBJS LIBOBJS LTLIBOBJS'
  17066. +ac_subst_vars='am__EXEEXT_FALSE
  17067. +am__EXEEXT_TRUE
  17068. +LTLIBOBJS
  17069. +LIBOBJS
  17070. +ASO_OBJS
  17071. +ASO
  17072. +FPM
  17073. +LIBTOOL_DEPS
  17074. +CPP
  17075. +OTOOL64
  17076. +OTOOL
  17077. +LIPO
  17078. +NMEDIT
  17079. +DSYMUTIL
  17080. +lt_ECHO
  17081. +RANLIB
  17082. +AR
  17083. +OBJDUMP
  17084. +LN_S
  17085. +NM
  17086. +ac_ct_DUMPBIN
  17087. +DUMPBIN
  17088. +LD
  17089. +FGREP
  17090. +EGREP
  17091. +GREP
  17092. +SED
  17093. +LIBTOOL
  17094. +am__fastdepCCAS_FALSE
  17095. +am__fastdepCCAS_TRUE
  17096. +CCASDEPMODE
  17097. +CCASFLAGS
  17098. +CCAS
  17099. +am__fastdepCC_FALSE
  17100. +am__fastdepCC_TRUE
  17101. +CCDEPMODE
  17102. +AMDEPBACKSLASH
  17103. +AMDEP_FALSE
  17104. +AMDEP_TRUE
  17105. +am__quote
  17106. +am__include
  17107. +DEPDIR
  17108. +OBJEXT
  17109. +EXEEXT
  17110. +ac_ct_CC
  17111. +CPPFLAGS
  17112. +LDFLAGS
  17113. +CFLAGS
  17114. +CC
  17115. +host_os
  17116. +host_vendor
  17117. +host_cpu
  17118. +host
  17119. +build_os
  17120. +build_vendor
  17121. +build_cpu
  17122. +build
  17123. +am__untar
  17124. +am__tar
  17125. +AMTAR
  17126. +am__leading_dot
  17127. +SET_MAKE
  17128. +AWK
  17129. +mkdir_p
  17130. +MKDIR_P
  17131. +INSTALL_STRIP_PROGRAM
  17132. +STRIP
  17133. +install_sh
  17134. +MAKEINFO
  17135. +AUTOHEADER
  17136. +AUTOMAKE
  17137. +AUTOCONF
  17138. +ACLOCAL
  17139. +VERSION
  17140. +PACKAGE
  17141. +CYGPATH_W
  17142. +am__isrc
  17143. +INSTALL_DATA
  17144. +INSTALL_SCRIPT
  17145. +INSTALL_PROGRAM
  17146. +target_alias
  17147. +host_alias
  17148. +build_alias
  17149. +LIBS
  17150. +ECHO_T
  17151. +ECHO_N
  17152. +ECHO_C
  17153. +DEFS
  17154. +mandir
  17155. +localedir
  17156. +libdir
  17157. +psdir
  17158. +pdfdir
  17159. +dvidir
  17160. +htmldir
  17161. +infodir
  17162. +docdir
  17163. +oldincludedir
  17164. +includedir
  17165. +localstatedir
  17166. +sharedstatedir
  17167. +sysconfdir
  17168. +datadir
  17169. +datarootdir
  17170. +libexecdir
  17171. +sbindir
  17172. +bindir
  17173. +program_transform_name
  17174. +prefix
  17175. +exec_prefix
  17176. +PACKAGE_URL
  17177. +PACKAGE_BUGREPORT
  17178. +PACKAGE_STRING
  17179. +PACKAGE_VERSION
  17180. +PACKAGE_TARNAME
  17181. +PACKAGE_NAME
  17182. +PATH_SEPARATOR
  17183. +SHELL'
  17184. ac_subst_files=''
  17185. +ac_user_opts='
  17186. +enable_option_checking
  17187. +enable_dependency_tracking
  17188. +enable_shared
  17189. +enable_static
  17190. +with_pic
  17191. +enable_fast_install
  17192. +with_gnu_ld
  17193. +enable_libtool_lock
  17194. +enable_speed
  17195. +enable_accuracy
  17196. +enable_fpm
  17197. +enable_sso
  17198. +enable_aso
  17199. +enable_strict_iso
  17200. +enable_profiling
  17201. +enable_debugging
  17202. +enable_experimental
  17203. +'
  17204. + ac_precious_vars='build_alias
  17205. +host_alias
  17206. +target_alias
  17207. +CC
  17208. +CFLAGS
  17209. +LDFLAGS
  17210. +LIBS
  17211. +CPPFLAGS
  17212. +CCAS
  17213. +CCASFLAGS
  17214. +CPP'
  17215. +
  17216. # Initialize some variables set by options.
  17217. ac_init_help=
  17218. ac_init_version=false
  17219. +ac_unrecognized_opts=
  17220. +ac_unrecognized_sep=
  17221. # The variables have the same names as the options, with
  17222. # dashes changed to underlines.
  17223. cache_file=/dev/null
  17224. @@ -494,34 +922,48 @@
  17225. # and all the variables that are supposed to be based on exec_prefix
  17226. # by default will actually change.
  17227. # Use braces instead of parens because sh, perl, etc. also accept them.
  17228. +# (The list follows the same order as the GNU Coding Standards.)
  17229. bindir='${exec_prefix}/bin'
  17230. sbindir='${exec_prefix}/sbin'
  17231. libexecdir='${exec_prefix}/libexec'
  17232. -datadir='${prefix}/share'
  17233. +datarootdir='${prefix}/share'
  17234. +datadir='${datarootdir}'
  17235. sysconfdir='${prefix}/etc'
  17236. sharedstatedir='${prefix}/com'
  17237. localstatedir='${prefix}/var'
  17238. -libdir='${exec_prefix}/lib'
  17239. includedir='${prefix}/include'
  17240. oldincludedir='/usr/include'
  17241. -infodir='${prefix}/info'
  17242. -mandir='${prefix}/man'
  17243. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  17244. +infodir='${datarootdir}/info'
  17245. +htmldir='${docdir}'
  17246. +dvidir='${docdir}'
  17247. +pdfdir='${docdir}'
  17248. +psdir='${docdir}'
  17249. +libdir='${exec_prefix}/lib'
  17250. +localedir='${datarootdir}/locale'
  17251. +mandir='${datarootdir}/man'
  17252. ac_prev=
  17253. +ac_dashdash=
  17254. for ac_option
  17255. do
  17256. # If the previous option needs an argument, assign it.
  17257. if test -n "$ac_prev"; then
  17258. - eval "$ac_prev=\$ac_option"
  17259. + eval $ac_prev=\$ac_option
  17260. ac_prev=
  17261. continue
  17262. fi
  17263. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  17264. + case $ac_option in
  17265. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  17266. + *) ac_optarg=yes ;;
  17267. + esac
  17268. # Accept the important Cygnus configure options, so we can diagnose typos.
  17269. - case $ac_option in
  17270. + case $ac_dashdash$ac_option in
  17271. + --)
  17272. + ac_dashdash=yes ;;
  17273. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  17274. ac_prev=bindir ;;
  17275. @@ -543,33 +985,59 @@
  17276. --config-cache | -C)
  17277. cache_file=config.cache ;;
  17278. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  17279. + -datadir | --datadir | --datadi | --datad)
  17280. ac_prev=datadir ;;
  17281. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  17282. - | --da=*)
  17283. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  17284. datadir=$ac_optarg ;;
  17285. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  17286. + | --dataroo | --dataro | --datar)
  17287. + ac_prev=datarootdir ;;
  17288. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  17289. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  17290. + datarootdir=$ac_optarg ;;
  17291. +
  17292. -disable-* | --disable-*)
  17293. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17294. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17295. # Reject names that are not valid shell variable names.
  17296. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17297. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17298. - { (exit 1); exit 1; }; }
  17299. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17300. - eval "enable_$ac_feature=no" ;;
  17301. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17302. + as_fn_error "invalid feature name: $ac_useropt"
  17303. + ac_useropt_orig=$ac_useropt
  17304. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17305. + case $ac_user_opts in
  17306. + *"
  17307. +"enable_$ac_useropt"
  17308. +"*) ;;
  17309. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  17310. + ac_unrecognized_sep=', ';;
  17311. + esac
  17312. + eval enable_$ac_useropt=no ;;
  17313. +
  17314. + -docdir | --docdir | --docdi | --doc | --do)
  17315. + ac_prev=docdir ;;
  17316. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  17317. + docdir=$ac_optarg ;;
  17318. +
  17319. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  17320. + ac_prev=dvidir ;;
  17321. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  17322. + dvidir=$ac_optarg ;;
  17323. -enable-* | --enable-*)
  17324. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17325. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17326. # Reject names that are not valid shell variable names.
  17327. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17328. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17329. - { (exit 1); exit 1; }; }
  17330. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17331. - case $ac_option in
  17332. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  17333. - *) ac_optarg=yes ;;
  17334. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17335. + as_fn_error "invalid feature name: $ac_useropt"
  17336. + ac_useropt_orig=$ac_useropt
  17337. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17338. + case $ac_user_opts in
  17339. + *"
  17340. +"enable_$ac_useropt"
  17341. +"*) ;;
  17342. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  17343. + ac_unrecognized_sep=', ';;
  17344. esac
  17345. - eval "enable_$ac_feature='$ac_optarg'" ;;
  17346. + eval enable_$ac_useropt=\$ac_optarg ;;
  17347. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  17348. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  17349. @@ -596,6 +1064,12 @@
  17350. -host=* | --host=* | --hos=* | --ho=*)
  17351. host_alias=$ac_optarg ;;
  17352. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  17353. + ac_prev=htmldir ;;
  17354. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  17355. + | --ht=*)
  17356. + htmldir=$ac_optarg ;;
  17357. +
  17358. -includedir | --includedir | --includedi | --included | --include \
  17359. | --includ | --inclu | --incl | --inc)
  17360. ac_prev=includedir ;;
  17361. @@ -620,13 +1094,16 @@
  17362. | --libexe=* | --libex=* | --libe=*)
  17363. libexecdir=$ac_optarg ;;
  17364. + -localedir | --localedir | --localedi | --localed | --locale)
  17365. + ac_prev=localedir ;;
  17366. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  17367. + localedir=$ac_optarg ;;
  17368. +
  17369. -localstatedir | --localstatedir | --localstatedi | --localstated \
  17370. - | --localstate | --localstat | --localsta | --localst \
  17371. - | --locals | --local | --loca | --loc | --lo)
  17372. + | --localstate | --localstat | --localsta | --localst | --locals)
  17373. ac_prev=localstatedir ;;
  17374. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  17375. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  17376. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  17377. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  17378. localstatedir=$ac_optarg ;;
  17379. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  17380. @@ -691,6 +1168,16 @@
  17381. | --progr-tra=* | --program-tr=* | --program-t=*)
  17382. program_transform_name=$ac_optarg ;;
  17383. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  17384. + ac_prev=pdfdir ;;
  17385. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  17386. + pdfdir=$ac_optarg ;;
  17387. +
  17388. + -psdir | --psdir | --psdi | --psd | --ps)
  17389. + ac_prev=psdir ;;
  17390. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  17391. + psdir=$ac_optarg ;;
  17392. +
  17393. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17394. | -silent | --silent | --silen | --sile | --sil)
  17395. silent=yes ;;
  17396. @@ -741,26 +1228,36 @@
  17397. ac_init_version=: ;;
  17398. -with-* | --with-*)
  17399. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17400. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17401. # Reject names that are not valid shell variable names.
  17402. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17403. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17404. - { (exit 1); exit 1; }; }
  17405. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  17406. - case $ac_option in
  17407. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  17408. - *) ac_optarg=yes ;;
  17409. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17410. + as_fn_error "invalid package name: $ac_useropt"
  17411. + ac_useropt_orig=$ac_useropt
  17412. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17413. + case $ac_user_opts in
  17414. + *"
  17415. +"with_$ac_useropt"
  17416. +"*) ;;
  17417. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  17418. + ac_unrecognized_sep=', ';;
  17419. esac
  17420. - eval "with_$ac_package='$ac_optarg'" ;;
  17421. + eval with_$ac_useropt=\$ac_optarg ;;
  17422. -without-* | --without-*)
  17423. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17424. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17425. # Reject names that are not valid shell variable names.
  17426. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17427. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17428. - { (exit 1); exit 1; }; }
  17429. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  17430. - eval "with_$ac_package=no" ;;
  17431. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17432. + as_fn_error "invalid package name: $ac_useropt"
  17433. + ac_useropt_orig=$ac_useropt
  17434. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17435. + case $ac_user_opts in
  17436. + *"
  17437. +"with_$ac_useropt"
  17438. +"*) ;;
  17439. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  17440. + ac_unrecognized_sep=', ';;
  17441. + esac
  17442. + eval with_$ac_useropt=no ;;
  17443. --x)
  17444. # Obsolete; use --with-x.
  17445. @@ -780,26 +1277,25 @@
  17446. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  17447. x_libraries=$ac_optarg ;;
  17448. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  17449. -Try \`$0 --help' for more information." >&2
  17450. - { (exit 1); exit 1; }; }
  17451. + -*) as_fn_error "unrecognized option: \`$ac_option'
  17452. +Try \`$0 --help' for more information."
  17453. ;;
  17454. *=*)
  17455. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  17456. # Reject names that are not valid shell variable names.
  17457. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  17458. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  17459. - { (exit 1); exit 1; }; }
  17460. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  17461. - eval "$ac_envvar='$ac_optarg'"
  17462. + case $ac_envvar in #(
  17463. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  17464. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  17465. + esac
  17466. + eval $ac_envvar=\$ac_optarg
  17467. export $ac_envvar ;;
  17468. *)
  17469. # FIXME: should be removed in autoconf 3.0.
  17470. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17471. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17472. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17473. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17474. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17475. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  17476. ;;
  17477. @@ -808,31 +1304,36 @@
  17478. if test -n "$ac_prev"; then
  17479. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  17480. - { echo "$as_me: error: missing argument to $ac_option" >&2
  17481. - { (exit 1); exit 1; }; }
  17482. + as_fn_error "missing argument to $ac_option"
  17483. fi
  17484. -# Be sure to have absolute paths.
  17485. -for ac_var in exec_prefix prefix
  17486. -do
  17487. - eval ac_val=$`echo $ac_var`
  17488. - case $ac_val in
  17489. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  17490. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17491. - { (exit 1); exit 1; }; };;
  17492. +if test -n "$ac_unrecognized_opts"; then
  17493. + case $enable_option_checking in
  17494. + no) ;;
  17495. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  17496. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  17497. esac
  17498. -done
  17499. +fi
  17500. -# Be sure to have absolute paths.
  17501. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  17502. - localstatedir libdir includedir oldincludedir infodir mandir
  17503. +# Check all directory arguments for consistency.
  17504. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  17505. + datadir sysconfdir sharedstatedir localstatedir includedir \
  17506. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  17507. + libdir localedir mandir
  17508. do
  17509. - eval ac_val=$`echo $ac_var`
  17510. + eval ac_val=\$$ac_var
  17511. + # Remove trailing slashes.
  17512. + case $ac_val in
  17513. + */ )
  17514. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  17515. + eval $ac_var=\$ac_val;;
  17516. + esac
  17517. + # Be sure to have absolute directory names.
  17518. case $ac_val in
  17519. - [\\/$]* | ?:[\\/]* ) ;;
  17520. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17521. - { (exit 1); exit 1; }; };;
  17522. + [\\/$]* | ?:[\\/]* ) continue;;
  17523. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  17524. esac
  17525. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  17526. done
  17527. # There might be people who depend on the old broken behavior: `$host'
  17528. @@ -846,7 +1347,7 @@
  17529. if test "x$host_alias" != x; then
  17530. if test "x$build_alias" = x; then
  17531. cross_compiling=maybe
  17532. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17533. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17534. If a cross compiler is detected then cross compile mode will be used." >&2
  17535. elif test "x$build_alias" != "x$host_alias"; then
  17536. cross_compiling=yes
  17537. @@ -859,102 +1360,72 @@
  17538. test "$silent" = yes && exec 6>/dev/null
  17539. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  17540. +ac_ls_di=`ls -di .` &&
  17541. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  17542. + as_fn_error "working directory cannot be determined"
  17543. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  17544. + as_fn_error "pwd does not report name of working directory"
  17545. +
  17546. +
  17547. # Find the source files, if location was not specified.
  17548. if test -z "$srcdir"; then
  17549. ac_srcdir_defaulted=yes
  17550. - # Try the directory containing this script, then its parent.
  17551. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  17552. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17553. - X"$0" : 'X\(//\)[^/]' \| \
  17554. - X"$0" : 'X\(//\)$' \| \
  17555. - X"$0" : 'X\(/\)' \| \
  17556. - . : '\(.\)' 2>/dev/null ||
  17557. -echo X"$0" |
  17558. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  17559. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  17560. - /^X\(\/\/\)$/{ s//\1/; q; }
  17561. - /^X\(\/\).*/{ s//\1/; q; }
  17562. - s/.*/./; q'`
  17563. + # Try the directory containing this script, then the parent directory.
  17564. + ac_confdir=`$as_dirname -- "$as_myself" ||
  17565. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17566. + X"$as_myself" : 'X\(//\)[^/]' \| \
  17567. + X"$as_myself" : 'X\(//\)$' \| \
  17568. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  17569. +$as_echo X"$as_myself" |
  17570. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17571. + s//\1/
  17572. + q
  17573. + }
  17574. + /^X\(\/\/\)[^/].*/{
  17575. + s//\1/
  17576. + q
  17577. + }
  17578. + /^X\(\/\/\)$/{
  17579. + s//\1/
  17580. + q
  17581. + }
  17582. + /^X\(\/\).*/{
  17583. + s//\1/
  17584. + q
  17585. + }
  17586. + s/.*/./; q'`
  17587. srcdir=$ac_confdir
  17588. - if test ! -r $srcdir/$ac_unique_file; then
  17589. + if test ! -r "$srcdir/$ac_unique_file"; then
  17590. srcdir=..
  17591. fi
  17592. else
  17593. ac_srcdir_defaulted=no
  17594. fi
  17595. -if test ! -r $srcdir/$ac_unique_file; then
  17596. - if test "$ac_srcdir_defaulted" = yes; then
  17597. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  17598. - { (exit 1); exit 1; }; }
  17599. - else
  17600. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  17601. - { (exit 1); exit 1; }; }
  17602. - fi
  17603. -fi
  17604. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  17605. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  17606. - { (exit 1); exit 1; }; }
  17607. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  17608. -ac_env_build_alias_set=${build_alias+set}
  17609. -ac_env_build_alias_value=$build_alias
  17610. -ac_cv_env_build_alias_set=${build_alias+set}
  17611. -ac_cv_env_build_alias_value=$build_alias
  17612. -ac_env_host_alias_set=${host_alias+set}
  17613. -ac_env_host_alias_value=$host_alias
  17614. -ac_cv_env_host_alias_set=${host_alias+set}
  17615. -ac_cv_env_host_alias_value=$host_alias
  17616. -ac_env_target_alias_set=${target_alias+set}
  17617. -ac_env_target_alias_value=$target_alias
  17618. -ac_cv_env_target_alias_set=${target_alias+set}
  17619. -ac_cv_env_target_alias_value=$target_alias
  17620. -ac_env_CC_set=${CC+set}
  17621. -ac_env_CC_value=$CC
  17622. -ac_cv_env_CC_set=${CC+set}
  17623. -ac_cv_env_CC_value=$CC
  17624. -ac_env_CFLAGS_set=${CFLAGS+set}
  17625. -ac_env_CFLAGS_value=$CFLAGS
  17626. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  17627. -ac_cv_env_CFLAGS_value=$CFLAGS
  17628. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  17629. -ac_env_LDFLAGS_value=$LDFLAGS
  17630. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  17631. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  17632. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  17633. -ac_env_CPPFLAGS_value=$CPPFLAGS
  17634. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  17635. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  17636. -ac_env_CCAS_set=${CCAS+set}
  17637. -ac_env_CCAS_value=$CCAS
  17638. -ac_cv_env_CCAS_set=${CCAS+set}
  17639. -ac_cv_env_CCAS_value=$CCAS
  17640. -ac_env_CCASFLAGS_set=${CCASFLAGS+set}
  17641. -ac_env_CCASFLAGS_value=$CCASFLAGS
  17642. -ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
  17643. -ac_cv_env_CCASFLAGS_value=$CCASFLAGS
  17644. -ac_env_CPP_set=${CPP+set}
  17645. -ac_env_CPP_value=$CPP
  17646. -ac_cv_env_CPP_set=${CPP+set}
  17647. -ac_cv_env_CPP_value=$CPP
  17648. -ac_env_CXX_set=${CXX+set}
  17649. -ac_env_CXX_value=$CXX
  17650. -ac_cv_env_CXX_set=${CXX+set}
  17651. -ac_cv_env_CXX_value=$CXX
  17652. -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  17653. -ac_env_CXXFLAGS_value=$CXXFLAGS
  17654. -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  17655. -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  17656. -ac_env_CXXCPP_set=${CXXCPP+set}
  17657. -ac_env_CXXCPP_value=$CXXCPP
  17658. -ac_cv_env_CXXCPP_set=${CXXCPP+set}
  17659. -ac_cv_env_CXXCPP_value=$CXXCPP
  17660. -ac_env_F77_set=${F77+set}
  17661. -ac_env_F77_value=$F77
  17662. -ac_cv_env_F77_set=${F77+set}
  17663. -ac_cv_env_F77_value=$F77
  17664. -ac_env_FFLAGS_set=${FFLAGS+set}
  17665. -ac_env_FFLAGS_value=$FFLAGS
  17666. -ac_cv_env_FFLAGS_set=${FFLAGS+set}
  17667. -ac_cv_env_FFLAGS_value=$FFLAGS
  17668. +if test ! -r "$srcdir/$ac_unique_file"; then
  17669. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  17670. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  17671. +fi
  17672. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  17673. +ac_abs_confdir=`(
  17674. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  17675. + pwd)`
  17676. +# When building in place, set srcdir=.
  17677. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  17678. + srcdir=.
  17679. +fi
  17680. +# Remove unnecessary trailing slashes from srcdir.
  17681. +# Double slashes in file names in object file debugging info
  17682. +# mess up M-x gdb in Emacs.
  17683. +case $srcdir in
  17684. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  17685. +esac
  17686. +for ac_var in $ac_precious_vars; do
  17687. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  17688. + eval ac_env_${ac_var}_value=\$${ac_var}
  17689. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  17690. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  17691. +done
  17692. #
  17693. # Report the --help message.
  17694. @@ -983,14 +1454,11 @@
  17695. -n, --no-create do not create output files
  17696. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  17697. -_ACEOF
  17698. -
  17699. - cat <<_ACEOF
  17700. Installation directories:
  17701. --prefix=PREFIX install architecture-independent files in PREFIX
  17702. - [$ac_default_prefix]
  17703. + [$ac_default_prefix]
  17704. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  17705. - [PREFIX]
  17706. + [PREFIX]
  17707. By default, \`make install' will install all the files in
  17708. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  17709. @@ -1000,18 +1468,25 @@
  17710. For better control, use the options below.
  17711. Fine tuning of the installation directories:
  17712. - --bindir=DIR user executables [EPREFIX/bin]
  17713. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  17714. - --libexecdir=DIR program executables [EPREFIX/libexec]
  17715. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  17716. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17717. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17718. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17719. - --libdir=DIR object code libraries [EPREFIX/lib]
  17720. - --includedir=DIR C header files [PREFIX/include]
  17721. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17722. - --infodir=DIR info documentation [PREFIX/info]
  17723. - --mandir=DIR man documentation [PREFIX/man]
  17724. + --bindir=DIR user executables [EPREFIX/bin]
  17725. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  17726. + --libexecdir=DIR program executables [EPREFIX/libexec]
  17727. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17728. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17729. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17730. + --libdir=DIR object code libraries [EPREFIX/lib]
  17731. + --includedir=DIR C header files [PREFIX/include]
  17732. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17733. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17734. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17735. + --infodir=DIR info documentation [DATAROOTDIR/info]
  17736. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17737. + --mandir=DIR man documentation [DATAROOTDIR/man]
  17738. + --docdir=DIR documentation root [DATAROOTDIR/doc/libmad]
  17739. + --htmldir=DIR html documentation [DOCDIR]
  17740. + --dvidir=DIR dvi documentation [DOCDIR]
  17741. + --pdfdir=DIR pdf documentation [DOCDIR]
  17742. + --psdir=DIR ps documentation [DOCDIR]
  17743. _ACEOF
  17744. cat <<\_ACEOF
  17745. @@ -1034,14 +1509,13 @@
  17746. cat <<\_ACEOF
  17747. Optional Features:
  17748. + --disable-option-checking ignore unrecognized --enable/--with options
  17749. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  17750. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  17751. --disable-dependency-tracking speeds up one-time build
  17752. --enable-dependency-tracking do not reject slow dependency extractors
  17753. - --enable-shared[=PKGS]
  17754. - build shared libraries [default=yes]
  17755. - --enable-static[=PKGS]
  17756. - build static libraries [default=yes]
  17757. + --enable-shared[=PKGS] build shared libraries [default=yes]
  17758. + --enable-static[=PKGS] build static libraries [default=yes]
  17759. --enable-fast-install[=PKGS]
  17760. optimize for fast installation [default=yes]
  17761. --disable-libtool-lock avoid locking (might break parallel builds)
  17762. @@ -1060,147 +1534,698 @@
  17763. Optional Packages:
  17764. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  17765. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  17766. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17767. --with-pic try to use only PIC/non-PIC objects [default=use
  17768. both]
  17769. - --with-tags[=TAGS]
  17770. - include additional configurations [automatic]
  17771. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17772. Some influential environment variables:
  17773. CC C compiler command
  17774. CFLAGS C compiler flags
  17775. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  17776. nonstandard directory <lib dir>
  17777. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  17778. - headers in a nonstandard directory <include dir>
  17779. + LIBS libraries to pass to the linker, e.g. -l<library>
  17780. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  17781. + you have headers in a nonstandard directory <include dir>
  17782. CCAS assembler compiler command (defaults to CC)
  17783. CCASFLAGS assembler compiler flags (defaults to CFLAGS)
  17784. CPP C preprocessor
  17785. - CXX C++ compiler command
  17786. - CXXFLAGS C++ compiler flags
  17787. - CXXCPP C++ preprocessor
  17788. - F77 Fortran 77 compiler command
  17789. - FFLAGS Fortran 77 compiler flags
  17790. Use these variables to override the choices made by `configure' or to help
  17791. it to find libraries and programs with nonstandard names/locations.
  17792. Report bugs to <support@underbit.com>.
  17793. _ACEOF
  17794. +ac_status=$?
  17795. fi
  17796. if test "$ac_init_help" = "recursive"; then
  17797. # If there are subdirs, report their specific --help.
  17798. - ac_popdir=`pwd`
  17799. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  17800. - test -d $ac_dir || continue
  17801. + test -d "$ac_dir" ||
  17802. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  17803. + continue
  17804. ac_builddir=.
  17805. -if test "$ac_dir" != .; then
  17806. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17807. - # A "../" for each directory in $ac_dir_suffix.
  17808. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  17809. -else
  17810. - ac_dir_suffix= ac_top_builddir=
  17811. -fi
  17812. +case "$ac_dir" in
  17813. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17814. +*)
  17815. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17816. + # A ".." for each directory in $ac_dir_suffix.
  17817. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17818. + case $ac_top_builddir_sub in
  17819. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17820. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17821. + esac ;;
  17822. +esac
  17823. +ac_abs_top_builddir=$ac_pwd
  17824. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17825. +# for backward compatibility:
  17826. +ac_top_builddir=$ac_top_build_prefix
  17827. case $srcdir in
  17828. - .) # No --srcdir option. We are building in place.
  17829. + .) # We are building in place.
  17830. ac_srcdir=.
  17831. - if test -z "$ac_top_builddir"; then
  17832. - ac_top_srcdir=.
  17833. - else
  17834. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  17835. - fi ;;
  17836. - [\\/]* | ?:[\\/]* ) # Absolute path.
  17837. + ac_top_srcdir=$ac_top_builddir_sub
  17838. + ac_abs_top_srcdir=$ac_pwd ;;
  17839. + [\\/]* | ?:[\\/]* ) # Absolute name.
  17840. ac_srcdir=$srcdir$ac_dir_suffix;
  17841. - ac_top_srcdir=$srcdir ;;
  17842. - *) # Relative path.
  17843. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  17844. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  17845. -esac
  17846. -
  17847. -# Do not use `cd foo && pwd` to compute absolute paths, because
  17848. -# the directories may not exist.
  17849. -case `pwd` in
  17850. -.) ac_abs_builddir="$ac_dir";;
  17851. -*)
  17852. - case "$ac_dir" in
  17853. - .) ac_abs_builddir=`pwd`;;
  17854. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  17855. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  17856. - esac;;
  17857. -esac
  17858. -case $ac_abs_builddir in
  17859. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  17860. -*)
  17861. - case ${ac_top_builddir}. in
  17862. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  17863. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  17864. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  17865. - esac;;
  17866. -esac
  17867. -case $ac_abs_builddir in
  17868. -.) ac_abs_srcdir=$ac_srcdir;;
  17869. -*)
  17870. - case $ac_srcdir in
  17871. - .) ac_abs_srcdir=$ac_abs_builddir;;
  17872. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  17873. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  17874. - esac;;
  17875. -esac
  17876. -case $ac_abs_builddir in
  17877. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  17878. -*)
  17879. - case $ac_top_srcdir in
  17880. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  17881. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  17882. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  17883. - esac;;
  17884. -esac
  17885. -
  17886. - cd $ac_dir
  17887. - # Check for guested configure; otherwise get Cygnus style configure.
  17888. - if test -f $ac_srcdir/configure.gnu; then
  17889. - echo
  17890. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  17891. - elif test -f $ac_srcdir/configure; then
  17892. - echo
  17893. - $SHELL $ac_srcdir/configure --help=recursive
  17894. - elif test -f $ac_srcdir/configure.ac ||
  17895. - test -f $ac_srcdir/configure.in; then
  17896. - echo
  17897. - $ac_configure --help
  17898. + ac_top_srcdir=$srcdir
  17899. + ac_abs_top_srcdir=$srcdir ;;
  17900. + *) # Relative name.
  17901. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17902. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  17903. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17904. +esac
  17905. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17906. +
  17907. + cd "$ac_dir" || { ac_status=$?; continue; }
  17908. + # Check for guested configure.
  17909. + if test -f "$ac_srcdir/configure.gnu"; then
  17910. + echo &&
  17911. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  17912. + elif test -f "$ac_srcdir/configure"; then
  17913. + echo &&
  17914. + $SHELL "$ac_srcdir/configure" --help=recursive
  17915. else
  17916. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17917. - fi
  17918. - cd "$ac_popdir"
  17919. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17920. + fi || ac_status=$?
  17921. + cd "$ac_pwd" || { ac_status=$?; break; }
  17922. done
  17923. fi
  17924. -test -n "$ac_init_help" && exit 0
  17925. +test -n "$ac_init_help" && exit $ac_status
  17926. if $ac_init_version; then
  17927. cat <<\_ACEOF
  17928. MPEG Audio Decoder configure 0.15.1b
  17929. -generated by GNU Autoconf 2.59
  17930. +generated by GNU Autoconf 2.65
  17931. -Copyright (C) 2003 Free Software Foundation, Inc.
  17932. +Copyright (C) 2009 Free Software Foundation, Inc.
  17933. This configure script is free software; the Free Software Foundation
  17934. gives unlimited permission to copy, distribute and modify it.
  17935. _ACEOF
  17936. - exit 0
  17937. + exit
  17938. fi
  17939. -exec 5>config.log
  17940. -cat >&5 <<_ACEOF
  17941. +
  17942. +## ------------------------ ##
  17943. +## Autoconf initialization. ##
  17944. +## ------------------------ ##
  17945. +
  17946. +# ac_fn_c_try_compile LINENO
  17947. +# --------------------------
  17948. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  17949. +ac_fn_c_try_compile ()
  17950. +{
  17951. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17952. + rm -f conftest.$ac_objext
  17953. + if { { ac_try="$ac_compile"
  17954. +case "(($ac_try" in
  17955. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17956. + *) ac_try_echo=$ac_try;;
  17957. +esac
  17958. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17959. +$as_echo "$ac_try_echo"; } >&5
  17960. + (eval "$ac_compile") 2>conftest.err
  17961. + ac_status=$?
  17962. + if test -s conftest.err; then
  17963. + grep -v '^ *+' conftest.err >conftest.er1
  17964. + cat conftest.er1 >&5
  17965. + mv -f conftest.er1 conftest.err
  17966. + fi
  17967. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17968. + test $ac_status = 0; } && {
  17969. + test -z "$ac_c_werror_flag" ||
  17970. + test ! -s conftest.err
  17971. + } && test -s conftest.$ac_objext; then :
  17972. + ac_retval=0
  17973. +else
  17974. + $as_echo "$as_me: failed program was:" >&5
  17975. +sed 's/^/| /' conftest.$ac_ext >&5
  17976. +
  17977. + ac_retval=1
  17978. +fi
  17979. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17980. + as_fn_set_status $ac_retval
  17981. +
  17982. +} # ac_fn_c_try_compile
  17983. +
  17984. +# ac_fn_c_try_link LINENO
  17985. +# -----------------------
  17986. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  17987. +ac_fn_c_try_link ()
  17988. +{
  17989. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17990. + rm -f conftest.$ac_objext conftest$ac_exeext
  17991. + if { { ac_try="$ac_link"
  17992. +case "(($ac_try" in
  17993. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17994. + *) ac_try_echo=$ac_try;;
  17995. +esac
  17996. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17997. +$as_echo "$ac_try_echo"; } >&5
  17998. + (eval "$ac_link") 2>conftest.err
  17999. + ac_status=$?
  18000. + if test -s conftest.err; then
  18001. + grep -v '^ *+' conftest.err >conftest.er1
  18002. + cat conftest.er1 >&5
  18003. + mv -f conftest.er1 conftest.err
  18004. + fi
  18005. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18006. + test $ac_status = 0; } && {
  18007. + test -z "$ac_c_werror_flag" ||
  18008. + test ! -s conftest.err
  18009. + } && test -s conftest$ac_exeext && {
  18010. + test "$cross_compiling" = yes ||
  18011. + $as_test_x conftest$ac_exeext
  18012. + }; then :
  18013. + ac_retval=0
  18014. +else
  18015. + $as_echo "$as_me: failed program was:" >&5
  18016. +sed 's/^/| /' conftest.$ac_ext >&5
  18017. +
  18018. + ac_retval=1
  18019. +fi
  18020. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  18021. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  18022. + # interfere with the next link command; also delete a directory that is
  18023. + # left behind by Apple's compiler. We do this before executing the actions.
  18024. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  18025. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18026. + as_fn_set_status $ac_retval
  18027. +
  18028. +} # ac_fn_c_try_link
  18029. +
  18030. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  18031. +# -------------------------------------------------------
  18032. +# Tests whether HEADER exists and can be compiled using the include files in
  18033. +# INCLUDES, setting the cache variable VAR accordingly.
  18034. +ac_fn_c_check_header_compile ()
  18035. +{
  18036. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18037. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18038. +$as_echo_n "checking for $2... " >&6; }
  18039. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18040. + $as_echo_n "(cached) " >&6
  18041. +else
  18042. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18043. +/* end confdefs.h. */
  18044. +$4
  18045. +#include <$2>
  18046. +_ACEOF
  18047. +if ac_fn_c_try_compile "$LINENO"; then :
  18048. + eval "$3=yes"
  18049. +else
  18050. + eval "$3=no"
  18051. +fi
  18052. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18053. +fi
  18054. +eval ac_res=\$$3
  18055. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18056. +$as_echo "$ac_res" >&6; }
  18057. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18058. +
  18059. +} # ac_fn_c_check_header_compile
  18060. +
  18061. +# ac_fn_c_try_cpp LINENO
  18062. +# ----------------------
  18063. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  18064. +ac_fn_c_try_cpp ()
  18065. +{
  18066. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18067. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  18068. +case "(($ac_try" in
  18069. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18070. + *) ac_try_echo=$ac_try;;
  18071. +esac
  18072. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18073. +$as_echo "$ac_try_echo"; } >&5
  18074. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  18075. + ac_status=$?
  18076. + if test -s conftest.err; then
  18077. + grep -v '^ *+' conftest.err >conftest.er1
  18078. + cat conftest.er1 >&5
  18079. + mv -f conftest.er1 conftest.err
  18080. + fi
  18081. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18082. + test $ac_status = 0; } >/dev/null && {
  18083. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  18084. + test ! -s conftest.err
  18085. + }; then :
  18086. + ac_retval=0
  18087. +else
  18088. + $as_echo "$as_me: failed program was:" >&5
  18089. +sed 's/^/| /' conftest.$ac_ext >&5
  18090. +
  18091. + ac_retval=1
  18092. +fi
  18093. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18094. + as_fn_set_status $ac_retval
  18095. +
  18096. +} # ac_fn_c_try_cpp
  18097. +
  18098. +# ac_fn_c_try_run LINENO
  18099. +# ----------------------
  18100. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  18101. +# that executables *can* be run.
  18102. +ac_fn_c_try_run ()
  18103. +{
  18104. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18105. + if { { ac_try="$ac_link"
  18106. +case "(($ac_try" in
  18107. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18108. + *) ac_try_echo=$ac_try;;
  18109. +esac
  18110. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18111. +$as_echo "$ac_try_echo"; } >&5
  18112. + (eval "$ac_link") 2>&5
  18113. + ac_status=$?
  18114. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18115. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  18116. + { { case "(($ac_try" in
  18117. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18118. + *) ac_try_echo=$ac_try;;
  18119. +esac
  18120. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18121. +$as_echo "$ac_try_echo"; } >&5
  18122. + (eval "$ac_try") 2>&5
  18123. + ac_status=$?
  18124. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18125. + test $ac_status = 0; }; }; then :
  18126. + ac_retval=0
  18127. +else
  18128. + $as_echo "$as_me: program exited with status $ac_status" >&5
  18129. + $as_echo "$as_me: failed program was:" >&5
  18130. +sed 's/^/| /' conftest.$ac_ext >&5
  18131. +
  18132. + ac_retval=$ac_status
  18133. +fi
  18134. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  18135. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18136. + as_fn_set_status $ac_retval
  18137. +
  18138. +} # ac_fn_c_try_run
  18139. +
  18140. +# ac_fn_c_check_func LINENO FUNC VAR
  18141. +# ----------------------------------
  18142. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  18143. +ac_fn_c_check_func ()
  18144. +{
  18145. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18146. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18147. +$as_echo_n "checking for $2... " >&6; }
  18148. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18149. + $as_echo_n "(cached) " >&6
  18150. +else
  18151. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18152. +/* end confdefs.h. */
  18153. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  18154. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18155. +#define $2 innocuous_$2
  18156. +
  18157. +/* System header to define __stub macros and hopefully few prototypes,
  18158. + which can conflict with char $2 (); below.
  18159. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18160. + <limits.h> exists even on freestanding compilers. */
  18161. +
  18162. +#ifdef __STDC__
  18163. +# include <limits.h>
  18164. +#else
  18165. +# include <assert.h>
  18166. +#endif
  18167. +
  18168. +#undef $2
  18169. +
  18170. +/* Override any GCC internal prototype to avoid an error.
  18171. + Use char because int might match the return type of a GCC
  18172. + builtin and then its argument prototype would still apply. */
  18173. +#ifdef __cplusplus
  18174. +extern "C"
  18175. +#endif
  18176. +char $2 ();
  18177. +/* The GNU C library defines this for functions which it implements
  18178. + to always fail with ENOSYS. Some functions are actually named
  18179. + something starting with __ and the normal name is an alias. */
  18180. +#if defined __stub_$2 || defined __stub___$2
  18181. +choke me
  18182. +#endif
  18183. +
  18184. +int
  18185. +main ()
  18186. +{
  18187. +return $2 ();
  18188. + ;
  18189. + return 0;
  18190. +}
  18191. +_ACEOF
  18192. +if ac_fn_c_try_link "$LINENO"; then :
  18193. + eval "$3=yes"
  18194. +else
  18195. + eval "$3=no"
  18196. +fi
  18197. +rm -f core conftest.err conftest.$ac_objext \
  18198. + conftest$ac_exeext conftest.$ac_ext
  18199. +fi
  18200. +eval ac_res=\$$3
  18201. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18202. +$as_echo "$ac_res" >&6; }
  18203. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18204. +
  18205. +} # ac_fn_c_check_func
  18206. +
  18207. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  18208. +# -------------------------------------------------------
  18209. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  18210. +# the include files in INCLUDES and setting the cache variable VAR
  18211. +# accordingly.
  18212. +ac_fn_c_check_header_mongrel ()
  18213. +{
  18214. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18215. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18216. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18217. +$as_echo_n "checking for $2... " >&6; }
  18218. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18219. + $as_echo_n "(cached) " >&6
  18220. +fi
  18221. +eval ac_res=\$$3
  18222. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18223. +$as_echo "$ac_res" >&6; }
  18224. +else
  18225. + # Is the header compilable?
  18226. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  18227. +$as_echo_n "checking $2 usability... " >&6; }
  18228. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18229. +/* end confdefs.h. */
  18230. +$4
  18231. +#include <$2>
  18232. +_ACEOF
  18233. +if ac_fn_c_try_compile "$LINENO"; then :
  18234. + ac_header_compiler=yes
  18235. +else
  18236. + ac_header_compiler=no
  18237. +fi
  18238. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18239. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  18240. +$as_echo "$ac_header_compiler" >&6; }
  18241. +
  18242. +# Is the header present?
  18243. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  18244. +$as_echo_n "checking $2 presence... " >&6; }
  18245. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18246. +/* end confdefs.h. */
  18247. +#include <$2>
  18248. +_ACEOF
  18249. +if ac_fn_c_try_cpp "$LINENO"; then :
  18250. + ac_header_preproc=yes
  18251. +else
  18252. + ac_header_preproc=no
  18253. +fi
  18254. +rm -f conftest.err conftest.$ac_ext
  18255. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  18256. +$as_echo "$ac_header_preproc" >&6; }
  18257. +
  18258. +# So? What about this header?
  18259. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  18260. + yes:no: )
  18261. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  18262. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18263. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18264. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18265. + ;;
  18266. + no:yes:* )
  18267. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  18268. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  18269. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  18270. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  18271. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  18272. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  18273. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  18274. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  18275. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18276. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18277. +( cat <<\_ASBOX
  18278. +## ----------------------------------- ##
  18279. +## Report this to support@underbit.com ##
  18280. +## ----------------------------------- ##
  18281. +_ASBOX
  18282. + ) | sed "s/^/$as_me: WARNING: /" >&2
  18283. + ;;
  18284. +esac
  18285. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18286. +$as_echo_n "checking for $2... " >&6; }
  18287. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18288. + $as_echo_n "(cached) " >&6
  18289. +else
  18290. + eval "$3=\$ac_header_compiler"
  18291. +fi
  18292. +eval ac_res=\$$3
  18293. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18294. +$as_echo "$ac_res" >&6; }
  18295. +fi
  18296. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18297. +
  18298. +} # ac_fn_c_check_header_mongrel
  18299. +
  18300. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  18301. +# -------------------------------------------
  18302. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  18303. +# variable VAR accordingly.
  18304. +ac_fn_c_check_type ()
  18305. +{
  18306. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18307. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18308. +$as_echo_n "checking for $2... " >&6; }
  18309. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18310. + $as_echo_n "(cached) " >&6
  18311. +else
  18312. + eval "$3=no"
  18313. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18314. +/* end confdefs.h. */
  18315. +$4
  18316. +int
  18317. +main ()
  18318. +{
  18319. +if (sizeof ($2))
  18320. + return 0;
  18321. + ;
  18322. + return 0;
  18323. +}
  18324. +_ACEOF
  18325. +if ac_fn_c_try_compile "$LINENO"; then :
  18326. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18327. +/* end confdefs.h. */
  18328. +$4
  18329. +int
  18330. +main ()
  18331. +{
  18332. +if (sizeof (($2)))
  18333. + return 0;
  18334. + ;
  18335. + return 0;
  18336. +}
  18337. +_ACEOF
  18338. +if ac_fn_c_try_compile "$LINENO"; then :
  18339. +
  18340. +else
  18341. + eval "$3=yes"
  18342. +fi
  18343. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18344. +fi
  18345. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18346. +fi
  18347. +eval ac_res=\$$3
  18348. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18349. +$as_echo "$ac_res" >&6; }
  18350. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18351. +
  18352. +} # ac_fn_c_check_type
  18353. +
  18354. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  18355. +# --------------------------------------------
  18356. +# Tries to find the compile-time value of EXPR in a program that includes
  18357. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  18358. +# computed
  18359. +ac_fn_c_compute_int ()
  18360. +{
  18361. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18362. + if test "$cross_compiling" = yes; then
  18363. + # Depending upon the size, compute the lo and hi bounds.
  18364. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18365. +/* end confdefs.h. */
  18366. +$4
  18367. +int
  18368. +main ()
  18369. +{
  18370. +static int test_array [1 - 2 * !(($2) >= 0)];
  18371. +test_array [0] = 0
  18372. +
  18373. + ;
  18374. + return 0;
  18375. +}
  18376. +_ACEOF
  18377. +if ac_fn_c_try_compile "$LINENO"; then :
  18378. + ac_lo=0 ac_mid=0
  18379. + while :; do
  18380. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18381. +/* end confdefs.h. */
  18382. +$4
  18383. +int
  18384. +main ()
  18385. +{
  18386. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  18387. +test_array [0] = 0
  18388. +
  18389. + ;
  18390. + return 0;
  18391. +}
  18392. +_ACEOF
  18393. +if ac_fn_c_try_compile "$LINENO"; then :
  18394. + ac_hi=$ac_mid; break
  18395. +else
  18396. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  18397. + if test $ac_lo -le $ac_mid; then
  18398. + ac_lo= ac_hi=
  18399. + break
  18400. + fi
  18401. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  18402. +fi
  18403. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18404. + done
  18405. +else
  18406. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18407. +/* end confdefs.h. */
  18408. +$4
  18409. +int
  18410. +main ()
  18411. +{
  18412. +static int test_array [1 - 2 * !(($2) < 0)];
  18413. +test_array [0] = 0
  18414. +
  18415. + ;
  18416. + return 0;
  18417. +}
  18418. +_ACEOF
  18419. +if ac_fn_c_try_compile "$LINENO"; then :
  18420. + ac_hi=-1 ac_mid=-1
  18421. + while :; do
  18422. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18423. +/* end confdefs.h. */
  18424. +$4
  18425. +int
  18426. +main ()
  18427. +{
  18428. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  18429. +test_array [0] = 0
  18430. +
  18431. + ;
  18432. + return 0;
  18433. +}
  18434. +_ACEOF
  18435. +if ac_fn_c_try_compile "$LINENO"; then :
  18436. + ac_lo=$ac_mid; break
  18437. +else
  18438. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  18439. + if test $ac_mid -le $ac_hi; then
  18440. + ac_lo= ac_hi=
  18441. + break
  18442. + fi
  18443. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  18444. +fi
  18445. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18446. + done
  18447. +else
  18448. + ac_lo= ac_hi=
  18449. +fi
  18450. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18451. +fi
  18452. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18453. +# Binary search between lo and hi bounds.
  18454. +while test "x$ac_lo" != "x$ac_hi"; do
  18455. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  18456. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18457. +/* end confdefs.h. */
  18458. +$4
  18459. +int
  18460. +main ()
  18461. +{
  18462. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  18463. +test_array [0] = 0
  18464. +
  18465. + ;
  18466. + return 0;
  18467. +}
  18468. +_ACEOF
  18469. +if ac_fn_c_try_compile "$LINENO"; then :
  18470. + ac_hi=$ac_mid
  18471. +else
  18472. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  18473. +fi
  18474. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18475. +done
  18476. +case $ac_lo in #((
  18477. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  18478. +'') ac_retval=1 ;;
  18479. +esac
  18480. + else
  18481. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18482. +/* end confdefs.h. */
  18483. +$4
  18484. +static long int longval () { return $2; }
  18485. +static unsigned long int ulongval () { return $2; }
  18486. +#include <stdio.h>
  18487. +#include <stdlib.h>
  18488. +int
  18489. +main ()
  18490. +{
  18491. +
  18492. + FILE *f = fopen ("conftest.val", "w");
  18493. + if (! f)
  18494. + return 1;
  18495. + if (($2) < 0)
  18496. + {
  18497. + long int i = longval ();
  18498. + if (i != ($2))
  18499. + return 1;
  18500. + fprintf (f, "%ld", i);
  18501. + }
  18502. + else
  18503. + {
  18504. + unsigned long int i = ulongval ();
  18505. + if (i != ($2))
  18506. + return 1;
  18507. + fprintf (f, "%lu", i);
  18508. + }
  18509. + /* Do not output a trailing newline, as this causes \r\n confusion
  18510. + on some platforms. */
  18511. + return ferror (f) || fclose (f) != 0;
  18512. +
  18513. + ;
  18514. + return 0;
  18515. +}
  18516. +_ACEOF
  18517. +if ac_fn_c_try_run "$LINENO"; then :
  18518. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  18519. +else
  18520. + ac_retval=1
  18521. +fi
  18522. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  18523. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  18524. +rm -f conftest.val
  18525. +
  18526. + fi
  18527. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18528. + as_fn_set_status $ac_retval
  18529. +
  18530. +} # ac_fn_c_compute_int
  18531. +cat >config.log <<_ACEOF
  18532. This file contains any messages produced by compilers while
  18533. running configure, to aid debugging if configure makes a mistake.
  18534. It was created by MPEG Audio Decoder $as_me 0.15.1b, which was
  18535. -generated by GNU Autoconf 2.59. Invocation command line was
  18536. +generated by GNU Autoconf 2.65. Invocation command line was
  18537. $ $0 $@
  18538. _ACEOF
  18539. +exec 5>>config.log
  18540. {
  18541. cat <<_ASUNAME
  18542. ## --------- ##
  18543. @@ -1219,7 +2244,7 @@
  18544. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  18545. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  18546. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  18547. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  18548. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  18549. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  18550. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  18551. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  18552. @@ -1231,8 +2256,9 @@
  18553. do
  18554. IFS=$as_save_IFS
  18555. test -z "$as_dir" && as_dir=.
  18556. - echo "PATH: $as_dir"
  18557. -done
  18558. + $as_echo "PATH: $as_dir"
  18559. + done
  18560. +IFS=$as_save_IFS
  18561. } >&5
  18562. @@ -1254,7 +2280,6 @@
  18563. ac_configure_args=
  18564. ac_configure_args0=
  18565. ac_configure_args1=
  18566. -ac_sep=
  18567. ac_must_keep_next=false
  18568. for ac_pass in 1 2
  18569. do
  18570. @@ -1265,13 +2290,13 @@
  18571. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18572. | -silent | --silent | --silen | --sile | --sil)
  18573. continue ;;
  18574. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  18575. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18576. + *\'*)
  18577. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18578. esac
  18579. case $ac_pass in
  18580. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  18581. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  18582. 2)
  18583. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  18584. + as_fn_append ac_configure_args1 " '$ac_arg'"
  18585. if test $ac_must_keep_next = true; then
  18586. ac_must_keep_next=false # Got value, back to normal.
  18587. else
  18588. @@ -1287,21 +2312,19 @@
  18589. -* ) ac_must_keep_next=true ;;
  18590. esac
  18591. fi
  18592. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  18593. - # Get rid of the leading space.
  18594. - ac_sep=" "
  18595. + as_fn_append ac_configure_args " '$ac_arg'"
  18596. ;;
  18597. esac
  18598. done
  18599. done
  18600. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  18601. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  18602. +{ ac_configure_args0=; unset ac_configure_args0;}
  18603. +{ ac_configure_args1=; unset ac_configure_args1;}
  18604. # When interrupted or exit'd, cleanup temporary files, and complete
  18605. # config.log. We remove comments because anyway the quotes in there
  18606. # would cause problems or look ugly.
  18607. -# WARNING: Be sure not to use single quotes in there, as some shells,
  18608. -# such as our DU 5.0 friend, will then `close' the trap.
  18609. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  18610. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  18611. trap 'exit_status=$?
  18612. # Save into config.log some information that might help in debugging.
  18613. {
  18614. @@ -1314,20 +2337,35 @@
  18615. _ASBOX
  18616. echo
  18617. # The following way of writing the cache mishandles newlines in values,
  18618. -{
  18619. +(
  18620. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  18621. + eval ac_val=\$$ac_var
  18622. + case $ac_val in #(
  18623. + *${as_nl}*)
  18624. + case $ac_var in #(
  18625. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18626. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18627. + esac
  18628. + case $ac_var in #(
  18629. + _ | IFS | as_nl) ;; #(
  18630. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18631. + *) { eval $ac_var=; unset $ac_var;} ;;
  18632. + esac ;;
  18633. + esac
  18634. + done
  18635. (set) 2>&1 |
  18636. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  18637. - *ac_space=\ *)
  18638. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  18639. + *${as_nl}ac_space=\ *)
  18640. sed -n \
  18641. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  18642. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  18643. - ;;
  18644. + "s/'\''/'\''\\\\'\'''\''/g;
  18645. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  18646. + ;; #(
  18647. *)
  18648. - sed -n \
  18649. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  18650. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18651. ;;
  18652. - esac;
  18653. -}
  18654. + esac |
  18655. + sort
  18656. +)
  18657. echo
  18658. cat <<\_ASBOX
  18659. @@ -1338,22 +2376,28 @@
  18660. echo
  18661. for ac_var in $ac_subst_vars
  18662. do
  18663. - eval ac_val=$`echo $ac_var`
  18664. - echo "$ac_var='"'"'$ac_val'"'"'"
  18665. + eval ac_val=\$$ac_var
  18666. + case $ac_val in
  18667. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18668. + esac
  18669. + $as_echo "$ac_var='\''$ac_val'\''"
  18670. done | sort
  18671. echo
  18672. if test -n "$ac_subst_files"; then
  18673. cat <<\_ASBOX
  18674. -## ------------- ##
  18675. -## Output files. ##
  18676. -## ------------- ##
  18677. +## ------------------- ##
  18678. +## File substitutions. ##
  18679. +## ------------------- ##
  18680. _ASBOX
  18681. echo
  18682. for ac_var in $ac_subst_files
  18683. do
  18684. - eval ac_val=$`echo $ac_var`
  18685. - echo "$ac_var='"'"'$ac_val'"'"'"
  18686. + eval ac_val=\$$ac_var
  18687. + case $ac_val in
  18688. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18689. + esac
  18690. + $as_echo "$ac_var='\''$ac_val'\''"
  18691. done | sort
  18692. echo
  18693. fi
  18694. @@ -1365,26 +2409,26 @@
  18695. ## ----------- ##
  18696. _ASBOX
  18697. echo
  18698. - sed "/^$/d" confdefs.h | sort
  18699. + cat confdefs.h
  18700. echo
  18701. fi
  18702. test "$ac_signal" != 0 &&
  18703. - echo "$as_me: caught signal $ac_signal"
  18704. - echo "$as_me: exit $exit_status"
  18705. + $as_echo "$as_me: caught signal $ac_signal"
  18706. + $as_echo "$as_me: exit $exit_status"
  18707. } >&5
  18708. - rm -f core *.core &&
  18709. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  18710. + rm -f core *.core core.conftest.* &&
  18711. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  18712. exit $exit_status
  18713. - ' 0
  18714. +' 0
  18715. for ac_signal in 1 2 13 15; do
  18716. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  18717. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  18718. done
  18719. ac_signal=0
  18720. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  18721. -rm -rf conftest* confdefs.h
  18722. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  18723. -echo >confdefs.h
  18724. +rm -f -r conftest* confdefs.h
  18725. +
  18726. +$as_echo "/* confdefs.h */" > confdefs.h
  18727. # Predefined preprocessor variables.
  18728. @@ -1392,112 +2436,128 @@
  18729. #define PACKAGE_NAME "$PACKAGE_NAME"
  18730. _ACEOF
  18731. -
  18732. cat >>confdefs.h <<_ACEOF
  18733. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18734. _ACEOF
  18735. -
  18736. cat >>confdefs.h <<_ACEOF
  18737. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  18738. _ACEOF
  18739. -
  18740. cat >>confdefs.h <<_ACEOF
  18741. #define PACKAGE_STRING "$PACKAGE_STRING"
  18742. _ACEOF
  18743. -
  18744. cat >>confdefs.h <<_ACEOF
  18745. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18746. _ACEOF
  18747. +cat >>confdefs.h <<_ACEOF
  18748. +#define PACKAGE_URL "$PACKAGE_URL"
  18749. +_ACEOF
  18750. +
  18751. # Let the site file select an alternate cache file if it wants to.
  18752. -# Prefer explicitly selected file to automatically selected ones.
  18753. -if test -z "$CONFIG_SITE"; then
  18754. - if test "x$prefix" != xNONE; then
  18755. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  18756. - else
  18757. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  18758. - fi
  18759. -fi
  18760. -for ac_site_file in $CONFIG_SITE; do
  18761. - if test -r "$ac_site_file"; then
  18762. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  18763. -echo "$as_me: loading site script $ac_site_file" >&6;}
  18764. +# Prefer an explicitly selected file to automatically selected ones.
  18765. +ac_site_file1=NONE
  18766. +ac_site_file2=NONE
  18767. +if test -n "$CONFIG_SITE"; then
  18768. + ac_site_file1=$CONFIG_SITE
  18769. +elif test "x$prefix" != xNONE; then
  18770. + ac_site_file1=$prefix/share/config.site
  18771. + ac_site_file2=$prefix/etc/config.site
  18772. +else
  18773. + ac_site_file1=$ac_default_prefix/share/config.site
  18774. + ac_site_file2=$ac_default_prefix/etc/config.site
  18775. +fi
  18776. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  18777. +do
  18778. + test "x$ac_site_file" = xNONE && continue
  18779. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  18780. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  18781. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  18782. sed 's/^/| /' "$ac_site_file" >&5
  18783. . "$ac_site_file"
  18784. fi
  18785. done
  18786. if test -r "$cache_file"; then
  18787. - # Some versions of bash will fail to source /dev/null (special
  18788. - # files actually), so we avoid doing that.
  18789. - if test -f "$cache_file"; then
  18790. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  18791. -echo "$as_me: loading cache $cache_file" >&6;}
  18792. + # Some versions of bash will fail to source /dev/null (special files
  18793. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  18794. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  18795. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  18796. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  18797. case $cache_file in
  18798. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  18799. - *) . ./$cache_file;;
  18800. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18801. + *) . "./$cache_file";;
  18802. esac
  18803. fi
  18804. else
  18805. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  18806. -echo "$as_me: creating cache $cache_file" >&6;}
  18807. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  18808. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  18809. >$cache_file
  18810. fi
  18811. # Check that the precious variables saved in the cache have kept the same
  18812. # value.
  18813. ac_cache_corrupted=false
  18814. -for ac_var in `(set) 2>&1 |
  18815. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  18816. +for ac_var in $ac_precious_vars; do
  18817. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  18818. eval ac_new_set=\$ac_env_${ac_var}_set
  18819. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  18820. - eval ac_new_val="\$ac_env_${ac_var}_value"
  18821. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  18822. + eval ac_new_val=\$ac_env_${ac_var}_value
  18823. case $ac_old_set,$ac_new_set in
  18824. set,)
  18825. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18826. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18827. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18828. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18829. ac_cache_corrupted=: ;;
  18830. ,set)
  18831. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  18832. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18833. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  18834. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18835. ac_cache_corrupted=: ;;
  18836. ,);;
  18837. *)
  18838. if test "x$ac_old_val" != "x$ac_new_val"; then
  18839. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  18840. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18841. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  18842. -echo "$as_me: former value: $ac_old_val" >&2;}
  18843. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  18844. -echo "$as_me: current value: $ac_new_val" >&2;}
  18845. - ac_cache_corrupted=:
  18846. + # differences in whitespace do not lead to failure.
  18847. + ac_old_val_w=`echo x $ac_old_val`
  18848. + ac_new_val_w=`echo x $ac_new_val`
  18849. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  18850. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  18851. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18852. + ac_cache_corrupted=:
  18853. + else
  18854. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18855. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  18856. + eval $ac_var=\$ac_old_val
  18857. + fi
  18858. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  18859. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  18860. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  18861. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  18862. fi;;
  18863. esac
  18864. # Pass precious variables to config.status.
  18865. if test "$ac_new_set" = set; then
  18866. case $ac_new_val in
  18867. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  18868. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18869. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18870. *) ac_arg=$ac_var=$ac_new_val ;;
  18871. esac
  18872. case " $ac_configure_args " in
  18873. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18874. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  18875. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  18876. esac
  18877. fi
  18878. done
  18879. if $ac_cache_corrupted; then
  18880. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  18881. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18882. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  18883. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  18884. - { (exit 1); exit 1; }; }
  18885. -fi
  18886. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18887. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18888. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  18889. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18890. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  18891. +fi
  18892. +## -------------------- ##
  18893. +## Main body of script. ##
  18894. +## -------------------- ##
  18895. ac_ext=c
  18896. ac_cpp='$CPP $CPPFLAGS'
  18897. @@ -1510,56 +2570,30 @@
  18898. +am__api_version='1.11'
  18899. -
  18900. -
  18901. -
  18902. -
  18903. -
  18904. -
  18905. -
  18906. -
  18907. -
  18908. -
  18909. -
  18910. -
  18911. -
  18912. -
  18913. -
  18914. -
  18915. -
  18916. -
  18917. -
  18918. -
  18919. -
  18920. -
  18921. -
  18922. -
  18923. -am__api_version="1.8"
  18924. ac_aux_dir=
  18925. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  18926. - if test -f $ac_dir/install-sh; then
  18927. - ac_aux_dir=$ac_dir
  18928. - ac_install_sh="$ac_aux_dir/install-sh -c"
  18929. - break
  18930. - elif test -f $ac_dir/install.sh; then
  18931. - ac_aux_dir=$ac_dir
  18932. - ac_install_sh="$ac_aux_dir/install.sh -c"
  18933. - break
  18934. - elif test -f $ac_dir/shtool; then
  18935. - ac_aux_dir=$ac_dir
  18936. - ac_install_sh="$ac_aux_dir/shtool install -c"
  18937. - break
  18938. - fi
  18939. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  18940. + for ac_t in install-sh install.sh shtool; do
  18941. + if test -f "$ac_dir/$ac_t"; then
  18942. + ac_aux_dir=$ac_dir
  18943. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  18944. + break 2
  18945. + fi
  18946. + done
  18947. done
  18948. if test -z "$ac_aux_dir"; then
  18949. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  18950. -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  18951. - { (exit 1); exit 1; }; }
  18952. -fi
  18953. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  18954. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  18955. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  18956. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  18957. +fi
  18958. +
  18959. +# These three variables are undocumented and unsupported,
  18960. +# and are intended to be withdrawn in a future Autoconf release.
  18961. +# They can cause serious problems if a builder's source tree is in a directory
  18962. +# whose full name contains unusual characters.
  18963. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  18964. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  18965. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  18966. +
  18967. # Find a good install program. We prefer a C program (faster),
  18968. # so one script is as good as another. But avoid the broken or
  18969. @@ -1574,22 +2608,23 @@
  18970. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  18971. # OS/2's system install, which has a completely different semantic
  18972. # ./install, which can be erroneously created by make from ./install.sh.
  18973. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18974. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  18975. +# Reject install programs that cannot install multiple files.
  18976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  18977. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  18978. if test -z "$INSTALL"; then
  18979. -if test "${ac_cv_path_install+set}" = set; then
  18980. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18981. +if test "${ac_cv_path_install+set}" = set; then :
  18982. + $as_echo_n "(cached) " >&6
  18983. else
  18984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18985. for as_dir in $PATH
  18986. do
  18987. IFS=$as_save_IFS
  18988. test -z "$as_dir" && as_dir=.
  18989. - # Account for people who put trailing slashes in PATH elements.
  18990. -case $as_dir/ in
  18991. - ./ | .// | /cC/* | \
  18992. + # Account for people who put trailing slashes in PATH elements.
  18993. +case $as_dir/ in #((
  18994. + ./ | .// | /[cC]/* | \
  18995. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18996. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18997. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  18998. /usr/ucb/* ) ;;
  18999. *)
  19000. # OSF1 and SCO ODT 3.0 have their own names for install.
  19001. @@ -1597,7 +2632,7 @@
  19002. # by default.
  19003. for ac_prog in ginstall scoinst install; do
  19004. for ac_exec_ext in '' $ac_executable_extensions; do
  19005. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  19006. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  19007. if test $ac_prog = install &&
  19008. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  19009. # AIX install. It has an incompatible calling convention.
  19010. @@ -1607,30 +2642,43 @@
  19011. # program-specific install script used by HP pwplus--don't use.
  19012. :
  19013. else
  19014. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19015. - break 3
  19016. + rm -rf conftest.one conftest.two conftest.dir
  19017. + echo one > conftest.one
  19018. + echo two > conftest.two
  19019. + mkdir conftest.dir
  19020. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  19021. + test -s conftest.one && test -s conftest.two &&
  19022. + test -s conftest.dir/conftest.one &&
  19023. + test -s conftest.dir/conftest.two
  19024. + then
  19025. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  19026. + break 3
  19027. + fi
  19028. fi
  19029. fi
  19030. done
  19031. done
  19032. ;;
  19033. esac
  19034. -done
  19035. + done
  19036. +IFS=$as_save_IFS
  19037. +
  19038. +rm -rf conftest.one conftest.two conftest.dir
  19039. fi
  19040. if test "${ac_cv_path_install+set}" = set; then
  19041. INSTALL=$ac_cv_path_install
  19042. else
  19043. - # As a last resort, use the slow shell script. We don't cache a
  19044. - # path for INSTALL within a source directory, because that will
  19045. + # As a last resort, use the slow shell script. Don't cache a
  19046. + # value for INSTALL within a source directory, because that will
  19047. # break other packages using the cache if that directory is
  19048. - # removed, or if the path is relative.
  19049. + # removed, or if the value is a relative name.
  19050. INSTALL=$ac_install_sh
  19051. fi
  19052. fi
  19053. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  19054. -echo "${ECHO_T}$INSTALL" >&6
  19055. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  19056. +$as_echo "$INSTALL" >&6; }
  19057. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  19058. # It thinks the first close brace ends the variable substitution.
  19059. @@ -1640,21 +2688,34 @@
  19060. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  19061. -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  19062. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  19063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  19064. +$as_echo_n "checking whether build environment is sane... " >&6; }
  19065. # Just in case
  19066. sleep 1
  19067. echo timestamp > conftest.file
  19068. +# Reject unsafe characters in $srcdir or the absolute working directory
  19069. +# name. Accept space and tab only in the latter.
  19070. +am_lf='
  19071. +'
  19072. +case `pwd` in
  19073. + *[\\\"\#\$\&\'\`$am_lf]*)
  19074. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  19075. +esac
  19076. +case $srcdir in
  19077. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  19078. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  19079. +esac
  19080. +
  19081. # Do `set' in a subshell so we don't clobber the current shell's
  19082. # arguments. Must try -L first in case configure is actually a
  19083. # symlink; some systems play weird games with the mod time of symlinks
  19084. # (eg FreeBSD returns the mod time of the symlink's containing
  19085. # directory).
  19086. if (
  19087. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  19088. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  19089. if test "$*" = "X"; then
  19090. # -L didn't work.
  19091. - set X `ls -t $srcdir/configure conftest.file`
  19092. + set X `ls -t "$srcdir/configure" conftest.file`
  19093. fi
  19094. rm -f conftest.file
  19095. if test "$*" != "X $srcdir/configure conftest.file" \
  19096. @@ -1664,11 +2725,8 @@
  19097. # if, for instance, CONFIG_SHELL is bash and it inherits a
  19098. # broken ls alias from the environment. This has actually
  19099. # happened. Such a system could not be considered "sane".
  19100. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  19101. -alias in your environment" >&5
  19102. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  19103. -alias in your environment" >&2;}
  19104. - { (exit 1); exit 1; }; }
  19105. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  19106. +alias in your environment" "$LINENO" 5
  19107. fi
  19108. test "$2" = conftest.file
  19109. @@ -1677,73 +2735,206 @@
  19110. # Ok.
  19111. :
  19112. else
  19113. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  19114. -Check your system clock" >&5
  19115. -echo "$as_me: error: newly created file is older than distributed files!
  19116. -Check your system clock" >&2;}
  19117. - { (exit 1); exit 1; }; }
  19118. + as_fn_error "newly created file is older than distributed files!
  19119. +Check your system clock" "$LINENO" 5
  19120. fi
  19121. -echo "$as_me:$LINENO: result: yes" >&5
  19122. -echo "${ECHO_T}yes" >&6
  19123. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19124. +$as_echo "yes" >&6; }
  19125. test "$program_prefix" != NONE &&
  19126. - program_transform_name="s,^,$program_prefix,;$program_transform_name"
  19127. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  19128. # Use a double $ so make ignores it.
  19129. test "$program_suffix" != NONE &&
  19130. - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  19131. -# Double any \ or $. echo might interpret backslashes.
  19132. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  19133. +# Double any \ or $.
  19134. # By default was `s,x,x', remove it if useless.
  19135. -cat <<\_ACEOF >conftest.sed
  19136. -s/[\\$]/&&/g;s/;s,x,x,$//
  19137. -_ACEOF
  19138. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  19139. -rm conftest.sed
  19140. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  19141. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  19142. # expand $ac_aux_dir to an absolute path
  19143. am_aux_dir=`cd $ac_aux_dir && pwd`
  19144. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  19145. +if test x"${MISSING+set}" != xset; then
  19146. + case $am_aux_dir in
  19147. + *\ * | *\ *)
  19148. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  19149. + *)
  19150. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  19151. + esac
  19152. +fi
  19153. # Use eval to expand $SHELL
  19154. if eval "$MISSING --run true"; then
  19155. am_missing_run="$MISSING --run "
  19156. else
  19157. am_missing_run=
  19158. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  19159. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  19160. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  19161. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  19162. fi
  19163. -if mkdir -p -- . 2>/dev/null; then
  19164. - # Keeping the `.' argument allows $(mkdir_p) to be used without
  19165. - # argument. Indeed, we sometimes output rules like
  19166. - # $(mkdir_p) $(somedir)
  19167. - # where $(somedir) is conditionally defined.
  19168. - # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  19169. - # expensive solution, as it forces Make to start a sub-shell.)
  19170. - mkdir_p='mkdir -p -- .'
  19171. -else
  19172. - # On NextStep and OpenStep, the `mkdir' command does not
  19173. - # recognize any option. It will interpret all options as
  19174. - # directories to create, and then abort because `.' already
  19175. - # exists.
  19176. - for d in ./-p ./--;
  19177. - do
  19178. - test -d $d && rmdir $d
  19179. +if test x"${install_sh}" != xset; then
  19180. + case $am_aux_dir in
  19181. + *\ * | *\ *)
  19182. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  19183. + *)
  19184. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  19185. + esac
  19186. +fi
  19187. +
  19188. +# Installed binaries are usually stripped using `strip' when the user
  19189. +# run `make install-strip'. However `strip' might not be the right
  19190. +# tool to use in cross-compilation environments, therefore Automake
  19191. +# will honor the `STRIP' environment variable to overrule this program.
  19192. +if test "$cross_compiling" != no; then
  19193. + if test -n "$ac_tool_prefix"; then
  19194. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19195. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  19196. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19197. +$as_echo_n "checking for $ac_word... " >&6; }
  19198. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  19199. + $as_echo_n "(cached) " >&6
  19200. +else
  19201. + if test -n "$STRIP"; then
  19202. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19203. +else
  19204. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19205. +for as_dir in $PATH
  19206. +do
  19207. + IFS=$as_save_IFS
  19208. + test -z "$as_dir" && as_dir=.
  19209. + for ac_exec_ext in '' $ac_executable_extensions; do
  19210. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19211. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19212. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19213. + break 2
  19214. + fi
  19215. +done
  19216. + done
  19217. +IFS=$as_save_IFS
  19218. +
  19219. +fi
  19220. +fi
  19221. +STRIP=$ac_cv_prog_STRIP
  19222. +if test -n "$STRIP"; then
  19223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  19224. +$as_echo "$STRIP" >&6; }
  19225. +else
  19226. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19227. +$as_echo "no" >&6; }
  19228. +fi
  19229. +
  19230. +
  19231. +fi
  19232. +if test -z "$ac_cv_prog_STRIP"; then
  19233. + ac_ct_STRIP=$STRIP
  19234. + # Extract the first word of "strip", so it can be a program name with args.
  19235. +set dummy strip; ac_word=$2
  19236. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19237. +$as_echo_n "checking for $ac_word... " >&6; }
  19238. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  19239. + $as_echo_n "(cached) " >&6
  19240. +else
  19241. + if test -n "$ac_ct_STRIP"; then
  19242. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19243. +else
  19244. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19245. +for as_dir in $PATH
  19246. +do
  19247. + IFS=$as_save_IFS
  19248. + test -z "$as_dir" && as_dir=.
  19249. + for ac_exec_ext in '' $ac_executable_extensions; do
  19250. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19251. + ac_cv_prog_ac_ct_STRIP="strip"
  19252. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19253. + break 2
  19254. + fi
  19255. +done
  19256. + done
  19257. +IFS=$as_save_IFS
  19258. +
  19259. +fi
  19260. +fi
  19261. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19262. +if test -n "$ac_ct_STRIP"; then
  19263. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  19264. +$as_echo "$ac_ct_STRIP" >&6; }
  19265. +else
  19266. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19267. +$as_echo "no" >&6; }
  19268. +fi
  19269. +
  19270. + if test "x$ac_ct_STRIP" = x; then
  19271. + STRIP=":"
  19272. + else
  19273. + case $cross_compiling:$ac_tool_warned in
  19274. +yes:)
  19275. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19276. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19277. +ac_tool_warned=yes ;;
  19278. +esac
  19279. + STRIP=$ac_ct_STRIP
  19280. + fi
  19281. +else
  19282. + STRIP="$ac_cv_prog_STRIP"
  19283. +fi
  19284. +
  19285. +fi
  19286. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  19287. +
  19288. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  19289. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  19290. +if test -z "$MKDIR_P"; then
  19291. + if test "${ac_cv_path_mkdir+set}" = set; then :
  19292. + $as_echo_n "(cached) " >&6
  19293. +else
  19294. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19295. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  19296. +do
  19297. + IFS=$as_save_IFS
  19298. + test -z "$as_dir" && as_dir=.
  19299. + for ac_prog in mkdir gmkdir; do
  19300. + for ac_exec_ext in '' $ac_executable_extensions; do
  19301. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  19302. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  19303. + 'mkdir (GNU coreutils) '* | \
  19304. + 'mkdir (coreutils) '* | \
  19305. + 'mkdir (fileutils) '4.1*)
  19306. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  19307. + break 3;;
  19308. + esac
  19309. + done
  19310. + done
  19311. done
  19312. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  19313. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  19314. - mkdir_p='$(mkinstalldirs)'
  19315. +IFS=$as_save_IFS
  19316. +
  19317. +fi
  19318. +
  19319. + test -d ./--version && rmdir ./--version
  19320. + if test "${ac_cv_path_mkdir+set}" = set; then
  19321. + MKDIR_P="$ac_cv_path_mkdir -p"
  19322. else
  19323. - mkdir_p='$(install_sh) -d'
  19324. + # As a last resort, use the slow shell script. Don't cache a
  19325. + # value for MKDIR_P within a source directory, because that will
  19326. + # break other packages using the cache if that directory is
  19327. + # removed, or if the value is a relative name.
  19328. + MKDIR_P="$ac_install_sh -d"
  19329. fi
  19330. fi
  19331. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  19332. +$as_echo "$MKDIR_P" >&6; }
  19333. +
  19334. +mkdir_p="$MKDIR_P"
  19335. +case $mkdir_p in
  19336. + [\\/$]* | ?:[\\/]*) ;;
  19337. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  19338. +esac
  19339. for ac_prog in gawk mawk nawk awk
  19340. do
  19341. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19342. set dummy $ac_prog; ac_word=$2
  19343. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19344. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19345. -if test "${ac_cv_prog_AWK+set}" = set; then
  19346. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19347. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19348. +$as_echo_n "checking for $ac_word... " >&6; }
  19349. +if test "${ac_cv_prog_AWK+set}" = set; then :
  19350. + $as_echo_n "(cached) " >&6
  19351. else
  19352. if test -n "$AWK"; then
  19353. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19354. @@ -1753,55 +2944,59 @@
  19355. do
  19356. IFS=$as_save_IFS
  19357. test -z "$as_dir" && as_dir=.
  19358. - for ac_exec_ext in '' $ac_executable_extensions; do
  19359. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19360. + for ac_exec_ext in '' $ac_executable_extensions; do
  19361. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19362. ac_cv_prog_AWK="$ac_prog"
  19363. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19364. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19365. break 2
  19366. fi
  19367. done
  19368. -done
  19369. + done
  19370. +IFS=$as_save_IFS
  19371. fi
  19372. fi
  19373. AWK=$ac_cv_prog_AWK
  19374. if test -n "$AWK"; then
  19375. - echo "$as_me:$LINENO: result: $AWK" >&5
  19376. -echo "${ECHO_T}$AWK" >&6
  19377. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  19378. +$as_echo "$AWK" >&6; }
  19379. else
  19380. - echo "$as_me:$LINENO: result: no" >&5
  19381. -echo "${ECHO_T}no" >&6
  19382. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19383. +$as_echo "no" >&6; }
  19384. fi
  19385. +
  19386. test -n "$AWK" && break
  19387. done
  19388. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19389. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  19390. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  19391. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  19392. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19394. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  19395. +set x ${MAKE-make}
  19396. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19397. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  19398. + $as_echo_n "(cached) " >&6
  19399. else
  19400. cat >conftest.make <<\_ACEOF
  19401. +SHELL = /bin/sh
  19402. all:
  19403. - @echo 'ac_maketemp="$(MAKE)"'
  19404. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  19405. _ACEOF
  19406. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19407. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  19408. -if test -n "$ac_maketemp"; then
  19409. - eval ac_cv_prog_make_${ac_make}_set=yes
  19410. -else
  19411. - eval ac_cv_prog_make_${ac_make}_set=no
  19412. -fi
  19413. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19414. + *@@@%%%=?*=@@@%%%*)
  19415. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  19416. + *)
  19417. + eval ac_cv_prog_make_${ac_make}_set=no;;
  19418. +esac
  19419. rm -f conftest.make
  19420. fi
  19421. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  19422. - echo "$as_me:$LINENO: result: yes" >&5
  19423. -echo "${ECHO_T}yes" >&6
  19424. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19426. +$as_echo "yes" >&6; }
  19427. SET_MAKE=
  19428. else
  19429. - echo "$as_me:$LINENO: result: no" >&5
  19430. -echo "${ECHO_T}no" >&6
  19431. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19432. +$as_echo "no" >&6; }
  19433. SET_MAKE="MAKE=${MAKE-make}"
  19434. fi
  19435. @@ -1814,12 +3009,14 @@
  19436. fi
  19437. rmdir .tst 2>/dev/null
  19438. -# test to see if srcdir already configured
  19439. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  19440. - test -f $srcdir/config.status; then
  19441. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  19442. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  19443. - { (exit 1); exit 1; }; }
  19444. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  19445. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  19446. + # is not polluted with repeated "-I."
  19447. + am__isrc=' -I$(srcdir)'
  19448. + # test to see if srcdir already configured
  19449. + if test -f $srcdir/config.status; then
  19450. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  19451. + fi
  19452. fi
  19453. # test whether we have cygpath
  19454. @@ -1862,161 +3059,92 @@
  19455. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  19456. +# We need awk for the "check" target. The system "awk" is bad on
  19457. +# some platforms.
  19458. +# Always define AMTAR for backward compatibility.
  19459. AMTAR=${AMTAR-"${am_missing_run}tar"}
  19460. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  19461. -
  19462. -# Installed binaries are usually stripped using `strip' when the user
  19463. -# run `make install-strip'. However `strip' might not be the right
  19464. -# tool to use in cross-compilation environments, therefore Automake
  19465. -# will honor the `STRIP' environment variable to overrule this program.
  19466. -if test "$cross_compiling" != no; then
  19467. - if test -n "$ac_tool_prefix"; then
  19468. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19469. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  19470. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19471. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19472. -if test "${ac_cv_prog_STRIP+set}" = set; then
  19473. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19474. -else
  19475. - if test -n "$STRIP"; then
  19476. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19477. -else
  19478. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19479. -for as_dir in $PATH
  19480. -do
  19481. - IFS=$as_save_IFS
  19482. - test -z "$as_dir" && as_dir=.
  19483. - for ac_exec_ext in '' $ac_executable_extensions; do
  19484. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19485. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19486. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19487. - break 2
  19488. - fi
  19489. -done
  19490. -done
  19491. -
  19492. -fi
  19493. -fi
  19494. -STRIP=$ac_cv_prog_STRIP
  19495. -if test -n "$STRIP"; then
  19496. - echo "$as_me:$LINENO: result: $STRIP" >&5
  19497. -echo "${ECHO_T}$STRIP" >&6
  19498. -else
  19499. - echo "$as_me:$LINENO: result: no" >&5
  19500. -echo "${ECHO_T}no" >&6
  19501. -fi
  19502. -
  19503. -fi
  19504. -if test -z "$ac_cv_prog_STRIP"; then
  19505. - ac_ct_STRIP=$STRIP
  19506. - # Extract the first word of "strip", so it can be a program name with args.
  19507. -set dummy strip; ac_word=$2
  19508. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19509. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19510. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  19511. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19512. -else
  19513. - if test -n "$ac_ct_STRIP"; then
  19514. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19515. -else
  19516. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19517. -for as_dir in $PATH
  19518. -do
  19519. - IFS=$as_save_IFS
  19520. - test -z "$as_dir" && as_dir=.
  19521. - for ac_exec_ext in '' $ac_executable_extensions; do
  19522. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19523. - ac_cv_prog_ac_ct_STRIP="strip"
  19524. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19525. - break 2
  19526. - fi
  19527. -done
  19528. -done
  19529. -
  19530. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  19531. -fi
  19532. -fi
  19533. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19534. -if test -n "$ac_ct_STRIP"; then
  19535. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  19536. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  19537. -else
  19538. - echo "$as_me:$LINENO: result: no" >&5
  19539. -echo "${ECHO_T}no" >&6
  19540. -fi
  19541. -
  19542. - STRIP=$ac_ct_STRIP
  19543. -else
  19544. - STRIP="$ac_cv_prog_STRIP"
  19545. -fi
  19546. +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  19547. -fi
  19548. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  19549. -# We need awk for the "check" target. The system "awk" is bad on
  19550. -# some platforms.
  19551. - ac_config_headers="$ac_config_headers config.h"
  19552. +ac_config_headers="$ac_config_headers config.h"
  19553. # Make sure we can run config.sub.
  19554. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  19555. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  19556. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  19557. - { (exit 1); exit 1; }; }
  19558. -
  19559. -echo "$as_me:$LINENO: checking build system type" >&5
  19560. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  19561. -if test "${ac_cv_build+set}" = set; then
  19562. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19563. -else
  19564. - ac_cv_build_alias=$build_alias
  19565. -test -z "$ac_cv_build_alias" &&
  19566. - ac_cv_build_alias=`$ac_config_guess`
  19567. -test -z "$ac_cv_build_alias" &&
  19568. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  19569. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  19570. - { (exit 1); exit 1; }; }
  19571. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  19572. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  19573. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  19574. - { (exit 1); exit 1; }; }
  19575. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  19576. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  19577. -fi
  19578. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  19579. -echo "${ECHO_T}$ac_cv_build" >&6
  19580. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  19581. +$as_echo_n "checking build system type... " >&6; }
  19582. +if test "${ac_cv_build+set}" = set; then :
  19583. + $as_echo_n "(cached) " >&6
  19584. +else
  19585. + ac_build_alias=$build_alias
  19586. +test "x$ac_build_alias" = x &&
  19587. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  19588. +test "x$ac_build_alias" = x &&
  19589. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  19590. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  19591. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  19592. +
  19593. +fi
  19594. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  19595. +$as_echo "$ac_cv_build" >&6; }
  19596. +case $ac_cv_build in
  19597. +*-*-*) ;;
  19598. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  19599. +esac
  19600. build=$ac_cv_build
  19601. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  19602. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  19603. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  19604. -
  19605. -
  19606. -echo "$as_me:$LINENO: checking host system type" >&5
  19607. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  19608. -if test "${ac_cv_host+set}" = set; then
  19609. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19610. -else
  19611. - ac_cv_host_alias=$host_alias
  19612. -test -z "$ac_cv_host_alias" &&
  19613. - ac_cv_host_alias=$ac_cv_build_alias
  19614. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  19615. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  19616. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  19617. - { (exit 1); exit 1; }; }
  19618. +ac_save_IFS=$IFS; IFS='-'
  19619. +set x $ac_cv_build
  19620. +shift
  19621. +build_cpu=$1
  19622. +build_vendor=$2
  19623. +shift; shift
  19624. +# Remember, the first character of IFS is used to create $*,
  19625. +# except with old shells:
  19626. +build_os=$*
  19627. +IFS=$ac_save_IFS
  19628. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  19629. +
  19630. +
  19631. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  19632. +$as_echo_n "checking host system type... " >&6; }
  19633. +if test "${ac_cv_host+set}" = set; then :
  19634. + $as_echo_n "(cached) " >&6
  19635. +else
  19636. + if test "x$host_alias" = x; then
  19637. + ac_cv_host=$ac_cv_build
  19638. +else
  19639. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  19640. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  19641. +fi
  19642. fi
  19643. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  19644. -echo "${ECHO_T}$ac_cv_host" >&6
  19645. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  19646. +$as_echo "$ac_cv_host" >&6; }
  19647. +case $ac_cv_host in
  19648. +*-*-*) ;;
  19649. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  19650. +esac
  19651. host=$ac_cv_host
  19652. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  19653. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  19654. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  19655. +ac_save_IFS=$IFS; IFS='-'
  19656. +set x $ac_cv_host
  19657. +shift
  19658. +host_cpu=$1
  19659. +host_vendor=$2
  19660. +shift; shift
  19661. +# Remember, the first character of IFS is used to create $*,
  19662. +# except with old shells:
  19663. +host_os=$*
  19664. +IFS=$ac_save_IFS
  19665. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  19666. @@ -2029,10 +3157,10 @@
  19667. if test -n "$ac_tool_prefix"; then
  19668. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  19669. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  19670. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19671. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19672. -if test "${ac_cv_prog_CC+set}" = set; then
  19673. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19675. +$as_echo_n "checking for $ac_word... " >&6; }
  19676. +if test "${ac_cv_prog_CC+set}" = set; then :
  19677. + $as_echo_n "(cached) " >&6
  19678. else
  19679. if test -n "$CC"; then
  19680. ac_cv_prog_CC="$CC" # Let the user override the test.
  19681. @@ -2042,35 +3170,37 @@
  19682. do
  19683. IFS=$as_save_IFS
  19684. test -z "$as_dir" && as_dir=.
  19685. - for ac_exec_ext in '' $ac_executable_extensions; do
  19686. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19687. + for ac_exec_ext in '' $ac_executable_extensions; do
  19688. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19689. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  19690. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19691. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19692. break 2
  19693. fi
  19694. done
  19695. -done
  19696. + done
  19697. +IFS=$as_save_IFS
  19698. fi
  19699. fi
  19700. CC=$ac_cv_prog_CC
  19701. if test -n "$CC"; then
  19702. - echo "$as_me:$LINENO: result: $CC" >&5
  19703. -echo "${ECHO_T}$CC" >&6
  19704. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19705. +$as_echo "$CC" >&6; }
  19706. else
  19707. - echo "$as_me:$LINENO: result: no" >&5
  19708. -echo "${ECHO_T}no" >&6
  19709. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19710. +$as_echo "no" >&6; }
  19711. fi
  19712. +
  19713. fi
  19714. if test -z "$ac_cv_prog_CC"; then
  19715. ac_ct_CC=$CC
  19716. # Extract the first word of "gcc", so it can be a program name with args.
  19717. set dummy gcc; ac_word=$2
  19718. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19719. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19720. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19721. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19722. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19723. +$as_echo_n "checking for $ac_word... " >&6; }
  19724. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19725. + $as_echo_n "(cached) " >&6
  19726. else
  19727. if test -n "$ac_ct_CC"; then
  19728. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19729. @@ -2080,39 +3210,50 @@
  19730. do
  19731. IFS=$as_save_IFS
  19732. test -z "$as_dir" && as_dir=.
  19733. - for ac_exec_ext in '' $ac_executable_extensions; do
  19734. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19735. + for ac_exec_ext in '' $ac_executable_extensions; do
  19736. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19737. ac_cv_prog_ac_ct_CC="gcc"
  19738. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19739. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19740. break 2
  19741. fi
  19742. done
  19743. -done
  19744. + done
  19745. +IFS=$as_save_IFS
  19746. fi
  19747. fi
  19748. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19749. if test -n "$ac_ct_CC"; then
  19750. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19751. -echo "${ECHO_T}$ac_ct_CC" >&6
  19752. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19753. +$as_echo "$ac_ct_CC" >&6; }
  19754. else
  19755. - echo "$as_me:$LINENO: result: no" >&5
  19756. -echo "${ECHO_T}no" >&6
  19757. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19758. +$as_echo "no" >&6; }
  19759. fi
  19760. - CC=$ac_ct_CC
  19761. + if test "x$ac_ct_CC" = x; then
  19762. + CC=""
  19763. + else
  19764. + case $cross_compiling:$ac_tool_warned in
  19765. +yes:)
  19766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19767. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19768. +ac_tool_warned=yes ;;
  19769. +esac
  19770. + CC=$ac_ct_CC
  19771. + fi
  19772. else
  19773. CC="$ac_cv_prog_CC"
  19774. fi
  19775. if test -z "$CC"; then
  19776. - if test -n "$ac_tool_prefix"; then
  19777. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19778. + if test -n "$ac_tool_prefix"; then
  19779. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19780. set dummy ${ac_tool_prefix}cc; ac_word=$2
  19781. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19782. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19783. -if test "${ac_cv_prog_CC+set}" = set; then
  19784. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19786. +$as_echo_n "checking for $ac_word... " >&6; }
  19787. +if test "${ac_cv_prog_CC+set}" = set; then :
  19788. + $as_echo_n "(cached) " >&6
  19789. else
  19790. if test -n "$CC"; then
  19791. ac_cv_prog_CC="$CC" # Let the user override the test.
  19792. @@ -2122,77 +3263,37 @@
  19793. do
  19794. IFS=$as_save_IFS
  19795. test -z "$as_dir" && as_dir=.
  19796. - for ac_exec_ext in '' $ac_executable_extensions; do
  19797. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19798. + for ac_exec_ext in '' $ac_executable_extensions; do
  19799. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19800. ac_cv_prog_CC="${ac_tool_prefix}cc"
  19801. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19802. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19803. break 2
  19804. fi
  19805. done
  19806. -done
  19807. + done
  19808. +IFS=$as_save_IFS
  19809. fi
  19810. fi
  19811. CC=$ac_cv_prog_CC
  19812. if test -n "$CC"; then
  19813. - echo "$as_me:$LINENO: result: $CC" >&5
  19814. -echo "${ECHO_T}$CC" >&6
  19815. -else
  19816. - echo "$as_me:$LINENO: result: no" >&5
  19817. -echo "${ECHO_T}no" >&6
  19818. -fi
  19819. -
  19820. -fi
  19821. -if test -z "$ac_cv_prog_CC"; then
  19822. - ac_ct_CC=$CC
  19823. - # Extract the first word of "cc", so it can be a program name with args.
  19824. -set dummy cc; ac_word=$2
  19825. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19826. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19827. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19828. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19829. -else
  19830. - if test -n "$ac_ct_CC"; then
  19831. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19832. -else
  19833. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19834. -for as_dir in $PATH
  19835. -do
  19836. - IFS=$as_save_IFS
  19837. - test -z "$as_dir" && as_dir=.
  19838. - for ac_exec_ext in '' $ac_executable_extensions; do
  19839. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19840. - ac_cv_prog_ac_ct_CC="cc"
  19841. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19842. - break 2
  19843. - fi
  19844. -done
  19845. -done
  19846. -
  19847. -fi
  19848. -fi
  19849. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19850. -if test -n "$ac_ct_CC"; then
  19851. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19852. -echo "${ECHO_T}$ac_ct_CC" >&6
  19853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19854. +$as_echo "$CC" >&6; }
  19855. else
  19856. - echo "$as_me:$LINENO: result: no" >&5
  19857. -echo "${ECHO_T}no" >&6
  19858. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19859. +$as_echo "no" >&6; }
  19860. fi
  19861. - CC=$ac_ct_CC
  19862. -else
  19863. - CC="$ac_cv_prog_CC"
  19864. -fi
  19865. + fi
  19866. fi
  19867. if test -z "$CC"; then
  19868. # Extract the first word of "cc", so it can be a program name with args.
  19869. set dummy cc; ac_word=$2
  19870. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19871. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19872. -if test "${ac_cv_prog_CC+set}" = set; then
  19873. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19874. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19875. +$as_echo_n "checking for $ac_word... " >&6; }
  19876. +if test "${ac_cv_prog_CC+set}" = set; then :
  19877. + $as_echo_n "(cached) " >&6
  19878. else
  19879. if test -n "$CC"; then
  19880. ac_cv_prog_CC="$CC" # Let the user override the test.
  19881. @@ -2203,18 +3304,19 @@
  19882. do
  19883. IFS=$as_save_IFS
  19884. test -z "$as_dir" && as_dir=.
  19885. - for ac_exec_ext in '' $ac_executable_extensions; do
  19886. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19887. + for ac_exec_ext in '' $ac_executable_extensions; do
  19888. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19889. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  19890. ac_prog_rejected=yes
  19891. continue
  19892. fi
  19893. ac_cv_prog_CC="cc"
  19894. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19895. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19896. break 2
  19897. fi
  19898. done
  19899. -done
  19900. + done
  19901. +IFS=$as_save_IFS
  19902. if test $ac_prog_rejected = yes; then
  19903. # We found a bogon in the path, so make sure we never use it.
  19904. @@ -2232,24 +3334,25 @@
  19905. fi
  19906. CC=$ac_cv_prog_CC
  19907. if test -n "$CC"; then
  19908. - echo "$as_me:$LINENO: result: $CC" >&5
  19909. -echo "${ECHO_T}$CC" >&6
  19910. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19911. +$as_echo "$CC" >&6; }
  19912. else
  19913. - echo "$as_me:$LINENO: result: no" >&5
  19914. -echo "${ECHO_T}no" >&6
  19915. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19916. +$as_echo "no" >&6; }
  19917. fi
  19918. +
  19919. fi
  19920. if test -z "$CC"; then
  19921. if test -n "$ac_tool_prefix"; then
  19922. - for ac_prog in cl
  19923. + for ac_prog in cl.exe
  19924. do
  19925. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19926. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19927. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19928. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19929. -if test "${ac_cv_prog_CC+set}" = set; then
  19930. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19931. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19932. +$as_echo_n "checking for $ac_word... " >&6; }
  19933. +if test "${ac_cv_prog_CC+set}" = set; then :
  19934. + $as_echo_n "(cached) " >&6
  19935. else
  19936. if test -n "$CC"; then
  19937. ac_cv_prog_CC="$CC" # Let the user override the test.
  19938. @@ -2259,39 +3362,41 @@
  19939. do
  19940. IFS=$as_save_IFS
  19941. test -z "$as_dir" && as_dir=.
  19942. - for ac_exec_ext in '' $ac_executable_extensions; do
  19943. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19944. + for ac_exec_ext in '' $ac_executable_extensions; do
  19945. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19946. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19947. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19948. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19949. break 2
  19950. fi
  19951. done
  19952. -done
  19953. + done
  19954. +IFS=$as_save_IFS
  19955. fi
  19956. fi
  19957. CC=$ac_cv_prog_CC
  19958. if test -n "$CC"; then
  19959. - echo "$as_me:$LINENO: result: $CC" >&5
  19960. -echo "${ECHO_T}$CC" >&6
  19961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19962. +$as_echo "$CC" >&6; }
  19963. else
  19964. - echo "$as_me:$LINENO: result: no" >&5
  19965. -echo "${ECHO_T}no" >&6
  19966. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19967. +$as_echo "no" >&6; }
  19968. fi
  19969. +
  19970. test -n "$CC" && break
  19971. done
  19972. fi
  19973. if test -z "$CC"; then
  19974. ac_ct_CC=$CC
  19975. - for ac_prog in cl
  19976. + for ac_prog in cl.exe
  19977. do
  19978. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19979. set dummy $ac_prog; ac_word=$2
  19980. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19981. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19982. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19983. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19984. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19985. +$as_echo_n "checking for $ac_word... " >&6; }
  19986. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19987. + $as_echo_n "(cached) " >&6
  19988. else
  19989. if test -n "$ac_ct_CC"; then
  19990. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19991. @@ -2301,66 +3406,78 @@
  19992. do
  19993. IFS=$as_save_IFS
  19994. test -z "$as_dir" && as_dir=.
  19995. - for ac_exec_ext in '' $ac_executable_extensions; do
  19996. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19997. + for ac_exec_ext in '' $ac_executable_extensions; do
  19998. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19999. ac_cv_prog_ac_ct_CC="$ac_prog"
  20000. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20001. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20002. break 2
  20003. fi
  20004. done
  20005. -done
  20006. + done
  20007. +IFS=$as_save_IFS
  20008. fi
  20009. fi
  20010. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  20011. if test -n "$ac_ct_CC"; then
  20012. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  20013. -echo "${ECHO_T}$ac_ct_CC" >&6
  20014. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  20015. +$as_echo "$ac_ct_CC" >&6; }
  20016. else
  20017. - echo "$as_me:$LINENO: result: no" >&5
  20018. -echo "${ECHO_T}no" >&6
  20019. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20020. +$as_echo "no" >&6; }
  20021. fi
  20022. +
  20023. test -n "$ac_ct_CC" && break
  20024. done
  20025. - CC=$ac_ct_CC
  20026. + if test "x$ac_ct_CC" = x; then
  20027. + CC=""
  20028. + else
  20029. + case $cross_compiling:$ac_tool_warned in
  20030. +yes:)
  20031. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20032. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20033. +ac_tool_warned=yes ;;
  20034. +esac
  20035. + CC=$ac_ct_CC
  20036. + fi
  20037. fi
  20038. fi
  20039. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  20040. -See \`config.log' for more details." >&5
  20041. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  20042. -See \`config.log' for more details." >&2;}
  20043. - { (exit 1); exit 1; }; }
  20044. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20045. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20046. +as_fn_error "no acceptable C compiler found in \$PATH
  20047. +See \`config.log' for more details." "$LINENO" 5; }
  20048. # Provide some information about the compiler.
  20049. -echo "$as_me:$LINENO:" \
  20050. - "checking for C compiler version" >&5
  20051. -ac_compiler=`set X $ac_compile; echo $2`
  20052. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  20053. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  20054. - ac_status=$?
  20055. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20056. - (exit $ac_status); }
  20057. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  20058. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  20059. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  20060. +set X $ac_compile
  20061. +ac_compiler=$2
  20062. +for ac_option in --version -v -V -qversion; do
  20063. + { { ac_try="$ac_compiler $ac_option >&5"
  20064. +case "(($ac_try" in
  20065. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20066. + *) ac_try_echo=$ac_try;;
  20067. +esac
  20068. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20069. +$as_echo "$ac_try_echo"; } >&5
  20070. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  20071. ac_status=$?
  20072. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20073. - (exit $ac_status); }
  20074. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  20075. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  20076. - ac_status=$?
  20077. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20078. - (exit $ac_status); }
  20079. + if test -s conftest.err; then
  20080. + sed '10a\
  20081. +... rest of stderr output deleted ...
  20082. + 10q' conftest.err >conftest.er1
  20083. + cat conftest.er1 >&5
  20084. + fi
  20085. + rm -f conftest.er1 conftest.err
  20086. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20087. + test $ac_status = 0; }
  20088. +done
  20089. -cat >conftest.$ac_ext <<_ACEOF
  20090. -/* confdefs.h. */
  20091. -_ACEOF
  20092. -cat confdefs.h >>conftest.$ac_ext
  20093. -cat >>conftest.$ac_ext <<_ACEOF
  20094. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20095. /* end confdefs.h. */
  20096. int
  20097. @@ -2372,112 +3489,109 @@
  20098. }
  20099. _ACEOF
  20100. ac_clean_files_save=$ac_clean_files
  20101. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  20102. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  20103. # Try to create an executable without -o first, disregard a.out.
  20104. # It will help us diagnose broken compilers, and finding out an intuition
  20105. # of exeext.
  20106. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  20107. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  20108. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  20109. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  20110. - (eval $ac_link_default) 2>&5
  20111. - ac_status=$?
  20112. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20113. - (exit $ac_status); }; then
  20114. - # Find the output, starting from the most likely. This scheme is
  20115. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  20116. -# resort.
  20117. -
  20118. -# Be careful to initialize this variable, since it used to be cached.
  20119. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  20120. -ac_cv_exeext=
  20121. -# b.out is created by i960 compilers.
  20122. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  20123. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  20124. +$as_echo_n "checking whether the C compiler works... " >&6; }
  20125. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  20126. +
  20127. +# The possible output files:
  20128. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  20129. +
  20130. +ac_rmfiles=
  20131. +for ac_file in $ac_files
  20132. +do
  20133. + case $ac_file in
  20134. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  20135. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  20136. + esac
  20137. +done
  20138. +rm -f $ac_rmfiles
  20139. +
  20140. +if { { ac_try="$ac_link_default"
  20141. +case "(($ac_try" in
  20142. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20143. + *) ac_try_echo=$ac_try;;
  20144. +esac
  20145. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20146. +$as_echo "$ac_try_echo"; } >&5
  20147. + (eval "$ac_link_default") 2>&5
  20148. + ac_status=$?
  20149. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20150. + test $ac_status = 0; }; then :
  20151. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  20152. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  20153. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  20154. +# so that the user can short-circuit this test for compilers unknown to
  20155. +# Autoconf.
  20156. +for ac_file in $ac_files ''
  20157. do
  20158. test -f "$ac_file" || continue
  20159. case $ac_file in
  20160. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  20161. - ;;
  20162. - conftest.$ac_ext )
  20163. - # This is the source file.
  20164. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  20165. ;;
  20166. [ab].out )
  20167. # We found the default executable, but exeext='' is most
  20168. # certainly right.
  20169. break;;
  20170. *.* )
  20171. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  20172. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  20173. - # but it would be cool to find out if it's true. Does anybody
  20174. - # maintain Libtool? --akim.
  20175. - export ac_cv_exeext
  20176. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  20177. + then :; else
  20178. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  20179. + fi
  20180. + # We set ac_cv_exeext here because the later test for it is not
  20181. + # safe: cross compilers may not add the suffix if given an `-o'
  20182. + # argument, so we may need to know it at that point already.
  20183. + # Even if this section looks crufty: it has the advantage of
  20184. + # actually working.
  20185. break;;
  20186. * )
  20187. break;;
  20188. esac
  20189. done
  20190. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  20191. +
  20192. else
  20193. - echo "$as_me: failed program was:" >&5
  20194. + ac_file=''
  20195. +fi
  20196. +if test -z "$ac_file"; then :
  20197. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20198. +$as_echo "no" >&6; }
  20199. +$as_echo "$as_me: failed program was:" >&5
  20200. sed 's/^/| /' conftest.$ac_ext >&5
  20201. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  20202. -See \`config.log' for more details." >&5
  20203. -echo "$as_me: error: C compiler cannot create executables
  20204. -See \`config.log' for more details." >&2;}
  20205. - { (exit 77); exit 77; }; }
  20206. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20207. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20208. +{ as_fn_set_status 77
  20209. +as_fn_error "C compiler cannot create executables
  20210. +See \`config.log' for more details." "$LINENO" 5; }; }
  20211. +else
  20212. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  20213. +$as_echo "yes" >&6; }
  20214. fi
  20215. -
  20216. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  20217. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  20218. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  20219. +$as_echo "$ac_file" >&6; }
  20220. ac_exeext=$ac_cv_exeext
  20221. -echo "$as_me:$LINENO: result: $ac_file" >&5
  20222. -echo "${ECHO_T}$ac_file" >&6
  20223. -
  20224. -# Check the compiler produces executables we can run. If not, either
  20225. -# the compiler is broken, or we cross compile.
  20226. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  20227. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  20228. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  20229. -# If not cross compiling, check that we can run a simple program.
  20230. -if test "$cross_compiling" != yes; then
  20231. - if { ac_try='./$ac_file'
  20232. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20233. - (eval $ac_try) 2>&5
  20234. - ac_status=$?
  20235. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20236. - (exit $ac_status); }; }; then
  20237. - cross_compiling=no
  20238. - else
  20239. - if test "$cross_compiling" = maybe; then
  20240. - cross_compiling=yes
  20241. - else
  20242. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  20243. -If you meant to cross compile, use \`--host'.
  20244. -See \`config.log' for more details." >&5
  20245. -echo "$as_me: error: cannot run C compiled programs.
  20246. -If you meant to cross compile, use \`--host'.
  20247. -See \`config.log' for more details." >&2;}
  20248. - { (exit 1); exit 1; }; }
  20249. - fi
  20250. - fi
  20251. -fi
  20252. -echo "$as_me:$LINENO: result: yes" >&5
  20253. -echo "${ECHO_T}yes" >&6
  20254. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  20255. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  20256. ac_clean_files=$ac_clean_files_save
  20257. -# Check the compiler produces executables we can run. If not, either
  20258. -# the compiler is broken, or we cross compile.
  20259. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  20260. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  20261. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  20262. -echo "${ECHO_T}$cross_compiling" >&6
  20263. -
  20264. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  20265. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  20266. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20267. - (eval $ac_link) 2>&5
  20268. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  20269. +$as_echo_n "checking for suffix of executables... " >&6; }
  20270. +if { { ac_try="$ac_link"
  20271. +case "(($ac_try" in
  20272. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20273. + *) ac_try_echo=$ac_try;;
  20274. +esac
  20275. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20276. +$as_echo "$ac_try_echo"; } >&5
  20277. + (eval "$ac_link") 2>&5
  20278. ac_status=$?
  20279. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20280. - (exit $ac_status); }; then
  20281. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20282. + test $ac_status = 0; }; then :
  20283. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  20284. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  20285. # work properly (i.e., refer to `conftest.exe'), while it won't with
  20286. @@ -2485,38 +3599,90 @@
  20287. for ac_file in conftest.exe conftest conftest.*; do
  20288. test -f "$ac_file" || continue
  20289. case $ac_file in
  20290. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  20291. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  20292. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  20293. - export ac_cv_exeext
  20294. break;;
  20295. * ) break;;
  20296. esac
  20297. done
  20298. else
  20299. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  20300. -See \`config.log' for more details." >&5
  20301. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  20302. -See \`config.log' for more details." >&2;}
  20303. - { (exit 1); exit 1; }; }
  20304. -fi
  20305. -
  20306. -rm -f conftest$ac_cv_exeext
  20307. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  20308. -echo "${ECHO_T}$ac_cv_exeext" >&6
  20309. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20310. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20311. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  20312. +See \`config.log' for more details." "$LINENO" 5; }
  20313. +fi
  20314. +rm -f conftest conftest$ac_cv_exeext
  20315. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  20316. +$as_echo "$ac_cv_exeext" >&6; }
  20317. rm -f conftest.$ac_ext
  20318. EXEEXT=$ac_cv_exeext
  20319. ac_exeext=$EXEEXT
  20320. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  20321. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  20322. -if test "${ac_cv_objext+set}" = set; then
  20323. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20324. -else
  20325. - cat >conftest.$ac_ext <<_ACEOF
  20326. -/* confdefs.h. */
  20327. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20328. +/* end confdefs.h. */
  20329. +#include <stdio.h>
  20330. +int
  20331. +main ()
  20332. +{
  20333. +FILE *f = fopen ("conftest.out", "w");
  20334. + return ferror (f) || fclose (f) != 0;
  20335. +
  20336. + ;
  20337. + return 0;
  20338. +}
  20339. _ACEOF
  20340. -cat confdefs.h >>conftest.$ac_ext
  20341. -cat >>conftest.$ac_ext <<_ACEOF
  20342. +ac_clean_files="$ac_clean_files conftest.out"
  20343. +# Check that the compiler produces executables we can run. If not, either
  20344. +# the compiler is broken, or we cross compile.
  20345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  20346. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  20347. +if test "$cross_compiling" != yes; then
  20348. + { { ac_try="$ac_link"
  20349. +case "(($ac_try" in
  20350. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20351. + *) ac_try_echo=$ac_try;;
  20352. +esac
  20353. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20354. +$as_echo "$ac_try_echo"; } >&5
  20355. + (eval "$ac_link") 2>&5
  20356. + ac_status=$?
  20357. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20358. + test $ac_status = 0; }
  20359. + if { ac_try='./conftest$ac_cv_exeext'
  20360. + { { case "(($ac_try" in
  20361. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20362. + *) ac_try_echo=$ac_try;;
  20363. +esac
  20364. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20365. +$as_echo "$ac_try_echo"; } >&5
  20366. + (eval "$ac_try") 2>&5
  20367. + ac_status=$?
  20368. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20369. + test $ac_status = 0; }; }; then
  20370. + cross_compiling=no
  20371. + else
  20372. + if test "$cross_compiling" = maybe; then
  20373. + cross_compiling=yes
  20374. + else
  20375. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20376. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20377. +as_fn_error "cannot run C compiled programs.
  20378. +If you meant to cross compile, use \`--host'.
  20379. +See \`config.log' for more details." "$LINENO" 5; }
  20380. + fi
  20381. + fi
  20382. +fi
  20383. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  20384. +$as_echo "$cross_compiling" >&6; }
  20385. +
  20386. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  20387. +ac_clean_files=$ac_clean_files_save
  20388. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  20389. +$as_echo_n "checking for suffix of object files... " >&6; }
  20390. +if test "${ac_cv_objext+set}" = set; then :
  20391. + $as_echo_n "(cached) " >&6
  20392. +else
  20393. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20394. /* end confdefs.h. */
  20395. int
  20396. @@ -2528,45 +3694,46 @@
  20397. }
  20398. _ACEOF
  20399. rm -f conftest.o conftest.obj
  20400. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20401. - (eval $ac_compile) 2>&5
  20402. - ac_status=$?
  20403. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20404. - (exit $ac_status); }; then
  20405. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  20406. +if { { ac_try="$ac_compile"
  20407. +case "(($ac_try" in
  20408. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20409. + *) ac_try_echo=$ac_try;;
  20410. +esac
  20411. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  20412. +$as_echo "$ac_try_echo"; } >&5
  20413. + (eval "$ac_compile") 2>&5
  20414. + ac_status=$?
  20415. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  20416. + test $ac_status = 0; }; then :
  20417. + for ac_file in conftest.o conftest.obj conftest.*; do
  20418. + test -f "$ac_file" || continue;
  20419. case $ac_file in
  20420. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  20421. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  20422. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  20423. break;;
  20424. esac
  20425. done
  20426. else
  20427. - echo "$as_me: failed program was:" >&5
  20428. + $as_echo "$as_me: failed program was:" >&5
  20429. sed 's/^/| /' conftest.$ac_ext >&5
  20430. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  20431. -See \`config.log' for more details." >&5
  20432. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  20433. -See \`config.log' for more details." >&2;}
  20434. - { (exit 1); exit 1; }; }
  20435. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  20436. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  20437. +as_fn_error "cannot compute suffix of object files: cannot compile
  20438. +See \`config.log' for more details." "$LINENO" 5; }
  20439. fi
  20440. -
  20441. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  20442. fi
  20443. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  20444. -echo "${ECHO_T}$ac_cv_objext" >&6
  20445. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  20446. +$as_echo "$ac_cv_objext" >&6; }
  20447. OBJEXT=$ac_cv_objext
  20448. ac_objext=$OBJEXT
  20449. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  20450. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  20451. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  20452. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20453. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  20454. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  20455. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  20456. + $as_echo_n "(cached) " >&6
  20457. else
  20458. - cat >conftest.$ac_ext <<_ACEOF
  20459. -/* confdefs.h. */
  20460. -_ACEOF
  20461. -cat confdefs.h >>conftest.$ac_ext
  20462. -cat >>conftest.$ac_ext <<_ACEOF
  20463. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20464. /* end confdefs.h. */
  20465. int
  20466. @@ -2580,54 +3747,34 @@
  20467. return 0;
  20468. }
  20469. _ACEOF
  20470. -rm -f conftest.$ac_objext
  20471. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20472. - (eval $ac_compile) 2>conftest.er1
  20473. - ac_status=$?
  20474. - grep -v '^ *+' conftest.er1 >conftest.err
  20475. - rm -f conftest.er1
  20476. - cat conftest.err >&5
  20477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20478. - (exit $ac_status); } &&
  20479. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20480. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20481. - (eval $ac_try) 2>&5
  20482. - ac_status=$?
  20483. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20484. - (exit $ac_status); }; } &&
  20485. - { ac_try='test -s conftest.$ac_objext'
  20486. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20487. - (eval $ac_try) 2>&5
  20488. - ac_status=$?
  20489. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20490. - (exit $ac_status); }; }; then
  20491. +if ac_fn_c_try_compile "$LINENO"; then :
  20492. ac_compiler_gnu=yes
  20493. else
  20494. - echo "$as_me: failed program was:" >&5
  20495. -sed 's/^/| /' conftest.$ac_ext >&5
  20496. -
  20497. -ac_compiler_gnu=no
  20498. + ac_compiler_gnu=no
  20499. fi
  20500. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20501. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20502. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  20503. fi
  20504. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  20505. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  20506. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  20507. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  20508. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  20509. +if test $ac_compiler_gnu = yes; then
  20510. + GCC=yes
  20511. +else
  20512. + GCC=
  20513. +fi
  20514. ac_test_CFLAGS=${CFLAGS+set}
  20515. ac_save_CFLAGS=$CFLAGS
  20516. -CFLAGS="-g"
  20517. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  20518. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  20519. -if test "${ac_cv_prog_cc_g+set}" = set; then
  20520. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20521. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  20522. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  20523. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  20524. + $as_echo_n "(cached) " >&6
  20525. else
  20526. - cat >conftest.$ac_ext <<_ACEOF
  20527. -/* confdefs.h. */
  20528. -_ACEOF
  20529. -cat confdefs.h >>conftest.$ac_ext
  20530. -cat >>conftest.$ac_ext <<_ACEOF
  20531. + ac_save_c_werror_flag=$ac_c_werror_flag
  20532. + ac_c_werror_flag=yes
  20533. + ac_cv_prog_cc_g=no
  20534. + CFLAGS="-g"
  20535. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20536. /* end confdefs.h. */
  20537. int
  20538. @@ -2638,38 +3785,49 @@
  20539. return 0;
  20540. }
  20541. _ACEOF
  20542. -rm -f conftest.$ac_objext
  20543. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20544. - (eval $ac_compile) 2>conftest.er1
  20545. - ac_status=$?
  20546. - grep -v '^ *+' conftest.er1 >conftest.err
  20547. - rm -f conftest.er1
  20548. - cat conftest.err >&5
  20549. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20550. - (exit $ac_status); } &&
  20551. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20552. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20553. - (eval $ac_try) 2>&5
  20554. - ac_status=$?
  20555. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20556. - (exit $ac_status); }; } &&
  20557. - { ac_try='test -s conftest.$ac_objext'
  20558. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20559. - (eval $ac_try) 2>&5
  20560. - ac_status=$?
  20561. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20562. - (exit $ac_status); }; }; then
  20563. +if ac_fn_c_try_compile "$LINENO"; then :
  20564. ac_cv_prog_cc_g=yes
  20565. else
  20566. - echo "$as_me: failed program was:" >&5
  20567. -sed 's/^/| /' conftest.$ac_ext >&5
  20568. + CFLAGS=""
  20569. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20570. +/* end confdefs.h. */
  20571. +
  20572. +int
  20573. +main ()
  20574. +{
  20575. +
  20576. + ;
  20577. + return 0;
  20578. +}
  20579. +_ACEOF
  20580. +if ac_fn_c_try_compile "$LINENO"; then :
  20581. +
  20582. +else
  20583. + ac_c_werror_flag=$ac_save_c_werror_flag
  20584. + CFLAGS="-g"
  20585. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20586. +/* end confdefs.h. */
  20587. +
  20588. +int
  20589. +main ()
  20590. +{
  20591. -ac_cv_prog_cc_g=no
  20592. + ;
  20593. + return 0;
  20594. +}
  20595. +_ACEOF
  20596. +if ac_fn_c_try_compile "$LINENO"; then :
  20597. + ac_cv_prog_cc_g=yes
  20598. +fi
  20599. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20600. +fi
  20601. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20602. fi
  20603. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20604. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20605. + ac_c_werror_flag=$ac_save_c_werror_flag
  20606. fi
  20607. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  20608. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  20609. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  20610. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  20611. if test "$ac_test_CFLAGS" = set; then
  20612. CFLAGS=$ac_save_CFLAGS
  20613. elif test $ac_cv_prog_cc_g = yes; then
  20614. @@ -2685,18 +3843,14 @@
  20615. CFLAGS=
  20616. fi
  20617. fi
  20618. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  20619. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  20620. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  20621. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20622. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  20623. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  20624. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  20625. + $as_echo_n "(cached) " >&6
  20626. else
  20627. - ac_cv_prog_cc_stdc=no
  20628. + ac_cv_prog_cc_c89=no
  20629. ac_save_CC=$CC
  20630. -cat >conftest.$ac_ext <<_ACEOF
  20631. -/* confdefs.h. */
  20632. -_ACEOF
  20633. -cat confdefs.h >>conftest.$ac_ext
  20634. -cat >>conftest.$ac_ext <<_ACEOF
  20635. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20636. /* end confdefs.h. */
  20637. #include <stdarg.h>
  20638. #include <stdio.h>
  20639. @@ -2724,12 +3878,17 @@
  20640. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  20641. function prototypes and stuff, but not '\xHH' hex character constants.
  20642. These don't provoke an error unfortunately, instead are silently treated
  20643. - as 'x'. The following induces an error, until -std1 is added to get
  20644. + as 'x'. The following induces an error, until -std is added to get
  20645. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  20646. array size at least. It's necessary to write '\x00'==0 to get something
  20647. - that's true only with -std1. */
  20648. + that's true only with -std. */
  20649. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  20650. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  20651. + inside strings and character constants. */
  20652. +#define FOO(x) 'x'
  20653. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  20654. +
  20655. int test (int i, double x);
  20656. struct s1 {int (*f) (int a);};
  20657. struct s2 {int (*f) (double a);};
  20658. @@ -2744,201 +3903,37 @@
  20659. return 0;
  20660. }
  20661. _ACEOF
  20662. -# Don't try gcc -ansi; that turns off useful extensions and
  20663. -# breaks some systems' header files.
  20664. -# AIX -qlanglvl=ansi
  20665. -# Ultrix and OSF/1 -std1
  20666. -# HP-UX 10.20 and later -Ae
  20667. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  20668. -# SVR4 -Xc -D__EXTENSIONS__
  20669. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20670. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  20671. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20672. do
  20673. CC="$ac_save_CC $ac_arg"
  20674. - rm -f conftest.$ac_objext
  20675. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20676. - (eval $ac_compile) 2>conftest.er1
  20677. - ac_status=$?
  20678. - grep -v '^ *+' conftest.er1 >conftest.err
  20679. - rm -f conftest.er1
  20680. - cat conftest.err >&5
  20681. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20682. - (exit $ac_status); } &&
  20683. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20684. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20685. - (eval $ac_try) 2>&5
  20686. - ac_status=$?
  20687. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20688. - (exit $ac_status); }; } &&
  20689. - { ac_try='test -s conftest.$ac_objext'
  20690. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20691. - (eval $ac_try) 2>&5
  20692. - ac_status=$?
  20693. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20694. - (exit $ac_status); }; }; then
  20695. - ac_cv_prog_cc_stdc=$ac_arg
  20696. -break
  20697. -else
  20698. - echo "$as_me: failed program was:" >&5
  20699. -sed 's/^/| /' conftest.$ac_ext >&5
  20700. -
  20701. + if ac_fn_c_try_compile "$LINENO"; then :
  20702. + ac_cv_prog_cc_c89=$ac_arg
  20703. fi
  20704. -rm -f conftest.err conftest.$ac_objext
  20705. +rm -f core conftest.err conftest.$ac_objext
  20706. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  20707. done
  20708. -rm -f conftest.$ac_ext conftest.$ac_objext
  20709. +rm -f conftest.$ac_ext
  20710. CC=$ac_save_CC
  20711. fi
  20712. -
  20713. -case "x$ac_cv_prog_cc_stdc" in
  20714. - x|xno)
  20715. - echo "$as_me:$LINENO: result: none needed" >&5
  20716. -echo "${ECHO_T}none needed" >&6 ;;
  20717. +# AC_CACHE_VAL
  20718. +case "x$ac_cv_prog_cc_c89" in
  20719. + x)
  20720. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  20721. +$as_echo "none needed" >&6; } ;;
  20722. + xno)
  20723. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  20724. +$as_echo "unsupported" >&6; } ;;
  20725. *)
  20726. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  20727. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  20728. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  20729. + CC="$CC $ac_cv_prog_cc_c89"
  20730. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  20731. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  20732. esac
  20733. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  20734. -# Some people use a C++ compiler to compile C. Since we use `exit',
  20735. -# in C++ we need to declare it. In case someone uses the same compiler
  20736. -# for both compiling C and C++ we need to have the C++ compiler decide
  20737. -# the declaration of exit, since it's the most demanding environment.
  20738. -cat >conftest.$ac_ext <<_ACEOF
  20739. -#ifndef __cplusplus
  20740. - choke me
  20741. -#endif
  20742. -_ACEOF
  20743. -rm -f conftest.$ac_objext
  20744. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20745. - (eval $ac_compile) 2>conftest.er1
  20746. - ac_status=$?
  20747. - grep -v '^ *+' conftest.er1 >conftest.err
  20748. - rm -f conftest.er1
  20749. - cat conftest.err >&5
  20750. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20751. - (exit $ac_status); } &&
  20752. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20753. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20754. - (eval $ac_try) 2>&5
  20755. - ac_status=$?
  20756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20757. - (exit $ac_status); }; } &&
  20758. - { ac_try='test -s conftest.$ac_objext'
  20759. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20760. - (eval $ac_try) 2>&5
  20761. - ac_status=$?
  20762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20763. - (exit $ac_status); }; }; then
  20764. - for ac_declaration in \
  20765. - '' \
  20766. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  20767. - 'extern "C" void std::exit (int); using std::exit;' \
  20768. - 'extern "C" void exit (int) throw ();' \
  20769. - 'extern "C" void exit (int);' \
  20770. - 'void exit (int);'
  20771. -do
  20772. - cat >conftest.$ac_ext <<_ACEOF
  20773. -/* confdefs.h. */
  20774. -_ACEOF
  20775. -cat confdefs.h >>conftest.$ac_ext
  20776. -cat >>conftest.$ac_ext <<_ACEOF
  20777. -/* end confdefs.h. */
  20778. -$ac_declaration
  20779. -#include <stdlib.h>
  20780. -int
  20781. -main ()
  20782. -{
  20783. -exit (42);
  20784. - ;
  20785. - return 0;
  20786. -}
  20787. -_ACEOF
  20788. -rm -f conftest.$ac_objext
  20789. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20790. - (eval $ac_compile) 2>conftest.er1
  20791. - ac_status=$?
  20792. - grep -v '^ *+' conftest.er1 >conftest.err
  20793. - rm -f conftest.er1
  20794. - cat conftest.err >&5
  20795. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20796. - (exit $ac_status); } &&
  20797. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20798. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20799. - (eval $ac_try) 2>&5
  20800. - ac_status=$?
  20801. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20802. - (exit $ac_status); }; } &&
  20803. - { ac_try='test -s conftest.$ac_objext'
  20804. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20805. - (eval $ac_try) 2>&5
  20806. - ac_status=$?
  20807. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20808. - (exit $ac_status); }; }; then
  20809. - :
  20810. -else
  20811. - echo "$as_me: failed program was:" >&5
  20812. -sed 's/^/| /' conftest.$ac_ext >&5
  20813. -
  20814. -continue
  20815. -fi
  20816. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20817. - cat >conftest.$ac_ext <<_ACEOF
  20818. -/* confdefs.h. */
  20819. -_ACEOF
  20820. -cat confdefs.h >>conftest.$ac_ext
  20821. -cat >>conftest.$ac_ext <<_ACEOF
  20822. -/* end confdefs.h. */
  20823. -$ac_declaration
  20824. -int
  20825. -main ()
  20826. -{
  20827. -exit (42);
  20828. - ;
  20829. - return 0;
  20830. -}
  20831. -_ACEOF
  20832. -rm -f conftest.$ac_objext
  20833. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20834. - (eval $ac_compile) 2>conftest.er1
  20835. - ac_status=$?
  20836. - grep -v '^ *+' conftest.er1 >conftest.err
  20837. - rm -f conftest.er1
  20838. - cat conftest.err >&5
  20839. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20840. - (exit $ac_status); } &&
  20841. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20842. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20843. - (eval $ac_try) 2>&5
  20844. - ac_status=$?
  20845. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20846. - (exit $ac_status); }; } &&
  20847. - { ac_try='test -s conftest.$ac_objext'
  20848. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20849. - (eval $ac_try) 2>&5
  20850. - ac_status=$?
  20851. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20852. - (exit $ac_status); }; }; then
  20853. - break
  20854. -else
  20855. - echo "$as_me: failed program was:" >&5
  20856. -sed 's/^/| /' conftest.$ac_ext >&5
  20857. -
  20858. -fi
  20859. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20860. -done
  20861. -rm -f conftest*
  20862. -if test -n "$ac_declaration"; then
  20863. - echo '#ifdef __cplusplus' >>confdefs.h
  20864. - echo $ac_declaration >>confdefs.h
  20865. - echo '#endif' >>confdefs.h
  20866. fi
  20867. -else
  20868. - echo "$as_me: failed program was:" >&5
  20869. -sed 's/^/| /' conftest.$ac_ext >&5
  20870. -
  20871. -fi
  20872. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20873. ac_ext=c
  20874. ac_cpp='$CPP $CPPFLAGS'
  20875. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20876. @@ -2946,60 +3941,58 @@
  20877. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20878. DEPDIR="${am__leading_dot}deps"
  20879. - ac_config_commands="$ac_config_commands depfiles"
  20880. +ac_config_commands="$ac_config_commands depfiles"
  20881. am_make=${MAKE-make}
  20882. cat > confinc << 'END'
  20883. am__doit:
  20884. - @echo done
  20885. + @echo this is the am__doit target
  20886. .PHONY: am__doit
  20887. END
  20888. # If we don't find an include directive, just comment out the code.
  20889. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  20890. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  20891. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  20892. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  20893. am__include="#"
  20894. am__quote=
  20895. _am_result=none
  20896. # First try GNU make style include.
  20897. echo "include confinc" > confmf
  20898. -# We grep out `Entering directory' and `Leaving directory'
  20899. -# messages which can occur if `w' ends up in MAKEFLAGS.
  20900. -# In particular we don't look at `^make:' because GNU make might
  20901. -# be invoked under some other name (usually "gmake"), in which
  20902. -# case it prints its new name instead of `make'.
  20903. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  20904. - am__include=include
  20905. - am__quote=
  20906. - _am_result=GNU
  20907. -fi
  20908. +# Ignore all kinds of additional output from `make'.
  20909. +case `$am_make -s -f confmf 2> /dev/null` in #(
  20910. +*the\ am__doit\ target*)
  20911. + am__include=include
  20912. + am__quote=
  20913. + _am_result=GNU
  20914. + ;;
  20915. +esac
  20916. # Now try BSD make style include.
  20917. if test "$am__include" = "#"; then
  20918. echo '.include "confinc"' > confmf
  20919. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  20920. - am__include=.include
  20921. - am__quote="\""
  20922. - _am_result=BSD
  20923. - fi
  20924. + case `$am_make -s -f confmf 2> /dev/null` in #(
  20925. + *the\ am__doit\ target*)
  20926. + am__include=.include
  20927. + am__quote="\""
  20928. + _am_result=BSD
  20929. + ;;
  20930. + esac
  20931. fi
  20932. -echo "$as_me:$LINENO: result: $_am_result" >&5
  20933. -echo "${ECHO_T}$_am_result" >&6
  20934. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  20935. +$as_echo "$_am_result" >&6; }
  20936. rm -f confinc confmf
  20937. -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  20938. -if test "${enable_dependency_tracking+set}" = set; then
  20939. - enableval="$enable_dependency_tracking"
  20940. +# Check whether --enable-dependency-tracking was given.
  20941. +if test "${enable_dependency_tracking+set}" = set; then :
  20942. + enableval=$enable_dependency_tracking;
  20943. +fi
  20944. -fi;
  20945. if test "x$enable_dependency_tracking" != xno; then
  20946. am_depcomp="$ac_aux_dir/depcomp"
  20947. AMDEPBACKSLASH='\'
  20948. fi
  20949. -
  20950. -
  20951. -if test "x$enable_dependency_tracking" != xno; then
  20952. + if test "x$enable_dependency_tracking" != xno; then
  20953. AMDEP_TRUE=
  20954. AMDEP_FALSE='#'
  20955. else
  20956. @@ -3009,13 +4002,12 @@
  20957. -
  20958. depcc="$CC" am_compiler_list=
  20959. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  20960. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  20961. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  20962. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20963. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20964. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  20965. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  20966. + $as_echo_n "(cached) " >&6
  20967. else
  20968. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20969. # We make a subdir and do the tests there. Otherwise we can end up
  20970. @@ -3040,6 +4032,11 @@
  20971. if test "$am_compiler_list" = ""; then
  20972. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  20973. fi
  20974. + am__universal=false
  20975. + case " $depcc " in #(
  20976. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  20977. + esac
  20978. +
  20979. for depmode in $am_compiler_list; do
  20980. # Setup a source with many dependencies, because some compilers
  20981. # like to wrap large dependency lists on column 80 (with \), and
  20982. @@ -3051,11 +4048,23 @@
  20983. : > sub/conftest.c
  20984. for i in 1 2 3 4 5 6; do
  20985. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  20986. - : > sub/conftst$i.h
  20987. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  20988. + # Solaris 8's {/usr,}/bin/sh.
  20989. + touch sub/conftst$i.h
  20990. done
  20991. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  20992. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20993. + # mode. It turns out that the SunPro C++ compiler does not properly
  20994. + # handle `-M -o', and we need to detect this. Also, some Intel
  20995. + # versions had trouble with output in subdirs
  20996. + am__obj=sub/conftest.${OBJEXT-o}
  20997. + am__minus_obj="-o $am__obj"
  20998. case $depmode in
  20999. + gcc)
  21000. + # This depmode causes a compiler race in universal mode.
  21001. + test "$am__universal" = false || continue
  21002. + ;;
  21003. nosideeffect)
  21004. # after this tag, mechanisms are not by side-effect, so they'll
  21005. # only be used when explicitly requested
  21006. @@ -3065,23 +4074,33 @@
  21007. break
  21008. fi
  21009. ;;
  21010. + msvisualcpp | msvcmsys)
  21011. + # This compiler won't grok `-c -o', but also, the minuso test has
  21012. + # not run yet. These depmodes are late enough in the game, and
  21013. + # so weak that their functioning should not be impacted.
  21014. + am__obj=conftest.${OBJEXT-o}
  21015. + am__minus_obj=
  21016. + ;;
  21017. none) break ;;
  21018. esac
  21019. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21020. - # mode. It turns out that the SunPro C++ compiler does not properly
  21021. - # handle `-M -o', and we need to detect this.
  21022. if depmode=$depmode \
  21023. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21024. + source=sub/conftest.c object=$am__obj \
  21025. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21026. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21027. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  21028. >/dev/null 2>conftest.err &&
  21029. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21030. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21031. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21032. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  21033. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21034. # icc doesn't choke on unknown options, it will just issue warnings
  21035. - # (even with -Werror). So we grep stderr for any message
  21036. - # that says an option was ignored.
  21037. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  21038. + # or remarks (even with -Werror). So we grep stderr for any message
  21039. + # that says an option was ignored or not supported.
  21040. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  21041. + # icc: Command line warning: ignoring option '-M'; no argument required
  21042. + # The diagnosis changed in icc 8.0:
  21043. + # icc: Command line remark: option '-MP' not supported
  21044. + if (grep 'ignoring option' conftest.err ||
  21045. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21046. am_cv_CC_dependencies_compiler_type=$depmode
  21047. break
  21048. fi
  21049. @@ -3095,13 +4114,11 @@
  21050. fi
  21051. fi
  21052. -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  21053. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  21054. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  21055. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  21056. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  21057. -
  21058. -
  21059. -if
  21060. + if
  21061. test "x$enable_dependency_tracking" != xno \
  21062. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  21063. am__fastdepCC_TRUE=
  21064. @@ -3119,179 +4136,483 @@
  21065. +depcc="$CCAS" am_compiler_list=
  21066. -if test "$GCC" = yes
  21067. -then
  21068. - case "$host" in
  21069. - *-*-mingw*)
  21070. - case "$build" in
  21071. - *-*-cygwin*)
  21072. - CPPFLAGS="$CPPFLAGS -mno-cygwin"
  21073. - LDFLAGS="$LDFLAGS -mno-cygwin"
  21074. - ;;
  21075. - esac
  21076. - esac
  21077. -
  21078. -fi
  21079. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  21080. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  21081. +if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
  21082. + $as_echo_n "(cached) " >&6
  21083. +else
  21084. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21085. + # We make a subdir and do the tests there. Otherwise we can end up
  21086. + # making bogus files that we don't know about and never remove. For
  21087. + # instance it was reported that on HP-UX the gcc test will end up
  21088. + # making a dummy file named `D' -- because `-MD' means `put the output
  21089. + # in D'.
  21090. + mkdir conftest.dir
  21091. + # Copy depcomp to subdir because otherwise we won't find it if we're
  21092. + # using a relative directory.
  21093. + cp "$am_depcomp" conftest.dir
  21094. + cd conftest.dir
  21095. + # We will build objects and dependencies in a subdirectory because
  21096. + # it helps to detect inapplicable dependency modes. For instance
  21097. + # both Tru64's cc and ICC support -MD to output dependencies as a
  21098. + # side effect of compilation, but ICC will put the dependencies in
  21099. + # the current directory while Tru64 will put them in the object
  21100. + # directory.
  21101. + mkdir sub
  21102. + am_cv_CCAS_dependencies_compiler_type=none
  21103. + if test "$am_compiler_list" = ""; then
  21104. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21105. + fi
  21106. + am__universal=false
  21107. -# Check whether --enable-shared or --disable-shared was given.
  21108. -if test "${enable_shared+set}" = set; then
  21109. - enableval="$enable_shared"
  21110. - p=${PACKAGE-default}
  21111. - case $enableval in
  21112. - yes) enable_shared=yes ;;
  21113. - no) enable_shared=no ;;
  21114. - *)
  21115. - enable_shared=no
  21116. - # Look at the argument we got. We use all the common list separators.
  21117. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21118. - for pkg in $enableval; do
  21119. - IFS="$lt_save_ifs"
  21120. - if test "X$pkg" = "X$p"; then
  21121. - enable_shared=yes
  21122. - fi
  21123. - done
  21124. - IFS="$lt_save_ifs"
  21125. - ;;
  21126. - esac
  21127. -else
  21128. - enable_shared=yes
  21129. -fi;
  21130. -# Check whether --enable-static or --disable-static was given.
  21131. -if test "${enable_static+set}" = set; then
  21132. - enableval="$enable_static"
  21133. - p=${PACKAGE-default}
  21134. - case $enableval in
  21135. - yes) enable_static=yes ;;
  21136. - no) enable_static=no ;;
  21137. - *)
  21138. - enable_static=no
  21139. - # Look at the argument we got. We use all the common list separators.
  21140. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21141. - for pkg in $enableval; do
  21142. - IFS="$lt_save_ifs"
  21143. - if test "X$pkg" = "X$p"; then
  21144. - enable_static=yes
  21145. - fi
  21146. - done
  21147. - IFS="$lt_save_ifs"
  21148. + for depmode in $am_compiler_list; do
  21149. + # Setup a source with many dependencies, because some compilers
  21150. + # like to wrap large dependency lists on column 80 (with \), and
  21151. + # we should not choose a depcomp mode which is confused by this.
  21152. + #
  21153. + # We need to recreate these files for each test, as the compiler may
  21154. + # overwrite some of them when testing with obscure command lines.
  21155. + # This happens at least with the AIX C compiler.
  21156. + : > sub/conftest.c
  21157. + for i in 1 2 3 4 5 6; do
  21158. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21159. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21160. + # Solaris 8's {/usr,}/bin/sh.
  21161. + touch sub/conftst$i.h
  21162. + done
  21163. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21164. +
  21165. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21166. + # mode. It turns out that the SunPro C++ compiler does not properly
  21167. + # handle `-M -o', and we need to detect this. Also, some Intel
  21168. + # versions had trouble with output in subdirs
  21169. + am__obj=sub/conftest.${OBJEXT-o}
  21170. + am__minus_obj="-o $am__obj"
  21171. + case $depmode in
  21172. + gcc)
  21173. + # This depmode causes a compiler race in universal mode.
  21174. + test "$am__universal" = false || continue
  21175. + ;;
  21176. + nosideeffect)
  21177. + # after this tag, mechanisms are not by side-effect, so they'll
  21178. + # only be used when explicitly requested
  21179. + if test "x$enable_dependency_tracking" = xyes; then
  21180. + continue
  21181. + else
  21182. + break
  21183. + fi
  21184. + ;;
  21185. + msvisualcpp | msvcmsys)
  21186. + # This compiler won't grok `-c -o', but also, the minuso test has
  21187. + # not run yet. These depmodes are late enough in the game, and
  21188. + # so weak that their functioning should not be impacted.
  21189. + am__obj=conftest.${OBJEXT-o}
  21190. + am__minus_obj=
  21191. ;;
  21192. + none) break ;;
  21193. esac
  21194. + if depmode=$depmode \
  21195. + source=sub/conftest.c object=$am__obj \
  21196. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21197. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  21198. + >/dev/null 2>conftest.err &&
  21199. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  21200. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21201. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  21202. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21203. + # icc doesn't choke on unknown options, it will just issue warnings
  21204. + # or remarks (even with -Werror). So we grep stderr for any message
  21205. + # that says an option was ignored or not supported.
  21206. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  21207. + # icc: Command line warning: ignoring option '-M'; no argument required
  21208. + # The diagnosis changed in icc 8.0:
  21209. + # icc: Command line remark: option '-MP' not supported
  21210. + if (grep 'ignoring option' conftest.err ||
  21211. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21212. + am_cv_CCAS_dependencies_compiler_type=$depmode
  21213. + break
  21214. + fi
  21215. + fi
  21216. + done
  21217. +
  21218. + cd ..
  21219. + rm -rf conftest.dir
  21220. else
  21221. - enable_static=yes
  21222. -fi;
  21223. + am_cv_CCAS_dependencies_compiler_type=none
  21224. +fi
  21225. -# Check whether --enable-fast-install or --disable-fast-install was given.
  21226. -if test "${enable_fast_install+set}" = set; then
  21227. - enableval="$enable_fast_install"
  21228. - p=${PACKAGE-default}
  21229. - case $enableval in
  21230. - yes) enable_fast_install=yes ;;
  21231. - no) enable_fast_install=no ;;
  21232. - *)
  21233. - enable_fast_install=no
  21234. - # Look at the argument we got. We use all the common list separators.
  21235. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  21236. - for pkg in $enableval; do
  21237. - IFS="$lt_save_ifs"
  21238. - if test "X$pkg" = "X$p"; then
  21239. - enable_fast_install=yes
  21240. - fi
  21241. - done
  21242. - IFS="$lt_save_ifs"
  21243. - ;;
  21244. +fi
  21245. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
  21246. +$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
  21247. +CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
  21248. +
  21249. + if
  21250. + test "x$enable_dependency_tracking" != xno \
  21251. + && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
  21252. + am__fastdepCCAS_TRUE=
  21253. + am__fastdepCCAS_FALSE='#'
  21254. +else
  21255. + am__fastdepCCAS_TRUE='#'
  21256. + am__fastdepCCAS_FALSE=
  21257. +fi
  21258. +
  21259. +
  21260. +
  21261. +if test "$GCC" = yes
  21262. +then
  21263. + case "$host" in
  21264. + *-*-mingw*)
  21265. + case "$build" in
  21266. + *-*-cygwin*)
  21267. + CPPFLAGS="$CPPFLAGS -mno-cygwin"
  21268. + LDFLAGS="$LDFLAGS -mno-cygwin"
  21269. + ;;
  21270. + esac
  21271. esac
  21272. +
  21273. +fi
  21274. +
  21275. +
  21276. +case `pwd` in
  21277. + *\ * | *\ *)
  21278. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  21279. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  21280. +esac
  21281. +
  21282. +
  21283. +
  21284. +macro_version='2.2.6b'
  21285. +macro_revision='1.3017'
  21286. +
  21287. +
  21288. +
  21289. +
  21290. +
  21291. +
  21292. +
  21293. +
  21294. +
  21295. +
  21296. +
  21297. +
  21298. +
  21299. +ltmain="$ac_aux_dir/ltmain.sh"
  21300. +
  21301. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  21302. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  21303. +if test "${ac_cv_path_SED+set}" = set; then :
  21304. + $as_echo_n "(cached) " >&6
  21305. +else
  21306. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  21307. + for ac_i in 1 2 3 4 5 6 7; do
  21308. + ac_script="$ac_script$as_nl$ac_script"
  21309. + done
  21310. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  21311. + { ac_script=; unset ac_script;}
  21312. + if test -z "$SED"; then
  21313. + ac_path_SED_found=false
  21314. + # Loop through the user's path and test for each of PROGNAME-LIST
  21315. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21316. +for as_dir in $PATH
  21317. +do
  21318. + IFS=$as_save_IFS
  21319. + test -z "$as_dir" && as_dir=.
  21320. + for ac_prog in sed gsed; do
  21321. + for ac_exec_ext in '' $ac_executable_extensions; do
  21322. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  21323. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  21324. +# Check for GNU ac_path_SED and select it if it is found.
  21325. + # Check for GNU $ac_path_SED
  21326. +case `"$ac_path_SED" --version 2>&1` in
  21327. +*GNU*)
  21328. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  21329. +*)
  21330. + ac_count=0
  21331. + $as_echo_n 0123456789 >"conftest.in"
  21332. + while :
  21333. + do
  21334. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  21335. + mv "conftest.tmp" "conftest.in"
  21336. + cp "conftest.in" "conftest.nl"
  21337. + $as_echo '' >> "conftest.nl"
  21338. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21339. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21340. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21341. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  21342. + # Best one so far, save it but keep looking for a better one
  21343. + ac_cv_path_SED="$ac_path_SED"
  21344. + ac_path_SED_max=$ac_count
  21345. + fi
  21346. + # 10*(2^10) chars as input seems more than enough
  21347. + test $ac_count -gt 10 && break
  21348. + done
  21349. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21350. +esac
  21351. +
  21352. + $ac_path_SED_found && break 3
  21353. + done
  21354. + done
  21355. + done
  21356. +IFS=$as_save_IFS
  21357. + if test -z "$ac_cv_path_SED"; then
  21358. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  21359. + fi
  21360. else
  21361. - enable_fast_install=yes
  21362. -fi;
  21363. + ac_cv_path_SED=$SED
  21364. +fi
  21365. +
  21366. +fi
  21367. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  21368. +$as_echo "$ac_cv_path_SED" >&6; }
  21369. + SED="$ac_cv_path_SED"
  21370. + rm -f conftest.sed
  21371. +
  21372. +test -z "$SED" && SED=sed
  21373. +Xsed="$SED -e 1s/^X//"
  21374. +
  21375. +
  21376. +
  21377. +
  21378. +
  21379. +
  21380. +
  21381. +
  21382. +
  21383. -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  21384. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  21385. -if test "${lt_cv_path_SED+set}" = set; then
  21386. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21387. +
  21388. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  21389. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  21390. +if test "${ac_cv_path_GREP+set}" = set; then :
  21391. + $as_echo_n "(cached) " >&6
  21392. else
  21393. - # Loop through the user's path and test for sed and gsed.
  21394. -# Then use that list of sed's as ones to test for truncation.
  21395. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21396. -for as_dir in $PATH
  21397. + if test -z "$GREP"; then
  21398. + ac_path_GREP_found=false
  21399. + # Loop through the user's path and test for each of PROGNAME-LIST
  21400. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21401. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21402. do
  21403. IFS=$as_save_IFS
  21404. test -z "$as_dir" && as_dir=.
  21405. - for lt_ac_prog in sed gsed; do
  21406. + for ac_prog in grep ggrep; do
  21407. for ac_exec_ext in '' $ac_executable_extensions; do
  21408. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  21409. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  21410. - fi
  21411. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  21412. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  21413. +# Check for GNU ac_path_GREP and select it if it is found.
  21414. + # Check for GNU $ac_path_GREP
  21415. +case `"$ac_path_GREP" --version 2>&1` in
  21416. +*GNU*)
  21417. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  21418. +*)
  21419. + ac_count=0
  21420. + $as_echo_n 0123456789 >"conftest.in"
  21421. + while :
  21422. + do
  21423. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  21424. + mv "conftest.tmp" "conftest.in"
  21425. + cp "conftest.in" "conftest.nl"
  21426. + $as_echo 'GREP' >> "conftest.nl"
  21427. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21428. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21429. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21430. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  21431. + # Best one so far, save it but keep looking for a better one
  21432. + ac_cv_path_GREP="$ac_path_GREP"
  21433. + ac_path_GREP_max=$ac_count
  21434. + fi
  21435. + # 10*(2^10) chars as input seems more than enough
  21436. + test $ac_count -gt 10 && break
  21437. + done
  21438. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21439. +esac
  21440. +
  21441. + $ac_path_GREP_found && break 3
  21442. done
  21443. done
  21444. -done
  21445. -lt_ac_max=0
  21446. -lt_ac_count=0
  21447. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  21448. -# along with /bin/sed that truncates output.
  21449. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  21450. - test ! -f $lt_ac_sed && break
  21451. - cat /dev/null > conftest.in
  21452. - lt_ac_count=0
  21453. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  21454. - # Check for GNU sed and select it if it is found.
  21455. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  21456. - lt_cv_path_SED=$lt_ac_sed
  21457. - break
  21458. + done
  21459. +IFS=$as_save_IFS
  21460. + if test -z "$ac_cv_path_GREP"; then
  21461. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21462. fi
  21463. - while true; do
  21464. - cat conftest.in conftest.in >conftest.tmp
  21465. - mv conftest.tmp conftest.in
  21466. - cp conftest.in conftest.nl
  21467. - echo >>conftest.nl
  21468. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  21469. - cmp -s conftest.out conftest.nl || break
  21470. - # 10000 chars as input seems more than enough
  21471. - test $lt_ac_count -gt 10 && break
  21472. - lt_ac_count=`expr $lt_ac_count + 1`
  21473. - if test $lt_ac_count -gt $lt_ac_max; then
  21474. - lt_ac_max=$lt_ac_count
  21475. - lt_cv_path_SED=$lt_ac_sed
  21476. +else
  21477. + ac_cv_path_GREP=$GREP
  21478. +fi
  21479. +
  21480. +fi
  21481. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  21482. +$as_echo "$ac_cv_path_GREP" >&6; }
  21483. + GREP="$ac_cv_path_GREP"
  21484. +
  21485. +
  21486. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  21487. +$as_echo_n "checking for egrep... " >&6; }
  21488. +if test "${ac_cv_path_EGREP+set}" = set; then :
  21489. + $as_echo_n "(cached) " >&6
  21490. +else
  21491. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  21492. + then ac_cv_path_EGREP="$GREP -E"
  21493. + else
  21494. + if test -z "$EGREP"; then
  21495. + ac_path_EGREP_found=false
  21496. + # Loop through the user's path and test for each of PROGNAME-LIST
  21497. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21498. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21499. +do
  21500. + IFS=$as_save_IFS
  21501. + test -z "$as_dir" && as_dir=.
  21502. + for ac_prog in egrep; do
  21503. + for ac_exec_ext in '' $ac_executable_extensions; do
  21504. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  21505. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  21506. +# Check for GNU ac_path_EGREP and select it if it is found.
  21507. + # Check for GNU $ac_path_EGREP
  21508. +case `"$ac_path_EGREP" --version 2>&1` in
  21509. +*GNU*)
  21510. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  21511. +*)
  21512. + ac_count=0
  21513. + $as_echo_n 0123456789 >"conftest.in"
  21514. + while :
  21515. + do
  21516. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  21517. + mv "conftest.tmp" "conftest.in"
  21518. + cp "conftest.in" "conftest.nl"
  21519. + $as_echo 'EGREP' >> "conftest.nl"
  21520. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21521. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21522. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21523. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  21524. + # Best one so far, save it but keep looking for a better one
  21525. + ac_cv_path_EGREP="$ac_path_EGREP"
  21526. + ac_path_EGREP_max=$ac_count
  21527. fi
  21528. + # 10*(2^10) chars as input seems more than enough
  21529. + test $ac_count -gt 10 && break
  21530. done
  21531. -done
  21532. -SED=$lt_cv_path_SED
  21533. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21534. +esac
  21535. +
  21536. + $ac_path_EGREP_found && break 3
  21537. + done
  21538. + done
  21539. + done
  21540. +IFS=$as_save_IFS
  21541. + if test -z "$ac_cv_path_EGREP"; then
  21542. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21543. + fi
  21544. +else
  21545. + ac_cv_path_EGREP=$EGREP
  21546. +fi
  21547. + fi
  21548. fi
  21549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  21550. +$as_echo "$ac_cv_path_EGREP" >&6; }
  21551. + EGREP="$ac_cv_path_EGREP"
  21552. -echo "$as_me:$LINENO: result: $SED" >&5
  21553. -echo "${ECHO_T}$SED" >&6
  21554. -echo "$as_me:$LINENO: checking for egrep" >&5
  21555. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  21556. -if test "${ac_cv_prog_egrep+set}" = set; then
  21557. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21558. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  21559. +$as_echo_n "checking for fgrep... " >&6; }
  21560. +if test "${ac_cv_path_FGREP+set}" = set; then :
  21561. + $as_echo_n "(cached) " >&6
  21562. else
  21563. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  21564. - then ac_cv_prog_egrep='grep -E'
  21565. - else ac_cv_prog_egrep='egrep'
  21566. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  21567. + then ac_cv_path_FGREP="$GREP -F"
  21568. + else
  21569. + if test -z "$FGREP"; then
  21570. + ac_path_FGREP_found=false
  21571. + # Loop through the user's path and test for each of PROGNAME-LIST
  21572. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21573. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21574. +do
  21575. + IFS=$as_save_IFS
  21576. + test -z "$as_dir" && as_dir=.
  21577. + for ac_prog in fgrep; do
  21578. + for ac_exec_ext in '' $ac_executable_extensions; do
  21579. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  21580. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  21581. +# Check for GNU ac_path_FGREP and select it if it is found.
  21582. + # Check for GNU $ac_path_FGREP
  21583. +case `"$ac_path_FGREP" --version 2>&1` in
  21584. +*GNU*)
  21585. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  21586. +*)
  21587. + ac_count=0
  21588. + $as_echo_n 0123456789 >"conftest.in"
  21589. + while :
  21590. + do
  21591. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  21592. + mv "conftest.tmp" "conftest.in"
  21593. + cp "conftest.in" "conftest.nl"
  21594. + $as_echo 'FGREP' >> "conftest.nl"
  21595. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21596. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21597. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21598. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  21599. + # Best one so far, save it but keep looking for a better one
  21600. + ac_cv_path_FGREP="$ac_path_FGREP"
  21601. + ac_path_FGREP_max=$ac_count
  21602. fi
  21603. + # 10*(2^10) chars as input seems more than enough
  21604. + test $ac_count -gt 10 && break
  21605. + done
  21606. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21607. +esac
  21608. +
  21609. + $ac_path_FGREP_found && break 3
  21610. + done
  21611. + done
  21612. + done
  21613. +IFS=$as_save_IFS
  21614. + if test -z "$ac_cv_path_FGREP"; then
  21615. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21616. + fi
  21617. +else
  21618. + ac_cv_path_FGREP=$FGREP
  21619. +fi
  21620. +
  21621. + fi
  21622. fi
  21623. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  21624. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  21625. - EGREP=$ac_cv_prog_egrep
  21626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  21627. +$as_echo "$ac_cv_path_FGREP" >&6; }
  21628. + FGREP="$ac_cv_path_FGREP"
  21629. +
  21630. +
  21631. +test -z "$GREP" && GREP=grep
  21632. +
  21633. +
  21634. +
  21635. +
  21636. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  21637. -if test "${with_gnu_ld+set}" = set; then
  21638. - withval="$with_gnu_ld"
  21639. - test "$withval" = no || with_gnu_ld=yes
  21640. +
  21641. +
  21642. +
  21643. +
  21644. +
  21645. +
  21646. +
  21647. +
  21648. +
  21649. +
  21650. +
  21651. +
  21652. +# Check whether --with-gnu-ld was given.
  21653. +if test "${with_gnu_ld+set}" = set; then :
  21654. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  21655. else
  21656. with_gnu_ld=no
  21657. -fi;
  21658. +fi
  21659. +
  21660. ac_prog=ld
  21661. if test "$GCC" = yes; then
  21662. # Check if gcc -print-prog-name=ld gives a path.
  21663. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  21664. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  21665. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  21666. +$as_echo_n "checking for ld used by $CC... " >&6; }
  21667. case $host in
  21668. *-*-mingw*)
  21669. # gcc leaves a trailing carriage return which upsets mingw
  21670. @@ -3304,9 +4625,9 @@
  21671. [\\/]* | ?:[\\/]*)
  21672. re_direlt='/[^/][^/]*/\.\./'
  21673. # Canonicalize the pathname of ld
  21674. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  21675. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  21676. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  21677. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  21678. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  21679. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  21680. done
  21681. test -z "$LD" && LD="$ac_prog"
  21682. ;;
  21683. @@ -3320,14 +4641,14 @@
  21684. ;;
  21685. esac
  21686. elif test "$with_gnu_ld" = yes; then
  21687. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  21688. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  21689. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  21690. +$as_echo_n "checking for GNU ld... " >&6; }
  21691. else
  21692. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  21693. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  21694. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  21695. +$as_echo_n "checking for non-GNU ld... " >&6; }
  21696. fi
  21697. -if test "${lt_cv_path_LD+set}" = set; then
  21698. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21699. +if test "${lt_cv_path_LD+set}" = set; then :
  21700. + $as_echo_n "(cached) " >&6
  21701. else
  21702. if test -z "$LD"; then
  21703. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21704. @@ -3337,7 +4658,7 @@
  21705. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  21706. lt_cv_path_LD="$ac_dir/$ac_prog"
  21707. # Check to see if the program is GNU ld. I'd rather use --version,
  21708. - # but apparently some GNU ld's only accept -v.
  21709. + # but apparently some variants of GNU ld only accept -v.
  21710. # Break only if it was the GNU/non-GNU ld that we prefer.
  21711. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  21712. *GNU* | *'with BFD'*)
  21713. @@ -3357,21 +4678,19 @@
  21714. LD="$lt_cv_path_LD"
  21715. if test -n "$LD"; then
  21716. - echo "$as_me:$LINENO: result: $LD" >&5
  21717. -echo "${ECHO_T}$LD" >&6
  21718. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  21719. +$as_echo "$LD" >&6; }
  21720. else
  21721. - echo "$as_me:$LINENO: result: no" >&5
  21722. -echo "${ECHO_T}no" >&6
  21723. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21724. +$as_echo "no" >&6; }
  21725. fi
  21726. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  21727. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  21728. - { (exit 1); exit 1; }; }
  21729. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  21730. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  21731. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  21732. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21733. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  21734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  21735. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  21736. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  21737. + $as_echo_n "(cached) " >&6
  21738. else
  21739. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  21740. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  21741. case `$LD -v 2>&1 </dev/null` in
  21742. *GNU* | *'with BFD'*)
  21743. lt_cv_prog_gnu_ld=yes
  21744. @@ -3381,88 +4700,551 @@
  21745. ;;
  21746. esac
  21747. fi
  21748. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  21749. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  21750. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  21751. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  21752. with_gnu_ld=$lt_cv_prog_gnu_ld
  21753. -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  21754. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  21755. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  21756. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21757. -else
  21758. - lt_cv_ld_reload_flag='-r'
  21759. -fi
  21760. -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  21761. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  21762. -reload_flag=$lt_cv_ld_reload_flag
  21763. -case $reload_flag in
  21764. -"" | " "*) ;;
  21765. -*) reload_flag=" $reload_flag" ;;
  21766. -esac
  21767. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21768. -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  21769. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  21770. -if test "${lt_cv_path_NM+set}" = set; then
  21771. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21772. +
  21773. +
  21774. +
  21775. +
  21776. +
  21777. +
  21778. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  21779. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  21780. +if test "${lt_cv_path_NM+set}" = set; then :
  21781. + $as_echo_n "(cached) " >&6
  21782. else
  21783. if test -n "$NM"; then
  21784. # Let the user override the test.
  21785. lt_cv_path_NM="$NM"
  21786. else
  21787. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21788. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  21789. - IFS="$lt_save_ifs"
  21790. - test -z "$ac_dir" && ac_dir=.
  21791. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  21792. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  21793. - # Check to see if the nm accepts a BSD-compat flag.
  21794. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  21795. - # nm: unknown option "B" ignored
  21796. - # Tru64's nm complains that /dev/null is an invalid object file
  21797. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  21798. - */dev/null* | *'Invalid file or object type'*)
  21799. - lt_cv_path_NM="$tmp_nm -B"
  21800. - break
  21801. - ;;
  21802. - *)
  21803. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  21804. - */dev/null*)
  21805. - lt_cv_path_NM="$tmp_nm -p"
  21806. + lt_nm_to_check="${ac_tool_prefix}nm"
  21807. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  21808. + lt_nm_to_check="$lt_nm_to_check nm"
  21809. + fi
  21810. + for lt_tmp_nm in $lt_nm_to_check; do
  21811. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21812. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  21813. + IFS="$lt_save_ifs"
  21814. + test -z "$ac_dir" && ac_dir=.
  21815. + tmp_nm="$ac_dir/$lt_tmp_nm"
  21816. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  21817. + # Check to see if the nm accepts a BSD-compat flag.
  21818. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  21819. + # nm: unknown option "B" ignored
  21820. + # Tru64's nm complains that /dev/null is an invalid object file
  21821. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  21822. + */dev/null* | *'Invalid file or object type'*)
  21823. + lt_cv_path_NM="$tmp_nm -B"
  21824. break
  21825. ;;
  21826. *)
  21827. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  21828. - continue # so that we can try to find one that supports BSD flags
  21829. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  21830. + */dev/null*)
  21831. + lt_cv_path_NM="$tmp_nm -p"
  21832. + break
  21833. + ;;
  21834. + *)
  21835. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  21836. + continue # so that we can try to find one that supports BSD flags
  21837. + ;;
  21838. + esac
  21839. ;;
  21840. esac
  21841. - esac
  21842. - fi
  21843. + fi
  21844. + done
  21845. + IFS="$lt_save_ifs"
  21846. done
  21847. - IFS="$lt_save_ifs"
  21848. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  21849. + : ${lt_cv_path_NM=no}
  21850. fi
  21851. fi
  21852. -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  21853. -echo "${ECHO_T}$lt_cv_path_NM" >&6
  21854. -NM="$lt_cv_path_NM"
  21855. -
  21856. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  21857. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  21858. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  21859. +$as_echo "$lt_cv_path_NM" >&6; }
  21860. +if test "$lt_cv_path_NM" != "no"; then
  21861. + NM="$lt_cv_path_NM"
  21862. +else
  21863. + # Didn't find any BSD compatible name lister, look for dumpbin.
  21864. + if test -n "$ac_tool_prefix"; then
  21865. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21866. + do
  21867. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21868. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21870. +$as_echo_n "checking for $ac_word... " >&6; }
  21871. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  21872. + $as_echo_n "(cached) " >&6
  21873. +else
  21874. + if test -n "$DUMPBIN"; then
  21875. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  21876. +else
  21877. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21878. +for as_dir in $PATH
  21879. +do
  21880. + IFS=$as_save_IFS
  21881. + test -z "$as_dir" && as_dir=.
  21882. + for ac_exec_ext in '' $ac_executable_extensions; do
  21883. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21884. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  21885. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21886. + break 2
  21887. + fi
  21888. +done
  21889. + done
  21890. +IFS=$as_save_IFS
  21891. +
  21892. +fi
  21893. +fi
  21894. +DUMPBIN=$ac_cv_prog_DUMPBIN
  21895. +if test -n "$DUMPBIN"; then
  21896. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  21897. +$as_echo "$DUMPBIN" >&6; }
  21898. +else
  21899. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21900. +$as_echo "no" >&6; }
  21901. +fi
  21902. +
  21903. +
  21904. + test -n "$DUMPBIN" && break
  21905. + done
  21906. +fi
  21907. +if test -z "$DUMPBIN"; then
  21908. + ac_ct_DUMPBIN=$DUMPBIN
  21909. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21910. +do
  21911. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  21912. +set dummy $ac_prog; ac_word=$2
  21913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21914. +$as_echo_n "checking for $ac_word... " >&6; }
  21915. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  21916. + $as_echo_n "(cached) " >&6
  21917. +else
  21918. + if test -n "$ac_ct_DUMPBIN"; then
  21919. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  21920. +else
  21921. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21922. +for as_dir in $PATH
  21923. +do
  21924. + IFS=$as_save_IFS
  21925. + test -z "$as_dir" && as_dir=.
  21926. + for ac_exec_ext in '' $ac_executable_extensions; do
  21927. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21928. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  21929. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21930. + break 2
  21931. + fi
  21932. +done
  21933. + done
  21934. +IFS=$as_save_IFS
  21935. +
  21936. +fi
  21937. +fi
  21938. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  21939. +if test -n "$ac_ct_DUMPBIN"; then
  21940. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  21941. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  21942. +else
  21943. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21944. +$as_echo "no" >&6; }
  21945. +fi
  21946. +
  21947. +
  21948. + test -n "$ac_ct_DUMPBIN" && break
  21949. +done
  21950. +
  21951. + if test "x$ac_ct_DUMPBIN" = x; then
  21952. + DUMPBIN=":"
  21953. + else
  21954. + case $cross_compiling:$ac_tool_warned in
  21955. +yes:)
  21956. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21957. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21958. +ac_tool_warned=yes ;;
  21959. +esac
  21960. + DUMPBIN=$ac_ct_DUMPBIN
  21961. + fi
  21962. +fi
  21963. +
  21964. +
  21965. + if test "$DUMPBIN" != ":"; then
  21966. + NM="$DUMPBIN"
  21967. + fi
  21968. +fi
  21969. +test -z "$NM" && NM=nm
  21970. +
  21971. +
  21972. +
  21973. +
  21974. +
  21975. +
  21976. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  21977. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  21978. +if test "${lt_cv_nm_interface+set}" = set; then :
  21979. + $as_echo_n "(cached) " >&6
  21980. +else
  21981. + lt_cv_nm_interface="BSD nm"
  21982. + echo "int some_variable = 0;" > conftest.$ac_ext
  21983. + (eval echo "\"\$as_me:4889: $ac_compile\"" >&5)
  21984. + (eval "$ac_compile" 2>conftest.err)
  21985. + cat conftest.err >&5
  21986. + (eval echo "\"\$as_me:4892: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  21987. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  21988. + cat conftest.err >&5
  21989. + (eval echo "\"\$as_me:4895: output\"" >&5)
  21990. + cat conftest.out >&5
  21991. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  21992. + lt_cv_nm_interface="MS dumpbin"
  21993. + fi
  21994. + rm -f conftest*
  21995. +fi
  21996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  21997. +$as_echo "$lt_cv_nm_interface" >&6; }
  21998. +
  21999. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  22000. +$as_echo_n "checking whether ln -s works... " >&6; }
  22001. LN_S=$as_ln_s
  22002. if test "$LN_S" = "ln -s"; then
  22003. - echo "$as_me:$LINENO: result: yes" >&5
  22004. -echo "${ECHO_T}yes" >&6
  22005. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  22006. +$as_echo "yes" >&6; }
  22007. +else
  22008. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  22009. +$as_echo "no, using $LN_S" >&6; }
  22010. +fi
  22011. +
  22012. +# find the maximum length of command line arguments
  22013. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  22014. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  22015. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  22016. + $as_echo_n "(cached) " >&6
  22017. +else
  22018. + i=0
  22019. + teststring="ABCD"
  22020. +
  22021. + case $build_os in
  22022. + msdosdjgpp*)
  22023. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  22024. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  22025. + # during glob expansion). Even if it were fixed, the result of this
  22026. + # check would be larger than it should be.
  22027. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  22028. + ;;
  22029. +
  22030. + gnu*)
  22031. + # Under GNU Hurd, this test is not required because there is
  22032. + # no limit to the length of command line arguments.
  22033. + # Libtool will interpret -1 as no limit whatsoever
  22034. + lt_cv_sys_max_cmd_len=-1;
  22035. + ;;
  22036. +
  22037. + cygwin* | mingw* | cegcc*)
  22038. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  22039. + # about 5 minutes as the teststring grows exponentially.
  22040. + # Worse, since 9x/ME are not pre-emptively multitasking,
  22041. + # you end up with a "frozen" computer, even though with patience
  22042. + # the test eventually succeeds (with a max line length of 256k).
  22043. + # Instead, let's just punt: use the minimum linelength reported by
  22044. + # all of the supported platforms: 8192 (on NT/2K/XP).
  22045. + lt_cv_sys_max_cmd_len=8192;
  22046. + ;;
  22047. +
  22048. + amigaos*)
  22049. + # On AmigaOS with pdksh, this test takes hours, literally.
  22050. + # So we just punt and use a minimum line length of 8192.
  22051. + lt_cv_sys_max_cmd_len=8192;
  22052. + ;;
  22053. +
  22054. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  22055. + # This has been around since 386BSD, at least. Likely further.
  22056. + if test -x /sbin/sysctl; then
  22057. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  22058. + elif test -x /usr/sbin/sysctl; then
  22059. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  22060. + else
  22061. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  22062. + fi
  22063. + # And add a safety zone
  22064. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22065. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22066. + ;;
  22067. +
  22068. + interix*)
  22069. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  22070. + lt_cv_sys_max_cmd_len=196608
  22071. + ;;
  22072. +
  22073. + osf*)
  22074. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  22075. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  22076. + # nice to cause kernel panics so lets avoid the loop below.
  22077. + # First set a reasonable default.
  22078. + lt_cv_sys_max_cmd_len=16384
  22079. + #
  22080. + if test -x /sbin/sysconfig; then
  22081. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  22082. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  22083. + esac
  22084. + fi
  22085. + ;;
  22086. + sco3.2v5*)
  22087. + lt_cv_sys_max_cmd_len=102400
  22088. + ;;
  22089. + sysv5* | sco5v6* | sysv4.2uw2*)
  22090. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  22091. + if test -n "$kargmax"; then
  22092. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  22093. + else
  22094. + lt_cv_sys_max_cmd_len=32768
  22095. + fi
  22096. + ;;
  22097. + *)
  22098. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  22099. + if test -n "$lt_cv_sys_max_cmd_len"; then
  22100. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  22101. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  22102. + else
  22103. + # Make teststring a little bigger before we do anything with it.
  22104. + # a 1K string should be a reasonable start.
  22105. + for i in 1 2 3 4 5 6 7 8 ; do
  22106. + teststring=$teststring$teststring
  22107. + done
  22108. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  22109. + # If test is not a shell built-in, we'll probably end up computing a
  22110. + # maximum length that is only half of the actual maximum length, but
  22111. + # we can't tell.
  22112. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  22113. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  22114. + test $i != 17 # 1/2 MB should be enough
  22115. + do
  22116. + i=`expr $i + 1`
  22117. + teststring=$teststring$teststring
  22118. + done
  22119. + # Only check the string length outside the loop.
  22120. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  22121. + teststring=
  22122. + # Add a significant safety factor because C++ compilers can tack on
  22123. + # massive amounts of additional arguments before passing them to the
  22124. + # linker. It appears as though 1/2 is a usable value.
  22125. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  22126. + fi
  22127. + ;;
  22128. + esac
  22129. +
  22130. +fi
  22131. +
  22132. +if test -n $lt_cv_sys_max_cmd_len ; then
  22133. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  22134. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  22135. +else
  22136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  22137. +$as_echo "none" >&6; }
  22138. +fi
  22139. +max_cmd_len=$lt_cv_sys_max_cmd_len
  22140. +
  22141. +
  22142. +
  22143. +
  22144. +
  22145. +
  22146. +: ${CP="cp -f"}
  22147. +: ${MV="mv -f"}
  22148. +: ${RM="rm -f"}
  22149. +
  22150. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  22151. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  22152. +# Try some XSI features
  22153. +xsi_shell=no
  22154. +( _lt_dummy="a/b/c"
  22155. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  22156. + = c,a/b,, \
  22157. + && eval 'test $(( 1 + 1 )) -eq 2 \
  22158. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  22159. + && xsi_shell=yes
  22160. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  22161. +$as_echo "$xsi_shell" >&6; }
  22162. +
  22163. +
  22164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  22165. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  22166. +lt_shell_append=no
  22167. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  22168. + >/dev/null 2>&1 \
  22169. + && lt_shell_append=yes
  22170. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  22171. +$as_echo "$lt_shell_append" >&6; }
  22172. +
  22173. +
  22174. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  22175. + lt_unset=unset
  22176. +else
  22177. + lt_unset=false
  22178. +fi
  22179. +
  22180. +
  22181. +
  22182. +
  22183. +
  22184. +# test EBCDIC or ASCII
  22185. +case `echo X|tr X '\101'` in
  22186. + A) # ASCII based system
  22187. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  22188. + lt_SP2NL='tr \040 \012'
  22189. + lt_NL2SP='tr \015\012 \040\040'
  22190. + ;;
  22191. + *) # EBCDIC based system
  22192. + lt_SP2NL='tr \100 \n'
  22193. + lt_NL2SP='tr \r\n \100\100'
  22194. + ;;
  22195. +esac
  22196. +
  22197. +
  22198. +
  22199. +
  22200. +
  22201. +
  22202. +
  22203. +
  22204. +
  22205. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  22206. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  22207. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  22208. + $as_echo_n "(cached) " >&6
  22209. +else
  22210. + lt_cv_ld_reload_flag='-r'
  22211. +fi
  22212. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  22213. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  22214. +reload_flag=$lt_cv_ld_reload_flag
  22215. +case $reload_flag in
  22216. +"" | " "*) ;;
  22217. +*) reload_flag=" $reload_flag" ;;
  22218. +esac
  22219. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  22220. +case $host_os in
  22221. + darwin*)
  22222. + if test "$GCC" = yes; then
  22223. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  22224. + else
  22225. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  22226. + fi
  22227. + ;;
  22228. +esac
  22229. +
  22230. +
  22231. +
  22232. +
  22233. +
  22234. +
  22235. +
  22236. +
  22237. +
  22238. +if test -n "$ac_tool_prefix"; then
  22239. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  22240. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  22241. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22242. +$as_echo_n "checking for $ac_word... " >&6; }
  22243. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  22244. + $as_echo_n "(cached) " >&6
  22245. +else
  22246. + if test -n "$OBJDUMP"; then
  22247. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  22248. else
  22249. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  22250. -echo "${ECHO_T}no, using $LN_S" >&6
  22251. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22252. +for as_dir in $PATH
  22253. +do
  22254. + IFS=$as_save_IFS
  22255. + test -z "$as_dir" && as_dir=.
  22256. + for ac_exec_ext in '' $ac_executable_extensions; do
  22257. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22258. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  22259. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22260. + break 2
  22261. + fi
  22262. +done
  22263. + done
  22264. +IFS=$as_save_IFS
  22265. +
  22266. +fi
  22267. +fi
  22268. +OBJDUMP=$ac_cv_prog_OBJDUMP
  22269. +if test -n "$OBJDUMP"; then
  22270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  22271. +$as_echo "$OBJDUMP" >&6; }
  22272. +else
  22273. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22274. +$as_echo "no" >&6; }
  22275. +fi
  22276. +
  22277. +
  22278. +fi
  22279. +if test -z "$ac_cv_prog_OBJDUMP"; then
  22280. + ac_ct_OBJDUMP=$OBJDUMP
  22281. + # Extract the first word of "objdump", so it can be a program name with args.
  22282. +set dummy objdump; ac_word=$2
  22283. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22284. +$as_echo_n "checking for $ac_word... " >&6; }
  22285. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  22286. + $as_echo_n "(cached) " >&6
  22287. +else
  22288. + if test -n "$ac_ct_OBJDUMP"; then
  22289. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  22290. +else
  22291. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22292. +for as_dir in $PATH
  22293. +do
  22294. + IFS=$as_save_IFS
  22295. + test -z "$as_dir" && as_dir=.
  22296. + for ac_exec_ext in '' $ac_executable_extensions; do
  22297. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22298. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  22299. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22300. + break 2
  22301. + fi
  22302. +done
  22303. + done
  22304. +IFS=$as_save_IFS
  22305. +
  22306. +fi
  22307. fi
  22308. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  22309. +if test -n "$ac_ct_OBJDUMP"; then
  22310. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  22311. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  22312. +else
  22313. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22314. +$as_echo "no" >&6; }
  22315. +fi
  22316. +
  22317. + if test "x$ac_ct_OBJDUMP" = x; then
  22318. + OBJDUMP="false"
  22319. + else
  22320. + case $cross_compiling:$ac_tool_warned in
  22321. +yes:)
  22322. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22323. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22324. +ac_tool_warned=yes ;;
  22325. +esac
  22326. + OBJDUMP=$ac_ct_OBJDUMP
  22327. + fi
  22328. +else
  22329. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  22330. +fi
  22331. +
  22332. +test -z "$OBJDUMP" && OBJDUMP=objdump
  22333. +
  22334. +
  22335. +
  22336. +
  22337. +
  22338. +
  22339. -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  22340. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  22341. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  22342. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22343. +
  22344. +
  22345. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  22346. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  22347. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  22348. + $as_echo_n "(cached) " >&6
  22349. else
  22350. lt_cv_file_magic_cmd='$MAGIC_CMD'
  22351. lt_cv_file_magic_test_file=
  22352. @@ -3479,7 +5261,7 @@
  22353. # whether `pass_all' will *always* work, you probably want this one.
  22354. case $host_os in
  22355. -aix4* | aix5*)
  22356. +aix[4-9]*)
  22357. lt_cv_deplibs_check_method=pass_all
  22358. ;;
  22359. @@ -3487,22 +5269,34 @@
  22360. lt_cv_deplibs_check_method=pass_all
  22361. ;;
  22362. -bsdi4*)
  22363. +bsdi[45]*)
  22364. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  22365. lt_cv_file_magic_cmd='/usr/bin/file -L'
  22366. lt_cv_file_magic_test_file=/shlib/libc.so
  22367. ;;
  22368. cygwin*)
  22369. - # win32_libid is a shell function defined in ltmain.sh
  22370. + # func_win32_libid is a shell function defined in ltmain.sh
  22371. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22372. - lt_cv_file_magic_cmd='win32_libid'
  22373. + lt_cv_file_magic_cmd='func_win32_libid'
  22374. ;;
  22375. mingw* | pw32*)
  22376. # Base MSYS/MinGW do not provide the 'file' command needed by
  22377. - # win32_libid shell function, so use a weaker test based on 'objdump'.
  22378. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  22379. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  22380. + # unless we find 'file', for example because we are cross-compiling.
  22381. + if ( file / ) >/dev/null 2>&1; then
  22382. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22383. + lt_cv_file_magic_cmd='func_win32_libid'
  22384. + else
  22385. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  22386. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22387. + fi
  22388. + ;;
  22389. +
  22390. +cegcc)
  22391. + # use the weaker test based on 'objdump'. See mingw*.
  22392. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  22393. lt_cv_file_magic_cmd='$OBJDUMP -f'
  22394. ;;
  22395. @@ -3510,13 +5304,13 @@
  22396. lt_cv_deplibs_check_method=pass_all
  22397. ;;
  22398. -freebsd* | kfreebsd*-gnu)
  22399. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  22400. +freebsd* | dragonfly*)
  22401. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22402. case $host_cpu in
  22403. i*86 )
  22404. # Not sure whether the presence of OpenBSD here was a mistake.
  22405. # Let's accept both of them until this is cleared up.
  22406. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  22407. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  22408. lt_cv_file_magic_cmd=/usr/bin/file
  22409. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  22410. ;;
  22411. @@ -3532,7 +5326,7 @@
  22412. hpux10.20* | hpux11*)
  22413. lt_cv_file_magic_cmd=/usr/bin/file
  22414. - case "$host_cpu" in
  22415. + case $host_cpu in
  22416. ia64*)
  22417. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  22418. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  22419. @@ -3548,6 +5342,11 @@
  22420. esac
  22421. ;;
  22422. +interix[3-9]*)
  22423. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  22424. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  22425. + ;;
  22426. +
  22427. irix5* | irix6* | nonstopux*)
  22428. case $LD in
  22429. *-32|*"-32 ") libmagic=32-bit;;
  22430. @@ -3559,12 +5358,12 @@
  22431. ;;
  22432. # This must be Linux ELF.
  22433. -linux*)
  22434. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  22435. lt_cv_deplibs_check_method=pass_all
  22436. ;;
  22437. -netbsd* | knetbsd*-gnu)
  22438. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  22439. +netbsd* | netbsdelf*-gnu)
  22440. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22441. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22442. else
  22443. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  22444. @@ -3577,17 +5376,15 @@
  22445. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  22446. ;;
  22447. -nto-qnx*)
  22448. - lt_cv_deplibs_check_method=unknown
  22449. +*nto* | *qnx*)
  22450. + lt_cv_deplibs_check_method=pass_all
  22451. ;;
  22452. openbsd*)
  22453. - lt_cv_file_magic_cmd=/usr/bin/file
  22454. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  22455. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22456. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  22457. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22458. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22459. else
  22460. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  22461. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22462. fi
  22463. ;;
  22464. @@ -3595,7 +5392,7 @@
  22465. lt_cv_deplibs_check_method=pass_all
  22466. ;;
  22467. -sco3.2v5*)
  22468. +rdos*)
  22469. lt_cv_deplibs_check_method=pass_all
  22470. ;;
  22471. @@ -3603,7 +5400,11 @@
  22472. lt_cv_deplibs_check_method=pass_all
  22473. ;;
  22474. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  22475. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22476. + lt_cv_deplibs_check_method=pass_all
  22477. + ;;
  22478. +
  22479. +sysv4 | sysv4.3*)
  22480. case $host_vendor in
  22481. motorola)
  22482. 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]'
  22483. @@ -3624,17 +5425,20 @@
  22484. siemens)
  22485. lt_cv_deplibs_check_method=pass_all
  22486. ;;
  22487. - esac
  22488. + pc)
  22489. + lt_cv_deplibs_check_method=pass_all
  22490. + ;;
  22491. + esac
  22492. ;;
  22493. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  22494. +tpf*)
  22495. lt_cv_deplibs_check_method=pass_all
  22496. ;;
  22497. esac
  22498. fi
  22499. -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  22500. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  22501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22502. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22503. file_magic_cmd=$lt_cv_file_magic_cmd
  22504. deplibs_check_method=$lt_cv_deplibs_check_method
  22505. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22506. @@ -3642,606 +5446,334 @@
  22507. -# If no C compiler was specified, use CC.
  22508. -LTCC=${LTCC-"$CC"}
  22509. -
  22510. -# Allow CC to be a program name with arguments.
  22511. -compiler=$CC
  22512. -
  22513. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  22514. -if test "${enable_libtool_lock+set}" = set; then
  22515. - enableval="$enable_libtool_lock"
  22516. -fi;
  22517. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  22518. -# Some flags need to be propagated to the compiler or linker for good
  22519. -# libtool support.
  22520. -case $host in
  22521. -ia64-*-hpux*)
  22522. - # Find out which ABI we are using.
  22523. - echo 'int i;' > conftest.$ac_ext
  22524. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22525. - (eval $ac_compile) 2>&5
  22526. - ac_status=$?
  22527. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22528. - (exit $ac_status); }; then
  22529. - case `/usr/bin/file conftest.$ac_objext` in
  22530. - *ELF-32*)
  22531. - HPUX_IA64_MODE="32"
  22532. - ;;
  22533. - *ELF-64*)
  22534. - HPUX_IA64_MODE="64"
  22535. - ;;
  22536. - esac
  22537. - fi
  22538. - rm -rf conftest*
  22539. - ;;
  22540. -*-*-irix6*)
  22541. - # Find out which ABI we are using.
  22542. - echo '#line 3683 "configure"' > conftest.$ac_ext
  22543. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22544. - (eval $ac_compile) 2>&5
  22545. - ac_status=$?
  22546. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22547. - (exit $ac_status); }; then
  22548. - if test "$lt_cv_prog_gnu_ld" = yes; then
  22549. - case `/usr/bin/file conftest.$ac_objext` in
  22550. - *32-bit*)
  22551. - LD="${LD-ld} -melf32bsmip"
  22552. - ;;
  22553. - *N32*)
  22554. - LD="${LD-ld} -melf32bmipn32"
  22555. - ;;
  22556. - *64-bit*)
  22557. - LD="${LD-ld} -melf64bmip"
  22558. - ;;
  22559. - esac
  22560. - else
  22561. - case `/usr/bin/file conftest.$ac_objext` in
  22562. - *32-bit*)
  22563. - LD="${LD-ld} -32"
  22564. - ;;
  22565. - *N32*)
  22566. - LD="${LD-ld} -n32"
  22567. - ;;
  22568. - *64-bit*)
  22569. - LD="${LD-ld} -64"
  22570. - ;;
  22571. - esac
  22572. - fi
  22573. - fi
  22574. - rm -rf conftest*
  22575. - ;;
  22576. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  22577. - # Find out which ABI we are using.
  22578. - echo 'int i;' > conftest.$ac_ext
  22579. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22580. - (eval $ac_compile) 2>&5
  22581. - ac_status=$?
  22582. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22583. - (exit $ac_status); }; then
  22584. - case "`/usr/bin/file conftest.o`" in
  22585. - *32-bit*)
  22586. - case $host in
  22587. - x86_64-*linux*)
  22588. - LD="${LD-ld} -m elf_i386"
  22589. - ;;
  22590. - ppc64-*linux*|powerpc64-*linux*)
  22591. - LD="${LD-ld} -m elf32ppclinux"
  22592. - ;;
  22593. - s390x-*linux*)
  22594. - LD="${LD-ld} -m elf_s390"
  22595. - ;;
  22596. - sparc64-*linux*)
  22597. - LD="${LD-ld} -m elf32_sparc"
  22598. - ;;
  22599. - esac
  22600. - ;;
  22601. - *64-bit*)
  22602. - case $host in
  22603. - x86_64-*linux*)
  22604. - LD="${LD-ld} -m elf_x86_64"
  22605. - ;;
  22606. - ppc*-*linux*|powerpc*-*linux*)
  22607. - LD="${LD-ld} -m elf64ppc"
  22608. - ;;
  22609. - s390*-*linux*)
  22610. - LD="${LD-ld} -m elf64_s390"
  22611. - ;;
  22612. - sparc*-*linux*)
  22613. - LD="${LD-ld} -m elf64_sparc"
  22614. - ;;
  22615. - esac
  22616. - ;;
  22617. - esac
  22618. - fi
  22619. - rm -rf conftest*
  22620. - ;;
  22621. -*-*-sco3.2v5*)
  22622. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  22623. - SAVE_CFLAGS="$CFLAGS"
  22624. - CFLAGS="$CFLAGS -belf"
  22625. - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  22626. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  22627. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  22628. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22629. -else
  22630. - ac_ext=c
  22631. -ac_cpp='$CPP $CPPFLAGS'
  22632. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22633. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22634. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22635. - cat >conftest.$ac_ext <<_ACEOF
  22636. -/* confdefs.h. */
  22637. -_ACEOF
  22638. -cat confdefs.h >>conftest.$ac_ext
  22639. -cat >>conftest.$ac_ext <<_ACEOF
  22640. -/* end confdefs.h. */
  22641. -int
  22642. -main ()
  22643. -{
  22644. - ;
  22645. - return 0;
  22646. -}
  22647. -_ACEOF
  22648. -rm -f conftest.$ac_objext conftest$ac_exeext
  22649. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22650. - (eval $ac_link) 2>conftest.er1
  22651. - ac_status=$?
  22652. - grep -v '^ *+' conftest.er1 >conftest.err
  22653. - rm -f conftest.er1
  22654. - cat conftest.err >&5
  22655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22656. - (exit $ac_status); } &&
  22657. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  22658. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22659. - (eval $ac_try) 2>&5
  22660. - ac_status=$?
  22661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22662. - (exit $ac_status); }; } &&
  22663. - { ac_try='test -s conftest$ac_exeext'
  22664. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22665. - (eval $ac_try) 2>&5
  22666. - ac_status=$?
  22667. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22668. - (exit $ac_status); }; }; then
  22669. - lt_cv_cc_needs_belf=yes
  22670. +if test -n "$ac_tool_prefix"; then
  22671. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22672. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22673. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22674. +$as_echo_n "checking for $ac_word... " >&6; }
  22675. +if test "${ac_cv_prog_AR+set}" = set; then :
  22676. + $as_echo_n "(cached) " >&6
  22677. else
  22678. - echo "$as_me: failed program was:" >&5
  22679. -sed 's/^/| /' conftest.$ac_ext >&5
  22680. + if test -n "$AR"; then
  22681. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22682. +else
  22683. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22684. +for as_dir in $PATH
  22685. +do
  22686. + IFS=$as_save_IFS
  22687. + test -z "$as_dir" && as_dir=.
  22688. + for ac_exec_ext in '' $ac_executable_extensions; do
  22689. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22690. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22691. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22692. + break 2
  22693. + fi
  22694. +done
  22695. + done
  22696. +IFS=$as_save_IFS
  22697. -lt_cv_cc_needs_belf=no
  22698. fi
  22699. -rm -f conftest.err conftest.$ac_objext \
  22700. - conftest$ac_exeext conftest.$ac_ext
  22701. - ac_ext=c
  22702. -ac_cpp='$CPP $CPPFLAGS'
  22703. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22704. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22705. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22706. -
  22707. fi
  22708. -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  22709. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  22710. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  22711. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  22712. - CFLAGS="$SAVE_CFLAGS"
  22713. - fi
  22714. - ;;
  22715. -
  22716. -esac
  22717. -
  22718. -need_locks="$enable_libtool_lock"
  22719. +AR=$ac_cv_prog_AR
  22720. +if test -n "$AR"; then
  22721. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22722. +$as_echo "$AR" >&6; }
  22723. +else
  22724. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22725. +$as_echo "no" >&6; }
  22726. +fi
  22727. -ac_ext=c
  22728. -ac_cpp='$CPP $CPPFLAGS'
  22729. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22730. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22731. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22732. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  22733. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  22734. -# On Suns, sometimes $CPP names a directory.
  22735. -if test -n "$CPP" && test -d "$CPP"; then
  22736. - CPP=
  22737. fi
  22738. -if test -z "$CPP"; then
  22739. - if test "${ac_cv_prog_CPP+set}" = set; then
  22740. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22741. +if test -z "$ac_cv_prog_AR"; then
  22742. + ac_ct_AR=$AR
  22743. + # Extract the first word of "ar", so it can be a program name with args.
  22744. +set dummy ar; ac_word=$2
  22745. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22746. +$as_echo_n "checking for $ac_word... " >&6; }
  22747. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22748. + $as_echo_n "(cached) " >&6
  22749. else
  22750. - # Double quotes because CPP needs to be expanded
  22751. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  22752. - do
  22753. - ac_preproc_ok=false
  22754. -for ac_c_preproc_warn_flag in '' yes
  22755. + if test -n "$ac_ct_AR"; then
  22756. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22757. +else
  22758. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22759. +for as_dir in $PATH
  22760. do
  22761. - # Use a header file that comes with gcc, so configuring glibc
  22762. - # with a fresh cross-compiler works.
  22763. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22764. - # <limits.h> exists even on freestanding compilers.
  22765. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22766. - # not just through cpp. "Syntax error" is here to catch this case.
  22767. - cat >conftest.$ac_ext <<_ACEOF
  22768. -/* confdefs.h. */
  22769. -_ACEOF
  22770. -cat confdefs.h >>conftest.$ac_ext
  22771. -cat >>conftest.$ac_ext <<_ACEOF
  22772. -/* end confdefs.h. */
  22773. -#ifdef __STDC__
  22774. -# include <limits.h>
  22775. -#else
  22776. -# include <assert.h>
  22777. -#endif
  22778. - Syntax error
  22779. -_ACEOF
  22780. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22781. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22782. - ac_status=$?
  22783. - grep -v '^ *+' conftest.er1 >conftest.err
  22784. - rm -f conftest.er1
  22785. - cat conftest.err >&5
  22786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22787. - (exit $ac_status); } >/dev/null; then
  22788. - if test -s conftest.err; then
  22789. - ac_cpp_err=$ac_c_preproc_warn_flag
  22790. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22791. - else
  22792. - ac_cpp_err=
  22793. + IFS=$as_save_IFS
  22794. + test -z "$as_dir" && as_dir=.
  22795. + for ac_exec_ext in '' $ac_executable_extensions; do
  22796. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22797. + ac_cv_prog_ac_ct_AR="ar"
  22798. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22799. + break 2
  22800. fi
  22801. -else
  22802. - ac_cpp_err=yes
  22803. +done
  22804. + done
  22805. +IFS=$as_save_IFS
  22806. +
  22807. fi
  22808. -if test -z "$ac_cpp_err"; then
  22809. - :
  22810. +fi
  22811. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22812. +if test -n "$ac_ct_AR"; then
  22813. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22814. +$as_echo "$ac_ct_AR" >&6; }
  22815. else
  22816. - echo "$as_me: failed program was:" >&5
  22817. -sed 's/^/| /' conftest.$ac_ext >&5
  22818. -
  22819. - # Broken: fails on valid input.
  22820. -continue
  22821. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22822. +$as_echo "no" >&6; }
  22823. fi
  22824. -rm -f conftest.err conftest.$ac_ext
  22825. - # OK, works on sane cases. Now check whether non-existent headers
  22826. - # can be detected and how.
  22827. - cat >conftest.$ac_ext <<_ACEOF
  22828. -/* confdefs.h. */
  22829. -_ACEOF
  22830. -cat confdefs.h >>conftest.$ac_ext
  22831. -cat >>conftest.$ac_ext <<_ACEOF
  22832. -/* end confdefs.h. */
  22833. -#include <ac_nonexistent.h>
  22834. -_ACEOF
  22835. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22836. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22837. - ac_status=$?
  22838. - grep -v '^ *+' conftest.er1 >conftest.err
  22839. - rm -f conftest.er1
  22840. - cat conftest.err >&5
  22841. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22842. - (exit $ac_status); } >/dev/null; then
  22843. - if test -s conftest.err; then
  22844. - ac_cpp_err=$ac_c_preproc_warn_flag
  22845. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22846. + if test "x$ac_ct_AR" = x; then
  22847. + AR="false"
  22848. else
  22849. - ac_cpp_err=
  22850. + case $cross_compiling:$ac_tool_warned in
  22851. +yes:)
  22852. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22853. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22854. +ac_tool_warned=yes ;;
  22855. +esac
  22856. + AR=$ac_ct_AR
  22857. fi
  22858. else
  22859. - ac_cpp_err=yes
  22860. + AR="$ac_cv_prog_AR"
  22861. fi
  22862. -if test -z "$ac_cpp_err"; then
  22863. - # Broken: success on invalid input.
  22864. -continue
  22865. -else
  22866. - echo "$as_me: failed program was:" >&5
  22867. -sed 's/^/| /' conftest.$ac_ext >&5
  22868. - # Passes both tests.
  22869. -ac_preproc_ok=:
  22870. -break
  22871. -fi
  22872. -rm -f conftest.err conftest.$ac_ext
  22873. +test -z "$AR" && AR=ar
  22874. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22875. +
  22876. +
  22877. +
  22878. +
  22879. +
  22880. +
  22881. +
  22882. +
  22883. +
  22884. +
  22885. +if test -n "$ac_tool_prefix"; then
  22886. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22887. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  22888. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22889. +$as_echo_n "checking for $ac_word... " >&6; }
  22890. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  22891. + $as_echo_n "(cached) " >&6
  22892. +else
  22893. + if test -n "$STRIP"; then
  22894. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22895. +else
  22896. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22897. +for as_dir in $PATH
  22898. +do
  22899. + IFS=$as_save_IFS
  22900. + test -z "$as_dir" && as_dir=.
  22901. + for ac_exec_ext in '' $ac_executable_extensions; do
  22902. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22903. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22904. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22905. + break 2
  22906. + fi
  22907. done
  22908. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22909. -rm -f conftest.err conftest.$ac_ext
  22910. -if $ac_preproc_ok; then
  22911. - break
  22912. + done
  22913. +IFS=$as_save_IFS
  22914. +
  22915. +fi
  22916. +fi
  22917. +STRIP=$ac_cv_prog_STRIP
  22918. +if test -n "$STRIP"; then
  22919. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  22920. +$as_echo "$STRIP" >&6; }
  22921. +else
  22922. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22923. +$as_echo "no" >&6; }
  22924. fi
  22925. - done
  22926. - ac_cv_prog_CPP=$CPP
  22927. fi
  22928. - CPP=$ac_cv_prog_CPP
  22929. +if test -z "$ac_cv_prog_STRIP"; then
  22930. + ac_ct_STRIP=$STRIP
  22931. + # Extract the first word of "strip", so it can be a program name with args.
  22932. +set dummy strip; ac_word=$2
  22933. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22934. +$as_echo_n "checking for $ac_word... " >&6; }
  22935. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  22936. + $as_echo_n "(cached) " >&6
  22937. else
  22938. - ac_cv_prog_CPP=$CPP
  22939. -fi
  22940. -echo "$as_me:$LINENO: result: $CPP" >&5
  22941. -echo "${ECHO_T}$CPP" >&6
  22942. -ac_preproc_ok=false
  22943. -for ac_c_preproc_warn_flag in '' yes
  22944. + if test -n "$ac_ct_STRIP"; then
  22945. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  22946. +else
  22947. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22948. +for as_dir in $PATH
  22949. do
  22950. - # Use a header file that comes with gcc, so configuring glibc
  22951. - # with a fresh cross-compiler works.
  22952. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22953. - # <limits.h> exists even on freestanding compilers.
  22954. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22955. - # not just through cpp. "Syntax error" is here to catch this case.
  22956. - cat >conftest.$ac_ext <<_ACEOF
  22957. -/* confdefs.h. */
  22958. -_ACEOF
  22959. -cat confdefs.h >>conftest.$ac_ext
  22960. -cat >>conftest.$ac_ext <<_ACEOF
  22961. -/* end confdefs.h. */
  22962. -#ifdef __STDC__
  22963. -# include <limits.h>
  22964. -#else
  22965. -# include <assert.h>
  22966. -#endif
  22967. - Syntax error
  22968. -_ACEOF
  22969. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22970. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22971. - ac_status=$?
  22972. - grep -v '^ *+' conftest.er1 >conftest.err
  22973. - rm -f conftest.er1
  22974. - cat conftest.err >&5
  22975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22976. - (exit $ac_status); } >/dev/null; then
  22977. - if test -s conftest.err; then
  22978. - ac_cpp_err=$ac_c_preproc_warn_flag
  22979. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22980. - else
  22981. - ac_cpp_err=
  22982. + IFS=$as_save_IFS
  22983. + test -z "$as_dir" && as_dir=.
  22984. + for ac_exec_ext in '' $ac_executable_extensions; do
  22985. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22986. + ac_cv_prog_ac_ct_STRIP="strip"
  22987. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22988. + break 2
  22989. fi
  22990. -else
  22991. - ac_cpp_err=yes
  22992. +done
  22993. + done
  22994. +IFS=$as_save_IFS
  22995. +
  22996. fi
  22997. -if test -z "$ac_cpp_err"; then
  22998. - :
  22999. +fi
  23000. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23001. +if test -n "$ac_ct_STRIP"; then
  23002. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  23003. +$as_echo "$ac_ct_STRIP" >&6; }
  23004. else
  23005. - echo "$as_me: failed program was:" >&5
  23006. -sed 's/^/| /' conftest.$ac_ext >&5
  23007. -
  23008. - # Broken: fails on valid input.
  23009. -continue
  23010. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23011. +$as_echo "no" >&6; }
  23012. fi
  23013. -rm -f conftest.err conftest.$ac_ext
  23014. - # OK, works on sane cases. Now check whether non-existent headers
  23015. - # can be detected and how.
  23016. - cat >conftest.$ac_ext <<_ACEOF
  23017. -/* confdefs.h. */
  23018. -_ACEOF
  23019. -cat confdefs.h >>conftest.$ac_ext
  23020. -cat >>conftest.$ac_ext <<_ACEOF
  23021. -/* end confdefs.h. */
  23022. -#include <ac_nonexistent.h>
  23023. -_ACEOF
  23024. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23025. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23026. - ac_status=$?
  23027. - grep -v '^ *+' conftest.er1 >conftest.err
  23028. - rm -f conftest.er1
  23029. - cat conftest.err >&5
  23030. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23031. - (exit $ac_status); } >/dev/null; then
  23032. - if test -s conftest.err; then
  23033. - ac_cpp_err=$ac_c_preproc_warn_flag
  23034. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23035. + if test "x$ac_ct_STRIP" = x; then
  23036. + STRIP=":"
  23037. else
  23038. - ac_cpp_err=
  23039. + case $cross_compiling:$ac_tool_warned in
  23040. +yes:)
  23041. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23042. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23043. +ac_tool_warned=yes ;;
  23044. +esac
  23045. + STRIP=$ac_ct_STRIP
  23046. fi
  23047. else
  23048. - ac_cpp_err=yes
  23049. + STRIP="$ac_cv_prog_STRIP"
  23050. fi
  23051. -if test -z "$ac_cpp_err"; then
  23052. - # Broken: success on invalid input.
  23053. -continue
  23054. -else
  23055. - echo "$as_me: failed program was:" >&5
  23056. -sed 's/^/| /' conftest.$ac_ext >&5
  23057. - # Passes both tests.
  23058. -ac_preproc_ok=:
  23059. -break
  23060. -fi
  23061. -rm -f conftest.err conftest.$ac_ext
  23062. +test -z "$STRIP" && STRIP=:
  23063. -done
  23064. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23065. -rm -f conftest.err conftest.$ac_ext
  23066. -if $ac_preproc_ok; then
  23067. - :
  23068. -else
  23069. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  23070. -See \`config.log' for more details." >&5
  23071. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  23072. -See \`config.log' for more details." >&2;}
  23073. - { (exit 1); exit 1; }; }
  23074. -fi
  23075. -ac_ext=c
  23076. -ac_cpp='$CPP $CPPFLAGS'
  23077. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23078. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23079. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23080. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  23081. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  23082. -if test "${ac_cv_header_stdc+set}" = set; then
  23083. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23084. -else
  23085. - cat >conftest.$ac_ext <<_ACEOF
  23086. -/* confdefs.h. */
  23087. -_ACEOF
  23088. -cat confdefs.h >>conftest.$ac_ext
  23089. -cat >>conftest.$ac_ext <<_ACEOF
  23090. -/* end confdefs.h. */
  23091. -#include <stdlib.h>
  23092. -#include <stdarg.h>
  23093. -#include <string.h>
  23094. -#include <float.h>
  23095. -int
  23096. -main ()
  23097. -{
  23098. - ;
  23099. - return 0;
  23100. -}
  23101. -_ACEOF
  23102. -rm -f conftest.$ac_objext
  23103. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23104. - (eval $ac_compile) 2>conftest.er1
  23105. - ac_status=$?
  23106. - grep -v '^ *+' conftest.er1 >conftest.err
  23107. - rm -f conftest.er1
  23108. - cat conftest.err >&5
  23109. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23110. - (exit $ac_status); } &&
  23111. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  23112. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23113. - (eval $ac_try) 2>&5
  23114. - ac_status=$?
  23115. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23116. - (exit $ac_status); }; } &&
  23117. - { ac_try='test -s conftest.$ac_objext'
  23118. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23119. - (eval $ac_try) 2>&5
  23120. - ac_status=$?
  23121. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23122. - (exit $ac_status); }; }; then
  23123. - ac_cv_header_stdc=yes
  23124. +if test -n "$ac_tool_prefix"; then
  23125. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23126. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23127. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23128. +$as_echo_n "checking for $ac_word... " >&6; }
  23129. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  23130. + $as_echo_n "(cached) " >&6
  23131. else
  23132. - echo "$as_me: failed program was:" >&5
  23133. -sed 's/^/| /' conftest.$ac_ext >&5
  23134. -
  23135. -ac_cv_header_stdc=no
  23136. -fi
  23137. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23138. -
  23139. -if test $ac_cv_header_stdc = yes; then
  23140. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  23141. - cat >conftest.$ac_ext <<_ACEOF
  23142. -/* confdefs.h. */
  23143. -_ACEOF
  23144. -cat confdefs.h >>conftest.$ac_ext
  23145. -cat >>conftest.$ac_ext <<_ACEOF
  23146. -/* end confdefs.h. */
  23147. -#include <string.h>
  23148. -
  23149. -_ACEOF
  23150. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23151. - $EGREP "memchr" >/dev/null 2>&1; then
  23152. - :
  23153. + if test -n "$RANLIB"; then
  23154. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23155. else
  23156. - ac_cv_header_stdc=no
  23157. -fi
  23158. -rm -f conftest*
  23159. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23160. +for as_dir in $PATH
  23161. +do
  23162. + IFS=$as_save_IFS
  23163. + test -z "$as_dir" && as_dir=.
  23164. + for ac_exec_ext in '' $ac_executable_extensions; do
  23165. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23166. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23167. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23168. + break 2
  23169. + fi
  23170. +done
  23171. + done
  23172. +IFS=$as_save_IFS
  23173. fi
  23174. -
  23175. -if test $ac_cv_header_stdc = yes; then
  23176. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  23177. - cat >conftest.$ac_ext <<_ACEOF
  23178. -/* confdefs.h. */
  23179. -_ACEOF
  23180. -cat confdefs.h >>conftest.$ac_ext
  23181. -cat >>conftest.$ac_ext <<_ACEOF
  23182. -/* end confdefs.h. */
  23183. -#include <stdlib.h>
  23184. -
  23185. -_ACEOF
  23186. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  23187. - $EGREP "free" >/dev/null 2>&1; then
  23188. - :
  23189. +fi
  23190. +RANLIB=$ac_cv_prog_RANLIB
  23191. +if test -n "$RANLIB"; then
  23192. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  23193. +$as_echo "$RANLIB" >&6; }
  23194. else
  23195. - ac_cv_header_stdc=no
  23196. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23197. +$as_echo "no" >&6; }
  23198. fi
  23199. -rm -f conftest*
  23200. -fi
  23201. -if test $ac_cv_header_stdc = yes; then
  23202. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  23203. - if test "$cross_compiling" = yes; then
  23204. - :
  23205. +fi
  23206. +if test -z "$ac_cv_prog_RANLIB"; then
  23207. + ac_ct_RANLIB=$RANLIB
  23208. + # Extract the first word of "ranlib", so it can be a program name with args.
  23209. +set dummy ranlib; ac_word=$2
  23210. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23211. +$as_echo_n "checking for $ac_word... " >&6; }
  23212. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  23213. + $as_echo_n "(cached) " >&6
  23214. else
  23215. - cat >conftest.$ac_ext <<_ACEOF
  23216. -/* confdefs.h. */
  23217. -_ACEOF
  23218. -cat confdefs.h >>conftest.$ac_ext
  23219. -cat >>conftest.$ac_ext <<_ACEOF
  23220. -/* end confdefs.h. */
  23221. -#include <ctype.h>
  23222. -#if ((' ' & 0x0FF) == 0x020)
  23223. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  23224. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  23225. -#else
  23226. -# define ISLOWER(c) \
  23227. - (('a' <= (c) && (c) <= 'i') \
  23228. - || ('j' <= (c) && (c) <= 'r') \
  23229. - || ('s' <= (c) && (c) <= 'z'))
  23230. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  23231. -#endif
  23232. -
  23233. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  23234. -int
  23235. -main ()
  23236. -{
  23237. - int i;
  23238. - for (i = 0; i < 256; i++)
  23239. - if (XOR (islower (i), ISLOWER (i))
  23240. - || toupper (i) != TOUPPER (i))
  23241. - exit(2);
  23242. - exit (0);
  23243. -}
  23244. -_ACEOF
  23245. -rm -f conftest$ac_exeext
  23246. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  23247. - (eval $ac_link) 2>&5
  23248. - ac_status=$?
  23249. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23250. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  23251. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23252. - (eval $ac_try) 2>&5
  23253. - ac_status=$?
  23254. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23255. - (exit $ac_status); }; }; then
  23256. - :
  23257. + if test -n "$ac_ct_RANLIB"; then
  23258. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23259. else
  23260. - echo "$as_me: program exited with status $ac_status" >&5
  23261. -echo "$as_me: failed program was:" >&5
  23262. -sed 's/^/| /' conftest.$ac_ext >&5
  23263. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23264. +for as_dir in $PATH
  23265. +do
  23266. + IFS=$as_save_IFS
  23267. + test -z "$as_dir" && as_dir=.
  23268. + for ac_exec_ext in '' $ac_executable_extensions; do
  23269. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23270. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  23271. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23272. + break 2
  23273. + fi
  23274. +done
  23275. + done
  23276. +IFS=$as_save_IFS
  23277. -( exit $ac_status )
  23278. -ac_cv_header_stdc=no
  23279. fi
  23280. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  23281. fi
  23282. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23283. +if test -n "$ac_ct_RANLIB"; then
  23284. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  23285. +$as_echo "$ac_ct_RANLIB" >&6; }
  23286. +else
  23287. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23288. +$as_echo "no" >&6; }
  23289. fi
  23290. +
  23291. + if test "x$ac_ct_RANLIB" = x; then
  23292. + RANLIB=":"
  23293. + else
  23294. + case $cross_compiling:$ac_tool_warned in
  23295. +yes:)
  23296. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23297. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23298. +ac_tool_warned=yes ;;
  23299. +esac
  23300. + RANLIB=$ac_ct_RANLIB
  23301. + fi
  23302. +else
  23303. + RANLIB="$ac_cv_prog_RANLIB"
  23304. fi
  23305. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  23306. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  23307. -if test $ac_cv_header_stdc = yes; then
  23308. -cat >>confdefs.h <<\_ACEOF
  23309. -#define STDC_HEADERS 1
  23310. -_ACEOF
  23311. +test -z "$RANLIB" && RANLIB=:
  23312. +
  23313. +
  23314. +
  23315. +
  23316. +
  23317. +# Determine commands to create old-style static archives.
  23318. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  23319. +old_postinstall_cmds='chmod 644 $oldlib'
  23320. +old_postuninstall_cmds=
  23321. +
  23322. +if test -n "$RANLIB"; then
  23323. + case $host_os in
  23324. + openbsd*)
  23325. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23326. + ;;
  23327. + *)
  23328. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23329. + ;;
  23330. + esac
  23331. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23332. fi
  23333. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  23334. @@ -4251,1761 +5783,1634 @@
  23335. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  23336. - inttypes.h stdint.h unistd.h
  23337. -do
  23338. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23339. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  23340. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23341. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23342. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23343. -else
  23344. - cat >conftest.$ac_ext <<_ACEOF
  23345. -/* confdefs.h. */
  23346. -_ACEOF
  23347. -cat confdefs.h >>conftest.$ac_ext
  23348. -cat >>conftest.$ac_ext <<_ACEOF
  23349. -/* end confdefs.h. */
  23350. -$ac_includes_default
  23351. -#include <$ac_header>
  23352. -_ACEOF
  23353. -rm -f conftest.$ac_objext
  23354. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23355. - (eval $ac_compile) 2>conftest.er1
  23356. - ac_status=$?
  23357. - grep -v '^ *+' conftest.er1 >conftest.err
  23358. - rm -f conftest.er1
  23359. - cat conftest.err >&5
  23360. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23361. - (exit $ac_status); } &&
  23362. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  23363. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23364. - (eval $ac_try) 2>&5
  23365. - ac_status=$?
  23366. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23367. - (exit $ac_status); }; } &&
  23368. - { ac_try='test -s conftest.$ac_objext'
  23369. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23370. - (eval $ac_try) 2>&5
  23371. - ac_status=$?
  23372. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23373. - (exit $ac_status); }; }; then
  23374. - eval "$as_ac_Header=yes"
  23375. -else
  23376. - echo "$as_me: failed program was:" >&5
  23377. -sed 's/^/| /' conftest.$ac_ext >&5
  23378. -eval "$as_ac_Header=no"
  23379. -fi
  23380. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23381. -fi
  23382. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23383. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23384. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23385. - cat >>confdefs.h <<_ACEOF
  23386. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23387. -_ACEOF
  23388. -fi
  23389. -done
  23390. -for ac_header in dlfcn.h
  23391. -do
  23392. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  23393. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23394. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  23395. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23396. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23397. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23398. -fi
  23399. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23400. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23401. -else
  23402. - # Is the header compilable?
  23403. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  23404. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  23405. -cat >conftest.$ac_ext <<_ACEOF
  23406. -/* confdefs.h. */
  23407. -_ACEOF
  23408. -cat confdefs.h >>conftest.$ac_ext
  23409. -cat >>conftest.$ac_ext <<_ACEOF
  23410. -/* end confdefs.h. */
  23411. -$ac_includes_default
  23412. -#include <$ac_header>
  23413. -_ACEOF
  23414. -rm -f conftest.$ac_objext
  23415. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23416. - (eval $ac_compile) 2>conftest.er1
  23417. - ac_status=$?
  23418. - grep -v '^ *+' conftest.er1 >conftest.err
  23419. - rm -f conftest.er1
  23420. - cat conftest.err >&5
  23421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23422. - (exit $ac_status); } &&
  23423. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  23424. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23425. - (eval $ac_try) 2>&5
  23426. - ac_status=$?
  23427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23428. - (exit $ac_status); }; } &&
  23429. - { ac_try='test -s conftest.$ac_objext'
  23430. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23431. - (eval $ac_try) 2>&5
  23432. - ac_status=$?
  23433. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23434. - (exit $ac_status); }; }; then
  23435. - ac_header_compiler=yes
  23436. -else
  23437. - echo "$as_me: failed program was:" >&5
  23438. -sed 's/^/| /' conftest.$ac_ext >&5
  23439. -ac_header_compiler=no
  23440. -fi
  23441. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23442. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  23443. -echo "${ECHO_T}$ac_header_compiler" >&6
  23444. -# Is the header present?
  23445. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  23446. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  23447. -cat >conftest.$ac_ext <<_ACEOF
  23448. -/* confdefs.h. */
  23449. -_ACEOF
  23450. -cat confdefs.h >>conftest.$ac_ext
  23451. -cat >>conftest.$ac_ext <<_ACEOF
  23452. -/* end confdefs.h. */
  23453. -#include <$ac_header>
  23454. -_ACEOF
  23455. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23456. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23457. - ac_status=$?
  23458. - grep -v '^ *+' conftest.er1 >conftest.err
  23459. - rm -f conftest.er1
  23460. - cat conftest.err >&5
  23461. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23462. - (exit $ac_status); } >/dev/null; then
  23463. - if test -s conftest.err; then
  23464. - ac_cpp_err=$ac_c_preproc_warn_flag
  23465. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  23466. - else
  23467. - ac_cpp_err=
  23468. - fi
  23469. -else
  23470. - ac_cpp_err=yes
  23471. -fi
  23472. -if test -z "$ac_cpp_err"; then
  23473. - ac_header_preproc=yes
  23474. -else
  23475. - echo "$as_me: failed program was:" >&5
  23476. -sed 's/^/| /' conftest.$ac_ext >&5
  23477. - ac_header_preproc=no
  23478. -fi
  23479. -rm -f conftest.err conftest.$ac_ext
  23480. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  23481. -echo "${ECHO_T}$ac_header_preproc" >&6
  23482. -# So? What about this header?
  23483. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  23484. - yes:no: )
  23485. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  23486. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  23487. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  23488. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  23489. - ac_header_preproc=yes
  23490. - ;;
  23491. - no:yes:* )
  23492. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  23493. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  23494. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  23495. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  23496. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  23497. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  23498. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  23499. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  23500. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  23501. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  23502. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  23503. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  23504. - (
  23505. - cat <<\_ASBOX
  23506. -## ----------------------------------- ##
  23507. -## Report this to support@underbit.com ##
  23508. -## ----------------------------------- ##
  23509. -_ASBOX
  23510. - ) |
  23511. - sed "s/^/$as_me: WARNING: /" >&2
  23512. - ;;
  23513. -esac
  23514. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  23515. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  23516. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  23517. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23518. -else
  23519. - eval "$as_ac_Header=\$ac_header_preproc"
  23520. -fi
  23521. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  23522. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  23523. -fi
  23524. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  23525. - cat >>confdefs.h <<_ACEOF
  23526. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  23527. -_ACEOF
  23528. -fi
  23529. -done
  23530. -ac_ext=cc
  23531. -ac_cpp='$CXXCPP $CPPFLAGS'
  23532. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23533. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23534. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23535. -if test -n "$ac_tool_prefix"; then
  23536. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  23537. - do
  23538. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23539. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23540. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23541. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23542. -if test "${ac_cv_prog_CXX+set}" = set; then
  23543. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23544. -else
  23545. - if test -n "$CXX"; then
  23546. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  23547. -else
  23548. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23549. -for as_dir in $PATH
  23550. -do
  23551. - IFS=$as_save_IFS
  23552. - test -z "$as_dir" && as_dir=.
  23553. - for ac_exec_ext in '' $ac_executable_extensions; do
  23554. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23555. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  23556. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23557. - break 2
  23558. - fi
  23559. -done
  23560. -done
  23561. -fi
  23562. -fi
  23563. -CXX=$ac_cv_prog_CXX
  23564. -if test -n "$CXX"; then
  23565. - echo "$as_me:$LINENO: result: $CXX" >&5
  23566. -echo "${ECHO_T}$CXX" >&6
  23567. -else
  23568. - echo "$as_me:$LINENO: result: no" >&5
  23569. -echo "${ECHO_T}no" >&6
  23570. -fi
  23571. - test -n "$CXX" && break
  23572. - done
  23573. -fi
  23574. -if test -z "$CXX"; then
  23575. - ac_ct_CXX=$CXX
  23576. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  23577. -do
  23578. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23579. -set dummy $ac_prog; ac_word=$2
  23580. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23581. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23582. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  23583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23584. -else
  23585. - if test -n "$ac_ct_CXX"; then
  23586. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  23587. +
  23588. +
  23589. +
  23590. +
  23591. +
  23592. +
  23593. +
  23594. +# If no C compiler was specified, use CC.
  23595. +LTCC=${LTCC-"$CC"}
  23596. +
  23597. +# If no C compiler flags were specified, use CFLAGS.
  23598. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  23599. +
  23600. +# Allow CC to be a program name with arguments.
  23601. +compiler=$CC
  23602. +
  23603. +
  23604. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  23605. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  23606. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  23607. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  23608. + $as_echo_n "(cached) " >&6
  23609. else
  23610. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23611. -for as_dir in $PATH
  23612. -do
  23613. - IFS=$as_save_IFS
  23614. - test -z "$as_dir" && as_dir=.
  23615. - for ac_exec_ext in '' $ac_executable_extensions; do
  23616. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23617. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  23618. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23619. - break 2
  23620. +
  23621. +# These are sane defaults that work on at least a few old systems.
  23622. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  23623. +
  23624. +# Character class describing NM global symbol codes.
  23625. +symcode='[BCDEGRST]'
  23626. +
  23627. +# Regexp to match symbols that can be accessed directly from C.
  23628. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  23629. +
  23630. +# Define system-specific variables.
  23631. +case $host_os in
  23632. +aix*)
  23633. + symcode='[BCDT]'
  23634. + ;;
  23635. +cygwin* | mingw* | pw32* | cegcc*)
  23636. + symcode='[ABCDGISTW]'
  23637. + ;;
  23638. +hpux*)
  23639. + if test "$host_cpu" = ia64; then
  23640. + symcode='[ABCDEGRST]'
  23641. fi
  23642. -done
  23643. -done
  23644. + ;;
  23645. +irix* | nonstopux*)
  23646. + symcode='[BCDEGRST]'
  23647. + ;;
  23648. +osf*)
  23649. + symcode='[BCDEGQRST]'
  23650. + ;;
  23651. +solaris*)
  23652. + symcode='[BDRT]'
  23653. + ;;
  23654. +sco3.2v5*)
  23655. + symcode='[DT]'
  23656. + ;;
  23657. +sysv4.2uw2*)
  23658. + symcode='[DT]'
  23659. + ;;
  23660. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  23661. + symcode='[ABDT]'
  23662. + ;;
  23663. +sysv4)
  23664. + symcode='[DFNSTU]'
  23665. + ;;
  23666. +esac
  23667. -fi
  23668. -fi
  23669. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  23670. -if test -n "$ac_ct_CXX"; then
  23671. - echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  23672. -echo "${ECHO_T}$ac_ct_CXX" >&6
  23673. -else
  23674. - echo "$as_me:$LINENO: result: no" >&5
  23675. -echo "${ECHO_T}no" >&6
  23676. -fi
  23677. +# If we're using GNU nm, then use its standard symbol codes.
  23678. +case `$NM -V 2>&1` in
  23679. +*GNU* | *'with BFD'*)
  23680. + symcode='[ABCDGIRSTW]' ;;
  23681. +esac
  23682. - test -n "$ac_ct_CXX" && break
  23683. -done
  23684. -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  23685. +# Transform an extracted symbol line into a proper C declaration.
  23686. +# Some systems (esp. on ia64) link data and code symbols differently,
  23687. +# so use this general approach.
  23688. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  23689. - CXX=$ac_ct_CXX
  23690. -fi
  23691. +# Transform an extracted symbol line into symbol name and symbol address
  23692. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  23693. +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'"
  23694. +# Handle CRLF in mingw tool chain
  23695. +opt_cr=
  23696. +case $build_os in
  23697. +mingw*)
  23698. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  23699. + ;;
  23700. +esac
  23701. -# Provide some information about the compiler.
  23702. -echo "$as_me:$LINENO:" \
  23703. - "checking for C++ compiler version" >&5
  23704. -ac_compiler=`set X $ac_compile; echo $2`
  23705. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  23706. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  23707. - ac_status=$?
  23708. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23709. - (exit $ac_status); }
  23710. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  23711. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  23712. - ac_status=$?
  23713. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23714. - (exit $ac_status); }
  23715. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  23716. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  23717. - ac_status=$?
  23718. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23719. - (exit $ac_status); }
  23720. +# Try without a prefix underscore, then with it.
  23721. +for ac_symprfx in "" "_"; do
  23722. -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  23723. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  23724. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  23725. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23726. -else
  23727. - cat >conftest.$ac_ext <<_ACEOF
  23728. -/* confdefs.h. */
  23729. -_ACEOF
  23730. -cat confdefs.h >>conftest.$ac_ext
  23731. -cat >>conftest.$ac_ext <<_ACEOF
  23732. -/* end confdefs.h. */
  23733. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  23734. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  23735. -int
  23736. -main ()
  23737. -{
  23738. -#ifndef __GNUC__
  23739. - choke me
  23740. -#endif
  23741. + # Write the raw and C identifiers.
  23742. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  23743. + # Fake it for dumpbin and say T for any non-static function
  23744. + # and D for any global variable.
  23745. + # Also find C++ and __fastcall symbols from MSVC++,
  23746. + # which start with @ or ?.
  23747. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  23748. +" {last_section=section; section=\$ 3};"\
  23749. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  23750. +" \$ 0!~/External *\|/{next};"\
  23751. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  23752. +" {if(hide[section]) next};"\
  23753. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  23754. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  23755. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  23756. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  23757. +" ' prfx=^$ac_symprfx"
  23758. + else
  23759. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  23760. + fi
  23761. - ;
  23762. - return 0;
  23763. + # Check to see that the pipe works correctly.
  23764. + pipe_works=no
  23765. +
  23766. + rm -f conftest*
  23767. + cat > conftest.$ac_ext <<_LT_EOF
  23768. +#ifdef __cplusplus
  23769. +extern "C" {
  23770. +#endif
  23771. +char nm_test_var;
  23772. +void nm_test_func(void);
  23773. +void nm_test_func(void){}
  23774. +#ifdef __cplusplus
  23775. }
  23776. -_ACEOF
  23777. -rm -f conftest.$ac_objext
  23778. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23779. - (eval $ac_compile) 2>conftest.er1
  23780. - ac_status=$?
  23781. - grep -v '^ *+' conftest.er1 >conftest.err
  23782. - rm -f conftest.er1
  23783. - cat conftest.err >&5
  23784. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23785. - (exit $ac_status); } &&
  23786. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23787. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23788. - (eval $ac_try) 2>&5
  23789. +#endif
  23790. +int main(){nm_test_var='a';nm_test_func();return(0);}
  23791. +_LT_EOF
  23792. +
  23793. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  23794. + (eval $ac_compile) 2>&5
  23795. ac_status=$?
  23796. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23797. - (exit $ac_status); }; } &&
  23798. - { ac_try='test -s conftest.$ac_objext'
  23799. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23800. - (eval $ac_try) 2>&5
  23801. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23802. + test $ac_status = 0; }; then
  23803. + # Now try to grab the symbols.
  23804. + nlist=conftest.nm
  23805. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  23806. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  23807. ac_status=$?
  23808. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23809. - (exit $ac_status); }; }; then
  23810. - ac_compiler_gnu=yes
  23811. -else
  23812. - echo "$as_me: failed program was:" >&5
  23813. -sed 's/^/| /' conftest.$ac_ext >&5
  23814. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23815. + test $ac_status = 0; } && test -s "$nlist"; then
  23816. + # Try sorting and uniquifying the output.
  23817. + if sort "$nlist" | uniq > "$nlist"T; then
  23818. + mv -f "$nlist"T "$nlist"
  23819. + else
  23820. + rm -f "$nlist"T
  23821. + fi
  23822. -ac_compiler_gnu=no
  23823. -fi
  23824. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23825. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  23826. + # Make sure that we snagged all the symbols we need.
  23827. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  23828. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  23829. + cat <<_LT_EOF > conftest.$ac_ext
  23830. +#ifdef __cplusplus
  23831. +extern "C" {
  23832. +#endif
  23833. -fi
  23834. -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  23835. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  23836. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  23837. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  23838. -ac_save_CXXFLAGS=$CXXFLAGS
  23839. -CXXFLAGS="-g"
  23840. -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  23841. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  23842. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  23843. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23844. -else
  23845. - cat >conftest.$ac_ext <<_ACEOF
  23846. -/* confdefs.h. */
  23847. -_ACEOF
  23848. -cat confdefs.h >>conftest.$ac_ext
  23849. -cat >>conftest.$ac_ext <<_ACEOF
  23850. -/* end confdefs.h. */
  23851. +_LT_EOF
  23852. + # Now generate the symbol file.
  23853. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  23854. -int
  23855. -main ()
  23856. + cat <<_LT_EOF >> conftest.$ac_ext
  23857. +
  23858. +/* The mapping between symbol names and symbols. */
  23859. +const struct {
  23860. + const char *name;
  23861. + void *address;
  23862. +}
  23863. +lt__PROGRAM__LTX_preloaded_symbols[] =
  23864. {
  23865. + { "@PROGRAM@", (void *) 0 },
  23866. +_LT_EOF
  23867. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  23868. + cat <<\_LT_EOF >> conftest.$ac_ext
  23869. + {0, (void *) 0}
  23870. +};
  23871. - ;
  23872. - return 0;
  23873. +/* This works around a problem in FreeBSD linker */
  23874. +#ifdef FREEBSD_WORKAROUND
  23875. +static const void *lt_preloaded_setup() {
  23876. + return lt__PROGRAM__LTX_preloaded_symbols;
  23877. }
  23878. -_ACEOF
  23879. -rm -f conftest.$ac_objext
  23880. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23881. - (eval $ac_compile) 2>conftest.er1
  23882. - ac_status=$?
  23883. - grep -v '^ *+' conftest.er1 >conftest.err
  23884. - rm -f conftest.er1
  23885. - cat conftest.err >&5
  23886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23887. - (exit $ac_status); } &&
  23888. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  23889. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23890. - (eval $ac_try) 2>&5
  23891. - ac_status=$?
  23892. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23893. - (exit $ac_status); }; } &&
  23894. - { ac_try='test -s conftest.$ac_objext'
  23895. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23896. - (eval $ac_try) 2>&5
  23897. - ac_status=$?
  23898. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23899. - (exit $ac_status); }; }; then
  23900. - ac_cv_prog_cxx_g=yes
  23901. -else
  23902. - echo "$as_me: failed program was:" >&5
  23903. -sed 's/^/| /' conftest.$ac_ext >&5
  23904. +#endif
  23905. -ac_cv_prog_cxx_g=no
  23906. -fi
  23907. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23908. -fi
  23909. -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  23910. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  23911. -if test "$ac_test_CXXFLAGS" = set; then
  23912. - CXXFLAGS=$ac_save_CXXFLAGS
  23913. -elif test $ac_cv_prog_cxx_g = yes; then
  23914. - if test "$GXX" = yes; then
  23915. - CXXFLAGS="-g -O2"
  23916. +#ifdef __cplusplus
  23917. +}
  23918. +#endif
  23919. +_LT_EOF
  23920. + # Now try linking the two files.
  23921. + mv conftest.$ac_objext conftstm.$ac_objext
  23922. + lt_save_LIBS="$LIBS"
  23923. + lt_save_CFLAGS="$CFLAGS"
  23924. + LIBS="conftstm.$ac_objext"
  23925. + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  23926. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  23927. + (eval $ac_link) 2>&5
  23928. + ac_status=$?
  23929. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  23930. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  23931. + pipe_works=yes
  23932. + fi
  23933. + LIBS="$lt_save_LIBS"
  23934. + CFLAGS="$lt_save_CFLAGS"
  23935. + else
  23936. + echo "cannot find nm_test_func in $nlist" >&5
  23937. + fi
  23938. + else
  23939. + echo "cannot find nm_test_var in $nlist" >&5
  23940. + fi
  23941. + else
  23942. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  23943. + fi
  23944. else
  23945. - CXXFLAGS="-g"
  23946. + echo "$progname: failed program was:" >&5
  23947. + cat conftest.$ac_ext >&5
  23948. fi
  23949. -else
  23950. - if test "$GXX" = yes; then
  23951. - CXXFLAGS="-O2"
  23952. + rm -rf conftest* conftst*
  23953. +
  23954. + # Do not use the global_symbol_pipe unless it works.
  23955. + if test "$pipe_works" = yes; then
  23956. + break
  23957. else
  23958. - CXXFLAGS=
  23959. + lt_cv_sys_global_symbol_pipe=
  23960. fi
  23961. +done
  23962. +
  23963. fi
  23964. -for ac_declaration in \
  23965. - '' \
  23966. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  23967. - 'extern "C" void std::exit (int); using std::exit;' \
  23968. - 'extern "C" void exit (int) throw ();' \
  23969. - 'extern "C" void exit (int);' \
  23970. - 'void exit (int);'
  23971. -do
  23972. - cat >conftest.$ac_ext <<_ACEOF
  23973. -/* confdefs.h. */
  23974. -_ACEOF
  23975. -cat confdefs.h >>conftest.$ac_ext
  23976. -cat >>conftest.$ac_ext <<_ACEOF
  23977. -/* end confdefs.h. */
  23978. -$ac_declaration
  23979. -#include <stdlib.h>
  23980. -int
  23981. -main ()
  23982. -{
  23983. -exit (42);
  23984. - ;
  23985. - return 0;
  23986. -}
  23987. -_ACEOF
  23988. -rm -f conftest.$ac_objext
  23989. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23990. - (eval $ac_compile) 2>conftest.er1
  23991. +
  23992. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  23993. + lt_cv_sys_global_symbol_to_cdecl=
  23994. +fi
  23995. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  23996. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  23997. +$as_echo "failed" >&6; }
  23998. +else
  23999. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  24000. +$as_echo "ok" >&6; }
  24001. +fi
  24002. +
  24003. +
  24004. +
  24005. +
  24006. +
  24007. +
  24008. +
  24009. +
  24010. +
  24011. +
  24012. +
  24013. +
  24014. +
  24015. +
  24016. +
  24017. +
  24018. +
  24019. +
  24020. +
  24021. +
  24022. +
  24023. +
  24024. +
  24025. +# Check whether --enable-libtool-lock was given.
  24026. +if test "${enable_libtool_lock+set}" = set; then :
  24027. + enableval=$enable_libtool_lock;
  24028. +fi
  24029. +
  24030. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24031. +
  24032. +# Some flags need to be propagated to the compiler or linker for good
  24033. +# libtool support.
  24034. +case $host in
  24035. +ia64-*-hpux*)
  24036. + # Find out which ABI we are using.
  24037. + echo 'int i;' > conftest.$ac_ext
  24038. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24039. + (eval $ac_compile) 2>&5
  24040. ac_status=$?
  24041. - grep -v '^ *+' conftest.er1 >conftest.err
  24042. - rm -f conftest.er1
  24043. - cat conftest.err >&5
  24044. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24045. - (exit $ac_status); } &&
  24046. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  24047. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24048. - (eval $ac_try) 2>&5
  24049. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24050. + test $ac_status = 0; }; then
  24051. + case `/usr/bin/file conftest.$ac_objext` in
  24052. + *ELF-32*)
  24053. + HPUX_IA64_MODE="32"
  24054. + ;;
  24055. + *ELF-64*)
  24056. + HPUX_IA64_MODE="64"
  24057. + ;;
  24058. + esac
  24059. + fi
  24060. + rm -rf conftest*
  24061. + ;;
  24062. +*-*-irix6*)
  24063. + # Find out which ABI we are using.
  24064. + echo '#line 6101 "configure"' > conftest.$ac_ext
  24065. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24066. + (eval $ac_compile) 2>&5
  24067. ac_status=$?
  24068. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24069. - (exit $ac_status); }; } &&
  24070. - { ac_try='test -s conftest.$ac_objext'
  24071. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24072. - (eval $ac_try) 2>&5
  24073. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24074. + test $ac_status = 0; }; then
  24075. + if test "$lt_cv_prog_gnu_ld" = yes; then
  24076. + case `/usr/bin/file conftest.$ac_objext` in
  24077. + *32-bit*)
  24078. + LD="${LD-ld} -melf32bsmip"
  24079. + ;;
  24080. + *N32*)
  24081. + LD="${LD-ld} -melf32bmipn32"
  24082. + ;;
  24083. + *64-bit*)
  24084. + LD="${LD-ld} -melf64bmip"
  24085. + ;;
  24086. + esac
  24087. + else
  24088. + case `/usr/bin/file conftest.$ac_objext` in
  24089. + *32-bit*)
  24090. + LD="${LD-ld} -32"
  24091. + ;;
  24092. + *N32*)
  24093. + LD="${LD-ld} -n32"
  24094. + ;;
  24095. + *64-bit*)
  24096. + LD="${LD-ld} -64"
  24097. + ;;
  24098. + esac
  24099. + fi
  24100. + fi
  24101. + rm -rf conftest*
  24102. + ;;
  24103. +
  24104. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  24105. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  24106. + # Find out which ABI we are using.
  24107. + echo 'int i;' > conftest.$ac_ext
  24108. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24109. + (eval $ac_compile) 2>&5
  24110. ac_status=$?
  24111. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24112. - (exit $ac_status); }; }; then
  24113. - :
  24114. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24115. + test $ac_status = 0; }; then
  24116. + case `/usr/bin/file conftest.o` in
  24117. + *32-bit*)
  24118. + case $host in
  24119. + x86_64-*kfreebsd*-gnu)
  24120. + LD="${LD-ld} -m elf_i386_fbsd"
  24121. + ;;
  24122. + x86_64-*linux*)
  24123. + LD="${LD-ld} -m elf_i386"
  24124. + ;;
  24125. + ppc64-*linux*|powerpc64-*linux*)
  24126. + LD="${LD-ld} -m elf32ppclinux"
  24127. + ;;
  24128. + s390x-*linux*)
  24129. + LD="${LD-ld} -m elf_s390"
  24130. + ;;
  24131. + sparc64-*linux*)
  24132. + LD="${LD-ld} -m elf32_sparc"
  24133. + ;;
  24134. + esac
  24135. + ;;
  24136. + *64-bit*)
  24137. + case $host in
  24138. + x86_64-*kfreebsd*-gnu)
  24139. + LD="${LD-ld} -m elf_x86_64_fbsd"
  24140. + ;;
  24141. + x86_64-*linux*)
  24142. + LD="${LD-ld} -m elf_x86_64"
  24143. + ;;
  24144. + ppc*-*linux*|powerpc*-*linux*)
  24145. + LD="${LD-ld} -m elf64ppc"
  24146. + ;;
  24147. + s390*-*linux*|s390*-*tpf*)
  24148. + LD="${LD-ld} -m elf64_s390"
  24149. + ;;
  24150. + sparc*-*linux*)
  24151. + LD="${LD-ld} -m elf64_sparc"
  24152. + ;;
  24153. + esac
  24154. + ;;
  24155. + esac
  24156. + fi
  24157. + rm -rf conftest*
  24158. + ;;
  24159. +
  24160. +*-*-sco3.2v5*)
  24161. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  24162. + SAVE_CFLAGS="$CFLAGS"
  24163. + CFLAGS="$CFLAGS -belf"
  24164. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  24165. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  24166. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  24167. + $as_echo_n "(cached) " >&6
  24168. else
  24169. - echo "$as_me: failed program was:" >&5
  24170. -sed 's/^/| /' conftest.$ac_ext >&5
  24171. + ac_ext=c
  24172. +ac_cpp='$CPP $CPPFLAGS'
  24173. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24174. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24175. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24176. -continue
  24177. -fi
  24178. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24179. - cat >conftest.$ac_ext <<_ACEOF
  24180. -/* confdefs.h. */
  24181. -_ACEOF
  24182. -cat confdefs.h >>conftest.$ac_ext
  24183. -cat >>conftest.$ac_ext <<_ACEOF
  24184. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24185. /* end confdefs.h. */
  24186. -$ac_declaration
  24187. +
  24188. int
  24189. main ()
  24190. {
  24191. -exit (42);
  24192. +
  24193. ;
  24194. return 0;
  24195. }
  24196. _ACEOF
  24197. -rm -f conftest.$ac_objext
  24198. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24199. - (eval $ac_compile) 2>conftest.er1
  24200. - ac_status=$?
  24201. - grep -v '^ *+' conftest.er1 >conftest.err
  24202. - rm -f conftest.er1
  24203. - cat conftest.err >&5
  24204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24205. - (exit $ac_status); } &&
  24206. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  24207. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24208. - (eval $ac_try) 2>&5
  24209. - ac_status=$?
  24210. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24211. - (exit $ac_status); }; } &&
  24212. - { ac_try='test -s conftest.$ac_objext'
  24213. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24214. - (eval $ac_try) 2>&5
  24215. - ac_status=$?
  24216. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24217. - (exit $ac_status); }; }; then
  24218. - break
  24219. +if ac_fn_c_try_link "$LINENO"; then :
  24220. + lt_cv_cc_needs_belf=yes
  24221. else
  24222. - echo "$as_me: failed program was:" >&5
  24223. -sed 's/^/| /' conftest.$ac_ext >&5
  24224. -
  24225. + lt_cv_cc_needs_belf=no
  24226. fi
  24227. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  24228. -done
  24229. -rm -f conftest*
  24230. -if test -n "$ac_declaration"; then
  24231. - echo '#ifdef __cplusplus' >>confdefs.h
  24232. - echo $ac_declaration >>confdefs.h
  24233. - echo '#endif' >>confdefs.h
  24234. -fi
  24235. -
  24236. -ac_ext=cc
  24237. -ac_cpp='$CXXCPP $CPPFLAGS'
  24238. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24239. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24240. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24241. -
  24242. -depcc="$CXX" am_compiler_list=
  24243. -
  24244. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  24245. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  24246. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  24247. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24248. -else
  24249. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  24250. - # We make a subdir and do the tests there. Otherwise we can end up
  24251. - # making bogus files that we don't know about and never remove. For
  24252. - # instance it was reported that on HP-UX the gcc test will end up
  24253. - # making a dummy file named `D' -- because `-MD' means `put the output
  24254. - # in D'.
  24255. - mkdir conftest.dir
  24256. - # Copy depcomp to subdir because otherwise we won't find it if we're
  24257. - # using a relative directory.
  24258. - cp "$am_depcomp" conftest.dir
  24259. - cd conftest.dir
  24260. - # We will build objects and dependencies in a subdirectory because
  24261. - # it helps to detect inapplicable dependency modes. For instance
  24262. - # both Tru64's cc and ICC support -MD to output dependencies as a
  24263. - # side effect of compilation, but ICC will put the dependencies in
  24264. - # the current directory while Tru64 will put them in the object
  24265. - # directory.
  24266. - mkdir sub
  24267. +rm -f core conftest.err conftest.$ac_objext \
  24268. + conftest$ac_exeext conftest.$ac_ext
  24269. + ac_ext=c
  24270. +ac_cpp='$CPP $CPPFLAGS'
  24271. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24272. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24273. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24274. - am_cv_CXX_dependencies_compiler_type=none
  24275. - if test "$am_compiler_list" = ""; then
  24276. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  24277. +fi
  24278. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  24279. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  24280. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  24281. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  24282. + CFLAGS="$SAVE_CFLAGS"
  24283. fi
  24284. - for depmode in $am_compiler_list; do
  24285. - # Setup a source with many dependencies, because some compilers
  24286. - # like to wrap large dependency lists on column 80 (with \), and
  24287. - # we should not choose a depcomp mode which is confused by this.
  24288. - #
  24289. - # We need to recreate these files for each test, as the compiler may
  24290. - # overwrite some of them when testing with obscure command lines.
  24291. - # This happens at least with the AIX C compiler.
  24292. - : > sub/conftest.c
  24293. - for i in 1 2 3 4 5 6; do
  24294. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  24295. - : > sub/conftst$i.h
  24296. - done
  24297. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  24298. -
  24299. - case $depmode in
  24300. - nosideeffect)
  24301. - # after this tag, mechanisms are not by side-effect, so they'll
  24302. - # only be used when explicitly requested
  24303. - if test "x$enable_dependency_tracking" = xyes; then
  24304. - continue
  24305. - else
  24306. - break
  24307. - fi
  24308. + ;;
  24309. +sparc*-*solaris*)
  24310. + # Find out which ABI we are using.
  24311. + echo 'int i;' > conftest.$ac_ext
  24312. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24313. + (eval $ac_compile) 2>&5
  24314. + ac_status=$?
  24315. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24316. + test $ac_status = 0; }; then
  24317. + case `/usr/bin/file conftest.o` in
  24318. + *64-bit*)
  24319. + case $lt_cv_prog_gnu_ld in
  24320. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  24321. + *)
  24322. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  24323. + LD="${LD-ld} -64"
  24324. + fi
  24325. + ;;
  24326. + esac
  24327. ;;
  24328. - none) break ;;
  24329. esac
  24330. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  24331. - # mode. It turns out that the SunPro C++ compiler does not properly
  24332. - # handle `-M -o', and we need to detect this.
  24333. - if depmode=$depmode \
  24334. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  24335. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  24336. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  24337. - >/dev/null 2>conftest.err &&
  24338. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  24339. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  24340. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  24341. - # icc doesn't choke on unknown options, it will just issue warnings
  24342. - # (even with -Werror). So we grep stderr for any message
  24343. - # that says an option was ignored.
  24344. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
  24345. - am_cv_CXX_dependencies_compiler_type=$depmode
  24346. - break
  24347. - fi
  24348. - fi
  24349. - done
  24350. -
  24351. - cd ..
  24352. - rm -rf conftest.dir
  24353. -else
  24354. - am_cv_CXX_dependencies_compiler_type=none
  24355. -fi
  24356. + fi
  24357. + rm -rf conftest*
  24358. + ;;
  24359. +esac
  24360. -fi
  24361. -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  24362. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  24363. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  24364. +need_locks="$enable_libtool_lock"
  24365. + case $host_os in
  24366. + rhapsody* | darwin*)
  24367. + if test -n "$ac_tool_prefix"; then
  24368. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  24369. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  24370. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24371. +$as_echo_n "checking for $ac_word... " >&6; }
  24372. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  24373. + $as_echo_n "(cached) " >&6
  24374. +else
  24375. + if test -n "$DSYMUTIL"; then
  24376. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  24377. +else
  24378. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24379. +for as_dir in $PATH
  24380. +do
  24381. + IFS=$as_save_IFS
  24382. + test -z "$as_dir" && as_dir=.
  24383. + for ac_exec_ext in '' $ac_executable_extensions; do
  24384. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24385. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  24386. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24387. + break 2
  24388. + fi
  24389. +done
  24390. + done
  24391. +IFS=$as_save_IFS
  24392. -if
  24393. - test "x$enable_dependency_tracking" != xno \
  24394. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  24395. - am__fastdepCXX_TRUE=
  24396. - am__fastdepCXX_FALSE='#'
  24397. -else
  24398. - am__fastdepCXX_TRUE='#'
  24399. - am__fastdepCXX_FALSE=
  24400. +fi
  24401. +fi
  24402. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24403. +if test -n "$DSYMUTIL"; then
  24404. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  24405. +$as_echo "$DSYMUTIL" >&6; }
  24406. +else
  24407. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24408. +$as_echo "no" >&6; }
  24409. fi
  24410. -ac_ext=cc
  24411. -ac_cpp='$CXXCPP $CPPFLAGS'
  24412. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24413. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24414. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24415. -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  24416. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  24417. -if test -z "$CXXCPP"; then
  24418. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  24419. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24420. +fi
  24421. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  24422. + ac_ct_DSYMUTIL=$DSYMUTIL
  24423. + # Extract the first word of "dsymutil", so it can be a program name with args.
  24424. +set dummy dsymutil; ac_word=$2
  24425. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24426. +$as_echo_n "checking for $ac_word... " >&6; }
  24427. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  24428. + $as_echo_n "(cached) " >&6
  24429. else
  24430. - # Double quotes because CXXCPP needs to be expanded
  24431. - for CXXCPP in "$CXX -E" "/lib/cpp"
  24432. - do
  24433. - ac_preproc_ok=false
  24434. -for ac_cxx_preproc_warn_flag in '' yes
  24435. + if test -n "$ac_ct_DSYMUTIL"; then
  24436. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24437. +else
  24438. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24439. +for as_dir in $PATH
  24440. do
  24441. - # Use a header file that comes with gcc, so configuring glibc
  24442. - # with a fresh cross-compiler works.
  24443. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24444. - # <limits.h> exists even on freestanding compilers.
  24445. - # On the NeXT, cc -E runs the code through the compiler's parser,
  24446. - # not just through cpp. "Syntax error" is here to catch this case.
  24447. - cat >conftest.$ac_ext <<_ACEOF
  24448. -/* confdefs.h. */
  24449. -_ACEOF
  24450. -cat confdefs.h >>conftest.$ac_ext
  24451. -cat >>conftest.$ac_ext <<_ACEOF
  24452. -/* end confdefs.h. */
  24453. -#ifdef __STDC__
  24454. -# include <limits.h>
  24455. -#else
  24456. -# include <assert.h>
  24457. -#endif
  24458. - Syntax error
  24459. -_ACEOF
  24460. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24461. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24462. - ac_status=$?
  24463. - grep -v '^ *+' conftest.er1 >conftest.err
  24464. - rm -f conftest.er1
  24465. - cat conftest.err >&5
  24466. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24467. - (exit $ac_status); } >/dev/null; then
  24468. - if test -s conftest.err; then
  24469. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24470. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24471. - else
  24472. - ac_cpp_err=
  24473. + IFS=$as_save_IFS
  24474. + test -z "$as_dir" && as_dir=.
  24475. + for ac_exec_ext in '' $ac_executable_extensions; do
  24476. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24477. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24478. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24479. + break 2
  24480. fi
  24481. -else
  24482. - ac_cpp_err=yes
  24483. +done
  24484. + done
  24485. +IFS=$as_save_IFS
  24486. +
  24487. fi
  24488. -if test -z "$ac_cpp_err"; then
  24489. - :
  24490. +fi
  24491. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24492. +if test -n "$ac_ct_DSYMUTIL"; then
  24493. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  24494. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24495. else
  24496. - echo "$as_me: failed program was:" >&5
  24497. -sed 's/^/| /' conftest.$ac_ext >&5
  24498. -
  24499. - # Broken: fails on valid input.
  24500. -continue
  24501. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24502. +$as_echo "no" >&6; }
  24503. fi
  24504. -rm -f conftest.err conftest.$ac_ext
  24505. - # OK, works on sane cases. Now check whether non-existent headers
  24506. - # can be detected and how.
  24507. - cat >conftest.$ac_ext <<_ACEOF
  24508. -/* confdefs.h. */
  24509. -_ACEOF
  24510. -cat confdefs.h >>conftest.$ac_ext
  24511. -cat >>conftest.$ac_ext <<_ACEOF
  24512. -/* end confdefs.h. */
  24513. -#include <ac_nonexistent.h>
  24514. -_ACEOF
  24515. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24516. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24517. - ac_status=$?
  24518. - grep -v '^ *+' conftest.er1 >conftest.err
  24519. - rm -f conftest.er1
  24520. - cat conftest.err >&5
  24521. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24522. - (exit $ac_status); } >/dev/null; then
  24523. - if test -s conftest.err; then
  24524. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24525. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24526. + if test "x$ac_ct_DSYMUTIL" = x; then
  24527. + DSYMUTIL=":"
  24528. else
  24529. - ac_cpp_err=
  24530. + case $cross_compiling:$ac_tool_warned in
  24531. +yes:)
  24532. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24533. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24534. +ac_tool_warned=yes ;;
  24535. +esac
  24536. + DSYMUTIL=$ac_ct_DSYMUTIL
  24537. fi
  24538. else
  24539. - ac_cpp_err=yes
  24540. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24541. fi
  24542. -if test -z "$ac_cpp_err"; then
  24543. - # Broken: success on invalid input.
  24544. -continue
  24545. +
  24546. + if test -n "$ac_tool_prefix"; then
  24547. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24548. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24549. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24550. +$as_echo_n "checking for $ac_word... " >&6; }
  24551. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  24552. + $as_echo_n "(cached) " >&6
  24553. else
  24554. - echo "$as_me: failed program was:" >&5
  24555. -sed 's/^/| /' conftest.$ac_ext >&5
  24556. + if test -n "$NMEDIT"; then
  24557. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24558. +else
  24559. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24560. +for as_dir in $PATH
  24561. +do
  24562. + IFS=$as_save_IFS
  24563. + test -z "$as_dir" && as_dir=.
  24564. + for ac_exec_ext in '' $ac_executable_extensions; do
  24565. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24566. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24567. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24568. + break 2
  24569. + fi
  24570. +done
  24571. + done
  24572. +IFS=$as_save_IFS
  24573. - # Passes both tests.
  24574. -ac_preproc_ok=:
  24575. -break
  24576. fi
  24577. -rm -f conftest.err conftest.$ac_ext
  24578. -
  24579. -done
  24580. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24581. -rm -f conftest.err conftest.$ac_ext
  24582. -if $ac_preproc_ok; then
  24583. - break
  24584. +fi
  24585. +NMEDIT=$ac_cv_prog_NMEDIT
  24586. +if test -n "$NMEDIT"; then
  24587. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  24588. +$as_echo "$NMEDIT" >&6; }
  24589. +else
  24590. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24591. +$as_echo "no" >&6; }
  24592. fi
  24593. - done
  24594. - ac_cv_prog_CXXCPP=$CXXCPP
  24595. fi
  24596. - CXXCPP=$ac_cv_prog_CXXCPP
  24597. +if test -z "$ac_cv_prog_NMEDIT"; then
  24598. + ac_ct_NMEDIT=$NMEDIT
  24599. + # Extract the first word of "nmedit", so it can be a program name with args.
  24600. +set dummy nmedit; ac_word=$2
  24601. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24602. +$as_echo_n "checking for $ac_word... " >&6; }
  24603. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  24604. + $as_echo_n "(cached) " >&6
  24605. else
  24606. - ac_cv_prog_CXXCPP=$CXXCPP
  24607. -fi
  24608. -echo "$as_me:$LINENO: result: $CXXCPP" >&5
  24609. -echo "${ECHO_T}$CXXCPP" >&6
  24610. -ac_preproc_ok=false
  24611. -for ac_cxx_preproc_warn_flag in '' yes
  24612. + if test -n "$ac_ct_NMEDIT"; then
  24613. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  24614. +else
  24615. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24616. +for as_dir in $PATH
  24617. do
  24618. - # Use a header file that comes with gcc, so configuring glibc
  24619. - # with a fresh cross-compiler works.
  24620. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  24621. - # <limits.h> exists even on freestanding compilers.
  24622. - # On the NeXT, cc -E runs the code through the compiler's parser,
  24623. - # not just through cpp. "Syntax error" is here to catch this case.
  24624. - cat >conftest.$ac_ext <<_ACEOF
  24625. -/* confdefs.h. */
  24626. -_ACEOF
  24627. -cat confdefs.h >>conftest.$ac_ext
  24628. -cat >>conftest.$ac_ext <<_ACEOF
  24629. -/* end confdefs.h. */
  24630. -#ifdef __STDC__
  24631. -# include <limits.h>
  24632. -#else
  24633. -# include <assert.h>
  24634. -#endif
  24635. - Syntax error
  24636. -_ACEOF
  24637. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24638. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24639. - ac_status=$?
  24640. - grep -v '^ *+' conftest.er1 >conftest.err
  24641. - rm -f conftest.er1
  24642. - cat conftest.err >&5
  24643. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24644. - (exit $ac_status); } >/dev/null; then
  24645. - if test -s conftest.err; then
  24646. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24647. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24648. - else
  24649. - ac_cpp_err=
  24650. + IFS=$as_save_IFS
  24651. + test -z "$as_dir" && as_dir=.
  24652. + for ac_exec_ext in '' $ac_executable_extensions; do
  24653. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24654. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  24655. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24656. + break 2
  24657. fi
  24658. -else
  24659. - ac_cpp_err=yes
  24660. +done
  24661. + done
  24662. +IFS=$as_save_IFS
  24663. +
  24664. fi
  24665. -if test -z "$ac_cpp_err"; then
  24666. - :
  24667. +fi
  24668. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  24669. +if test -n "$ac_ct_NMEDIT"; then
  24670. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  24671. +$as_echo "$ac_ct_NMEDIT" >&6; }
  24672. else
  24673. - echo "$as_me: failed program was:" >&5
  24674. -sed 's/^/| /' conftest.$ac_ext >&5
  24675. -
  24676. - # Broken: fails on valid input.
  24677. -continue
  24678. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24679. +$as_echo "no" >&6; }
  24680. fi
  24681. -rm -f conftest.err conftest.$ac_ext
  24682. - # OK, works on sane cases. Now check whether non-existent headers
  24683. - # can be detected and how.
  24684. - cat >conftest.$ac_ext <<_ACEOF
  24685. -/* confdefs.h. */
  24686. -_ACEOF
  24687. -cat confdefs.h >>conftest.$ac_ext
  24688. -cat >>conftest.$ac_ext <<_ACEOF
  24689. -/* end confdefs.h. */
  24690. -#include <ac_nonexistent.h>
  24691. -_ACEOF
  24692. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  24693. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  24694. - ac_status=$?
  24695. - grep -v '^ *+' conftest.er1 >conftest.err
  24696. - rm -f conftest.er1
  24697. - cat conftest.err >&5
  24698. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24699. - (exit $ac_status); } >/dev/null; then
  24700. - if test -s conftest.err; then
  24701. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  24702. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  24703. + if test "x$ac_ct_NMEDIT" = x; then
  24704. + NMEDIT=":"
  24705. else
  24706. - ac_cpp_err=
  24707. + case $cross_compiling:$ac_tool_warned in
  24708. +yes:)
  24709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24710. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24711. +ac_tool_warned=yes ;;
  24712. +esac
  24713. + NMEDIT=$ac_ct_NMEDIT
  24714. fi
  24715. else
  24716. - ac_cpp_err=yes
  24717. + NMEDIT="$ac_cv_prog_NMEDIT"
  24718. fi
  24719. -if test -z "$ac_cpp_err"; then
  24720. - # Broken: success on invalid input.
  24721. -continue
  24722. +
  24723. + if test -n "$ac_tool_prefix"; then
  24724. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  24725. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  24726. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24727. +$as_echo_n "checking for $ac_word... " >&6; }
  24728. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  24729. + $as_echo_n "(cached) " >&6
  24730. else
  24731. - echo "$as_me: failed program was:" >&5
  24732. -sed 's/^/| /' conftest.$ac_ext >&5
  24733. + if test -n "$LIPO"; then
  24734. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  24735. +else
  24736. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24737. +for as_dir in $PATH
  24738. +do
  24739. + IFS=$as_save_IFS
  24740. + test -z "$as_dir" && as_dir=.
  24741. + for ac_exec_ext in '' $ac_executable_extensions; do
  24742. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24743. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  24744. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24745. + break 2
  24746. + fi
  24747. +done
  24748. + done
  24749. +IFS=$as_save_IFS
  24750. - # Passes both tests.
  24751. -ac_preproc_ok=:
  24752. -break
  24753. fi
  24754. -rm -f conftest.err conftest.$ac_ext
  24755. -
  24756. -done
  24757. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  24758. -rm -f conftest.err conftest.$ac_ext
  24759. -if $ac_preproc_ok; then
  24760. - :
  24761. +fi
  24762. +LIPO=$ac_cv_prog_LIPO
  24763. +if test -n "$LIPO"; then
  24764. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  24765. +$as_echo "$LIPO" >&6; }
  24766. else
  24767. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  24768. -See \`config.log' for more details." >&5
  24769. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  24770. -See \`config.log' for more details." >&2;}
  24771. - { (exit 1); exit 1; }; }
  24772. -fi
  24773. -
  24774. -ac_ext=cc
  24775. -ac_cpp='$CXXCPP $CPPFLAGS'
  24776. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24777. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24778. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  24779. -
  24780. -
  24781. -ac_ext=f
  24782. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  24783. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24784. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  24785. -if test -n "$ac_tool_prefix"; then
  24786. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  24787. - do
  24788. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  24789. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  24790. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24791. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24792. -if test "${ac_cv_prog_F77+set}" = set; then
  24793. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24794. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24795. +$as_echo "no" >&6; }
  24796. +fi
  24797. +
  24798. +
  24799. +fi
  24800. +if test -z "$ac_cv_prog_LIPO"; then
  24801. + ac_ct_LIPO=$LIPO
  24802. + # Extract the first word of "lipo", so it can be a program name with args.
  24803. +set dummy lipo; ac_word=$2
  24804. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24805. +$as_echo_n "checking for $ac_word... " >&6; }
  24806. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  24807. + $as_echo_n "(cached) " >&6
  24808. else
  24809. - if test -n "$F77"; then
  24810. - ac_cv_prog_F77="$F77" # Let the user override the test.
  24811. + if test -n "$ac_ct_LIPO"; then
  24812. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  24813. else
  24814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24815. for as_dir in $PATH
  24816. do
  24817. IFS=$as_save_IFS
  24818. test -z "$as_dir" && as_dir=.
  24819. - for ac_exec_ext in '' $ac_executable_extensions; do
  24820. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24821. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  24822. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24823. + for ac_exec_ext in '' $ac_executable_extensions; do
  24824. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24825. + ac_cv_prog_ac_ct_LIPO="lipo"
  24826. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24827. break 2
  24828. fi
  24829. done
  24830. -done
  24831. + done
  24832. +IFS=$as_save_IFS
  24833. fi
  24834. fi
  24835. -F77=$ac_cv_prog_F77
  24836. -if test -n "$F77"; then
  24837. - echo "$as_me:$LINENO: result: $F77" >&5
  24838. -echo "${ECHO_T}$F77" >&6
  24839. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  24840. +if test -n "$ac_ct_LIPO"; then
  24841. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  24842. +$as_echo "$ac_ct_LIPO" >&6; }
  24843. else
  24844. - echo "$as_me:$LINENO: result: no" >&5
  24845. -echo "${ECHO_T}no" >&6
  24846. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24847. +$as_echo "no" >&6; }
  24848. fi
  24849. - test -n "$F77" && break
  24850. - done
  24851. + if test "x$ac_ct_LIPO" = x; then
  24852. + LIPO=":"
  24853. + else
  24854. + case $cross_compiling:$ac_tool_warned in
  24855. +yes:)
  24856. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24857. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24858. +ac_tool_warned=yes ;;
  24859. +esac
  24860. + LIPO=$ac_ct_LIPO
  24861. + fi
  24862. +else
  24863. + LIPO="$ac_cv_prog_LIPO"
  24864. fi
  24865. -if test -z "$F77"; then
  24866. - ac_ct_F77=$F77
  24867. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  24868. -do
  24869. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  24870. -set dummy $ac_prog; ac_word=$2
  24871. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24872. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24873. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  24874. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24875. +
  24876. + if test -n "$ac_tool_prefix"; then
  24877. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  24878. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  24879. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24880. +$as_echo_n "checking for $ac_word... " >&6; }
  24881. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  24882. + $as_echo_n "(cached) " >&6
  24883. else
  24884. - if test -n "$ac_ct_F77"; then
  24885. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  24886. + if test -n "$OTOOL"; then
  24887. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  24888. else
  24889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24890. for as_dir in $PATH
  24891. do
  24892. IFS=$as_save_IFS
  24893. test -z "$as_dir" && as_dir=.
  24894. - for ac_exec_ext in '' $ac_executable_extensions; do
  24895. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24896. - ac_cv_prog_ac_ct_F77="$ac_prog"
  24897. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24898. + for ac_exec_ext in '' $ac_executable_extensions; do
  24899. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24900. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  24901. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24902. break 2
  24903. fi
  24904. done
  24905. -done
  24906. + done
  24907. +IFS=$as_save_IFS
  24908. fi
  24909. fi
  24910. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  24911. -if test -n "$ac_ct_F77"; then
  24912. - echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  24913. -echo "${ECHO_T}$ac_ct_F77" >&6
  24914. +OTOOL=$ac_cv_prog_OTOOL
  24915. +if test -n "$OTOOL"; then
  24916. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  24917. +$as_echo "$OTOOL" >&6; }
  24918. else
  24919. - echo "$as_me:$LINENO: result: no" >&5
  24920. -echo "${ECHO_T}no" >&6
  24921. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24922. +$as_echo "no" >&6; }
  24923. fi
  24924. - test -n "$ac_ct_F77" && break
  24925. -done
  24926. - F77=$ac_ct_F77
  24927. fi
  24928. +if test -z "$ac_cv_prog_OTOOL"; then
  24929. + ac_ct_OTOOL=$OTOOL
  24930. + # Extract the first word of "otool", so it can be a program name with args.
  24931. +set dummy otool; ac_word=$2
  24932. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24933. +$as_echo_n "checking for $ac_word... " >&6; }
  24934. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  24935. + $as_echo_n "(cached) " >&6
  24936. +else
  24937. + if test -n "$ac_ct_OTOOL"; then
  24938. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  24939. +else
  24940. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24941. +for as_dir in $PATH
  24942. +do
  24943. + IFS=$as_save_IFS
  24944. + test -z "$as_dir" && as_dir=.
  24945. + for ac_exec_ext in '' $ac_executable_extensions; do
  24946. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24947. + ac_cv_prog_ac_ct_OTOOL="otool"
  24948. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24949. + break 2
  24950. + fi
  24951. +done
  24952. + done
  24953. +IFS=$as_save_IFS
  24954. +fi
  24955. +fi
  24956. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  24957. +if test -n "$ac_ct_OTOOL"; then
  24958. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  24959. +$as_echo "$ac_ct_OTOOL" >&6; }
  24960. +else
  24961. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24962. +$as_echo "no" >&6; }
  24963. +fi
  24964. -# Provide some information about the compiler.
  24965. -echo "$as_me:5240:" \
  24966. - "checking for Fortran 77 compiler version" >&5
  24967. -ac_compiler=`set X $ac_compile; echo $2`
  24968. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  24969. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  24970. - ac_status=$?
  24971. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24972. - (exit $ac_status); }
  24973. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  24974. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  24975. - ac_status=$?
  24976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24977. - (exit $ac_status); }
  24978. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  24979. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  24980. - ac_status=$?
  24981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24982. - (exit $ac_status); }
  24983. -rm -f a.out
  24984. -
  24985. -# If we don't use `.F' as extension, the preprocessor is not run on the
  24986. -# input file. (Note that this only needs to work for GNU compilers.)
  24987. -ac_save_ext=$ac_ext
  24988. -ac_ext=F
  24989. -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  24990. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  24991. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  24992. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24993. + if test "x$ac_ct_OTOOL" = x; then
  24994. + OTOOL=":"
  24995. + else
  24996. + case $cross_compiling:$ac_tool_warned in
  24997. +yes:)
  24998. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24999. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25000. +ac_tool_warned=yes ;;
  25001. +esac
  25002. + OTOOL=$ac_ct_OTOOL
  25003. + fi
  25004. else
  25005. - cat >conftest.$ac_ext <<_ACEOF
  25006. - program main
  25007. -#ifndef __GNUC__
  25008. - choke me
  25009. -#endif
  25010. + OTOOL="$ac_cv_prog_OTOOL"
  25011. +fi
  25012. - end
  25013. -_ACEOF
  25014. -rm -f conftest.$ac_objext
  25015. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25016. - (eval $ac_compile) 2>conftest.er1
  25017. - ac_status=$?
  25018. - grep -v '^ *+' conftest.er1 >conftest.err
  25019. - rm -f conftest.er1
  25020. - cat conftest.err >&5
  25021. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25022. - (exit $ac_status); } &&
  25023. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  25024. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25025. - (eval $ac_try) 2>&5
  25026. - ac_status=$?
  25027. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25028. - (exit $ac_status); }; } &&
  25029. - { ac_try='test -s conftest.$ac_objext'
  25030. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25031. - (eval $ac_try) 2>&5
  25032. - ac_status=$?
  25033. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25034. - (exit $ac_status); }; }; then
  25035. - ac_compiler_gnu=yes
  25036. + if test -n "$ac_tool_prefix"; then
  25037. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  25038. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  25039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25040. +$as_echo_n "checking for $ac_word... " >&6; }
  25041. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  25042. + $as_echo_n "(cached) " >&6
  25043. else
  25044. - echo "$as_me: failed program was:" >&5
  25045. -sed 's/^/| /' conftest.$ac_ext >&5
  25046. + if test -n "$OTOOL64"; then
  25047. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  25048. +else
  25049. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25050. +for as_dir in $PATH
  25051. +do
  25052. + IFS=$as_save_IFS
  25053. + test -z "$as_dir" && as_dir=.
  25054. + for ac_exec_ext in '' $ac_executable_extensions; do
  25055. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25056. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  25057. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25058. + break 2
  25059. + fi
  25060. +done
  25061. + done
  25062. +IFS=$as_save_IFS
  25063. -ac_compiler_gnu=no
  25064. fi
  25065. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25066. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  25067. -
  25068. fi
  25069. -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  25070. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  25071. -ac_ext=$ac_save_ext
  25072. -ac_test_FFLAGS=${FFLAGS+set}
  25073. -ac_save_FFLAGS=$FFLAGS
  25074. -FFLAGS=
  25075. -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  25076. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  25077. -if test "${ac_cv_prog_f77_g+set}" = set; then
  25078. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25079. -else
  25080. - FFLAGS=-g
  25081. -cat >conftest.$ac_ext <<_ACEOF
  25082. - program main
  25083. -
  25084. - end
  25085. -_ACEOF
  25086. -rm -f conftest.$ac_objext
  25087. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25088. - (eval $ac_compile) 2>conftest.er1
  25089. - ac_status=$?
  25090. - grep -v '^ *+' conftest.er1 >conftest.err
  25091. - rm -f conftest.er1
  25092. - cat conftest.err >&5
  25093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25094. - (exit $ac_status); } &&
  25095. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  25096. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25097. - (eval $ac_try) 2>&5
  25098. - ac_status=$?
  25099. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25100. - (exit $ac_status); }; } &&
  25101. - { ac_try='test -s conftest.$ac_objext'
  25102. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25103. - (eval $ac_try) 2>&5
  25104. - ac_status=$?
  25105. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25106. - (exit $ac_status); }; }; then
  25107. - ac_cv_prog_f77_g=yes
  25108. +OTOOL64=$ac_cv_prog_OTOOL64
  25109. +if test -n "$OTOOL64"; then
  25110. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  25111. +$as_echo "$OTOOL64" >&6; }
  25112. else
  25113. - echo "$as_me: failed program was:" >&5
  25114. -sed 's/^/| /' conftest.$ac_ext >&5
  25115. -
  25116. -ac_cv_prog_f77_g=no
  25117. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25118. +$as_echo "no" >&6; }
  25119. fi
  25120. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  25121. +
  25122. fi
  25123. -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  25124. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  25125. -if test "$ac_test_FFLAGS" = set; then
  25126. - FFLAGS=$ac_save_FFLAGS
  25127. -elif test $ac_cv_prog_f77_g = yes; then
  25128. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  25129. - FFLAGS="-g -O2"
  25130. - else
  25131. - FFLAGS="-g"
  25132. +if test -z "$ac_cv_prog_OTOOL64"; then
  25133. + ac_ct_OTOOL64=$OTOOL64
  25134. + # Extract the first word of "otool64", so it can be a program name with args.
  25135. +set dummy otool64; ac_word=$2
  25136. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25137. +$as_echo_n "checking for $ac_word... " >&6; }
  25138. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  25139. + $as_echo_n "(cached) " >&6
  25140. +else
  25141. + if test -n "$ac_ct_OTOOL64"; then
  25142. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  25143. +else
  25144. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25145. +for as_dir in $PATH
  25146. +do
  25147. + IFS=$as_save_IFS
  25148. + test -z "$as_dir" && as_dir=.
  25149. + for ac_exec_ext in '' $ac_executable_extensions; do
  25150. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25151. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  25152. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25153. + break 2
  25154. fi
  25155. +done
  25156. + done
  25157. +IFS=$as_save_IFS
  25158. +
  25159. +fi
  25160. +fi
  25161. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  25162. +if test -n "$ac_ct_OTOOL64"; then
  25163. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  25164. +$as_echo "$ac_ct_OTOOL64" >&6; }
  25165. else
  25166. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  25167. - FFLAGS="-O2"
  25168. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25169. +$as_echo "no" >&6; }
  25170. +fi
  25171. +
  25172. + if test "x$ac_ct_OTOOL64" = x; then
  25173. + OTOOL64=":"
  25174. else
  25175. - FFLAGS=
  25176. + case $cross_compiling:$ac_tool_warned in
  25177. +yes:)
  25178. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25179. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25180. +ac_tool_warned=yes ;;
  25181. +esac
  25182. + OTOOL64=$ac_ct_OTOOL64
  25183. fi
  25184. +else
  25185. + OTOOL64="$ac_cv_prog_OTOOL64"
  25186. fi
  25187. -G77=`test $ac_compiler_gnu = yes && echo yes`
  25188. -ac_ext=c
  25189. -ac_cpp='$CPP $CPPFLAGS'
  25190. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25191. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25192. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25193. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  25194. -# find the maximum length of command line arguments
  25195. -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  25196. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  25197. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  25198. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25199. -else
  25200. - i=0
  25201. - testring="ABCD"
  25202. - case $build_os in
  25203. - msdosdjgpp*)
  25204. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  25205. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  25206. - # during glob expansion). Even if it were fixed, the result of this
  25207. - # check would be larger than it should be.
  25208. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  25209. - ;;
  25210. - gnu*)
  25211. - # Under GNU Hurd, this test is not required because there is
  25212. - # no limit to the length of command line arguments.
  25213. - # Libtool will interpret -1 as no limit whatsoever
  25214. - lt_cv_sys_max_cmd_len=-1;
  25215. - ;;
  25216. - cygwin* | mingw*)
  25217. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  25218. - # about 5 minutes as the teststring grows exponentially.
  25219. - # Worse, since 9x/ME are not pre-emptively multitasking,
  25220. - # you end up with a "frozen" computer, even though with patience
  25221. - # the test eventually succeeds (with a max line length of 256k).
  25222. - # Instead, let's just punt: use the minimum linelength reported by
  25223. - # all of the supported platforms: 8192 (on NT/2K/XP).
  25224. - lt_cv_sys_max_cmd_len=8192;
  25225. - ;;
  25226. - amigaos*)
  25227. - # On AmigaOS with pdksh, this test takes hours, literally.
  25228. - # So we just punt and use a minimum line length of 8192.
  25229. - lt_cv_sys_max_cmd_len=8192;
  25230. - ;;
  25231. - *)
  25232. - # If test is not a shell built-in, we'll probably end up computing a
  25233. - # maximum length that is only half of the actual maximum length, but
  25234. - # we can't tell.
  25235. - while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
  25236. - = "XX$testring") >/dev/null 2>&1 &&
  25237. - new_result=`expr "X$testring" : ".*" 2>&1` &&
  25238. - lt_cv_sys_max_cmd_len=$new_result &&
  25239. - test $i != 17 # 1/2 MB should be enough
  25240. - do
  25241. - i=`expr $i + 1`
  25242. - testring=$testring$testring
  25243. - done
  25244. - testring=
  25245. - # Add a significant safety factor because C++ compilers can tack on massive
  25246. - # amounts of additional arguments before passing them to the linker.
  25247. - # It appears as though 1/2 is a usable value.
  25248. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  25249. - ;;
  25250. - esac
  25251. -fi
  25252. -if test -n $lt_cv_sys_max_cmd_len ; then
  25253. - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  25254. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  25255. -else
  25256. - echo "$as_me:$LINENO: result: none" >&5
  25257. -echo "${ECHO_T}none" >&6
  25258. -fi
  25259. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  25260. -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  25261. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  25262. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  25263. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25264. -else
  25265. -# These are sane defaults that work on at least a few old systems.
  25266. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  25267. -# Character class describing NM global symbol codes.
  25268. -symcode='[BCDEGRST]'
  25269. -# Regexp to match symbols that can be accessed directly from C.
  25270. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  25271. -# Transform the above into a raw symbol and a C symbol.
  25272. -symxfrm='\1 \2\3 \3'
  25273. -# Transform an extracted symbol line into a proper C declaration
  25274. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  25275. -# Transform an extracted symbol line into symbol name and symbol address
  25276. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  25277. -# Define system-specific variables.
  25278. -case $host_os in
  25279. -aix*)
  25280. - symcode='[BCDT]'
  25281. - ;;
  25282. -cygwin* | mingw* | pw32*)
  25283. - symcode='[ABCDGISTW]'
  25284. - ;;
  25285. -hpux*) # Its linker distinguishes data from code symbols
  25286. - if test "$host_cpu" = ia64; then
  25287. - symcode='[ABCDEGRST]'
  25288. - fi
  25289. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  25290. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  25291. - ;;
  25292. -irix* | nonstopux*)
  25293. - symcode='[BCDEGRST]'
  25294. - ;;
  25295. -osf*)
  25296. - symcode='[BCDEGQRST]'
  25297. - ;;
  25298. -solaris* | sysv5*)
  25299. - symcode='[BDRT]'
  25300. - ;;
  25301. -sysv4)
  25302. - symcode='[DFNSTU]'
  25303. - ;;
  25304. -esac
  25305. -# Handle CRLF in mingw tool chain
  25306. -opt_cr=
  25307. -case $build_os in
  25308. -mingw*)
  25309. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  25310. - ;;
  25311. -esac
  25312. -# If we're using GNU nm, then use its standard symbol codes.
  25313. -case `$NM -V 2>&1` in
  25314. -*GNU* | *'with BFD'*)
  25315. - symcode='[ABCDGIRSTW]' ;;
  25316. -esac
  25317. -# Try without a prefix undercore, then with it.
  25318. -for ac_symprfx in "" "_"; do
  25319. - # Write the raw and C identifiers.
  25320. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  25321. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  25322. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  25323. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  25324. + $as_echo_n "(cached) " >&6
  25325. +else
  25326. + lt_cv_apple_cc_single_mod=no
  25327. + if test -z "${LT_MULTI_MODULE}"; then
  25328. + # By default we will add the -single_module flag. You can override
  25329. + # by either setting the environment variable LT_MULTI_MODULE
  25330. + # non-empty at configure time, or by adding -multi_module to the
  25331. + # link flags.
  25332. + rm -rf libconftest.dylib*
  25333. + echo "int foo(void){return 1;}" > conftest.c
  25334. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25335. +-dynamiclib -Wl,-single_module conftest.c" >&5
  25336. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25337. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  25338. + _lt_result=$?
  25339. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  25340. + lt_cv_apple_cc_single_mod=yes
  25341. + else
  25342. + cat conftest.err >&5
  25343. + fi
  25344. + rm -rf libconftest.dylib*
  25345. + rm -f conftest.*
  25346. + fi
  25347. +fi
  25348. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  25349. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  25350. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  25351. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  25352. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  25353. + $as_echo_n "(cached) " >&6
  25354. +else
  25355. + lt_cv_ld_exported_symbols_list=no
  25356. + save_LDFLAGS=$LDFLAGS
  25357. + echo "_main" > conftest.sym
  25358. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  25359. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25360. +/* end confdefs.h. */
  25361. - # Check to see that the pipe works correctly.
  25362. - pipe_works=no
  25363. +int
  25364. +main ()
  25365. +{
  25366. - rm -f conftest*
  25367. - cat > conftest.$ac_ext <<EOF
  25368. -#ifdef __cplusplus
  25369. -extern "C" {
  25370. -#endif
  25371. -char nm_test_var;
  25372. -void nm_test_func(){}
  25373. -#ifdef __cplusplus
  25374. + ;
  25375. + return 0;
  25376. }
  25377. -#endif
  25378. -int main(){nm_test_var='a';nm_test_func();return(0);}
  25379. -EOF
  25380. -
  25381. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  25382. - (eval $ac_compile) 2>&5
  25383. - ac_status=$?
  25384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25385. - (exit $ac_status); }; then
  25386. - # Now try to grab the symbols.
  25387. - nlist=conftest.nm
  25388. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  25389. - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  25390. - ac_status=$?
  25391. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25392. - (exit $ac_status); } && test -s "$nlist"; then
  25393. - # Try sorting and uniquifying the output.
  25394. - if sort "$nlist" | uniq > "$nlist"T; then
  25395. - mv -f "$nlist"T "$nlist"
  25396. - else
  25397. - rm -f "$nlist"T
  25398. - fi
  25399. -
  25400. - # Make sure that we snagged all the symbols we need.
  25401. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  25402. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  25403. - cat <<EOF > conftest.$ac_ext
  25404. -#ifdef __cplusplus
  25405. -extern "C" {
  25406. -#endif
  25407. +_ACEOF
  25408. +if ac_fn_c_try_link "$LINENO"; then :
  25409. + lt_cv_ld_exported_symbols_list=yes
  25410. +else
  25411. + lt_cv_ld_exported_symbols_list=no
  25412. +fi
  25413. +rm -f core conftest.err conftest.$ac_objext \
  25414. + conftest$ac_exeext conftest.$ac_ext
  25415. + LDFLAGS="$save_LDFLAGS"
  25416. -EOF
  25417. - # Now generate the symbol file.
  25418. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  25419. +fi
  25420. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  25421. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  25422. + case $host_os in
  25423. + rhapsody* | darwin1.[012])
  25424. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  25425. + darwin1.*)
  25426. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25427. + darwin*) # darwin 5.x on
  25428. + # if running on 10.5 or later, the deployment target defaults
  25429. + # to the OS version, if on x86, and 10.4, the deployment
  25430. + # target defaults to 10.4. Don't you love it?
  25431. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  25432. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  25433. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25434. + 10.[012]*)
  25435. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25436. + 10.*)
  25437. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25438. + esac
  25439. + ;;
  25440. + esac
  25441. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  25442. + _lt_dar_single_mod='$single_module'
  25443. + fi
  25444. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  25445. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  25446. + else
  25447. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25448. + fi
  25449. + if test "$DSYMUTIL" != ":"; then
  25450. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  25451. + else
  25452. + _lt_dsymutil=
  25453. + fi
  25454. + ;;
  25455. + esac
  25456. - cat <<EOF >> conftest.$ac_ext
  25457. -#if defined (__STDC__) && __STDC__
  25458. -# define lt_ptr_t void *
  25459. +ac_ext=c
  25460. +ac_cpp='$CPP $CPPFLAGS'
  25461. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25462. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25463. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25464. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  25465. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  25466. +# On Suns, sometimes $CPP names a directory.
  25467. +if test -n "$CPP" && test -d "$CPP"; then
  25468. + CPP=
  25469. +fi
  25470. +if test -z "$CPP"; then
  25471. + if test "${ac_cv_prog_CPP+set}" = set; then :
  25472. + $as_echo_n "(cached) " >&6
  25473. +else
  25474. + # Double quotes because CPP needs to be expanded
  25475. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  25476. + do
  25477. + ac_preproc_ok=false
  25478. +for ac_c_preproc_warn_flag in '' yes
  25479. +do
  25480. + # Use a header file that comes with gcc, so configuring glibc
  25481. + # with a fresh cross-compiler works.
  25482. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25483. + # <limits.h> exists even on freestanding compilers.
  25484. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25485. + # not just through cpp. "Syntax error" is here to catch this case.
  25486. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25487. +/* end confdefs.h. */
  25488. +#ifdef __STDC__
  25489. +# include <limits.h>
  25490. #else
  25491. -# define lt_ptr_t char *
  25492. -# define const
  25493. +# include <assert.h>
  25494. #endif
  25495. + Syntax error
  25496. +_ACEOF
  25497. +if ac_fn_c_try_cpp "$LINENO"; then :
  25498. -/* The mapping between symbol names and symbols. */
  25499. -const struct {
  25500. - const char *name;
  25501. - lt_ptr_t address;
  25502. -}
  25503. -lt_preloaded_symbols[] =
  25504. -{
  25505. -EOF
  25506. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  25507. - cat <<\EOF >> conftest.$ac_ext
  25508. - {0, (lt_ptr_t) 0}
  25509. -};
  25510. +else
  25511. + # Broken: fails on valid input.
  25512. +continue
  25513. +fi
  25514. +rm -f conftest.err conftest.$ac_ext
  25515. -#ifdef __cplusplus
  25516. -}
  25517. -#endif
  25518. -EOF
  25519. - # Now try linking the two files.
  25520. - mv conftest.$ac_objext conftstm.$ac_objext
  25521. - lt_save_LIBS="$LIBS"
  25522. - lt_save_CFLAGS="$CFLAGS"
  25523. - LIBS="conftstm.$ac_objext"
  25524. - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  25525. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25526. - (eval $ac_link) 2>&5
  25527. - ac_status=$?
  25528. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25529. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  25530. - pipe_works=yes
  25531. - fi
  25532. - LIBS="$lt_save_LIBS"
  25533. - CFLAGS="$lt_save_CFLAGS"
  25534. - else
  25535. - echo "cannot find nm_test_func in $nlist" >&5
  25536. - fi
  25537. - else
  25538. - echo "cannot find nm_test_var in $nlist" >&5
  25539. - fi
  25540. - else
  25541. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  25542. - fi
  25543. - else
  25544. - echo "$progname: failed program was:" >&5
  25545. - cat conftest.$ac_ext >&5
  25546. - fi
  25547. - rm -f conftest* conftst*
  25548. + # OK, works on sane cases. Now check whether nonexistent headers
  25549. + # can be detected and how.
  25550. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25551. +/* end confdefs.h. */
  25552. +#include <ac_nonexistent.h>
  25553. +_ACEOF
  25554. +if ac_fn_c_try_cpp "$LINENO"; then :
  25555. + # Broken: success on invalid input.
  25556. +continue
  25557. +else
  25558. + # Passes both tests.
  25559. +ac_preproc_ok=:
  25560. +break
  25561. +fi
  25562. +rm -f conftest.err conftest.$ac_ext
  25563. - # Do not use the global_symbol_pipe unless it works.
  25564. - if test "$pipe_works" = yes; then
  25565. - break
  25566. - else
  25567. - lt_cv_sys_global_symbol_pipe=
  25568. - fi
  25569. done
  25570. -
  25571. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25572. +rm -f conftest.err conftest.$ac_ext
  25573. +if $ac_preproc_ok; then :
  25574. + break
  25575. fi
  25576. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  25577. - lt_cv_sys_global_symbol_to_cdecl=
  25578. + done
  25579. + ac_cv_prog_CPP=$CPP
  25580. +
  25581. fi
  25582. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  25583. - echo "$as_me:$LINENO: result: failed" >&5
  25584. -echo "${ECHO_T}failed" >&6
  25585. + CPP=$ac_cv_prog_CPP
  25586. else
  25587. - echo "$as_me:$LINENO: result: ok" >&5
  25588. -echo "${ECHO_T}ok" >&6
  25589. + ac_cv_prog_CPP=$CPP
  25590. fi
  25591. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  25592. +$as_echo "$CPP" >&6; }
  25593. +ac_preproc_ok=false
  25594. +for ac_c_preproc_warn_flag in '' yes
  25595. +do
  25596. + # Use a header file that comes with gcc, so configuring glibc
  25597. + # with a fresh cross-compiler works.
  25598. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25599. + # <limits.h> exists even on freestanding compilers.
  25600. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25601. + # not just through cpp. "Syntax error" is here to catch this case.
  25602. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25603. +/* end confdefs.h. */
  25604. +#ifdef __STDC__
  25605. +# include <limits.h>
  25606. +#else
  25607. +# include <assert.h>
  25608. +#endif
  25609. + Syntax error
  25610. +_ACEOF
  25611. +if ac_fn_c_try_cpp "$LINENO"; then :
  25612. -echo "$as_me:$LINENO: checking for objdir" >&5
  25613. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  25614. -if test "${lt_cv_objdir+set}" = set; then
  25615. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25616. else
  25617. - rm -f .libs 2>/dev/null
  25618. -mkdir .libs 2>/dev/null
  25619. -if test -d .libs; then
  25620. - lt_cv_objdir=.libs
  25621. + # Broken: fails on valid input.
  25622. +continue
  25623. +fi
  25624. +rm -f conftest.err conftest.$ac_ext
  25625. +
  25626. + # OK, works on sane cases. Now check whether nonexistent headers
  25627. + # can be detected and how.
  25628. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25629. +/* end confdefs.h. */
  25630. +#include <ac_nonexistent.h>
  25631. +_ACEOF
  25632. +if ac_fn_c_try_cpp "$LINENO"; then :
  25633. + # Broken: success on invalid input.
  25634. +continue
  25635. else
  25636. - # MS-DOS does not allow filenames that begin with a dot.
  25637. - lt_cv_objdir=_libs
  25638. + # Passes both tests.
  25639. +ac_preproc_ok=:
  25640. +break
  25641. fi
  25642. -rmdir .libs 2>/dev/null
  25643. +rm -f conftest.err conftest.$ac_ext
  25644. +
  25645. +done
  25646. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25647. +rm -f conftest.err conftest.$ac_ext
  25648. +if $ac_preproc_ok; then :
  25649. +
  25650. +else
  25651. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25652. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25653. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  25654. +See \`config.log' for more details." "$LINENO" 5; }
  25655. fi
  25656. -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  25657. -echo "${ECHO_T}$lt_cv_objdir" >&6
  25658. -objdir=$lt_cv_objdir
  25659. +ac_ext=c
  25660. +ac_cpp='$CPP $CPPFLAGS'
  25661. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25662. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25663. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25664. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  25665. +$as_echo_n "checking for ANSI C header files... " >&6; }
  25666. +if test "${ac_cv_header_stdc+set}" = set; then :
  25667. + $as_echo_n "(cached) " >&6
  25668. +else
  25669. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25670. +/* end confdefs.h. */
  25671. +#include <stdlib.h>
  25672. +#include <stdarg.h>
  25673. +#include <string.h>
  25674. +#include <float.h>
  25675. +int
  25676. +main ()
  25677. +{
  25678. -case $host_os in
  25679. -aix3*)
  25680. - # AIX sometimes has problems with the GCC collect2 program. For some
  25681. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  25682. - # vanish in a puff of smoke.
  25683. - if test "X${COLLECT_NAMES+set}" != Xset; then
  25684. - COLLECT_NAMES=
  25685. - export COLLECT_NAMES
  25686. - fi
  25687. - ;;
  25688. -esac
  25689. -
  25690. -# Sed substitution that helps us do robust quoting. It backslashifies
  25691. -# metacharacters that are still active within double-quoted strings.
  25692. -Xsed='sed -e s/^X//'
  25693. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  25694. -
  25695. -# Same as above, but do not quote variable references.
  25696. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  25697. -
  25698. -# Sed substitution to delay expansion of an escaped shell variable in a
  25699. -# double_quote_subst'ed string.
  25700. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  25701. -
  25702. -# Sed substitution to avoid accidental globbing in evaled expressions
  25703. -no_glob_subst='s/\*/\\\*/g'
  25704. -
  25705. -# Constants:
  25706. -rm="rm -f"
  25707. -
  25708. -# Global variables:
  25709. -default_ofile=libtool
  25710. -can_build_shared=yes
  25711. + ;
  25712. + return 0;
  25713. +}
  25714. +_ACEOF
  25715. +if ac_fn_c_try_compile "$LINENO"; then :
  25716. + ac_cv_header_stdc=yes
  25717. +else
  25718. + ac_cv_header_stdc=no
  25719. +fi
  25720. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25721. -# All known linkers require a `.a' archive for static linking (except M$VC,
  25722. -# which needs '.lib').
  25723. -libext=a
  25724. -ltmain="$ac_aux_dir/ltmain.sh"
  25725. -ofile="$default_ofile"
  25726. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  25727. +if test $ac_cv_header_stdc = yes; then
  25728. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25729. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25730. +/* end confdefs.h. */
  25731. +#include <string.h>
  25732. -if test -n "$ac_tool_prefix"; then
  25733. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  25734. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  25735. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  25736. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25737. -if test "${ac_cv_prog_AR+set}" = set; then
  25738. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25739. -else
  25740. - if test -n "$AR"; then
  25741. - ac_cv_prog_AR="$AR" # Let the user override the test.
  25742. -else
  25743. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25744. -for as_dir in $PATH
  25745. -do
  25746. - IFS=$as_save_IFS
  25747. - test -z "$as_dir" && as_dir=.
  25748. - for ac_exec_ext in '' $ac_executable_extensions; do
  25749. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25750. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  25751. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25752. - break 2
  25753. - fi
  25754. -done
  25755. -done
  25756. +_ACEOF
  25757. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25758. + $EGREP "memchr" >/dev/null 2>&1; then :
  25759. -fi
  25760. -fi
  25761. -AR=$ac_cv_prog_AR
  25762. -if test -n "$AR"; then
  25763. - echo "$as_me:$LINENO: result: $AR" >&5
  25764. -echo "${ECHO_T}$AR" >&6
  25765. else
  25766. - echo "$as_me:$LINENO: result: no" >&5
  25767. -echo "${ECHO_T}no" >&6
  25768. + ac_cv_header_stdc=no
  25769. fi
  25770. +rm -f conftest*
  25771. fi
  25772. -if test -z "$ac_cv_prog_AR"; then
  25773. - ac_ct_AR=$AR
  25774. - # Extract the first word of "ar", so it can be a program name with args.
  25775. -set dummy ar; ac_word=$2
  25776. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  25777. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25778. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  25779. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25780. -else
  25781. - if test -n "$ac_ct_AR"; then
  25782. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  25783. -else
  25784. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25785. -for as_dir in $PATH
  25786. -do
  25787. - IFS=$as_save_IFS
  25788. - test -z "$as_dir" && as_dir=.
  25789. - for ac_exec_ext in '' $ac_executable_extensions; do
  25790. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25791. - ac_cv_prog_ac_ct_AR="ar"
  25792. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25793. - break 2
  25794. - fi
  25795. -done
  25796. -done
  25797. - test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  25798. -fi
  25799. -fi
  25800. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  25801. -if test -n "$ac_ct_AR"; then
  25802. - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  25803. -echo "${ECHO_T}$ac_ct_AR" >&6
  25804. +if test $ac_cv_header_stdc = yes; then
  25805. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25806. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25807. +/* end confdefs.h. */
  25808. +#include <stdlib.h>
  25809. +
  25810. +_ACEOF
  25811. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25812. + $EGREP "free" >/dev/null 2>&1; then :
  25813. +
  25814. else
  25815. - echo "$as_me:$LINENO: result: no" >&5
  25816. -echo "${ECHO_T}no" >&6
  25817. + ac_cv_header_stdc=no
  25818. fi
  25819. +rm -f conftest*
  25820. - AR=$ac_ct_AR
  25821. -else
  25822. - AR="$ac_cv_prog_AR"
  25823. fi
  25824. -if test -n "$ac_tool_prefix"; then
  25825. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  25826. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  25827. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  25828. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25829. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  25830. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25831. -else
  25832. - if test -n "$RANLIB"; then
  25833. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  25834. +if test $ac_cv_header_stdc = yes; then
  25835. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25836. + if test "$cross_compiling" = yes; then :
  25837. + :
  25838. else
  25839. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25840. -for as_dir in $PATH
  25841. -do
  25842. - IFS=$as_save_IFS
  25843. - test -z "$as_dir" && as_dir=.
  25844. - for ac_exec_ext in '' $ac_executable_extensions; do
  25845. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25846. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  25847. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25848. - break 2
  25849. - fi
  25850. -done
  25851. -done
  25852. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25853. +/* end confdefs.h. */
  25854. +#include <ctype.h>
  25855. +#include <stdlib.h>
  25856. +#if ((' ' & 0x0FF) == 0x020)
  25857. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25858. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25859. +#else
  25860. +# define ISLOWER(c) \
  25861. + (('a' <= (c) && (c) <= 'i') \
  25862. + || ('j' <= (c) && (c) <= 'r') \
  25863. + || ('s' <= (c) && (c) <= 'z'))
  25864. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25865. +#endif
  25866. +
  25867. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25868. +int
  25869. +main ()
  25870. +{
  25871. + int i;
  25872. + for (i = 0; i < 256; i++)
  25873. + if (XOR (islower (i), ISLOWER (i))
  25874. + || toupper (i) != TOUPPER (i))
  25875. + return 2;
  25876. + return 0;
  25877. +}
  25878. +_ACEOF
  25879. +if ac_fn_c_try_run "$LINENO"; then :
  25880. -fi
  25881. -fi
  25882. -RANLIB=$ac_cv_prog_RANLIB
  25883. -if test -n "$RANLIB"; then
  25884. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  25885. -echo "${ECHO_T}$RANLIB" >&6
  25886. else
  25887. - echo "$as_me:$LINENO: result: no" >&5
  25888. -echo "${ECHO_T}no" >&6
  25889. + ac_cv_header_stdc=no
  25890. fi
  25891. -
  25892. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25893. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  25894. fi
  25895. -if test -z "$ac_cv_prog_RANLIB"; then
  25896. - ac_ct_RANLIB=$RANLIB
  25897. - # Extract the first word of "ranlib", so it can be a program name with args.
  25898. -set dummy ranlib; ac_word=$2
  25899. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  25900. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25901. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  25902. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25903. -else
  25904. - if test -n "$ac_ct_RANLIB"; then
  25905. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  25906. -else
  25907. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25908. -for as_dir in $PATH
  25909. -do
  25910. - IFS=$as_save_IFS
  25911. - test -z "$as_dir" && as_dir=.
  25912. - for ac_exec_ext in '' $ac_executable_extensions; do
  25913. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25914. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  25915. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25916. - break 2
  25917. - fi
  25918. -done
  25919. -done
  25920. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  25921. fi
  25922. fi
  25923. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  25924. -if test -n "$ac_ct_RANLIB"; then
  25925. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  25926. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  25927. -else
  25928. - echo "$as_me:$LINENO: result: no" >&5
  25929. -echo "${ECHO_T}no" >&6
  25930. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  25931. +$as_echo "$ac_cv_header_stdc" >&6; }
  25932. +if test $ac_cv_header_stdc = yes; then
  25933. +
  25934. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  25935. +
  25936. fi
  25937. - RANLIB=$ac_ct_RANLIB
  25938. -else
  25939. - RANLIB="$ac_cv_prog_RANLIB"
  25940. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  25941. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  25942. + inttypes.h stdint.h unistd.h
  25943. +do :
  25944. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25945. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  25946. +"
  25947. +eval as_val=\$$as_ac_Header
  25948. + if test "x$as_val" = x""yes; then :
  25949. + cat >>confdefs.h <<_ACEOF
  25950. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25951. +_ACEOF
  25952. +
  25953. fi
  25954. -if test -n "$ac_tool_prefix"; then
  25955. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  25956. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  25957. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  25958. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  25959. -if test "${ac_cv_prog_STRIP+set}" = set; then
  25960. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25961. -else
  25962. - if test -n "$STRIP"; then
  25963. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  25964. -else
  25965. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25966. -for as_dir in $PATH
  25967. -do
  25968. - IFS=$as_save_IFS
  25969. - test -z "$as_dir" && as_dir=.
  25970. - for ac_exec_ext in '' $ac_executable_extensions; do
  25971. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  25972. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  25973. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  25974. - break 2
  25975. - fi
  25976. -done
  25977. done
  25978. -fi
  25979. -fi
  25980. -STRIP=$ac_cv_prog_STRIP
  25981. -if test -n "$STRIP"; then
  25982. - echo "$as_me:$LINENO: result: $STRIP" >&5
  25983. -echo "${ECHO_T}$STRIP" >&6
  25984. -else
  25985. - echo "$as_me:$LINENO: result: no" >&5
  25986. -echo "${ECHO_T}no" >&6
  25987. -fi
  25988. +
  25989. +for ac_header in dlfcn.h
  25990. +do :
  25991. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  25992. +"
  25993. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  25994. + cat >>confdefs.h <<_ACEOF
  25995. +#define HAVE_DLFCN_H 1
  25996. +_ACEOF
  25997. fi
  25998. -if test -z "$ac_cv_prog_STRIP"; then
  25999. - ac_ct_STRIP=$STRIP
  26000. - # Extract the first word of "strip", so it can be a program name with args.
  26001. -set dummy strip; ac_word=$2
  26002. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  26003. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  26004. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  26005. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26006. -else
  26007. - if test -n "$ac_ct_STRIP"; then
  26008. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  26009. -else
  26010. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  26011. -for as_dir in $PATH
  26012. -do
  26013. - IFS=$as_save_IFS
  26014. - test -z "$as_dir" && as_dir=.
  26015. - for ac_exec_ext in '' $ac_executable_extensions; do
  26016. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  26017. - ac_cv_prog_ac_ct_STRIP="strip"
  26018. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  26019. - break 2
  26020. - fi
  26021. -done
  26022. +
  26023. done
  26024. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  26025. -fi
  26026. -fi
  26027. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  26028. -if test -n "$ac_ct_STRIP"; then
  26029. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  26030. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  26031. -else
  26032. - echo "$as_me:$LINENO: result: no" >&5
  26033. -echo "${ECHO_T}no" >&6
  26034. -fi
  26035. - STRIP=$ac_ct_STRIP
  26036. -else
  26037. - STRIP="$ac_cv_prog_STRIP"
  26038. -fi
  26039. +# Set options
  26040. -old_CC="$CC"
  26041. -old_CFLAGS="$CFLAGS"
  26042. -# Set sane defaults for various variables
  26043. -test -z "$AR" && AR=ar
  26044. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  26045. -test -z "$AS" && AS=as
  26046. -test -z "$CC" && CC=cc
  26047. -test -z "$LTCC" && LTCC=$CC
  26048. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  26049. -test -z "$LD" && LD=ld
  26050. -test -z "$LN_S" && LN_S="ln -s"
  26051. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  26052. -test -z "$NM" && NM=nm
  26053. -test -z "$SED" && SED=sed
  26054. -test -z "$OBJDUMP" && OBJDUMP=objdump
  26055. -test -z "$RANLIB" && RANLIB=:
  26056. -test -z "$STRIP" && STRIP=:
  26057. -test -z "$ac_objext" && ac_objext=o
  26058. -# Determine commands to create old-style static archives.
  26059. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  26060. -old_postinstall_cmds='chmod 644 $oldlib'
  26061. -old_postuninstall_cmds=
  26062. + enable_dlopen=no
  26063. -if test -n "$RANLIB"; then
  26064. - case $host_os in
  26065. - openbsd*)
  26066. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  26067. - ;;
  26068. - *)
  26069. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  26070. - ;;
  26071. - esac
  26072. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  26073. +
  26074. + enable_win32_dll=no
  26075. +
  26076. +
  26077. + # Check whether --enable-shared was given.
  26078. +if test "${enable_shared+set}" = set; then :
  26079. + enableval=$enable_shared; p=${PACKAGE-default}
  26080. + case $enableval in
  26081. + yes) enable_shared=yes ;;
  26082. + no) enable_shared=no ;;
  26083. + *)
  26084. + enable_shared=no
  26085. + # Look at the argument we got. We use all the common list separators.
  26086. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26087. + for pkg in $enableval; do
  26088. + IFS="$lt_save_ifs"
  26089. + if test "X$pkg" = "X$p"; then
  26090. + enable_shared=yes
  26091. + fi
  26092. + done
  26093. + IFS="$lt_save_ifs"
  26094. + ;;
  26095. + esac
  26096. +else
  26097. + enable_shared=yes
  26098. +fi
  26099. +
  26100. +
  26101. +
  26102. +
  26103. +
  26104. +
  26105. +
  26106. +
  26107. +
  26108. + # Check whether --enable-static was given.
  26109. +if test "${enable_static+set}" = set; then :
  26110. + enableval=$enable_static; p=${PACKAGE-default}
  26111. + case $enableval in
  26112. + yes) enable_static=yes ;;
  26113. + no) enable_static=no ;;
  26114. + *)
  26115. + enable_static=no
  26116. + # Look at the argument we got. We use all the common list separators.
  26117. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26118. + for pkg in $enableval; do
  26119. + IFS="$lt_save_ifs"
  26120. + if test "X$pkg" = "X$p"; then
  26121. + enable_static=yes
  26122. + fi
  26123. + done
  26124. + IFS="$lt_save_ifs"
  26125. + ;;
  26126. + esac
  26127. +else
  26128. + enable_static=yes
  26129. +fi
  26130. +
  26131. +
  26132. +
  26133. +
  26134. +
  26135. +
  26136. +
  26137. +
  26138. +
  26139. +
  26140. +# Check whether --with-pic was given.
  26141. +if test "${with_pic+set}" = set; then :
  26142. + withval=$with_pic; pic_mode="$withval"
  26143. +else
  26144. + pic_mode=default
  26145. +fi
  26146. +
  26147. +
  26148. +test -z "$pic_mode" && pic_mode=default
  26149. +
  26150. +
  26151. +
  26152. +
  26153. +
  26154. +
  26155. +
  26156. + # Check whether --enable-fast-install was given.
  26157. +if test "${enable_fast_install+set}" = set; then :
  26158. + enableval=$enable_fast_install; p=${PACKAGE-default}
  26159. + case $enableval in
  26160. + yes) enable_fast_install=yes ;;
  26161. + no) enable_fast_install=no ;;
  26162. + *)
  26163. + enable_fast_install=no
  26164. + # Look at the argument we got. We use all the common list separators.
  26165. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26166. + for pkg in $enableval; do
  26167. + IFS="$lt_save_ifs"
  26168. + if test "X$pkg" = "X$p"; then
  26169. + enable_fast_install=yes
  26170. + fi
  26171. + done
  26172. + IFS="$lt_save_ifs"
  26173. + ;;
  26174. + esac
  26175. +else
  26176. + enable_fast_install=yes
  26177. +fi
  26178. +
  26179. +
  26180. +
  26181. +
  26182. +
  26183. +
  26184. +
  26185. +
  26186. +
  26187. +
  26188. +
  26189. +# This can be used to rebuild libtool when needed
  26190. +LIBTOOL_DEPS="$ltmain"
  26191. +
  26192. +# Always use our own libtool.
  26193. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  26194. +
  26195. +
  26196. +
  26197. +
  26198. +
  26199. +
  26200. +
  26201. +
  26202. +
  26203. +
  26204. +
  26205. +
  26206. +
  26207. +
  26208. +
  26209. +
  26210. +
  26211. +
  26212. +
  26213. +
  26214. +
  26215. +
  26216. +
  26217. +
  26218. +
  26219. +test -z "$LN_S" && LN_S="ln -s"
  26220. +
  26221. +
  26222. +
  26223. +
  26224. +
  26225. +
  26226. +
  26227. +
  26228. +
  26229. +
  26230. +
  26231. +
  26232. +
  26233. +
  26234. +if test -n "${ZSH_VERSION+set}" ; then
  26235. + setopt NO_GLOB_SUBST
  26236. +fi
  26237. +
  26238. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  26239. +$as_echo_n "checking for objdir... " >&6; }
  26240. +if test "${lt_cv_objdir+set}" = set; then :
  26241. + $as_echo_n "(cached) " >&6
  26242. +else
  26243. + rm -f .libs 2>/dev/null
  26244. +mkdir .libs 2>/dev/null
  26245. +if test -d .libs; then
  26246. + lt_cv_objdir=.libs
  26247. +else
  26248. + # MS-DOS does not allow filenames that begin with a dot.
  26249. + lt_cv_objdir=_libs
  26250. +fi
  26251. +rmdir .libs 2>/dev/null
  26252. fi
  26253. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  26254. +$as_echo "$lt_cv_objdir" >&6; }
  26255. +objdir=$lt_cv_objdir
  26256. +
  26257. +
  26258. +
  26259. +
  26260. +
  26261. +cat >>confdefs.h <<_ACEOF
  26262. +#define LT_OBJDIR "$lt_cv_objdir/"
  26263. +_ACEOF
  26264. +
  26265. +
  26266. +
  26267. +
  26268. +
  26269. +
  26270. +
  26271. +
  26272. +
  26273. +
  26274. +
  26275. +
  26276. +
  26277. +
  26278. +
  26279. +
  26280. +
  26281. +case $host_os in
  26282. +aix3*)
  26283. + # AIX sometimes has problems with the GCC collect2 program. For some
  26284. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  26285. + # vanish in a puff of smoke.
  26286. + if test "X${COLLECT_NAMES+set}" != Xset; then
  26287. + COLLECT_NAMES=
  26288. + export COLLECT_NAMES
  26289. + fi
  26290. + ;;
  26291. +esac
  26292. +
  26293. +# Sed substitution that helps us do robust quoting. It backslashifies
  26294. +# metacharacters that are still active within double-quoted strings.
  26295. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  26296. +
  26297. +# Same as above, but do not quote variable references.
  26298. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  26299. +
  26300. +# Sed substitution to delay expansion of an escaped shell variable in a
  26301. +# double_quote_subst'ed string.
  26302. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  26303. +
  26304. +# Sed substitution to delay expansion of an escaped single quote.
  26305. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  26306. +
  26307. +# Sed substitution to avoid accidental globbing in evaled expressions
  26308. +no_glob_subst='s/\*/\\\*/g'
  26309. +
  26310. +# Global variables:
  26311. +ofile=libtool
  26312. +can_build_shared=yes
  26313. +
  26314. +# All known linkers require a `.a' archive for static linking (except MSVC,
  26315. +# which needs '.lib').
  26316. +libext=a
  26317. +
  26318. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  26319. +
  26320. +old_CC="$CC"
  26321. +old_CFLAGS="$CFLAGS"
  26322. +
  26323. +# Set sane defaults for various variables
  26324. +test -z "$CC" && CC=cc
  26325. +test -z "$LTCC" && LTCC=$CC
  26326. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  26327. +test -z "$LD" && LD=ld
  26328. +test -z "$ac_objext" && ac_objext=o
  26329. +
  26330. +for cc_temp in $compiler""; do
  26331. + case $cc_temp in
  26332. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26333. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26334. + \-*) ;;
  26335. + *) break;;
  26336. + esac
  26337. +done
  26338. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26339. +
  26340. # Only perform the check for file, if the check method requires it
  26341. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  26342. case $deplibs_check_method in
  26343. file_magic*)
  26344. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  26345. - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  26346. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  26347. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  26348. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26349. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  26350. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  26351. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  26352. + $as_echo_n "(cached) " >&6
  26353. else
  26354. case $MAGIC_CMD in
  26355. [\\/*] | ?:[\\/]*)
  26356. @@ -6023,13 +7428,13 @@
  26357. if test -n "$file_magic_test_file"; then
  26358. case $deplibs_check_method in
  26359. "file_magic "*)
  26360. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  26361. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  26362. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26363. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26364. $EGREP "$file_magic_regex" > /dev/null; then
  26365. :
  26366. else
  26367. - cat <<EOF 1>&2
  26368. + cat <<_LT_EOF 1>&2
  26369. *** Warning: the command libtool uses to detect shared libraries,
  26370. *** $file_magic_cmd, produces output that libtool cannot recognize.
  26371. @@ -6040,7 +7445,7 @@
  26372. *** may want to report the problem to your system manager and/or to
  26373. *** bug-libtool@gnu.org
  26374. -EOF
  26375. +_LT_EOF
  26376. fi ;;
  26377. esac
  26378. fi
  26379. @@ -6055,19 +7460,23 @@
  26380. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26381. if test -n "$MAGIC_CMD"; then
  26382. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  26383. -echo "${ECHO_T}$MAGIC_CMD" >&6
  26384. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  26385. +$as_echo "$MAGIC_CMD" >&6; }
  26386. else
  26387. - echo "$as_me:$LINENO: result: no" >&5
  26388. -echo "${ECHO_T}no" >&6
  26389. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26390. +$as_echo "no" >&6; }
  26391. fi
  26392. +
  26393. +
  26394. +
  26395. +
  26396. if test -z "$lt_cv_path_MAGIC_CMD"; then
  26397. if test -n "$ac_tool_prefix"; then
  26398. - echo "$as_me:$LINENO: checking for file" >&5
  26399. -echo $ECHO_N "checking for file... $ECHO_C" >&6
  26400. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  26401. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26402. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  26403. +$as_echo_n "checking for file... " >&6; }
  26404. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  26405. + $as_echo_n "(cached) " >&6
  26406. else
  26407. case $MAGIC_CMD in
  26408. [\\/*] | ?:[\\/]*)
  26409. @@ -6085,13 +7494,13 @@
  26410. if test -n "$file_magic_test_file"; then
  26411. case $deplibs_check_method in
  26412. "file_magic "*)
  26413. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  26414. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  26415. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26416. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  26417. $EGREP "$file_magic_regex" > /dev/null; then
  26418. :
  26419. else
  26420. - cat <<EOF 1>&2
  26421. + cat <<_LT_EOF 1>&2
  26422. *** Warning: the command libtool uses to detect shared libraries,
  26423. *** $file_magic_cmd, produces output that libtool cannot recognize.
  26424. @@ -6102,7 +7511,7 @@
  26425. *** may want to report the problem to your system manager and/or to
  26426. *** bug-libtool@gnu.org
  26427. -EOF
  26428. +_LT_EOF
  26429. fi ;;
  26430. esac
  26431. fi
  26432. @@ -6117,13 +7526,14 @@
  26433. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  26434. if test -n "$MAGIC_CMD"; then
  26435. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  26436. -echo "${ECHO_T}$MAGIC_CMD" >&6
  26437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  26438. +$as_echo "$MAGIC_CMD" >&6; }
  26439. else
  26440. - echo "$as_me:$LINENO: result: no" >&5
  26441. -echo "${ECHO_T}no" >&6
  26442. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  26443. +$as_echo "no" >&6; }
  26444. fi
  26445. +
  26446. else
  26447. MAGIC_CMD=:
  26448. fi
  26449. @@ -6133,28 +7543,8 @@
  26450. ;;
  26451. esac
  26452. -enable_dlopen=no
  26453. -enable_win32_dll=no
  26454. -
  26455. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  26456. -if test "${enable_libtool_lock+set}" = set; then
  26457. - enableval="$enable_libtool_lock"
  26458. -
  26459. -fi;
  26460. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  26461. -
  26462. -
  26463. -# Check whether --with-pic or --without-pic was given.
  26464. -if test "${with_pic+set}" = set; then
  26465. - withval="$with_pic"
  26466. - pic_mode="$withval"
  26467. -else
  26468. - pic_mode=default
  26469. -fi;
  26470. -test -z "$pic_mode" && pic_mode=default
  26471. -
  26472. # Use C for the default configuration in the libtool script
  26473. -tagname=
  26474. +
  26475. lt_save_CC="$CC"
  26476. ac_ext=c
  26477. ac_cpp='$CPP $CPPFLAGS'
  26478. @@ -6171,94 +7561,59 @@
  26479. objext=$objext
  26480. # Code to be used in simple compile tests
  26481. -lt_simple_compile_test_code="int some_variable = 0;\n"
  26482. +lt_simple_compile_test_code="int some_variable = 0;"
  26483. # Code to be used in simple link tests
  26484. -lt_simple_link_test_code='int main(){return(0);}\n'
  26485. +lt_simple_link_test_code='int main(){return(0);}'
  26486. +
  26487. +
  26488. +
  26489. +
  26490. +
  26491. # If no C compiler was specified, use CC.
  26492. LTCC=${LTCC-"$CC"}
  26493. +# If no C compiler flags were specified, use CFLAGS.
  26494. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  26495. +
  26496. # Allow CC to be a program name with arguments.
  26497. compiler=$CC
  26498. -
  26499. -#
  26500. -# Check for any special shared library compilation flags.
  26501. -#
  26502. -lt_prog_cc_shlib=
  26503. -if test "$GCC" = no; then
  26504. - case $host_os in
  26505. - sco3.2v5*)
  26506. - lt_prog_cc_shlib='-belf'
  26507. - ;;
  26508. - esac
  26509. -fi
  26510. -if test -n "$lt_prog_cc_shlib"; then
  26511. - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  26512. -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  26513. - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  26514. - else
  26515. - { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  26516. -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  26517. - lt_cv_prog_cc_can_build_shared=no
  26518. - fi
  26519. -fi
  26520. -
  26521. -
  26522. -#
  26523. -# Check to make sure the static flag actually works.
  26524. -#
  26525. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  26526. -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  26527. -if test "${lt_prog_compiler_static_works+set}" = set; then
  26528. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26529. -else
  26530. - lt_prog_compiler_static_works=no
  26531. - save_LDFLAGS="$LDFLAGS"
  26532. - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  26533. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  26534. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26535. - # The compiler can only warn and ignore the option if not recognized
  26536. - # So say no if there are warnings
  26537. - if test -s conftest.err; then
  26538. - # Append any errors to the config.log.
  26539. - cat conftest.err 1>&5
  26540. - else
  26541. - lt_prog_compiler_static_works=yes
  26542. - fi
  26543. - fi
  26544. - $rm conftest*
  26545. - LDFLAGS="$save_LDFLAGS"
  26546. -
  26547. -fi
  26548. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  26549. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  26550. -
  26551. -if test x"$lt_prog_compiler_static_works" = xyes; then
  26552. - :
  26553. -else
  26554. - lt_prog_compiler_static=
  26555. -fi
  26556. -
  26557. +# Save the default compiler, since it gets overwritten when the other
  26558. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  26559. +compiler_DEFAULT=$CC
  26560. +
  26561. +# save warnings/boilerplate of simple test code
  26562. +ac_outfile=conftest.$ac_objext
  26563. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  26564. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26565. +_lt_compiler_boilerplate=`cat conftest.err`
  26566. +$RM conftest*
  26567. +
  26568. +ac_outfile=conftest.$ac_objext
  26569. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  26570. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  26571. +_lt_linker_boilerplate=`cat conftest.err`
  26572. +$RM -r conftest*
  26573. +if test -n "$compiler"; then
  26574. lt_prog_compiler_no_builtin_flag=
  26575. if test "$GCC" = yes; then
  26576. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  26577. -
  26578. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  26579. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  26580. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  26581. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26582. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  26583. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  26584. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  26585. + $as_echo_n "(cached) " >&6
  26586. else
  26587. lt_cv_prog_compiler_rtti_exceptions=no
  26588. - ac_outfile=conftest.$ac_objext
  26589. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26590. + ac_outfile=conftest.$ac_objext
  26591. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26592. lt_compiler_flag="-fno-rtti -fno-exceptions"
  26593. # Insert the option either (1) after the last *FLAGS variable, or
  26594. # (2) before a word containing "conftest.", or (3) at the end.
  26595. @@ -6266,26 +7621,28 @@
  26596. # with a dollar sign (not a hyphen), so the echo should work correctly.
  26597. # The option is referenced via a variable to avoid confusing sed.
  26598. lt_compile=`echo "$ac_compile" | $SED \
  26599. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  26600. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26601. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26602. -e 's:$: $lt_compiler_flag:'`
  26603. - (eval echo "\"\$as_me:6272: $lt_compile\"" >&5)
  26604. + (eval echo "\"\$as_me:7627: $lt_compile\"" >&5)
  26605. (eval "$lt_compile" 2>conftest.err)
  26606. ac_status=$?
  26607. cat conftest.err >&5
  26608. - echo "$as_me:6276: \$? = $ac_status" >&5
  26609. + echo "$as_me:7631: \$? = $ac_status" >&5
  26610. if (exit $ac_status) && test -s "$ac_outfile"; then
  26611. # The compiler can only warn and ignore the option if not recognized
  26612. - # So say no if there are warnings
  26613. - if test ! -s conftest.err; then
  26614. + # So say no if there are warnings other than the usual output.
  26615. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26616. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26617. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26618. lt_cv_prog_compiler_rtti_exceptions=yes
  26619. fi
  26620. fi
  26621. - $rm conftest*
  26622. + $RM conftest*
  26623. fi
  26624. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26625. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  26626. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  26627. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  26628. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  26629. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  26630. @@ -6295,12 +7652,17 @@
  26631. fi
  26632. -lt_prog_compiler_wl=
  26633. +
  26634. +
  26635. +
  26636. +
  26637. +
  26638. + lt_prog_compiler_wl=
  26639. lt_prog_compiler_pic=
  26640. lt_prog_compiler_static=
  26641. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  26642. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  26643. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  26644. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  26645. if test "$GCC" = yes; then
  26646. lt_prog_compiler_wl='-Wl,'
  26647. @@ -6316,19 +7678,29 @@
  26648. ;;
  26649. amigaos*)
  26650. - # FIXME: we need at least 68020 code to build shared libraries, but
  26651. - # adding the `-m68020' flag to GCC prevents building anything better,
  26652. - # like `-m68040'.
  26653. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26654. + case $host_cpu in
  26655. + powerpc)
  26656. + # see comment about AmigaOS4 .so support
  26657. + lt_prog_compiler_pic='-fPIC'
  26658. + ;;
  26659. + m68k)
  26660. + # FIXME: we need at least 68020 code to build shared libraries, but
  26661. + # adding the `-m68020' flag to GCC prevents building anything better,
  26662. + # like `-m68040'.
  26663. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  26664. + ;;
  26665. + esac
  26666. ;;
  26667. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26668. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  26669. # PIC is the default for these OSes.
  26670. ;;
  26671. - mingw* | pw32* | os2*)
  26672. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26673. # This hack is so that the source file can tell whether it is being
  26674. # built for inclusion in a dll (and should export symbols for example).
  26675. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  26676. + # (--disable-auto-import) libraries
  26677. lt_prog_compiler_pic='-DDLL_EXPORT'
  26678. ;;
  26679. @@ -6338,6 +7710,25 @@
  26680. lt_prog_compiler_pic='-fno-common'
  26681. ;;
  26682. + hpux*)
  26683. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  26684. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  26685. + # sets the default TLS model and affects inlining.
  26686. + case $host_cpu in
  26687. + hppa*64*)
  26688. + # +Z the default
  26689. + ;;
  26690. + *)
  26691. + lt_prog_compiler_pic='-fPIC'
  26692. + ;;
  26693. + esac
  26694. + ;;
  26695. +
  26696. + interix[3-9]*)
  26697. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  26698. + # Instead, we relocate shared libraries at runtime.
  26699. + ;;
  26700. +
  26701. msdosdjgpp*)
  26702. # Just because we use GCC doesn't mean we suddenly get shared libraries
  26703. # on systems that don't support them.
  26704. @@ -6345,25 +7736,18 @@
  26705. enable_shared=no
  26706. ;;
  26707. + *nto* | *qnx*)
  26708. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  26709. + # it will coredump.
  26710. + lt_prog_compiler_pic='-fPIC -shared'
  26711. + ;;
  26712. +
  26713. sysv4*MP*)
  26714. if test -d /usr/nec; then
  26715. lt_prog_compiler_pic=-Kconform_pic
  26716. fi
  26717. ;;
  26718. - hpux*)
  26719. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26720. - # not for PA HP-UX.
  26721. - case "$host_cpu" in
  26722. - hppa*64*|ia64*)
  26723. - # +Z the default
  26724. - ;;
  26725. - *)
  26726. - lt_prog_compiler_pic='-fPIC'
  26727. - ;;
  26728. - esac
  26729. - ;;
  26730. -
  26731. *)
  26732. lt_prog_compiler_pic='-fPIC'
  26733. ;;
  26734. @@ -6381,7 +7765,7 @@
  26735. fi
  26736. ;;
  26737. - mingw* | pw32* | os2*)
  26738. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  26739. # This hack is so that the source file can tell whether it is being
  26740. # built for inclusion in a dll (and should export symbols for example).
  26741. lt_prog_compiler_pic='-DDLL_EXPORT'
  26742. @@ -6391,7 +7775,7 @@
  26743. lt_prog_compiler_wl='-Wl,'
  26744. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  26745. # not for PA HP-UX.
  26746. - case "$host_cpu" in
  26747. + case $host_cpu in
  26748. hppa*64*|ia64*)
  26749. # +Z the default
  26750. ;;
  26751. @@ -6409,41 +7793,94 @@
  26752. lt_prog_compiler_static='-non_shared'
  26753. ;;
  26754. - newsos6)
  26755. - lt_prog_compiler_pic='-KPIC'
  26756. - lt_prog_compiler_static='-Bstatic'
  26757. - ;;
  26758. -
  26759. - linux*)
  26760. - case $CC in
  26761. - icc* | ecc*)
  26762. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  26763. + case $cc_basename in
  26764. + # old Intel for x86_64 which still supported -KPIC.
  26765. + ecc*)
  26766. lt_prog_compiler_wl='-Wl,'
  26767. lt_prog_compiler_pic='-KPIC'
  26768. lt_prog_compiler_static='-static'
  26769. ;;
  26770. + # icc used to be incompatible with GCC.
  26771. + # ICC 10 doesn't accept -KPIC any more.
  26772. + icc* | ifort*)
  26773. + lt_prog_compiler_wl='-Wl,'
  26774. + lt_prog_compiler_pic='-fPIC'
  26775. + lt_prog_compiler_static='-static'
  26776. + ;;
  26777. + # Lahey Fortran 8.1.
  26778. + lf95*)
  26779. + lt_prog_compiler_wl='-Wl,'
  26780. + lt_prog_compiler_pic='--shared'
  26781. + lt_prog_compiler_static='--static'
  26782. + ;;
  26783. + pgcc* | pgf77* | pgf90* | pgf95*)
  26784. + # Portland Group compilers (*not* the Pentium gcc compiler,
  26785. + # which looks to be a dead project)
  26786. + lt_prog_compiler_wl='-Wl,'
  26787. + lt_prog_compiler_pic='-fpic'
  26788. + lt_prog_compiler_static='-Bstatic'
  26789. + ;;
  26790. ccc*)
  26791. lt_prog_compiler_wl='-Wl,'
  26792. # All Alpha code is PIC.
  26793. lt_prog_compiler_static='-non_shared'
  26794. ;;
  26795. + xl*)
  26796. + # IBM XL C 8.0/Fortran 10.1 on PPC
  26797. + lt_prog_compiler_wl='-Wl,'
  26798. + lt_prog_compiler_pic='-qpic'
  26799. + lt_prog_compiler_static='-qstaticlink'
  26800. + ;;
  26801. + *)
  26802. + case `$CC -V 2>&1 | sed 5q` in
  26803. + *Sun\ C*)
  26804. + # Sun C 5.9
  26805. + lt_prog_compiler_pic='-KPIC'
  26806. + lt_prog_compiler_static='-Bstatic'
  26807. + lt_prog_compiler_wl='-Wl,'
  26808. + ;;
  26809. + *Sun\ F*)
  26810. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  26811. + lt_prog_compiler_pic='-KPIC'
  26812. + lt_prog_compiler_static='-Bstatic'
  26813. + lt_prog_compiler_wl=''
  26814. + ;;
  26815. + esac
  26816. + ;;
  26817. esac
  26818. ;;
  26819. + newsos6)
  26820. + lt_prog_compiler_pic='-KPIC'
  26821. + lt_prog_compiler_static='-Bstatic'
  26822. + ;;
  26823. +
  26824. + *nto* | *qnx*)
  26825. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  26826. + # it will coredump.
  26827. + lt_prog_compiler_pic='-fPIC -shared'
  26828. + ;;
  26829. +
  26830. osf3* | osf4* | osf5*)
  26831. lt_prog_compiler_wl='-Wl,'
  26832. # All OSF/1 code is PIC.
  26833. lt_prog_compiler_static='-non_shared'
  26834. ;;
  26835. - sco3.2v5*)
  26836. - lt_prog_compiler_pic='-Kpic'
  26837. - lt_prog_compiler_static='-dn'
  26838. + rdos*)
  26839. + lt_prog_compiler_static='-non_shared'
  26840. ;;
  26841. solaris*)
  26842. - lt_prog_compiler_wl='-Wl,'
  26843. lt_prog_compiler_pic='-KPIC'
  26844. lt_prog_compiler_static='-Bstatic'
  26845. + case $cc_basename in
  26846. + f77* | f90* | f95*)
  26847. + lt_prog_compiler_wl='-Qoption ld ';;
  26848. + *)
  26849. + lt_prog_compiler_wl='-Wl,';;
  26850. + esac
  26851. ;;
  26852. sunos4*)
  26853. @@ -6452,7 +7889,7 @@
  26854. lt_prog_compiler_static='-Bstatic'
  26855. ;;
  26856. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  26857. + sysv4 | sysv4.2uw2* | sysv4.3*)
  26858. lt_prog_compiler_wl='-Wl,'
  26859. lt_prog_compiler_pic='-KPIC'
  26860. lt_prog_compiler_static='-Bstatic'
  26861. @@ -6465,6 +7902,17 @@
  26862. fi
  26863. ;;
  26864. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  26865. + lt_prog_compiler_wl='-Wl,'
  26866. + lt_prog_compiler_pic='-KPIC'
  26867. + lt_prog_compiler_static='-Bstatic'
  26868. + ;;
  26869. +
  26870. + unicos*)
  26871. + lt_prog_compiler_wl='-Wl,'
  26872. + lt_prog_compiler_can_build_shared=no
  26873. + ;;
  26874. +
  26875. uts4*)
  26876. lt_prog_compiler_pic='-pic'
  26877. lt_prog_compiler_static='-Bstatic'
  26878. @@ -6476,22 +7924,35 @@
  26879. esac
  26880. fi
  26881. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  26882. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  26883. +case $host_os in
  26884. + # For platforms which do not support PIC, -DPIC is meaningless:
  26885. + *djgpp*)
  26886. + lt_prog_compiler_pic=
  26887. + ;;
  26888. + *)
  26889. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  26890. + ;;
  26891. +esac
  26892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  26893. +$as_echo "$lt_prog_compiler_pic" >&6; }
  26894. +
  26895. +
  26896. +
  26897. +
  26898. +
  26899. #
  26900. # Check to make sure the PIC flag actually works.
  26901. #
  26902. if test -n "$lt_prog_compiler_pic"; then
  26903. -
  26904. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  26905. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  26906. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  26907. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26908. -else
  26909. - lt_prog_compiler_pic_works=no
  26910. - ac_outfile=conftest.$ac_objext
  26911. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26912. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  26913. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  26914. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  26915. + $as_echo_n "(cached) " >&6
  26916. +else
  26917. + lt_cv_prog_compiler_pic_works=no
  26918. + ac_outfile=conftest.$ac_objext
  26919. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  26920. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  26921. # Insert the option either (1) after the last *FLAGS variable, or
  26922. # (2) before a word containing "conftest.", or (3) at the end.
  26923. @@ -6499,28 +7960,30 @@
  26924. # with a dollar sign (not a hyphen), so the echo should work correctly.
  26925. # The option is referenced via a variable to avoid confusing sed.
  26926. lt_compile=`echo "$ac_compile" | $SED \
  26927. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  26928. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  26929. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26930. -e 's:$: $lt_compiler_flag:'`
  26931. - (eval echo "\"\$as_me:6505: $lt_compile\"" >&5)
  26932. + (eval echo "\"\$as_me:7966: $lt_compile\"" >&5)
  26933. (eval "$lt_compile" 2>conftest.err)
  26934. ac_status=$?
  26935. cat conftest.err >&5
  26936. - echo "$as_me:6509: \$? = $ac_status" >&5
  26937. + echo "$as_me:7970: \$? = $ac_status" >&5
  26938. if (exit $ac_status) && test -s "$ac_outfile"; then
  26939. # The compiler can only warn and ignore the option if not recognized
  26940. - # So say no if there are warnings
  26941. - if test ! -s conftest.err; then
  26942. - lt_prog_compiler_pic_works=yes
  26943. + # So say no if there are warnings other than the usual output.
  26944. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  26945. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  26946. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  26947. + lt_cv_prog_compiler_pic_works=yes
  26948. fi
  26949. fi
  26950. - $rm conftest*
  26951. + $RM conftest*
  26952. fi
  26953. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  26954. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  26955. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  26956. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  26957. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  26958. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  26959. case $lt_prog_compiler_pic in
  26960. "" | " "*) ;;
  26961. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  26962. @@ -6531,27 +7994,125 @@
  26963. fi
  26964. fi
  26965. -case "$host_os" in
  26966. - # For platforms which do not support PIC, -DPIC is meaningless:
  26967. - *djgpp*)
  26968. - lt_prog_compiler_pic=
  26969. - ;;
  26970. - *)
  26971. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  26972. - ;;
  26973. -esac
  26974. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  26975. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  26976. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  26977. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26978. +
  26979. +
  26980. +
  26981. +
  26982. +
  26983. +#
  26984. +# Check to make sure the static flag actually works.
  26985. +#
  26986. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  26987. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  26988. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  26989. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  26990. + $as_echo_n "(cached) " >&6
  26991. +else
  26992. + lt_cv_prog_compiler_static_works=no
  26993. + save_LDFLAGS="$LDFLAGS"
  26994. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  26995. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  26996. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  26997. + # The linker can only warn and ignore the option if not recognized
  26998. + # So say no if there are warnings
  26999. + if test -s conftest.err; then
  27000. + # Append any errors to the config.log.
  27001. + cat conftest.err 1>&5
  27002. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  27003. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27004. + if diff conftest.exp conftest.er2 >/dev/null; then
  27005. + lt_cv_prog_compiler_static_works=yes
  27006. + fi
  27007. + else
  27008. + lt_cv_prog_compiler_static_works=yes
  27009. + fi
  27010. + fi
  27011. + $RM -r conftest*
  27012. + LDFLAGS="$save_LDFLAGS"
  27013. +
  27014. +fi
  27015. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  27016. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  27017. +
  27018. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  27019. + :
  27020. +else
  27021. + lt_prog_compiler_static=
  27022. +fi
  27023. +
  27024. +
  27025. +
  27026. +
  27027. +
  27028. +
  27029. +
  27030. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  27031. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  27032. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  27033. + $as_echo_n "(cached) " >&6
  27034. +else
  27035. + lt_cv_prog_compiler_c_o=no
  27036. + $RM -r conftest 2>/dev/null
  27037. + mkdir conftest
  27038. + cd conftest
  27039. + mkdir out
  27040. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27041. +
  27042. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  27043. + # Insert the option either (1) after the last *FLAGS variable, or
  27044. + # (2) before a word containing "conftest.", or (3) at the end.
  27045. + # Note that $ac_compile itself does not contain backslashes and begins
  27046. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  27047. + lt_compile=`echo "$ac_compile" | $SED \
  27048. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27049. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27050. + -e 's:$: $lt_compiler_flag:'`
  27051. + (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
  27052. + (eval "$lt_compile" 2>out/conftest.err)
  27053. + ac_status=$?
  27054. + cat out/conftest.err >&5
  27055. + echo "$as_me:8075: \$? = $ac_status" >&5
  27056. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  27057. + then
  27058. + # The compiler can only warn and ignore the option if not recognized
  27059. + # So say no if there are warnings
  27060. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  27061. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  27062. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  27063. + lt_cv_prog_compiler_c_o=yes
  27064. + fi
  27065. + fi
  27066. + chmod u+w . 2>&5
  27067. + $RM conftest*
  27068. + # SGI C++ compiler will create directory out/ii_files/ for
  27069. + # template instantiation
  27070. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  27071. + $RM out/* && rmdir out
  27072. + cd ..
  27073. + $RM -r conftest
  27074. + $RM conftest*
  27075. +
  27076. +fi
  27077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  27078. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  27079. +
  27080. +
  27081. +
  27082. +
  27083. +
  27084. +
  27085. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  27086. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  27087. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  27088. + $as_echo_n "(cached) " >&6
  27089. else
  27090. lt_cv_prog_compiler_c_o=no
  27091. - $rm -r conftest 2>/dev/null
  27092. + $RM -r conftest 2>/dev/null
  27093. mkdir conftest
  27094. cd conftest
  27095. mkdir out
  27096. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27097. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27098. lt_compiler_flag="-o out/conftest2.$ac_objext"
  27099. # Insert the option either (1) after the last *FLAGS variable, or
  27100. @@ -6559,84 +8120,96 @@
  27101. # Note that $ac_compile itself does not contain backslashes and begins
  27102. # with a dollar sign (not a hyphen), so the echo should work correctly.
  27103. lt_compile=`echo "$ac_compile" | $SED \
  27104. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  27105. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27106. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27107. -e 's:$: $lt_compiler_flag:'`
  27108. - (eval echo "\"\$as_me:6565: $lt_compile\"" >&5)
  27109. + (eval echo "\"\$as_me:8126: $lt_compile\"" >&5)
  27110. (eval "$lt_compile" 2>out/conftest.err)
  27111. ac_status=$?
  27112. cat out/conftest.err >&5
  27113. - echo "$as_me:6569: \$? = $ac_status" >&5
  27114. + echo "$as_me:8130: \$? = $ac_status" >&5
  27115. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  27116. then
  27117. # The compiler can only warn and ignore the option if not recognized
  27118. # So say no if there are warnings
  27119. - if test ! -s out/conftest.err; then
  27120. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  27121. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  27122. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  27123. lt_cv_prog_compiler_c_o=yes
  27124. fi
  27125. fi
  27126. - chmod u+w .
  27127. - $rm conftest*
  27128. + chmod u+w . 2>&5
  27129. + $RM conftest*
  27130. # SGI C++ compiler will create directory out/ii_files/ for
  27131. # template instantiation
  27132. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  27133. - $rm out/* && rmdir out
  27134. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  27135. + $RM out/* && rmdir out
  27136. cd ..
  27137. - rmdir conftest
  27138. - $rm conftest*
  27139. + $RM -r conftest
  27140. + $RM conftest*
  27141. fi
  27142. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  27143. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  27144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  27145. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  27146. +
  27147. +
  27148. hard_links="nottested"
  27149. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  27150. # do not overwrite the value of need_locks provided by the user
  27151. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  27152. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  27153. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  27154. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  27155. hard_links=yes
  27156. - $rm conftest*
  27157. + $RM conftest*
  27158. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27159. touch conftest.a
  27160. ln conftest.a conftest.b 2>&5 || hard_links=no
  27161. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  27162. - echo "$as_me:$LINENO: result: $hard_links" >&5
  27163. -echo "${ECHO_T}$hard_links" >&6
  27164. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  27165. +$as_echo "$hard_links" >&6; }
  27166. if test "$hard_links" = no; then
  27167. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  27168. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  27169. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  27170. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  27171. need_locks=warn
  27172. fi
  27173. else
  27174. need_locks=no
  27175. fi
  27176. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27177. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  27178. +
  27179. +
  27180. +
  27181. +
  27182. +
  27183. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27184. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  27185. runpath_var=
  27186. allow_undefined_flag=
  27187. - enable_shared_with_static_runtimes=no
  27188. + always_export_symbols=no
  27189. archive_cmds=
  27190. archive_expsym_cmds=
  27191. - old_archive_From_new_cmds=
  27192. - old_archive_from_expsyms_cmds=
  27193. + compiler_needs_object=no
  27194. + enable_shared_with_static_runtimes=no
  27195. export_dynamic_flag_spec=
  27196. - whole_archive_flag_spec=
  27197. - thread_safe_flag_spec=
  27198. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27199. + hardcode_automatic=no
  27200. + hardcode_direct=no
  27201. + hardcode_direct_absolute=no
  27202. hardcode_libdir_flag_spec=
  27203. hardcode_libdir_flag_spec_ld=
  27204. hardcode_libdir_separator=
  27205. - hardcode_direct=no
  27206. hardcode_minus_L=no
  27207. hardcode_shlibpath_var=unsupported
  27208. + inherit_rpath=no
  27209. link_all_deplibs=unknown
  27210. - hardcode_automatic=no
  27211. module_cmds=
  27212. module_expsym_cmds=
  27213. - always_export_symbols=no
  27214. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  27215. + old_archive_from_new_cmds=
  27216. + old_archive_from_expsyms_cmds=
  27217. + thread_safe_flag_spec=
  27218. + whole_archive_flag_spec=
  27219. # include_expsyms should be a list of space-separated symbols to be *always*
  27220. # included in the symbol list
  27221. include_expsyms=
  27222. @@ -6644,16 +8217,17 @@
  27223. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  27224. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  27225. # as well as any symbol that contains `d'.
  27226. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  27227. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  27228. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  27229. # platforms (ab)use it in PIC code, but their linkers get confused if
  27230. # the symbol is explicitly referenced. Since portable code cannot
  27231. # rely on this symbol name, it's probably fine to never include it in
  27232. # preloaded symbol tables.
  27233. + # Exclude shared library initialization/finalization symbols.
  27234. extract_expsyms_cmds=
  27235. case $host_os in
  27236. - cygwin* | mingw* | pw32*)
  27237. + cygwin* | mingw* | pw32* | cegcc*)
  27238. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  27239. # When not using gcc, we currently assume that we are using
  27240. # Microsoft Visual C++.
  27241. @@ -6661,9 +8235,16 @@
  27242. with_gnu_ld=no
  27243. fi
  27244. ;;
  27245. + interix*)
  27246. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  27247. + with_gnu_ld=yes
  27248. + ;;
  27249. openbsd*)
  27250. with_gnu_ld=no
  27251. ;;
  27252. + linux* | k*bsd*-gnu)
  27253. + link_all_deplibs=no
  27254. + ;;
  27255. esac
  27256. ld_shlibs=yes
  27257. @@ -6671,13 +8252,35 @@
  27258. # If archive_cmds runs LD, not CC, wlarc should be empty
  27259. wlarc='${wl}'
  27260. + # Set some defaults for GNU ld with shared library support. These
  27261. + # are reset later if shared libraries are not supported. Putting them
  27262. + # here allows them to be overridden if necessary.
  27263. + runpath_var=LD_RUN_PATH
  27264. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27265. + export_dynamic_flag_spec='${wl}--export-dynamic'
  27266. + # ancient GNU ld didn't support --whole-archive et. al.
  27267. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  27268. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27269. + else
  27270. + whole_archive_flag_spec=
  27271. + fi
  27272. + supports_anon_versioning=no
  27273. + case `$LD -v 2>&1` in
  27274. + *GNU\ gold*) supports_anon_versioning=yes ;;
  27275. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  27276. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  27277. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  27278. + *\ 2.11.*) ;; # other 2.11 versions
  27279. + *) supports_anon_versioning=yes ;;
  27280. + esac
  27281. +
  27282. # See if GNU ld supports shared libraries.
  27283. case $host_os in
  27284. - aix3* | aix4* | aix5*)
  27285. + aix[3-9]*)
  27286. # On AIX/PPC, the GNU linker is very broken
  27287. if test "$host_cpu" != ia64; then
  27288. ld_shlibs=no
  27289. - cat <<EOF 1>&2
  27290. + cat <<_LT_EOF 1>&2
  27291. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  27292. *** to be unable to reliably create shared libraries on AIX.
  27293. @@ -6685,26 +8288,27 @@
  27294. *** really care for shared libraries, you may want to modify your PATH
  27295. *** so that a non-GNU linker is found, and then restart.
  27296. -EOF
  27297. +_LT_EOF
  27298. fi
  27299. ;;
  27300. amigaos*)
  27301. - archive_cmds='$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)'
  27302. - hardcode_libdir_flag_spec='-L$libdir'
  27303. - hardcode_minus_L=yes
  27304. -
  27305. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  27306. - # that the semantics of dynamic libraries on AmigaOS, at least up
  27307. - # to version 4, is to share data among multiple programs linked
  27308. - # with the same dynamic library. Since this doesn't match the
  27309. - # behavior of shared libraries on other platforms, we can't use
  27310. - # them.
  27311. - ld_shlibs=no
  27312. + case $host_cpu in
  27313. + powerpc)
  27314. + # see comment about AmigaOS4 .so support
  27315. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27316. + archive_expsym_cmds=''
  27317. + ;;
  27318. + m68k)
  27319. + archive_cmds='$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)'
  27320. + hardcode_libdir_flag_spec='-L$libdir'
  27321. + hardcode_minus_L=yes
  27322. + ;;
  27323. + esac
  27324. ;;
  27325. beos*)
  27326. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27327. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  27328. allow_undefined_flag=unsupported
  27329. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  27330. # support --undefined. This deserves some investigation. FIXME
  27331. @@ -6714,17 +8318,17 @@
  27332. fi
  27333. ;;
  27334. - cygwin* | mingw* | pw32*)
  27335. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  27336. + cygwin* | mingw* | pw32* | cegcc*)
  27337. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  27338. # as there is no search path for DLLs.
  27339. hardcode_libdir_flag_spec='-L$libdir'
  27340. allow_undefined_flag=unsupported
  27341. always_export_symbols=no
  27342. enable_shared_with_static_runtimes=yes
  27343. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  27344. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  27345. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27346. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  27347. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  27348. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27349. # If the export-symbols file already is a .def file (1st line
  27350. # is EXPORTS), use it as is; otherwise, prepend...
  27351. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27352. @@ -6733,36 +8337,121 @@
  27353. echo EXPORTS > $output_objdir/$soname.def;
  27354. cat $export_symbols >> $output_objdir/$soname.def;
  27355. fi~
  27356. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  27357. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  27358. else
  27359. ld_shlibs=no
  27360. fi
  27361. ;;
  27362. - netbsd* | knetbsd*-gnu)
  27363. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27364. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  27365. - wlarc=
  27366. - else
  27367. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27368. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27369. - fi
  27370. + interix[3-9]*)
  27371. + hardcode_direct=no
  27372. + hardcode_shlibpath_var=no
  27373. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  27374. + export_dynamic_flag_spec='${wl}-E'
  27375. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  27376. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  27377. + # default) and relocated if they conflict, which is a slow very memory
  27378. + # consuming and fragmenting process. To avoid this, we pick a random,
  27379. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  27380. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  27381. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  27382. + archive_expsym_cmds='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'
  27383. ;;
  27384. - solaris* | sysv5*)
  27385. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  27386. - ld_shlibs=no
  27387. - cat <<EOF 1>&2
  27388. -
  27389. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  27390. -*** create shared libraries on Solaris systems. Therefore, libtool
  27391. -*** is disabling shared libraries support. We urge you to upgrade GNU
  27392. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  27393. + tmp_diet=no
  27394. + if test "$host_os" = linux-dietlibc; then
  27395. + case $cc_basename in
  27396. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  27397. + esac
  27398. + fi
  27399. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  27400. + && test "$tmp_diet" = no
  27401. + then
  27402. + tmp_addflag=
  27403. + tmp_sharedflag='-shared'
  27404. + case $cc_basename,$host_cpu in
  27405. + pgcc*) # Portland Group C compiler
  27406. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  27407. + tmp_addflag=' $pic_flag'
  27408. + ;;
  27409. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  27410. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  27411. + tmp_addflag=' $pic_flag -Mnomain' ;;
  27412. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  27413. + tmp_addflag=' -i_dynamic' ;;
  27414. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  27415. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  27416. + ifc* | ifort*) # Intel Fortran compiler
  27417. + tmp_addflag=' -nofor_main' ;;
  27418. + lf95*) # Lahey Fortran 8.1
  27419. + whole_archive_flag_spec=
  27420. + tmp_sharedflag='--shared' ;;
  27421. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  27422. + tmp_sharedflag='-qmkshrobj'
  27423. + tmp_addflag= ;;
  27424. + esac
  27425. + case `$CC -V 2>&1 | sed 5q` in
  27426. + *Sun\ C*) # Sun C 5.9
  27427. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  27428. + compiler_needs_object=yes
  27429. + tmp_sharedflag='-G' ;;
  27430. + *Sun\ F*) # Sun Fortran 8.3
  27431. + tmp_sharedflag='-G' ;;
  27432. + esac
  27433. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27434. +
  27435. + if test "x$supports_anon_versioning" = xyes; then
  27436. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  27437. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  27438. + echo "local: *; };" >> $output_objdir/$libname.ver~
  27439. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  27440. + fi
  27441. +
  27442. + case $cc_basename in
  27443. + xlf*)
  27444. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  27445. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  27446. + hardcode_libdir_flag_spec=
  27447. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  27448. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  27449. + if test "x$supports_anon_versioning" = xyes; then
  27450. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  27451. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  27452. + echo "local: *; };" >> $output_objdir/$libname.ver~
  27453. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  27454. + fi
  27455. + ;;
  27456. + esac
  27457. + else
  27458. + ld_shlibs=no
  27459. + fi
  27460. + ;;
  27461. +
  27462. + netbsd* | netbsdelf*-gnu)
  27463. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  27464. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  27465. + wlarc=
  27466. + else
  27467. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27468. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27469. + fi
  27470. + ;;
  27471. +
  27472. + solaris*)
  27473. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  27474. + ld_shlibs=no
  27475. + cat <<_LT_EOF 1>&2
  27476. +
  27477. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  27478. +*** create shared libraries on Solaris systems. Therefore, libtool
  27479. +*** is disabling shared libraries support. We urge you to upgrade GNU
  27480. *** binutils to release 2.9.1 or newer. Another option is to modify
  27481. *** your PATH or compiler configuration so that the native linker is
  27482. *** used, and then restart.
  27483. -EOF
  27484. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27485. +_LT_EOF
  27486. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  27487. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27488. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27489. else
  27490. @@ -6770,6 +8459,37 @@
  27491. fi
  27492. ;;
  27493. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  27494. + case `$LD -v 2>&1` in
  27495. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  27496. + ld_shlibs=no
  27497. + cat <<_LT_EOF 1>&2
  27498. +
  27499. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  27500. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  27501. +*** is disabling shared libraries support. We urge you to upgrade GNU
  27502. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  27503. +*** your PATH or compiler configuration so that the native linker is
  27504. +*** used, and then restart.
  27505. +
  27506. +_LT_EOF
  27507. + ;;
  27508. + *)
  27509. + # For security reasons, it is highly recommended that you always
  27510. + # use absolute paths for naming shared libraries, and exclude the
  27511. + # DT_RUNPATH tag from executables and libraries. But doing so
  27512. + # requires that you compile everything twice, which is a pain.
  27513. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  27514. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  27515. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27516. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27517. + else
  27518. + ld_shlibs=no
  27519. + fi
  27520. + ;;
  27521. + esac
  27522. + ;;
  27523. +
  27524. sunos4*)
  27525. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  27526. wlarc=
  27527. @@ -6777,33 +8497,8 @@
  27528. hardcode_shlibpath_var=no
  27529. ;;
  27530. - linux*)
  27531. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  27532. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27533. - archive_cmds="$tmp_archive_cmds"
  27534. - supports_anon_versioning=no
  27535. - case `$LD -v 2>/dev/null` in
  27536. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  27537. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  27538. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  27539. - *\ 2.11.*) ;; # other 2.11 versions
  27540. - *) supports_anon_versioning=yes ;;
  27541. - esac
  27542. - if test $supports_anon_versioning = yes; then
  27543. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  27544. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  27545. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  27546. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  27547. - else
  27548. - archive_expsym_cmds="$tmp_archive_cmds"
  27549. - fi
  27550. - else
  27551. - ld_shlibs=no
  27552. - fi
  27553. - ;;
  27554. -
  27555. *)
  27556. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  27557. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  27558. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27559. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27560. else
  27561. @@ -6812,16 +8507,11 @@
  27562. ;;
  27563. esac
  27564. - if test "$ld_shlibs" = yes; then
  27565. - runpath_var=LD_RUN_PATH
  27566. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  27567. - export_dynamic_flag_spec='${wl}--export-dynamic'
  27568. - # ancient GNU ld didn't support --whole-archive et. al.
  27569. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  27570. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27571. - else
  27572. - whole_archive_flag_spec=
  27573. - fi
  27574. + if test "$ld_shlibs" = no; then
  27575. + runpath_var=
  27576. + hardcode_libdir_flag_spec=
  27577. + export_dynamic_flag_spec=
  27578. + whole_archive_flag_spec=
  27579. fi
  27580. else
  27581. # PORTME fill in a description of your system's linker (not GNU ld)
  27582. @@ -6833,14 +8523,14 @@
  27583. # Note: this linker hardcodes the directories in LIBPATH if there
  27584. # are no directories specified by -L.
  27585. hardcode_minus_L=yes
  27586. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  27587. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  27588. # Neither direct hardcoding nor static linking is supported with a
  27589. # broken collect2.
  27590. hardcode_direct=unsupported
  27591. fi
  27592. ;;
  27593. - aix4* | aix5*)
  27594. + aix[4-9]*)
  27595. if test "$host_cpu" = ia64; then
  27596. # On IA64, the linker does run time linking by default, so we don't
  27597. # have to do anything special.
  27598. @@ -6850,23 +8540,24 @@
  27599. else
  27600. # If we're using GNU nm, then we don't want the "-C" option.
  27601. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  27602. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  27603. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  27604. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  27605. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  27606. else
  27607. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  27608. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  27609. fi
  27610. aix_use_runtimelinking=no
  27611. # Test if we are trying to use run time linking or normal
  27612. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27613. # need to do runtime linking.
  27614. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  27615. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  27616. for ld_flag in $LDFLAGS; do
  27617. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  27618. - aix_use_runtimelinking=yes
  27619. - break
  27620. - fi
  27621. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  27622. + aix_use_runtimelinking=yes
  27623. + break
  27624. + fi
  27625. done
  27626. + ;;
  27627. esac
  27628. exp_sym_flag='-bexport'
  27629. @@ -6881,46 +8572,54 @@
  27630. archive_cmds=''
  27631. hardcode_direct=yes
  27632. + hardcode_direct_absolute=yes
  27633. hardcode_libdir_separator=':'
  27634. link_all_deplibs=yes
  27635. + file_list_spec='${wl}-f,'
  27636. if test "$GCC" = yes; then
  27637. - case $host_os in aix4.012|aix4.012.*)
  27638. + case $host_os in aix4.[012]|aix4.[012].*)
  27639. # We only want to do this on AIX 4.2 and lower, the check
  27640. # below for broken collect2 doesn't work under 4.3+
  27641. collect2name=`${CC} -print-prog-name=collect2`
  27642. - if test -f "$collect2name" && \
  27643. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27644. + if test -f "$collect2name" &&
  27645. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  27646. then
  27647. - # We have reworked collect2
  27648. - hardcode_direct=yes
  27649. + # We have reworked collect2
  27650. + :
  27651. else
  27652. - # We have old collect2
  27653. - hardcode_direct=unsupported
  27654. - # It fails to find uninstalled libraries when the uninstalled
  27655. - # path is not listed in the libpath. Setting hardcode_minus_L
  27656. - # to unsupported forces relinking
  27657. - hardcode_minus_L=yes
  27658. - hardcode_libdir_flag_spec='-L$libdir'
  27659. - hardcode_libdir_separator=
  27660. + # We have old collect2
  27661. + hardcode_direct=unsupported
  27662. + # It fails to find uninstalled libraries when the uninstalled
  27663. + # path is not listed in the libpath. Setting hardcode_minus_L
  27664. + # to unsupported forces relinking
  27665. + hardcode_minus_L=yes
  27666. + hardcode_libdir_flag_spec='-L$libdir'
  27667. + hardcode_libdir_separator=
  27668. fi
  27669. + ;;
  27670. esac
  27671. shared_flag='-shared'
  27672. + if test "$aix_use_runtimelinking" = yes; then
  27673. + shared_flag="$shared_flag "'${wl}-G'
  27674. + fi
  27675. + link_all_deplibs=no
  27676. else
  27677. # not using gcc
  27678. if test "$host_cpu" = ia64; then
  27679. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27680. - # chokes on -Wl,-G. The following line is correct:
  27681. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27682. + # chokes on -Wl,-G. The following line is correct:
  27683. shared_flag='-G'
  27684. else
  27685. - if test "$aix_use_runtimelinking" = yes; then
  27686. + if test "$aix_use_runtimelinking" = yes; then
  27687. shared_flag='${wl}-G'
  27688. else
  27689. shared_flag='${wl}-bM:SRE'
  27690. - fi
  27691. + fi
  27692. fi
  27693. fi
  27694. + export_dynamic_flag_spec='${wl}-bexpall'
  27695. # It seems that -bexpall does not export symbols beginning with
  27696. # underscore (_), so it is better to generate a list of symbols to export.
  27697. always_export_symbols=yes
  27698. @@ -6928,12 +8627,9 @@
  27699. # Warning - without using the other runtime loading flags (-brtl),
  27700. # -berok will link without error, but may produce a broken library.
  27701. allow_undefined_flag='-berok'
  27702. - # Determine the default libpath from the value encoded in an empty executable.
  27703. - cat >conftest.$ac_ext <<_ACEOF
  27704. -/* confdefs.h. */
  27705. -_ACEOF
  27706. -cat confdefs.h >>conftest.$ac_ext
  27707. -cat >>conftest.$ac_ext <<_ACEOF
  27708. + # Determine the default libpath from the value encoded in an
  27709. + # empty executable.
  27710. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27711. /* end confdefs.h. */
  27712. int
  27713. @@ -6944,56 +8640,36 @@
  27714. return 0;
  27715. }
  27716. _ACEOF
  27717. -rm -f conftest.$ac_objext conftest$ac_exeext
  27718. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27719. - (eval $ac_link) 2>conftest.er1
  27720. - ac_status=$?
  27721. - grep -v '^ *+' conftest.er1 >conftest.err
  27722. - rm -f conftest.er1
  27723. - cat conftest.err >&5
  27724. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27725. - (exit $ac_status); } &&
  27726. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27727. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27728. - (eval $ac_try) 2>&5
  27729. - ac_status=$?
  27730. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27731. - (exit $ac_status); }; } &&
  27732. - { ac_try='test -s conftest$ac_exeext'
  27733. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27734. - (eval $ac_try) 2>&5
  27735. - ac_status=$?
  27736. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27737. - (exit $ac_status); }; }; then
  27738. +if ac_fn_c_try_link "$LINENO"; then :
  27739. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27740. -}'`
  27741. +lt_aix_libpath_sed='
  27742. + /Import File Strings/,/^$/ {
  27743. + /^0/ {
  27744. + s/^0 *\(.*\)$/\1/
  27745. + p
  27746. + }
  27747. + }'
  27748. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27749. # Check for a 64-bit object if we didn't find anything.
  27750. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27751. -}'`; fi
  27752. -else
  27753. - echo "$as_me: failed program was:" >&5
  27754. -sed 's/^/| /' conftest.$ac_ext >&5
  27755. -
  27756. +if test -z "$aix_libpath"; then
  27757. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27758. +fi
  27759. fi
  27760. -rm -f conftest.err conftest.$ac_objext \
  27761. - conftest$ac_exeext conftest.$ac_ext
  27762. +rm -f core conftest.err conftest.$ac_objext \
  27763. + conftest$ac_exeext conftest.$ac_ext
  27764. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27765. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27766. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  27767. - else
  27768. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27769. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  27770. + else
  27771. if test "$host_cpu" = ia64; then
  27772. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  27773. allow_undefined_flag="-z nodefs"
  27774. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  27775. + archive_expsym_cmds="\$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"
  27776. else
  27777. - # Determine the default libpath from the value encoded in an empty executable.
  27778. - cat >conftest.$ac_ext <<_ACEOF
  27779. -/* confdefs.h. */
  27780. -_ACEOF
  27781. -cat confdefs.h >>conftest.$ac_ext
  27782. -cat >>conftest.$ac_ext <<_ACEOF
  27783. + # Determine the default libpath from the value encoded in an
  27784. + # empty executable.
  27785. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  27786. /* end confdefs.h. */
  27787. int
  27788. @@ -7004,40 +8680,23 @@
  27789. return 0;
  27790. }
  27791. _ACEOF
  27792. -rm -f conftest.$ac_objext conftest$ac_exeext
  27793. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27794. - (eval $ac_link) 2>conftest.er1
  27795. - ac_status=$?
  27796. - grep -v '^ *+' conftest.er1 >conftest.err
  27797. - rm -f conftest.er1
  27798. - cat conftest.err >&5
  27799. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27800. - (exit $ac_status); } &&
  27801. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  27802. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27803. - (eval $ac_try) 2>&5
  27804. - ac_status=$?
  27805. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27806. - (exit $ac_status); }; } &&
  27807. - { ac_try='test -s conftest$ac_exeext'
  27808. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27809. - (eval $ac_try) 2>&5
  27810. - ac_status=$?
  27811. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27812. - (exit $ac_status); }; }; then
  27813. +if ac_fn_c_try_link "$LINENO"; then :
  27814. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27815. -}'`
  27816. +lt_aix_libpath_sed='
  27817. + /Import File Strings/,/^$/ {
  27818. + /^0/ {
  27819. + s/^0 *\(.*\)$/\1/
  27820. + p
  27821. + }
  27822. + }'
  27823. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27824. # Check for a 64-bit object if we didn't find anything.
  27825. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27826. -}'`; fi
  27827. -else
  27828. - echo "$as_me: failed program was:" >&5
  27829. -sed 's/^/| /' conftest.$ac_ext >&5
  27830. -
  27831. +if test -z "$aix_libpath"; then
  27832. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  27833. fi
  27834. -rm -f conftest.err conftest.$ac_objext \
  27835. - conftest$ac_exeext conftest.$ac_ext
  27836. +fi
  27837. +rm -f core conftest.err conftest.$ac_objext \
  27838. + conftest$ac_exeext conftest.$ac_ext
  27839. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27840. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  27841. @@ -7045,30 +8704,35 @@
  27842. # -berok will link without error, but may produce a broken library.
  27843. no_undefined_flag=' ${wl}-bernotok'
  27844. allow_undefined_flag=' ${wl}-berok'
  27845. - # -bexpall does not export symbols beginning with underscore (_)
  27846. - always_export_symbols=yes
  27847. # Exported symbols can be pulled into shared objects from archives
  27848. - whole_archive_flag_spec=' '
  27849. + whole_archive_flag_spec='$convenience'
  27850. archive_cmds_need_lc=yes
  27851. - # This is similar to how AIX traditionally builds it's shared libraries.
  27852. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  27853. + # This is similar to how AIX traditionally builds its shared libraries.
  27854. + archive_expsym_cmds="\$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'
  27855. fi
  27856. fi
  27857. ;;
  27858. amigaos*)
  27859. - archive_cmds='$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)'
  27860. - hardcode_libdir_flag_spec='-L$libdir'
  27861. - hardcode_minus_L=yes
  27862. - # see comment about different semantics on the GNU ld section
  27863. - ld_shlibs=no
  27864. + case $host_cpu in
  27865. + powerpc)
  27866. + # see comment about AmigaOS4 .so support
  27867. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27868. + archive_expsym_cmds=''
  27869. + ;;
  27870. + m68k)
  27871. + archive_cmds='$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)'
  27872. + hardcode_libdir_flag_spec='-L$libdir'
  27873. + hardcode_minus_L=yes
  27874. + ;;
  27875. + esac
  27876. ;;
  27877. - bsdi4*)
  27878. + bsdi[45]*)
  27879. export_dynamic_flag_spec=-rdynamic
  27880. ;;
  27881. - cygwin* | mingw* | pw32*)
  27882. + cygwin* | mingw* | pw32* | cegcc*)
  27883. # When not using gcc, we currently assume that we are using
  27884. # Microsoft Visual C++.
  27885. # hardcode_libdir_flag_spec is actually meaningless, as there is
  27886. @@ -7078,65 +8742,42 @@
  27887. # Tell ltmain to make .lib files, not .a files.
  27888. libext=lib
  27889. # Tell ltmain to make .dll files, not .so files.
  27890. - shrext=".dll"
  27891. + shrext_cmds=".dll"
  27892. # FIXME: Setting linknames here is a bad hack.
  27893. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  27894. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  27895. # The linker will automatically build a .lib file if we build a DLL.
  27896. - old_archive_From_new_cmds='true'
  27897. + old_archive_from_new_cmds='true'
  27898. # FIXME: Should let the user specify the lib program.
  27899. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  27900. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  27901. fix_srcfile_path='`cygpath -w "$srcfile"`'
  27902. enable_shared_with_static_runtimes=yes
  27903. ;;
  27904. darwin* | rhapsody*)
  27905. - if test "$GXX" = yes ; then
  27906. - archive_cmds_need_lc=no
  27907. - case "$host_os" in
  27908. - rhapsody* | darwin1.[012])
  27909. - allow_undefined_flag='-undefined suppress'
  27910. - ;;
  27911. - *) # Darwin 1.3 on
  27912. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  27913. - allow_undefined_flag='-flat_namespace -undefined suppress'
  27914. - else
  27915. - case ${MACOSX_DEPLOYMENT_TARGET} in
  27916. - 10.[012])
  27917. - allow_undefined_flag='-flat_namespace -undefined suppress'
  27918. - ;;
  27919. - 10.*)
  27920. - allow_undefined_flag='-undefined dynamic_lookup'
  27921. - ;;
  27922. - esac
  27923. - fi
  27924. - ;;
  27925. - esac
  27926. - lt_int_apple_cc_single_mod=no
  27927. - output_verbose_link_cmd='echo'
  27928. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  27929. - lt_int_apple_cc_single_mod=yes
  27930. - fi
  27931. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  27932. - archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  27933. - else
  27934. - archive_cmds='$CC -r ${wl}-bind_at_load -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'
  27935. - fi
  27936. - module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27937. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  27938. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  27939. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27940. - else
  27941. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27942. - fi
  27943. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27944. - hardcode_direct=no
  27945. - hardcode_automatic=yes
  27946. - hardcode_shlibpath_var=unsupported
  27947. - whole_archive_flag_spec='-all_load $convenience'
  27948. - link_all_deplibs=yes
  27949. - else
  27950. - ld_shlibs=no
  27951. - fi
  27952. +
  27953. +
  27954. + archive_cmds_need_lc=no
  27955. + hardcode_direct=no
  27956. + hardcode_automatic=yes
  27957. + hardcode_shlibpath_var=unsupported
  27958. + whole_archive_flag_spec=''
  27959. + link_all_deplibs=yes
  27960. + allow_undefined_flag="$_lt_dar_allow_undefined"
  27961. + case $cc_basename in
  27962. + ifort*) _lt_dar_can_shared=yes ;;
  27963. + *) _lt_dar_can_shared=$GCC ;;
  27964. + esac
  27965. + if test "$_lt_dar_can_shared" = "yes"; then
  27966. + output_verbose_link_cmd=echo
  27967. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  27968. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  27969. + archive_expsym_cmds="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}"
  27970. + module_expsym_cmds="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}"
  27971. +
  27972. + else
  27973. + ld_shlibs=no
  27974. + fi
  27975. +
  27976. ;;
  27977. dgux*)
  27978. @@ -7169,7 +8810,7 @@
  27979. ;;
  27980. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  27981. - freebsd* | kfreebsd*-gnu)
  27982. + freebsd* | dragonfly*)
  27983. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  27984. hardcode_libdir_flag_spec='-R$libdir'
  27985. hardcode_direct=yes
  27986. @@ -7178,9 +8819,9 @@
  27987. hpux9*)
  27988. if test "$GCC" = yes; then
  27989. - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  27990. + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  27991. else
  27992. - archive_cmds='$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'
  27993. + archive_cmds='$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'
  27994. fi
  27995. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  27996. hardcode_libdir_separator=:
  27997. @@ -7192,48 +8833,63 @@
  27998. export_dynamic_flag_spec='${wl}-E'
  27999. ;;
  28000. - hpux10* | hpux11*)
  28001. + hpux10*)
  28002. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28003. - case "$host_cpu" in
  28004. - hppa*64*|ia64*)
  28005. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28006. + else
  28007. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  28008. + fi
  28009. + if test "$with_gnu_ld" = no; then
  28010. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  28011. + hardcode_libdir_flag_spec_ld='+b $libdir'
  28012. + hardcode_libdir_separator=:
  28013. + hardcode_direct=yes
  28014. + hardcode_direct_absolute=yes
  28015. + export_dynamic_flag_spec='${wl}-E'
  28016. + # hardcode_minus_L: Not really in the search PATH,
  28017. + # but as the default location of the library.
  28018. + hardcode_minus_L=yes
  28019. + fi
  28020. + ;;
  28021. +
  28022. + hpux11*)
  28023. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  28024. + case $host_cpu in
  28025. + hppa*64*)
  28026. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28027. ;;
  28028. + ia64*)
  28029. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28030. + ;;
  28031. *)
  28032. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28033. ;;
  28034. esac
  28035. else
  28036. - case "$host_cpu" in
  28037. - hppa*64*|ia64*)
  28038. - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  28039. + case $host_cpu in
  28040. + hppa*64*)
  28041. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28042. + ;;
  28043. + ia64*)
  28044. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  28045. ;;
  28046. *)
  28047. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  28048. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  28049. ;;
  28050. esac
  28051. fi
  28052. if test "$with_gnu_ld" = no; then
  28053. - case "$host_cpu" in
  28054. - hppa*64*)
  28055. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  28056. - hardcode_libdir_flag_spec_ld='+b $libdir'
  28057. - hardcode_libdir_separator=:
  28058. - hardcode_direct=no
  28059. - hardcode_shlibpath_var=no
  28060. - ;;
  28061. - ia64*)
  28062. - hardcode_libdir_flag_spec='-L$libdir'
  28063. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  28064. + hardcode_libdir_separator=:
  28065. +
  28066. + case $host_cpu in
  28067. + hppa*64*|ia64*)
  28068. hardcode_direct=no
  28069. hardcode_shlibpath_var=no
  28070. -
  28071. - # hardcode_minus_L: Not really in the search PATH,
  28072. - # but as the default location of the library.
  28073. - hardcode_minus_L=yes
  28074. ;;
  28075. *)
  28076. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  28077. - hardcode_libdir_separator=:
  28078. hardcode_direct=yes
  28079. + hardcode_direct_absolute=yes
  28080. export_dynamic_flag_spec='${wl}-E'
  28081. # hardcode_minus_L: Not really in the search PATH,
  28082. @@ -7246,18 +8902,36 @@
  28083. irix5* | irix6* | nonstopux*)
  28084. if test "$GCC" = yes; then
  28085. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28086. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28087. + # Try to use the -exported_symbol ld option, if it does not
  28088. + # work, assume that -exports_file does not work either and
  28089. + # implicitly export all symbols.
  28090. + save_LDFLAGS="$LDFLAGS"
  28091. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  28092. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28093. +/* end confdefs.h. */
  28094. +int foo(void) {}
  28095. +_ACEOF
  28096. +if ac_fn_c_try_link "$LINENO"; then :
  28097. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  28098. +
  28099. +fi
  28100. +rm -f core conftest.err conftest.$ac_objext \
  28101. + conftest$ac_exeext conftest.$ac_ext
  28102. + LDFLAGS="$save_LDFLAGS"
  28103. else
  28104. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28105. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  28106. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  28107. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  28108. fi
  28109. + archive_cmds_need_lc='no'
  28110. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28111. hardcode_libdir_separator=:
  28112. + inherit_rpath=yes
  28113. link_all_deplibs=yes
  28114. ;;
  28115. - netbsd* | knetbsd*-gnu)
  28116. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28117. + netbsd* | netbsdelf*-gnu)
  28118. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  28119. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  28120. else
  28121. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  28122. @@ -7275,24 +8949,33 @@
  28123. hardcode_shlibpath_var=no
  28124. ;;
  28125. + *nto* | *qnx*)
  28126. + ;;
  28127. +
  28128. openbsd*)
  28129. - hardcode_direct=yes
  28130. - hardcode_shlibpath_var=no
  28131. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28132. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28133. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  28134. - export_dynamic_flag_spec='${wl}-E'
  28135. + if test -f /usr/libexec/ld.so; then
  28136. + hardcode_direct=yes
  28137. + hardcode_shlibpath_var=no
  28138. + hardcode_direct_absolute=yes
  28139. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28140. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28141. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  28142. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  28143. + export_dynamic_flag_spec='${wl}-E'
  28144. + else
  28145. + case $host_os in
  28146. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  28147. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28148. + hardcode_libdir_flag_spec='-R$libdir'
  28149. + ;;
  28150. + *)
  28151. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28152. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  28153. + ;;
  28154. + esac
  28155. + fi
  28156. else
  28157. - case $host_os in
  28158. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  28159. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  28160. - hardcode_libdir_flag_spec='-R$libdir'
  28161. - ;;
  28162. - *)
  28163. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  28164. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  28165. - ;;
  28166. - esac
  28167. + ld_shlibs=no
  28168. fi
  28169. ;;
  28170. @@ -7300,18 +8983,19 @@
  28171. hardcode_libdir_flag_spec='-L$libdir'
  28172. hardcode_minus_L=yes
  28173. allow_undefined_flag=unsupported
  28174. - archive_cmds='$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'
  28175. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  28176. + archive_cmds='$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'
  28177. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  28178. ;;
  28179. osf3*)
  28180. if test "$GCC" = yes; then
  28181. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  28182. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28183. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28184. else
  28185. allow_undefined_flag=' -expect_unresolved \*'
  28186. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28187. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  28188. fi
  28189. + archive_cmds_need_lc='no'
  28190. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28191. hardcode_libdir_separator=:
  28192. ;;
  28193. @@ -7319,45 +9003,59 @@
  28194. osf4* | osf5*) # as osf3* with the addition of -msym flag
  28195. if test "$GCC" = yes; then
  28196. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  28197. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28198. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  28199. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  28200. else
  28201. allow_undefined_flag=' -expect_unresolved \*'
  28202. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  28203. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  28204. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  28205. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  28206. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  28207. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  28208. # Both c and cxx compiler support -rpath directly
  28209. hardcode_libdir_flag_spec='-rpath $libdir'
  28210. fi
  28211. + archive_cmds_need_lc='no'
  28212. hardcode_libdir_separator=:
  28213. ;;
  28214. - sco3.2v5*)
  28215. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28216. - hardcode_shlibpath_var=no
  28217. - export_dynamic_flag_spec='${wl}-Bexport'
  28218. - runpath_var=LD_RUN_PATH
  28219. - hardcode_runpath_var=yes
  28220. - ;;
  28221. -
  28222. solaris*)
  28223. - no_undefined_flag=' -z text'
  28224. + no_undefined_flag=' -z defs'
  28225. if test "$GCC" = yes; then
  28226. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28227. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28228. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  28229. - else
  28230. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28231. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28232. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28233. + wlarc='${wl}'
  28234. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28235. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  28236. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  28237. + else
  28238. + case `$CC -V 2>&1` in
  28239. + *"Compilers 5.0"*)
  28240. + wlarc=''
  28241. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28242. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  28243. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  28244. + ;;
  28245. + *)
  28246. + wlarc='${wl}'
  28247. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  28248. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  28249. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  28250. + ;;
  28251. + esac
  28252. fi
  28253. hardcode_libdir_flag_spec='-R$libdir'
  28254. hardcode_shlibpath_var=no
  28255. case $host_os in
  28256. solaris2.[0-5] | solaris2.[0-5].*) ;;
  28257. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  28258. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  28259. + *)
  28260. + # The compiler driver will combine and reorder linker options,
  28261. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  28262. + # but is careful enough not to reorder.
  28263. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  28264. + if test "$GCC" = yes; then
  28265. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  28266. + else
  28267. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  28268. + fi
  28269. + ;;
  28270. esac
  28271. link_all_deplibs=yes
  28272. ;;
  28273. @@ -7414,36 +9112,45 @@
  28274. fi
  28275. ;;
  28276. - sysv4.2uw2*)
  28277. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  28278. - hardcode_direct=yes
  28279. - hardcode_minus_L=no
  28280. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  28281. + no_undefined_flag='${wl}-z,text'
  28282. + archive_cmds_need_lc=no
  28283. hardcode_shlibpath_var=no
  28284. - hardcode_runpath_var=yes
  28285. - runpath_var=LD_RUN_PATH
  28286. - ;;
  28287. + runpath_var='LD_RUN_PATH'
  28288. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  28289. - no_undefined_flag='${wl}-z ${wl}text'
  28290. if test "$GCC" = yes; then
  28291. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28292. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28293. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28294. else
  28295. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  28296. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28297. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28298. fi
  28299. - runpath_var='LD_RUN_PATH'
  28300. - hardcode_shlibpath_var=no
  28301. ;;
  28302. - sysv5*)
  28303. - no_undefined_flag=' -z text'
  28304. - # $CC -shared without GNU ld will not create a library from C++
  28305. - # object files and a static libstdc++, better avoid it by now
  28306. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  28307. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  28308. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  28309. - hardcode_libdir_flag_spec=
  28310. + sysv5* | sco3.2v5* | sco5v6*)
  28311. + # Note: We can NOT use -z defs as we might desire, because we do not
  28312. + # link with -lc, and that would cause any symbols used from libc to
  28313. + # always be unresolved, which means just about no library would
  28314. + # ever link correctly. If we're not using GNU ld we use -z text
  28315. + # though, which does catch some bad symbols but isn't as heavy-handed
  28316. + # as -z defs.
  28317. + no_undefined_flag='${wl}-z,text'
  28318. + allow_undefined_flag='${wl}-z,nodefs'
  28319. + archive_cmds_need_lc=no
  28320. hardcode_shlibpath_var=no
  28321. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  28322. + hardcode_libdir_separator=':'
  28323. + link_all_deplibs=yes
  28324. + export_dynamic_flag_spec='${wl}-Bexport'
  28325. runpath_var='LD_RUN_PATH'
  28326. +
  28327. + if test "$GCC" = yes; then
  28328. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28329. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28330. + else
  28331. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28332. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  28333. + fi
  28334. ;;
  28335. uts4*)
  28336. @@ -7456,16 +9163,35 @@
  28337. ld_shlibs=no
  28338. ;;
  28339. esac
  28340. +
  28341. + if test x$host_vendor = xsni; then
  28342. + case $host in
  28343. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  28344. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  28345. + ;;
  28346. + esac
  28347. + fi
  28348. fi
  28349. -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  28350. -echo "${ECHO_T}$ld_shlibs" >&6
  28351. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  28352. +$as_echo "$ld_shlibs" >&6; }
  28353. test "$ld_shlibs" = no && can_build_shared=no
  28354. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28355. -if test "$GCC" = yes; then
  28356. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28357. -fi
  28358. +with_gnu_ld=$with_gnu_ld
  28359. +
  28360. +
  28361. +
  28362. +
  28363. +
  28364. +
  28365. +
  28366. +
  28367. +
  28368. +
  28369. +
  28370. +
  28371. +
  28372. +
  28373. #
  28374. # Do we need to explicitly link libc?
  28375. @@ -7484,21 +9210,22 @@
  28376. # Test whether the compiler implicitly links with -lc since on some
  28377. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28378. # to ld, don't add -lc before -lgcc.
  28379. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28380. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  28381. - $rm conftest*
  28382. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  28383. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  28384. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  28385. + $RM conftest*
  28386. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  28387. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28388. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  28389. (eval $ac_compile) 2>&5
  28390. ac_status=$?
  28391. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28392. - (exit $ac_status); } 2>conftest.err; then
  28393. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28394. + test $ac_status = 0; } 2>conftest.err; then
  28395. soname=conftest
  28396. lib=conftest
  28397. libobjs=conftest.$ac_objext
  28398. deplibs=
  28399. wl=$lt_prog_compiler_wl
  28400. + pic_flag=$lt_prog_compiler_pic
  28401. compiler_flags=-v
  28402. linker_flags=-v
  28403. verstring=
  28404. @@ -7506,11 +9233,11 @@
  28405. libname=conftest
  28406. lt_save_allow_undefined_flag=$allow_undefined_flag
  28407. allow_undefined_flag=
  28408. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28409. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28410. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  28411. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28412. ac_status=$?
  28413. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28414. - (exit $ac_status); }
  28415. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  28416. + test $ac_status = 0; }
  28417. then
  28418. archive_cmds_need_lc=no
  28419. else
  28420. @@ -7520,62 +9247,256 @@
  28421. else
  28422. cat conftest.err 1>&5
  28423. fi
  28424. - $rm conftest*
  28425. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  28426. -echo "${ECHO_T}$archive_cmds_need_lc" >&6
  28427. + $RM conftest*
  28428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  28429. +$as_echo "$archive_cmds_need_lc" >&6; }
  28430. ;;
  28431. esac
  28432. fi
  28433. ;;
  28434. esac
  28435. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28436. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  28437. -library_names_spec=
  28438. -libname_spec='lib$name'
  28439. -soname_spec=
  28440. -shrext=".so"
  28441. -postinstall_cmds=
  28442. -postuninstall_cmds=
  28443. -finish_cmds=
  28444. -finish_eval=
  28445. -shlibpath_var=
  28446. -shlibpath_overrides_runpath=unknown
  28447. -version_type=none
  28448. -dynamic_linker="$host_os ld.so"
  28449. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28450. -if test "$GCC" = yes; then
  28451. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28452. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  28453. - # if the path contains ";" then we assume it to be the separator
  28454. - # otherwise default to the standard path separator (i.e. ":") - it is
  28455. - # assumed that no part of a normal pathname contains ";" but that should
  28456. - # okay in the real world where ";" in dirpaths is itself problematic.
  28457. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28458. - else
  28459. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28460. - fi
  28461. -else
  28462. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28463. -fi
  28464. -need_lib_prefix=unknown
  28465. -hardcode_into_libs=no
  28466. -# when you set need_version to no, make sure it does not cause -set_version
  28467. -# flags to be left without arguments
  28468. -need_version=unknown
  28469. -case $host_os in
  28470. -aix3*)
  28471. - version_type=linux
  28472. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28473. - shlibpath_var=LIBPATH
  28474. - # AIX 3 has no versioning support, so we append a major version to the name.
  28475. - soname_spec='${libname}${release}${shared_ext}$major'
  28476. - ;;
  28477. -aix4* | aix5*)
  28478. +
  28479. +
  28480. +
  28481. +
  28482. +
  28483. +
  28484. +
  28485. +
  28486. +
  28487. +
  28488. +
  28489. +
  28490. +
  28491. +
  28492. +
  28493. +
  28494. +
  28495. +
  28496. +
  28497. +
  28498. +
  28499. +
  28500. +
  28501. +
  28502. +
  28503. +
  28504. +
  28505. +
  28506. +
  28507. +
  28508. +
  28509. +
  28510. +
  28511. +
  28512. +
  28513. +
  28514. +
  28515. +
  28516. +
  28517. +
  28518. +
  28519. +
  28520. +
  28521. +
  28522. +
  28523. +
  28524. +
  28525. +
  28526. +
  28527. +
  28528. +
  28529. +
  28530. +
  28531. +
  28532. +
  28533. +
  28534. +
  28535. +
  28536. +
  28537. +
  28538. +
  28539. +
  28540. +
  28541. +
  28542. +
  28543. +
  28544. +
  28545. +
  28546. +
  28547. +
  28548. +
  28549. +
  28550. +
  28551. +
  28552. +
  28553. +
  28554. +
  28555. +
  28556. +
  28557. +
  28558. +
  28559. +
  28560. +
  28561. +
  28562. +
  28563. +
  28564. +
  28565. +
  28566. +
  28567. +
  28568. +
  28569. +
  28570. +
  28571. +
  28572. +
  28573. +
  28574. +
  28575. +
  28576. +
  28577. +
  28578. +
  28579. +
  28580. +
  28581. +
  28582. +
  28583. +
  28584. +
  28585. +
  28586. +
  28587. +
  28588. +
  28589. +
  28590. +
  28591. +
  28592. +
  28593. +
  28594. +
  28595. +
  28596. +
  28597. +
  28598. +
  28599. +
  28600. +
  28601. +
  28602. +
  28603. +
  28604. +
  28605. +
  28606. +
  28607. +
  28608. +
  28609. +
  28610. +
  28611. +
  28612. +
  28613. +
  28614. +
  28615. +
  28616. +
  28617. +
  28618. +
  28619. +
  28620. +
  28621. +
  28622. +
  28623. +
  28624. +
  28625. +
  28626. +
  28627. +
  28628. +
  28629. +
  28630. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  28631. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  28632. +
  28633. +if test "$GCC" = yes; then
  28634. + case $host_os in
  28635. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  28636. + *) lt_awk_arg="/^libraries:/" ;;
  28637. + esac
  28638. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28639. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  28640. + # if the path contains ";" then we assume it to be the separator
  28641. + # otherwise default to the standard path separator (i.e. ":") - it is
  28642. + # assumed that no part of a normal pathname contains ";" but that should
  28643. + # okay in the real world where ";" in dirpaths is itself problematic.
  28644. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  28645. + else
  28646. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28647. + fi
  28648. + # Ok, now we have the path, separated by spaces, we can step through it
  28649. + # and add multilib dir if necessary.
  28650. + lt_tmp_lt_search_path_spec=
  28651. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  28652. + for lt_sys_path in $lt_search_path_spec; do
  28653. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  28654. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  28655. + else
  28656. + test -d "$lt_sys_path" && \
  28657. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  28658. + fi
  28659. + done
  28660. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  28661. +BEGIN {RS=" "; FS="/|\n";} {
  28662. + lt_foo="";
  28663. + lt_count=0;
  28664. + for (lt_i = NF; lt_i > 0; lt_i--) {
  28665. + if ($lt_i != "" && $lt_i != ".") {
  28666. + if ($lt_i == "..") {
  28667. + lt_count++;
  28668. + } else {
  28669. + if (lt_count == 0) {
  28670. + lt_foo="/" $lt_i lt_foo;
  28671. + } else {
  28672. + lt_count--;
  28673. + }
  28674. + }
  28675. + }
  28676. + }
  28677. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  28678. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  28679. +}'`
  28680. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  28681. +else
  28682. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28683. +fi
  28684. +library_names_spec=
  28685. +libname_spec='lib$name'
  28686. +soname_spec=
  28687. +shrext_cmds=".so"
  28688. +postinstall_cmds=
  28689. +postuninstall_cmds=
  28690. +finish_cmds=
  28691. +finish_eval=
  28692. +shlibpath_var=
  28693. +shlibpath_overrides_runpath=unknown
  28694. +version_type=none
  28695. +dynamic_linker="$host_os ld.so"
  28696. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28697. +need_lib_prefix=unknown
  28698. +hardcode_into_libs=no
  28699. +
  28700. +# when you set need_version to no, make sure it does not cause -set_version
  28701. +# flags to be left without arguments
  28702. +need_version=unknown
  28703. +
  28704. +case $host_os in
  28705. +aix3*)
  28706. + version_type=linux
  28707. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28708. + shlibpath_var=LIBPATH
  28709. +
  28710. + # AIX 3 has no versioning support, so we append a major version to the name.
  28711. + soname_spec='${libname}${release}${shared_ext}$major'
  28712. + ;;
  28713. +
  28714. +aix[4-9]*)
  28715. version_type=linux
  28716. need_lib_prefix=no
  28717. need_version=no
  28718. @@ -7594,7 +9515,7 @@
  28719. aix4 | aix4.[01] | aix4.[01].*)
  28720. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28721. echo ' yes '
  28722. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28723. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  28724. :
  28725. else
  28726. can_build_shared=no
  28727. @@ -7620,9 +9541,18 @@
  28728. ;;
  28729. amigaos*)
  28730. - library_names_spec='$libname.ixlibrary $libname.a'
  28731. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28732. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  28733. + case $host_cpu in
  28734. + powerpc)
  28735. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  28736. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  28737. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28738. + ;;
  28739. + m68k)
  28740. + library_names_spec='$libname.ixlibrary $libname.a'
  28741. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28742. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  28743. + ;;
  28744. + esac
  28745. ;;
  28746. beos*)
  28747. @@ -7631,7 +9561,7 @@
  28748. shlibpath_var=LIBRARY_PATH
  28749. ;;
  28750. -bsdi4*)
  28751. +bsdi[45]*)
  28752. version_type=linux
  28753. need_version=no
  28754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28755. @@ -7645,24 +9575,28 @@
  28756. # libtool to hard-code these into programs
  28757. ;;
  28758. -cygwin* | mingw* | pw32*)
  28759. +cygwin* | mingw* | pw32* | cegcc*)
  28760. version_type=windows
  28761. - shrext=".dll"
  28762. + shrext_cmds=".dll"
  28763. need_version=no
  28764. need_lib_prefix=no
  28765. case $GCC,$host_os in
  28766. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28767. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  28768. library_names_spec='$libname.dll.a'
  28769. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28770. postinstall_cmds='base_file=`basename \${file}`~
  28771. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28772. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  28773. dldir=$destdir/`dirname \$dlpath`~
  28774. test -d \$dldir || mkdir -p \$dldir~
  28775. - $install_prog $dir/$dlname \$dldir/$dlname'
  28776. + $install_prog $dir/$dlname \$dldir/$dlname~
  28777. + chmod a+x \$dldir/$dlname~
  28778. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  28779. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  28780. + fi'
  28781. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28782. dlpath=$dir/\$dldll~
  28783. - $rm \$dlpath'
  28784. + $RM \$dlpath'
  28785. shlibpath_overrides_runpath=yes
  28786. case $host_os in
  28787. @@ -7671,25 +9605,25 @@
  28788. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28789. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28790. ;;
  28791. - mingw*)
  28792. + mingw* | cegcc*)
  28793. # MinGW DLLs use traditional 'lib' prefix
  28794. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28795. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28796. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28797. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28798. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  28799. # It is most probably a Windows format PATH printed by
  28800. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28801. # path with ; separators, and with drive letters. We can handle the
  28802. # drive letters (cygwin fileutils understands them), so leave them,
  28803. # especially as we might pass files found there to a mingw objdump,
  28804. # which wouldn't understand a cygwinified path. Ahh.
  28805. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28806. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28807. else
  28808. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28809. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28810. fi
  28811. ;;
  28812. pw32*)
  28813. # pw32 DLLs use 'pw' prefix rather than 'lib'
  28814. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  28815. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28816. ;;
  28817. esac
  28818. ;;
  28819. @@ -7708,17 +9642,13 @@
  28820. version_type=darwin
  28821. need_lib_prefix=no
  28822. need_version=no
  28823. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28824. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28825. soname_spec='${libname}${release}${major}$shared_ext'
  28826. shlibpath_overrides_runpath=yes
  28827. shlibpath_var=DYLD_LIBRARY_PATH
  28828. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  28829. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  28830. - if test "$GCC" = yes; then
  28831. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  28832. - else
  28833. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  28834. - fi
  28835. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  28836. +
  28837. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  28838. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28839. ;;
  28840. @@ -7735,20 +9665,17 @@
  28841. dynamic_linker=no
  28842. ;;
  28843. -kfreebsd*-gnu)
  28844. - version_type=linux
  28845. - need_lib_prefix=no
  28846. - need_version=no
  28847. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28848. - soname_spec='${libname}${release}${shared_ext}$major'
  28849. - shlibpath_var=LD_LIBRARY_PATH
  28850. - shlibpath_overrides_runpath=no
  28851. - hardcode_into_libs=yes
  28852. - dynamic_linker='GNU ld.so'
  28853. - ;;
  28854. -
  28855. -freebsd*)
  28856. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  28857. +freebsd* | dragonfly*)
  28858. + # DragonFly does not have aout. When/if they implement a new
  28859. + # versioning mechanism, adjust this.
  28860. + if test -x /usr/bin/objformat; then
  28861. + objformat=`/usr/bin/objformat`
  28862. + else
  28863. + case $host_os in
  28864. + freebsd[123]*) objformat=aout ;;
  28865. + *) objformat=elf ;;
  28866. + esac
  28867. + fi
  28868. version_type=freebsd-$objformat
  28869. case $version_type in
  28870. freebsd-elf*)
  28871. @@ -7766,14 +9693,19 @@
  28872. freebsd2*)
  28873. shlibpath_overrides_runpath=yes
  28874. ;;
  28875. - freebsd3.01* | freebsdelf3.01*)
  28876. + freebsd3.[01]* | freebsdelf3.[01]*)
  28877. shlibpath_overrides_runpath=yes
  28878. hardcode_into_libs=yes
  28879. ;;
  28880. - *) # from 3.2 on
  28881. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  28882. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  28883. shlibpath_overrides_runpath=no
  28884. hardcode_into_libs=yes
  28885. ;;
  28886. + *) # from 4.6 on, and DragonFly
  28887. + shlibpath_overrides_runpath=yes
  28888. + hardcode_into_libs=yes
  28889. + ;;
  28890. esac
  28891. ;;
  28892. @@ -7793,9 +9725,9 @@
  28893. version_type=sunos
  28894. need_lib_prefix=no
  28895. need_version=no
  28896. - case "$host_cpu" in
  28897. + case $host_cpu in
  28898. ia64*)
  28899. - shrext='.so'
  28900. + shrext_cmds='.so'
  28901. hardcode_into_libs=yes
  28902. dynamic_linker="$host_os dld.so"
  28903. shlibpath_var=LD_LIBRARY_PATH
  28904. @@ -7809,19 +9741,19 @@
  28905. fi
  28906. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28907. ;;
  28908. - hppa*64*)
  28909. - shrext='.sl'
  28910. - hardcode_into_libs=yes
  28911. - dynamic_linker="$host_os dld.sl"
  28912. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28913. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28914. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28915. - soname_spec='${libname}${release}${shared_ext}$major'
  28916. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28917. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28918. - ;;
  28919. - *)
  28920. - shrext='.sl'
  28921. + hppa*64*)
  28922. + shrext_cmds='.sl'
  28923. + hardcode_into_libs=yes
  28924. + dynamic_linker="$host_os dld.sl"
  28925. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28926. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28927. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28928. + soname_spec='${libname}${release}${shared_ext}$major'
  28929. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28930. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28931. + ;;
  28932. + *)
  28933. + shrext_cmds='.sl'
  28934. dynamic_linker="$host_os dld.sl"
  28935. shlibpath_var=SHLIB_PATH
  28936. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  28937. @@ -7833,6 +9765,18 @@
  28938. postinstall_cmds='chmod 555 $lib'
  28939. ;;
  28940. +interix[3-9]*)
  28941. + version_type=linux
  28942. + need_lib_prefix=no
  28943. + need_version=no
  28944. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28945. + soname_spec='${libname}${release}${shared_ext}$major'
  28946. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  28947. + shlibpath_var=LD_LIBRARY_PATH
  28948. + shlibpath_overrides_runpath=no
  28949. + hardcode_into_libs=yes
  28950. + ;;
  28951. +
  28952. irix5* | irix6* | nonstopux*)
  28953. case $host_os in
  28954. nonstopux*) version_type=nonstopux ;;
  28955. @@ -7876,7 +9820,7 @@
  28956. ;;
  28957. # This must be Linux ELF.
  28958. -linux*)
  28959. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  28960. version_type=linux
  28961. need_lib_prefix=no
  28962. need_version=no
  28963. @@ -7885,18 +9829,44 @@
  28964. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  28965. shlibpath_var=LD_LIBRARY_PATH
  28966. shlibpath_overrides_runpath=no
  28967. - # This implies no fast_install, which is unacceptable.
  28968. - # Some rework will be needed to allow for fast_install
  28969. - # before this can be enabled.
  28970. - hardcode_into_libs=yes
  28971. -
  28972. - # Append ld.so.conf contents to the search path
  28973. - if test -f /etc/ld.so.conf; then
  28974. - ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  28975. - sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  28976. - fi
  28977. + # Some binutils ld are patched to set DT_RUNPATH
  28978. + save_LDFLAGS=$LDFLAGS
  28979. + save_libdir=$libdir
  28980. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  28981. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  28982. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  28983. +/* end confdefs.h. */
  28984. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  28985. +int
  28986. +main ()
  28987. +{
  28988. +
  28989. + ;
  28990. + return 0;
  28991. +}
  28992. +_ACEOF
  28993. +if ac_fn_c_try_link "$LINENO"; then :
  28994. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  28995. + shlibpath_overrides_runpath=yes
  28996. +fi
  28997. +fi
  28998. +rm -f core conftest.err conftest.$ac_objext \
  28999. + conftest$ac_exeext conftest.$ac_ext
  29000. + LDFLAGS=$save_LDFLAGS
  29001. + libdir=$save_libdir
  29002. +
  29003. + # This implies no fast_install, which is unacceptable.
  29004. + # Some rework will be needed to allow for fast_install
  29005. + # before this can be enabled.
  29006. + hardcode_into_libs=yes
  29007. +
  29008. + # Append ld.so.conf contents to the search path
  29009. + if test -f /etc/ld.so.conf; then
  29010. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  29011. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  29012. + fi
  29013. +
  29014. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  29015. # powerpc, because MkLinux only supported shared libraries with the
  29016. # GNU dynamic linker. Since this was broken with cross compilers,
  29017. # most powerpc-linux boxes support dynamic linking these days and
  29018. @@ -7905,7 +9875,7 @@
  29019. dynamic_linker='GNU/Linux ld.so'
  29020. ;;
  29021. -knetbsd*-gnu)
  29022. +netbsdelf*-gnu)
  29023. version_type=linux
  29024. need_lib_prefix=no
  29025. need_version=no
  29026. @@ -7914,14 +9884,14 @@
  29027. shlibpath_var=LD_LIBRARY_PATH
  29028. shlibpath_overrides_runpath=no
  29029. hardcode_into_libs=yes
  29030. - dynamic_linker='GNU ld.so'
  29031. + dynamic_linker='NetBSD ld.elf_so'
  29032. ;;
  29033. netbsd*)
  29034. version_type=sunos
  29035. need_lib_prefix=no
  29036. need_version=no
  29037. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  29038. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  29039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29040. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29041. dynamic_linker='NetBSD (a.out) ld.so'
  29042. @@ -7942,24 +9912,31 @@
  29043. shlibpath_overrides_runpath=yes
  29044. ;;
  29045. -nto-qnx*)
  29046. - version_type=linux
  29047. +*nto* | *qnx*)
  29048. + version_type=qnx
  29049. need_lib_prefix=no
  29050. need_version=no
  29051. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29052. soname_spec='${libname}${release}${shared_ext}$major'
  29053. shlibpath_var=LD_LIBRARY_PATH
  29054. - shlibpath_overrides_runpath=yes
  29055. + shlibpath_overrides_runpath=no
  29056. + hardcode_into_libs=yes
  29057. + dynamic_linker='ldqnx.so'
  29058. ;;
  29059. openbsd*)
  29060. version_type=sunos
  29061. + sys_lib_dlsearch_path_spec="/usr/lib"
  29062. need_lib_prefix=no
  29063. - need_version=yes
  29064. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  29065. + case $host_os in
  29066. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  29067. + *) need_version=no ;;
  29068. + esac
  29069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29070. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  29071. shlibpath_var=LD_LIBRARY_PATH
  29072. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29073. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  29074. case $host_os in
  29075. openbsd2.[89] | openbsd2.[89].*)
  29076. shlibpath_overrides_runpath=no
  29077. @@ -7975,7 +9952,7 @@
  29078. os2*)
  29079. libname_spec='$name'
  29080. - shrext=".dll"
  29081. + shrext_cmds=".dll"
  29082. need_lib_prefix=no
  29083. library_names_spec='$libname${shared_ext} $libname.a'
  29084. dynamic_linker='OS/2 ld.exe'
  29085. @@ -7993,11 +9970,8 @@
  29086. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  29087. ;;
  29088. -sco3.2v5*)
  29089. - version_type=osf
  29090. - soname_spec='${libname}${release}${shared_ext}$major'
  29091. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29092. - shlibpath_var=LD_LIBRARY_PATH
  29093. +rdos*)
  29094. + dynamic_linker=no
  29095. ;;
  29096. solaris*)
  29097. @@ -8025,7 +9999,7 @@
  29098. need_version=yes
  29099. ;;
  29100. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  29101. +sysv4 | sysv4.3*)
  29102. version_type=linux
  29103. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29104. soname_spec='${libname}${release}${shared_ext}$major'
  29105. @@ -8034,7 +10008,6 @@
  29106. sni)
  29107. shlibpath_overrides_runpath=no
  29108. need_lib_prefix=no
  29109. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  29110. runpath_var=LD_RUN_PATH
  29111. ;;
  29112. siemens)
  29113. @@ -8058,6 +10031,39 @@
  29114. fi
  29115. ;;
  29116. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  29117. + version_type=freebsd-elf
  29118. + need_lib_prefix=no
  29119. + need_version=no
  29120. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  29121. + soname_spec='${libname}${release}${shared_ext}$major'
  29122. + shlibpath_var=LD_LIBRARY_PATH
  29123. + shlibpath_overrides_runpath=yes
  29124. + hardcode_into_libs=yes
  29125. + if test "$with_gnu_ld" = yes; then
  29126. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  29127. + else
  29128. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  29129. + case $host_os in
  29130. + sco3.2v5*)
  29131. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  29132. + ;;
  29133. + esac
  29134. + fi
  29135. + sys_lib_dlsearch_path_spec='/usr/lib'
  29136. + ;;
  29137. +
  29138. +tpf*)
  29139. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  29140. + version_type=linux
  29141. + need_lib_prefix=no
  29142. + need_version=no
  29143. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29144. + shlibpath_var=LD_LIBRARY_PATH
  29145. + shlibpath_overrides_runpath=no
  29146. + hardcode_into_libs=yes
  29147. + ;;
  29148. +
  29149. uts4*)
  29150. version_type=linux
  29151. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29152. @@ -8069,23 +10075,121 @@
  29153. dynamic_linker=no
  29154. ;;
  29155. esac
  29156. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29157. -echo "${ECHO_T}$dynamic_linker" >&6
  29158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  29159. +$as_echo "$dynamic_linker" >&6; }
  29160. test "$dynamic_linker" = no && can_build_shared=no
  29161. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29162. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  29163. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  29164. +if test "$GCC" = yes; then
  29165. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  29166. +fi
  29167. +
  29168. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  29169. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  29170. +fi
  29171. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  29172. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  29173. +fi
  29174. +
  29175. +
  29176. +
  29177. +
  29178. +
  29179. +
  29180. +
  29181. +
  29182. +
  29183. +
  29184. +
  29185. +
  29186. +
  29187. +
  29188. +
  29189. +
  29190. +
  29191. +
  29192. +
  29193. +
  29194. +
  29195. +
  29196. +
  29197. +
  29198. +
  29199. +
  29200. +
  29201. +
  29202. +
  29203. +
  29204. +
  29205. +
  29206. +
  29207. +
  29208. +
  29209. +
  29210. +
  29211. +
  29212. +
  29213. +
  29214. +
  29215. +
  29216. +
  29217. +
  29218. +
  29219. +
  29220. +
  29221. +
  29222. +
  29223. +
  29224. +
  29225. +
  29226. +
  29227. +
  29228. +
  29229. +
  29230. +
  29231. +
  29232. +
  29233. +
  29234. +
  29235. +
  29236. +
  29237. +
  29238. +
  29239. +
  29240. +
  29241. +
  29242. +
  29243. +
  29244. +
  29245. +
  29246. +
  29247. +
  29248. +
  29249. +
  29250. +
  29251. +
  29252. +
  29253. +
  29254. +
  29255. +
  29256. +
  29257. +
  29258. +
  29259. +
  29260. +
  29261. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  29262. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  29263. hardcode_action=
  29264. -if test -n "$hardcode_libdir_flag_spec" || \
  29265. - test -n "$runpath_var " || \
  29266. - test "X$hardcode_automatic"="Xyes" ; then
  29267. +if test -n "$hardcode_libdir_flag_spec" ||
  29268. + test -n "$runpath_var" ||
  29269. + test "X$hardcode_automatic" = "Xyes" ; then
  29270. - # We can hardcode non-existant directories.
  29271. + # We can hardcode non-existent directories.
  29272. if test "$hardcode_direct" != no &&
  29273. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29274. # have to relink, otherwise we might link with an installed library
  29275. # when we should be linking with a yet-to-be-installed one
  29276. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  29277. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  29278. test "$hardcode_minus_L" != no; then
  29279. # Linking always hardcodes the temporary library directory.
  29280. hardcode_action=relink
  29281. @@ -8098,10 +10202,11 @@
  29282. # directories.
  29283. hardcode_action=unsupported
  29284. fi
  29285. -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  29286. -echo "${ECHO_T}$hardcode_action" >&6
  29287. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  29288. +$as_echo "$hardcode_action" >&6; }
  29289. -if test "$hardcode_action" = relink; then
  29290. +if test "$hardcode_action" = relink ||
  29291. + test "$inherit_rpath" = yes; then
  29292. # Fast installation is not supported
  29293. enable_fast_install=no
  29294. elif test "$shlibpath_overrides_runpath" = yes ||
  29295. @@ -8110,36 +10215,12 @@
  29296. enable_fast_install=needless
  29297. fi
  29298. -striplib=
  29299. -old_striplib=
  29300. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  29301. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  29302. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  29303. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  29304. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  29305. - echo "$as_me:$LINENO: result: yes" >&5
  29306. -echo "${ECHO_T}yes" >&6
  29307. -else
  29308. -# FIXME - insert some real tests, host_os isn't really good enough
  29309. - case $host_os in
  29310. - darwin*)
  29311. - if test -n "$STRIP" ; then
  29312. - striplib="$STRIP -x"
  29313. - echo "$as_me:$LINENO: result: yes" >&5
  29314. -echo "${ECHO_T}yes" >&6
  29315. - else
  29316. - echo "$as_me:$LINENO: result: no" >&5
  29317. -echo "${ECHO_T}no" >&6
  29318. -fi
  29319. - ;;
  29320. - *)
  29321. - echo "$as_me:$LINENO: result: no" >&5
  29322. -echo "${ECHO_T}no" >&6
  29323. - ;;
  29324. - esac
  29325. -fi
  29326. -if test "x$enable_dlopen" != xyes; then
  29327. +
  29328. +
  29329. +
  29330. +
  29331. + if test "x$enable_dlopen" != xyes; then
  29332. enable_dlopen=unknown
  29333. enable_dlopen_self=unknown
  29334. enable_dlopen_self_static=unknown
  29335. @@ -8154,82 +10235,55 @@
  29336. lt_cv_dlopen_self=yes
  29337. ;;
  29338. - mingw* | pw32*)
  29339. + mingw* | pw32* | cegcc*)
  29340. lt_cv_dlopen="LoadLibrary"
  29341. lt_cv_dlopen_libs=
  29342. - ;;
  29343. + ;;
  29344. cygwin*)
  29345. lt_cv_dlopen="dlopen"
  29346. lt_cv_dlopen_libs=
  29347. - ;;
  29348. + ;;
  29349. darwin*)
  29350. # if libdl is installed we need to link against it
  29351. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29352. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  29353. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29354. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29355. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  29356. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  29357. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  29358. + $as_echo_n "(cached) " >&6
  29359. else
  29360. ac_check_lib_save_LIBS=$LIBS
  29361. LIBS="-ldl $LIBS"
  29362. -cat >conftest.$ac_ext <<_ACEOF
  29363. -/* confdefs.h. */
  29364. -_ACEOF
  29365. -cat confdefs.h >>conftest.$ac_ext
  29366. -cat >>conftest.$ac_ext <<_ACEOF
  29367. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29368. /* end confdefs.h. */
  29369. -/* Override any gcc2 internal prototype to avoid an error. */
  29370. +/* Override any GCC internal prototype to avoid an error.
  29371. + Use char because int might match the return type of a GCC
  29372. + builtin and then its argument prototype would still apply. */
  29373. #ifdef __cplusplus
  29374. extern "C"
  29375. #endif
  29376. -/* We use char because int might match the return type of a gcc2
  29377. - builtin and then its argument prototype would still apply. */
  29378. char dlopen ();
  29379. int
  29380. main ()
  29381. {
  29382. -dlopen ();
  29383. +return dlopen ();
  29384. ;
  29385. return 0;
  29386. }
  29387. _ACEOF
  29388. -rm -f conftest.$ac_objext conftest$ac_exeext
  29389. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29390. - (eval $ac_link) 2>conftest.er1
  29391. - ac_status=$?
  29392. - grep -v '^ *+' conftest.er1 >conftest.err
  29393. - rm -f conftest.er1
  29394. - cat conftest.err >&5
  29395. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29396. - (exit $ac_status); } &&
  29397. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29398. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29399. - (eval $ac_try) 2>&5
  29400. - ac_status=$?
  29401. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29402. - (exit $ac_status); }; } &&
  29403. - { ac_try='test -s conftest$ac_exeext'
  29404. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29405. - (eval $ac_try) 2>&5
  29406. - ac_status=$?
  29407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29408. - (exit $ac_status); }; }; then
  29409. +if ac_fn_c_try_link "$LINENO"; then :
  29410. ac_cv_lib_dl_dlopen=yes
  29411. else
  29412. - echo "$as_me: failed program was:" >&5
  29413. -sed 's/^/| /' conftest.$ac_ext >&5
  29414. -
  29415. -ac_cv_lib_dl_dlopen=no
  29416. + ac_cv_lib_dl_dlopen=no
  29417. fi
  29418. -rm -f conftest.err conftest.$ac_objext \
  29419. - conftest$ac_exeext conftest.$ac_ext
  29420. +rm -f core conftest.err conftest.$ac_objext \
  29421. + conftest$ac_exeext conftest.$ac_ext
  29422. LIBS=$ac_check_lib_save_LIBS
  29423. fi
  29424. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29425. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  29426. -if test $ac_cv_lib_dl_dlopen = yes; then
  29427. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  29428. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  29429. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  29430. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29431. else
  29432. @@ -8239,456 +10293,172 @@
  29433. fi
  29434. - ;;
  29435. + ;;
  29436. *)
  29437. - echo "$as_me:$LINENO: checking for shl_load" >&5
  29438. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  29439. -if test "${ac_cv_func_shl_load+set}" = set; then
  29440. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29441. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  29442. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  29443. + lt_cv_dlopen="shl_load"
  29444. else
  29445. - cat >conftest.$ac_ext <<_ACEOF
  29446. -/* confdefs.h. */
  29447. -_ACEOF
  29448. -cat confdefs.h >>conftest.$ac_ext
  29449. -cat >>conftest.$ac_ext <<_ACEOF
  29450. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  29451. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  29452. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  29453. + $as_echo_n "(cached) " >&6
  29454. +else
  29455. + ac_check_lib_save_LIBS=$LIBS
  29456. +LIBS="-ldld $LIBS"
  29457. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29458. /* end confdefs.h. */
  29459. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  29460. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29461. -#define shl_load innocuous_shl_load
  29462. -
  29463. -/* System header to define __stub macros and hopefully few prototypes,
  29464. - which can conflict with char shl_load (); below.
  29465. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29466. - <limits.h> exists even on freestanding compilers. */
  29467. -
  29468. -#ifdef __STDC__
  29469. -# include <limits.h>
  29470. -#else
  29471. -# include <assert.h>
  29472. -#endif
  29473. -#undef shl_load
  29474. -
  29475. -/* Override any gcc2 internal prototype to avoid an error. */
  29476. +/* Override any GCC internal prototype to avoid an error.
  29477. + Use char because int might match the return type of a GCC
  29478. + builtin and then its argument prototype would still apply. */
  29479. #ifdef __cplusplus
  29480. extern "C"
  29481. -{
  29482. #endif
  29483. -/* We use char because int might match the return type of a gcc2
  29484. - builtin and then its argument prototype would still apply. */
  29485. char shl_load ();
  29486. -/* The GNU C library defines this for functions which it implements
  29487. - to always fail with ENOSYS. Some functions are actually named
  29488. - something starting with __ and the normal name is an alias. */
  29489. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  29490. -choke me
  29491. -#else
  29492. -char (*f) () = shl_load;
  29493. -#endif
  29494. -#ifdef __cplusplus
  29495. -}
  29496. -#endif
  29497. -
  29498. int
  29499. main ()
  29500. {
  29501. -return f != shl_load;
  29502. +return shl_load ();
  29503. ;
  29504. return 0;
  29505. }
  29506. _ACEOF
  29507. -rm -f conftest.$ac_objext conftest$ac_exeext
  29508. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29509. - (eval $ac_link) 2>conftest.er1
  29510. - ac_status=$?
  29511. - grep -v '^ *+' conftest.er1 >conftest.err
  29512. - rm -f conftest.er1
  29513. - cat conftest.err >&5
  29514. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29515. - (exit $ac_status); } &&
  29516. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29517. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29518. - (eval $ac_try) 2>&5
  29519. - ac_status=$?
  29520. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29521. - (exit $ac_status); }; } &&
  29522. - { ac_try='test -s conftest$ac_exeext'
  29523. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29524. - (eval $ac_try) 2>&5
  29525. - ac_status=$?
  29526. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29527. - (exit $ac_status); }; }; then
  29528. - ac_cv_func_shl_load=yes
  29529. +if ac_fn_c_try_link "$LINENO"; then :
  29530. + ac_cv_lib_dld_shl_load=yes
  29531. else
  29532. - echo "$as_me: failed program was:" >&5
  29533. -sed 's/^/| /' conftest.$ac_ext >&5
  29534. -
  29535. -ac_cv_func_shl_load=no
  29536. + ac_cv_lib_dld_shl_load=no
  29537. fi
  29538. -rm -f conftest.err conftest.$ac_objext \
  29539. - conftest$ac_exeext conftest.$ac_ext
  29540. +rm -f core conftest.err conftest.$ac_objext \
  29541. + conftest$ac_exeext conftest.$ac_ext
  29542. +LIBS=$ac_check_lib_save_LIBS
  29543. fi
  29544. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  29545. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  29546. -if test $ac_cv_func_shl_load = yes; then
  29547. - lt_cv_dlopen="shl_load"
  29548. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  29549. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  29550. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  29551. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  29552. +else
  29553. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  29554. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  29555. + lt_cv_dlopen="dlopen"
  29556. else
  29557. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  29558. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  29559. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  29560. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29561. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  29562. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  29563. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  29564. + $as_echo_n "(cached) " >&6
  29565. else
  29566. ac_check_lib_save_LIBS=$LIBS
  29567. -LIBS="-ldld $LIBS"
  29568. -cat >conftest.$ac_ext <<_ACEOF
  29569. -/* confdefs.h. */
  29570. -_ACEOF
  29571. -cat confdefs.h >>conftest.$ac_ext
  29572. -cat >>conftest.$ac_ext <<_ACEOF
  29573. +LIBS="-ldl $LIBS"
  29574. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29575. /* end confdefs.h. */
  29576. -/* Override any gcc2 internal prototype to avoid an error. */
  29577. +/* Override any GCC internal prototype to avoid an error.
  29578. + Use char because int might match the return type of a GCC
  29579. + builtin and then its argument prototype would still apply. */
  29580. #ifdef __cplusplus
  29581. extern "C"
  29582. #endif
  29583. -/* We use char because int might match the return type of a gcc2
  29584. - builtin and then its argument prototype would still apply. */
  29585. -char shl_load ();
  29586. +char dlopen ();
  29587. int
  29588. main ()
  29589. {
  29590. -shl_load ();
  29591. +return dlopen ();
  29592. ;
  29593. return 0;
  29594. }
  29595. _ACEOF
  29596. -rm -f conftest.$ac_objext conftest$ac_exeext
  29597. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29598. - (eval $ac_link) 2>conftest.er1
  29599. - ac_status=$?
  29600. - grep -v '^ *+' conftest.er1 >conftest.err
  29601. - rm -f conftest.er1
  29602. - cat conftest.err >&5
  29603. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29604. - (exit $ac_status); } &&
  29605. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29606. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29607. - (eval $ac_try) 2>&5
  29608. - ac_status=$?
  29609. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29610. - (exit $ac_status); }; } &&
  29611. - { ac_try='test -s conftest$ac_exeext'
  29612. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29613. - (eval $ac_try) 2>&5
  29614. - ac_status=$?
  29615. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29616. - (exit $ac_status); }; }; then
  29617. - ac_cv_lib_dld_shl_load=yes
  29618. +if ac_fn_c_try_link "$LINENO"; then :
  29619. + ac_cv_lib_dl_dlopen=yes
  29620. else
  29621. - echo "$as_me: failed program was:" >&5
  29622. -sed 's/^/| /' conftest.$ac_ext >&5
  29623. -
  29624. -ac_cv_lib_dld_shl_load=no
  29625. + ac_cv_lib_dl_dlopen=no
  29626. fi
  29627. -rm -f conftest.err conftest.$ac_objext \
  29628. - conftest$ac_exeext conftest.$ac_ext
  29629. +rm -f core conftest.err conftest.$ac_objext \
  29630. + conftest$ac_exeext conftest.$ac_ext
  29631. LIBS=$ac_check_lib_save_LIBS
  29632. fi
  29633. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  29634. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  29635. -if test $ac_cv_lib_dld_shl_load = yes; then
  29636. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  29637. -else
  29638. - echo "$as_me:$LINENO: checking for dlopen" >&5
  29639. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  29640. -if test "${ac_cv_func_dlopen+set}" = set; then
  29641. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29642. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  29643. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  29644. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  29645. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29646. else
  29647. - cat >conftest.$ac_ext <<_ACEOF
  29648. -/* confdefs.h. */
  29649. -_ACEOF
  29650. -cat confdefs.h >>conftest.$ac_ext
  29651. -cat >>conftest.$ac_ext <<_ACEOF
  29652. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  29653. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  29654. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  29655. + $as_echo_n "(cached) " >&6
  29656. +else
  29657. + ac_check_lib_save_LIBS=$LIBS
  29658. +LIBS="-lsvld $LIBS"
  29659. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29660. /* end confdefs.h. */
  29661. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  29662. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29663. -#define dlopen innocuous_dlopen
  29664. -
  29665. -/* System header to define __stub macros and hopefully few prototypes,
  29666. - which can conflict with char dlopen (); below.
  29667. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29668. - <limits.h> exists even on freestanding compilers. */
  29669. -
  29670. -#ifdef __STDC__
  29671. -# include <limits.h>
  29672. -#else
  29673. -# include <assert.h>
  29674. -#endif
  29675. -#undef dlopen
  29676. -
  29677. -/* Override any gcc2 internal prototype to avoid an error. */
  29678. +/* Override any GCC internal prototype to avoid an error.
  29679. + Use char because int might match the return type of a GCC
  29680. + builtin and then its argument prototype would still apply. */
  29681. #ifdef __cplusplus
  29682. extern "C"
  29683. -{
  29684. #endif
  29685. -/* We use char because int might match the return type of a gcc2
  29686. - builtin and then its argument prototype would still apply. */
  29687. -char dlopen ();
  29688. -/* The GNU C library defines this for functions which it implements
  29689. - to always fail with ENOSYS. Some functions are actually named
  29690. - something starting with __ and the normal name is an alias. */
  29691. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  29692. -choke me
  29693. -#else
  29694. -char (*f) () = dlopen;
  29695. -#endif
  29696. -#ifdef __cplusplus
  29697. -}
  29698. -#endif
  29699. -
  29700. -int
  29701. -main ()
  29702. -{
  29703. -return f != dlopen;
  29704. - ;
  29705. - return 0;
  29706. -}
  29707. -_ACEOF
  29708. -rm -f conftest.$ac_objext conftest$ac_exeext
  29709. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29710. - (eval $ac_link) 2>conftest.er1
  29711. - ac_status=$?
  29712. - grep -v '^ *+' conftest.er1 >conftest.err
  29713. - rm -f conftest.er1
  29714. - cat conftest.err >&5
  29715. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29716. - (exit $ac_status); } &&
  29717. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29718. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29719. - (eval $ac_try) 2>&5
  29720. - ac_status=$?
  29721. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29722. - (exit $ac_status); }; } &&
  29723. - { ac_try='test -s conftest$ac_exeext'
  29724. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29725. - (eval $ac_try) 2>&5
  29726. - ac_status=$?
  29727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29728. - (exit $ac_status); }; }; then
  29729. - ac_cv_func_dlopen=yes
  29730. -else
  29731. - echo "$as_me: failed program was:" >&5
  29732. -sed 's/^/| /' conftest.$ac_ext >&5
  29733. -
  29734. -ac_cv_func_dlopen=no
  29735. -fi
  29736. -rm -f conftest.err conftest.$ac_objext \
  29737. - conftest$ac_exeext conftest.$ac_ext
  29738. -fi
  29739. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  29740. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  29741. -if test $ac_cv_func_dlopen = yes; then
  29742. - lt_cv_dlopen="dlopen"
  29743. -else
  29744. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29745. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  29746. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29747. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29748. -else
  29749. - ac_check_lib_save_LIBS=$LIBS
  29750. -LIBS="-ldl $LIBS"
  29751. -cat >conftest.$ac_ext <<_ACEOF
  29752. -/* confdefs.h. */
  29753. -_ACEOF
  29754. -cat confdefs.h >>conftest.$ac_ext
  29755. -cat >>conftest.$ac_ext <<_ACEOF
  29756. -/* end confdefs.h. */
  29757. -
  29758. -/* Override any gcc2 internal prototype to avoid an error. */
  29759. -#ifdef __cplusplus
  29760. -extern "C"
  29761. -#endif
  29762. -/* We use char because int might match the return type of a gcc2
  29763. - builtin and then its argument prototype would still apply. */
  29764. -char dlopen ();
  29765. -int
  29766. -main ()
  29767. -{
  29768. -dlopen ();
  29769. - ;
  29770. - return 0;
  29771. -}
  29772. -_ACEOF
  29773. -rm -f conftest.$ac_objext conftest$ac_exeext
  29774. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29775. - (eval $ac_link) 2>conftest.er1
  29776. - ac_status=$?
  29777. - grep -v '^ *+' conftest.er1 >conftest.err
  29778. - rm -f conftest.er1
  29779. - cat conftest.err >&5
  29780. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29781. - (exit $ac_status); } &&
  29782. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29783. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29784. - (eval $ac_try) 2>&5
  29785. - ac_status=$?
  29786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29787. - (exit $ac_status); }; } &&
  29788. - { ac_try='test -s conftest$ac_exeext'
  29789. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29790. - (eval $ac_try) 2>&5
  29791. - ac_status=$?
  29792. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29793. - (exit $ac_status); }; }; then
  29794. - ac_cv_lib_dl_dlopen=yes
  29795. -else
  29796. - echo "$as_me: failed program was:" >&5
  29797. -sed 's/^/| /' conftest.$ac_ext >&5
  29798. -
  29799. -ac_cv_lib_dl_dlopen=no
  29800. -fi
  29801. -rm -f conftest.err conftest.$ac_objext \
  29802. - conftest$ac_exeext conftest.$ac_ext
  29803. -LIBS=$ac_check_lib_save_LIBS
  29804. -fi
  29805. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29806. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  29807. -if test $ac_cv_lib_dl_dlopen = yes; then
  29808. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29809. -else
  29810. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  29811. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  29812. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  29813. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29814. -else
  29815. - ac_check_lib_save_LIBS=$LIBS
  29816. -LIBS="-lsvld $LIBS"
  29817. -cat >conftest.$ac_ext <<_ACEOF
  29818. -/* confdefs.h. */
  29819. -_ACEOF
  29820. -cat confdefs.h >>conftest.$ac_ext
  29821. -cat >>conftest.$ac_ext <<_ACEOF
  29822. -/* end confdefs.h. */
  29823. -
  29824. -/* Override any gcc2 internal prototype to avoid an error. */
  29825. -#ifdef __cplusplus
  29826. -extern "C"
  29827. -#endif
  29828. -/* We use char because int might match the return type of a gcc2
  29829. - builtin and then its argument prototype would still apply. */
  29830. char dlopen ();
  29831. int
  29832. main ()
  29833. {
  29834. -dlopen ();
  29835. +return dlopen ();
  29836. ;
  29837. return 0;
  29838. }
  29839. _ACEOF
  29840. -rm -f conftest.$ac_objext conftest$ac_exeext
  29841. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29842. - (eval $ac_link) 2>conftest.er1
  29843. - ac_status=$?
  29844. - grep -v '^ *+' conftest.er1 >conftest.err
  29845. - rm -f conftest.er1
  29846. - cat conftest.err >&5
  29847. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29848. - (exit $ac_status); } &&
  29849. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29850. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29851. - (eval $ac_try) 2>&5
  29852. - ac_status=$?
  29853. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29854. - (exit $ac_status); }; } &&
  29855. - { ac_try='test -s conftest$ac_exeext'
  29856. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29857. - (eval $ac_try) 2>&5
  29858. - ac_status=$?
  29859. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29860. - (exit $ac_status); }; }; then
  29861. +if ac_fn_c_try_link "$LINENO"; then :
  29862. ac_cv_lib_svld_dlopen=yes
  29863. else
  29864. - echo "$as_me: failed program was:" >&5
  29865. -sed 's/^/| /' conftest.$ac_ext >&5
  29866. -
  29867. -ac_cv_lib_svld_dlopen=no
  29868. + ac_cv_lib_svld_dlopen=no
  29869. fi
  29870. -rm -f conftest.err conftest.$ac_objext \
  29871. - conftest$ac_exeext conftest.$ac_ext
  29872. +rm -f core conftest.err conftest.$ac_objext \
  29873. + conftest$ac_exeext conftest.$ac_ext
  29874. LIBS=$ac_check_lib_save_LIBS
  29875. fi
  29876. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  29877. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  29878. -if test $ac_cv_lib_svld_dlopen = yes; then
  29879. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  29880. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  29881. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  29882. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  29883. else
  29884. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  29885. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  29886. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  29887. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29888. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  29889. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  29890. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  29891. + $as_echo_n "(cached) " >&6
  29892. else
  29893. ac_check_lib_save_LIBS=$LIBS
  29894. LIBS="-ldld $LIBS"
  29895. -cat >conftest.$ac_ext <<_ACEOF
  29896. -/* confdefs.h. */
  29897. -_ACEOF
  29898. -cat confdefs.h >>conftest.$ac_ext
  29899. -cat >>conftest.$ac_ext <<_ACEOF
  29900. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  29901. /* end confdefs.h. */
  29902. -/* Override any gcc2 internal prototype to avoid an error. */
  29903. +/* Override any GCC internal prototype to avoid an error.
  29904. + Use char because int might match the return type of a GCC
  29905. + builtin and then its argument prototype would still apply. */
  29906. #ifdef __cplusplus
  29907. extern "C"
  29908. #endif
  29909. -/* We use char because int might match the return type of a gcc2
  29910. - builtin and then its argument prototype would still apply. */
  29911. char dld_link ();
  29912. int
  29913. main ()
  29914. {
  29915. -dld_link ();
  29916. +return dld_link ();
  29917. ;
  29918. return 0;
  29919. }
  29920. _ACEOF
  29921. -rm -f conftest.$ac_objext conftest$ac_exeext
  29922. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29923. - (eval $ac_link) 2>conftest.er1
  29924. - ac_status=$?
  29925. - grep -v '^ *+' conftest.er1 >conftest.err
  29926. - rm -f conftest.er1
  29927. - cat conftest.err >&5
  29928. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29929. - (exit $ac_status); } &&
  29930. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  29931. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29932. - (eval $ac_try) 2>&5
  29933. - ac_status=$?
  29934. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29935. - (exit $ac_status); }; } &&
  29936. - { ac_try='test -s conftest$ac_exeext'
  29937. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29938. - (eval $ac_try) 2>&5
  29939. - ac_status=$?
  29940. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29941. - (exit $ac_status); }; }; then
  29942. +if ac_fn_c_try_link "$LINENO"; then :
  29943. ac_cv_lib_dld_dld_link=yes
  29944. else
  29945. - echo "$as_me: failed program was:" >&5
  29946. -sed 's/^/| /' conftest.$ac_ext >&5
  29947. -
  29948. -ac_cv_lib_dld_dld_link=no
  29949. + ac_cv_lib_dld_dld_link=no
  29950. fi
  29951. -rm -f conftest.err conftest.$ac_objext \
  29952. - conftest$ac_exeext conftest.$ac_ext
  29953. +rm -f core conftest.err conftest.$ac_objext \
  29954. + conftest$ac_exeext conftest.$ac_ext
  29955. LIBS=$ac_check_lib_save_LIBS
  29956. fi
  29957. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  29958. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  29959. -if test $ac_cv_lib_dld_dld_link = yes; then
  29960. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  29961. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  29962. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  29963. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  29964. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  29965. fi
  29966. @@ -8721,23 +10491,23 @@
  29967. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  29968. save_LDFLAGS="$LDFLAGS"
  29969. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  29970. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  29971. save_LIBS="$LIBS"
  29972. LIBS="$lt_cv_dlopen_libs $LIBS"
  29973. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  29974. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  29975. -if test "${lt_cv_dlopen_self+set}" = set; then
  29976. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29977. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  29978. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  29979. +if test "${lt_cv_dlopen_self+set}" = set; then :
  29980. + $as_echo_n "(cached) " >&6
  29981. else
  29982. if test "$cross_compiling" = yes; then :
  29983. lt_cv_dlopen_self=cross
  29984. else
  29985. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29986. lt_status=$lt_dlunknown
  29987. - cat > conftest.$ac_ext <<EOF
  29988. -#line 8740 "configure"
  29989. + cat > conftest.$ac_ext <<_LT_EOF
  29990. +#line 10510 "configure"
  29991. #include "confdefs.h"
  29992. #if HAVE_DLFCN_H
  29993. @@ -8778,10 +10548,6 @@
  29994. # endif
  29995. #endif
  29996. -#ifdef __cplusplus
  29997. -extern "C" void exit (int);
  29998. -#endif
  29999. -
  30000. void fnord() { int i=42;}
  30001. int main ()
  30002. {
  30003. @@ -8794,21 +10560,23 @@
  30004. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  30005. /* dlclose (self); */
  30006. }
  30007. + else
  30008. + puts (dlerror ());
  30009. - exit (status);
  30010. + return status;
  30011. }
  30012. -EOF
  30013. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30014. +_LT_EOF
  30015. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  30016. (eval $ac_link) 2>&5
  30017. ac_status=$?
  30018. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30019. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  30020. - (./conftest; exit; ) 2>/dev/null
  30021. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30022. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  30023. + (./conftest; exit; ) >&5 2>/dev/null
  30024. lt_status=$?
  30025. case x$lt_status in
  30026. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  30027. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  30028. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  30029. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  30030. esac
  30031. else :
  30032. # compilation failed
  30033. @@ -8819,23 +10587,23 @@
  30034. fi
  30035. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  30036. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  30037. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  30038. +$as_echo "$lt_cv_dlopen_self" >&6; }
  30039. if test "x$lt_cv_dlopen_self" = xyes; then
  30040. - LDFLAGS="$LDFLAGS $link_static_flag"
  30041. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  30042. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  30043. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  30044. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30045. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  30046. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  30047. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  30048. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  30049. + $as_echo_n "(cached) " >&6
  30050. else
  30051. if test "$cross_compiling" = yes; then :
  30052. lt_cv_dlopen_self_static=cross
  30053. else
  30054. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  30055. lt_status=$lt_dlunknown
  30056. - cat > conftest.$ac_ext <<EOF
  30057. -#line 8838 "configure"
  30058. + cat > conftest.$ac_ext <<_LT_EOF
  30059. +#line 10606 "configure"
  30060. #include "confdefs.h"
  30061. #if HAVE_DLFCN_H
  30062. @@ -8876,10 +10644,6 @@
  30063. # endif
  30064. #endif
  30065. -#ifdef __cplusplus
  30066. -extern "C" void exit (int);
  30067. -#endif
  30068. -
  30069. void fnord() { int i=42;}
  30070. int main ()
  30071. {
  30072. @@ -8892,21 +10656,23 @@
  30073. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  30074. /* dlclose (self); */
  30075. }
  30076. + else
  30077. + puts (dlerror ());
  30078. - exit (status);
  30079. + return status;
  30080. }
  30081. -EOF
  30082. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  30083. +_LT_EOF
  30084. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  30085. (eval $ac_link) 2>&5
  30086. ac_status=$?
  30087. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30088. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  30089. - (./conftest; exit; ) 2>/dev/null
  30090. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  30091. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  30092. + (./conftest; exit; ) >&5 2>/dev/null
  30093. lt_status=$?
  30094. case x$lt_status in
  30095. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  30096. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  30097. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  30098. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  30099. esac
  30100. else :
  30101. # compilation failed
  30102. @@ -8917,8 +10683,8 @@
  30103. fi
  30104. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  30105. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  30106. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  30107. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  30108. fi
  30109. CPPFLAGS="$save_CPPFLAGS"
  30110. @@ -8939,14149 +10705,3530 @@
  30111. fi
  30112. -# Report which librarie types wil actually be built
  30113. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30114. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  30115. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30116. -echo "${ECHO_T}$can_build_shared" >&6
  30117. -
  30118. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30119. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  30120. -test "$can_build_shared" = "no" && enable_shared=no
  30121. -
  30122. -# On AIX, shared libraries and static libraries use the same namespace, and
  30123. -# are all built from PIC.
  30124. -case "$host_os" in
  30125. -aix3*)
  30126. - test "$enable_shared" = yes && enable_static=no
  30127. - if test -n "$RANLIB"; then
  30128. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30129. - postinstall_cmds='$RANLIB $lib'
  30130. - fi
  30131. - ;;
  30132. -aix4*)
  30133. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30134. - test "$enable_shared" = yes && enable_static=no
  30135. - fi
  30136. - ;;
  30137. - darwin* | rhapsody*)
  30138. - if test "$GCC" = yes; then
  30139. - archive_cmds_need_lc=no
  30140. - case "$host_os" in
  30141. - rhapsody* | darwin1.[012])
  30142. - allow_undefined_flag='-undefined suppress'
  30143. - ;;
  30144. - *) # Darwin 1.3 on
  30145. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  30146. - allow_undefined_flag='-flat_namespace -undefined suppress'
  30147. - else
  30148. - case ${MACOSX_DEPLOYMENT_TARGET} in
  30149. - 10.[012])
  30150. - allow_undefined_flag='-flat_namespace -undefined suppress'
  30151. - ;;
  30152. - 10.*)
  30153. - allow_undefined_flag='-undefined dynamic_lookup'
  30154. - ;;
  30155. - esac
  30156. - fi
  30157. - ;;
  30158. - esac
  30159. - output_verbose_link_cmd='echo'
  30160. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  30161. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  30162. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  30163. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30164. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  30165. - hardcode_direct=no
  30166. - hardcode_automatic=yes
  30167. - hardcode_shlibpath_var=unsupported
  30168. - whole_archive_flag_spec='-all_load $convenience'
  30169. - link_all_deplibs=yes
  30170. - else
  30171. - ld_shlibs=no
  30172. - fi
  30173. - ;;
  30174. -esac
  30175. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  30176. -echo "${ECHO_T}$enable_shared" >&6
  30177. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30178. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  30179. -# Make sure either enable_shared or enable_static is yes.
  30180. -test "$enable_shared" = yes || enable_static=yes
  30181. -echo "$as_me:$LINENO: result: $enable_static" >&5
  30182. -echo "${ECHO_T}$enable_static" >&6
  30183. -
  30184. -# The else clause should only fire when bootstrapping the
  30185. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  30186. -# with your package, and you will get complaints that there are
  30187. -# no rules to generate ltmain.sh.
  30188. -if test -f "$ltmain"; then
  30189. - # See if we are running on zsh, and set the options which allow our commands through
  30190. - # without removal of \ escapes.
  30191. - if test -n "${ZSH_VERSION+set}" ; then
  30192. - setopt NO_GLOB_SUBST
  30193. - fi
  30194. - # Now quote all the things that may contain metacharacters while being
  30195. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  30196. - # variables and quote the copies for generation of the libtool script.
  30197. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  30198. - SED SHELL STRIP \
  30199. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  30200. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  30201. - deplibs_check_method reload_flag reload_cmds need_locks \
  30202. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  30203. - lt_cv_sys_global_symbol_to_c_name_address \
  30204. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  30205. - old_postinstall_cmds old_postuninstall_cmds \
  30206. - compiler \
  30207. - CC \
  30208. - LD \
  30209. - lt_prog_compiler_wl \
  30210. - lt_prog_compiler_pic \
  30211. - lt_prog_compiler_static \
  30212. - lt_prog_compiler_no_builtin_flag \
  30213. - export_dynamic_flag_spec \
  30214. - thread_safe_flag_spec \
  30215. - whole_archive_flag_spec \
  30216. - enable_shared_with_static_runtimes \
  30217. - old_archive_cmds \
  30218. - old_archive_from_new_cmds \
  30219. - predep_objects \
  30220. - postdep_objects \
  30221. - predeps \
  30222. - postdeps \
  30223. - compiler_lib_search_path \
  30224. - archive_cmds \
  30225. - archive_expsym_cmds \
  30226. - postinstall_cmds \
  30227. - postuninstall_cmds \
  30228. - old_archive_from_expsyms_cmds \
  30229. - allow_undefined_flag \
  30230. - no_undefined_flag \
  30231. - export_symbols_cmds \
  30232. - hardcode_libdir_flag_spec \
  30233. - hardcode_libdir_flag_spec_ld \
  30234. - hardcode_libdir_separator \
  30235. - hardcode_automatic \
  30236. - module_cmds \
  30237. - module_expsym_cmds \
  30238. - lt_cv_prog_compiler_c_o \
  30239. - exclude_expsyms \
  30240. - include_expsyms; do
  30241. -
  30242. - case $var in
  30243. - old_archive_cmds | \
  30244. - old_archive_from_new_cmds | \
  30245. - archive_cmds | \
  30246. - archive_expsym_cmds | \
  30247. - module_cmds | \
  30248. - module_expsym_cmds | \
  30249. - old_archive_from_expsyms_cmds | \
  30250. - export_symbols_cmds | \
  30251. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  30252. - postinstall_cmds | postuninstall_cmds | \
  30253. - old_postinstall_cmds | old_postuninstall_cmds | \
  30254. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  30255. - # Double-quote double-evaled strings.
  30256. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30257. - ;;
  30258. - *)
  30259. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30260. - ;;
  30261. - esac
  30262. - done
  30263. - case $lt_echo in
  30264. - *'\$0 --fallback-echo"')
  30265. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30266. - ;;
  30267. - esac
  30268. -cfgfile="${ofile}T"
  30269. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  30270. - $rm -f "$cfgfile"
  30271. - { echo "$as_me:$LINENO: creating $ofile" >&5
  30272. -echo "$as_me: creating $ofile" >&6;}
  30273. - cat <<__EOF__ >> "$cfgfile"
  30274. -#! $SHELL
  30275. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  30276. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  30277. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  30278. -#
  30279. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  30280. -# Free Software Foundation, Inc.
  30281. -#
  30282. -# This file is part of GNU Libtool:
  30283. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  30284. -#
  30285. -# This program is free software; you can redistribute it and/or modify
  30286. -# it under the terms of the GNU General Public License as published by
  30287. -# the Free Software Foundation; either version 2 of the License, or
  30288. -# (at your option) any later version.
  30289. -#
  30290. -# This program is distributed in the hope that it will be useful, but
  30291. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  30292. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  30293. -# General Public License for more details.
  30294. -#
  30295. -# You should have received a copy of the GNU General Public License
  30296. -# along with this program; if not, write to the Free Software
  30297. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  30298. -#
  30299. -# As a special exception to the GNU General Public License, if you
  30300. -# distribute this file as part of a program that contains a
  30301. -# configuration script generated by Autoconf, you may include it under
  30302. -# the same distribution terms that you use for the rest of that program.
  30303. -# A sed program that does not truncate output.
  30304. -SED=$lt_SED
  30305. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  30306. -Xsed="$SED -e s/^X//"
  30307. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  30308. -# if CDPATH is set.
  30309. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  30310. -# The names of the tagged configurations supported by this script.
  30311. -available_tags=
  30312. -# ### BEGIN LIBTOOL CONFIG
  30313. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30314. -# Shell to use when invoking shell scripts.
  30315. -SHELL=$lt_SHELL
  30316. -# Whether or not to build shared libraries.
  30317. -build_libtool_libs=$enable_shared
  30318. -# Whether or not to build static libraries.
  30319. -build_old_libs=$enable_static
  30320. +striplib=
  30321. +old_striplib=
  30322. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  30323. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  30324. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  30325. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  30326. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  30327. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30328. +$as_echo "yes" >&6; }
  30329. +else
  30330. +# FIXME - insert some real tests, host_os isn't really good enough
  30331. + case $host_os in
  30332. + darwin*)
  30333. + if test -n "$STRIP" ; then
  30334. + striplib="$STRIP -x"
  30335. + old_striplib="$STRIP -S"
  30336. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  30337. +$as_echo "yes" >&6; }
  30338. + else
  30339. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30340. +$as_echo "no" >&6; }
  30341. + fi
  30342. + ;;
  30343. + *)
  30344. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  30345. +$as_echo "no" >&6; }
  30346. + ;;
  30347. + esac
  30348. +fi
  30349. -# Whether or not to add -lc for building shared libraries.
  30350. -build_libtool_need_lc=$archive_cmds_need_lc
  30351. -# Whether or not to disallow shared libs when runtime libs are static
  30352. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  30353. -# Whether or not to optimize for fast installation.
  30354. -fast_install=$enable_fast_install
  30355. -# The host system.
  30356. -host_alias=$host_alias
  30357. -host=$host
  30358. -# An echo program that does not interpret backslashes.
  30359. -echo=$lt_echo
  30360. -# The archiver.
  30361. -AR=$lt_AR
  30362. -AR_FLAGS=$lt_AR_FLAGS
  30363. -# A C compiler.
  30364. -LTCC=$lt_LTCC
  30365. -# A language-specific compiler.
  30366. -CC=$lt_compiler
  30367. -# Is the compiler the GNU C compiler?
  30368. -with_gcc=$GCC
  30369. -# An ERE matcher.
  30370. -EGREP=$lt_EGREP
  30371. -# The linker used to build libraries.
  30372. -LD=$lt_LD
  30373. -# Whether we need hard or soft links.
  30374. -LN_S=$lt_LN_S
  30375. + # Report which library types will actually be built
  30376. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  30377. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  30378. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  30379. +$as_echo "$can_build_shared" >&6; }
  30380. -# A BSD-compatible nm program.
  30381. -NM=$lt_NM
  30382. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  30383. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  30384. + test "$can_build_shared" = "no" && enable_shared=no
  30385. -# A symbol stripping program
  30386. -STRIP=$lt_STRIP
  30387. + # On AIX, shared libraries and static libraries use the same namespace, and
  30388. + # are all built from PIC.
  30389. + case $host_os in
  30390. + aix3*)
  30391. + test "$enable_shared" = yes && enable_static=no
  30392. + if test -n "$RANLIB"; then
  30393. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30394. + postinstall_cmds='$RANLIB $lib'
  30395. + fi
  30396. + ;;
  30397. -# Used to examine libraries when file_magic_cmd begins "file"
  30398. -MAGIC_CMD=$MAGIC_CMD
  30399. + aix[4-9]*)
  30400. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  30401. + test "$enable_shared" = yes && enable_static=no
  30402. + fi
  30403. + ;;
  30404. + esac
  30405. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  30406. +$as_echo "$enable_shared" >&6; }
  30407. -# Used on cygwin: DLL creation program.
  30408. -DLLTOOL="$DLLTOOL"
  30409. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  30410. +$as_echo_n "checking whether to build static libraries... " >&6; }
  30411. + # Make sure either enable_shared or enable_static is yes.
  30412. + test "$enable_shared" = yes || enable_static=yes
  30413. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  30414. +$as_echo "$enable_static" >&6; }
  30415. -# Used on cygwin: object dumper.
  30416. -OBJDUMP="$OBJDUMP"
  30417. -# Used on cygwin: assembler.
  30418. -AS="$AS"
  30419. -# The name of the directory that contains temporary libtool files.
  30420. -objdir=$objdir
  30421. -# How to create reloadable object files.
  30422. -reload_flag=$lt_reload_flag
  30423. -reload_cmds=$lt_reload_cmds
  30424. +fi
  30425. +ac_ext=c
  30426. +ac_cpp='$CPP $CPPFLAGS'
  30427. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30428. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30429. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30430. -# How to pass a linker flag through the compiler.
  30431. -wl=$lt_lt_prog_compiler_wl
  30432. +CC="$lt_save_CC"
  30433. -# Object file suffix (normally "o").
  30434. -objext="$ac_objext"
  30435. -# Old archive suffix (normally "a").
  30436. -libext="$libext"
  30437. -# Shared library suffix (normally ".so").
  30438. -shrext='$shrext'
  30439. -# Executable file suffix (normally "").
  30440. -exeext="$exeext"
  30441. -# Additional compiler flags for building library objects.
  30442. -pic_flag=$lt_lt_prog_compiler_pic
  30443. -pic_mode=$pic_mode
  30444. -# What is the maximum length of a command?
  30445. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30446. -# Does compiler simultaneously support -c and -o options?
  30447. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  30448. -# Must we lock files when doing compilation ?
  30449. -need_locks=$lt_need_locks
  30450. -# Do we need the lib prefix for modules?
  30451. -need_lib_prefix=$need_lib_prefix
  30452. -# Do we need a version for libraries?
  30453. -need_version=$need_version
  30454. -# Whether dlopen is supported.
  30455. -dlopen_support=$enable_dlopen
  30456. -# Whether dlopen of programs is supported.
  30457. -dlopen_self=$enable_dlopen_self
  30458. -# Whether dlopen of statically linked programs is supported.
  30459. -dlopen_self_static=$enable_dlopen_self_static
  30460. + ac_config_commands="$ac_config_commands libtool"
  30461. -# Compiler flag to prevent dynamic linking.
  30462. -link_static_flag=$lt_lt_prog_compiler_static
  30463. -# Compiler flag to turn off builtin functions.
  30464. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  30465. -# Compiler flag to allow reflexive dlopens.
  30466. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  30467. -# Compiler flag to generate shared objects directly from archives.
  30468. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  30469. +# Only expand once:
  30470. -# Compiler flag to generate thread-safe objects.
  30471. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  30472. -# Library versioning type.
  30473. -version_type=$version_type
  30474. -# Format of library name prefix.
  30475. -libname_spec=$lt_libname_spec
  30476. -# List of archive names. First name is the real one, the rest are links.
  30477. -# The last name is the one that the linker finds with -lNAME.
  30478. -library_names_spec=$lt_library_names_spec
  30479. -# The coded name of the library, if different from the real name.
  30480. -soname_spec=$lt_soname_spec
  30481. -# Commands used to build and install an old-style archive.
  30482. -RANLIB=$lt_RANLIB
  30483. -old_archive_cmds=$lt_old_archive_cmds
  30484. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30485. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30486. +arch=""
  30487. +debug=""
  30488. +optimize=""
  30489. +profile=""
  30490. -# Create an old-style archive from a shared archive.
  30491. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  30492. +set -- $CFLAGS
  30493. +CFLAGS=""
  30494. -# Create a temporary old-style archive to link instead of a shared archive.
  30495. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  30496. +if test "$GCC" = yes
  30497. +then
  30498. + CFLAGS="-Wall"
  30499. +fi
  30500. -# Commands used to build and install a shared archive.
  30501. -archive_cmds=$lt_archive_cmds
  30502. -archive_expsym_cmds=$lt_archive_expsym_cmds
  30503. -postinstall_cmds=$lt_postinstall_cmds
  30504. -postuninstall_cmds=$lt_postuninstall_cmds
  30505. +while test $# -gt 0
  30506. +do
  30507. + case "$1" in
  30508. + -Wall)
  30509. + if test "$GCC" = yes
  30510. + then
  30511. + :
  30512. + else
  30513. + CFLAGS="$CFLAGS $1"
  30514. + fi
  30515. + shift
  30516. + ;;
  30517. + -g)
  30518. + debug="-g"
  30519. + shift
  30520. + ;;
  30521. + -mno-cygwin)
  30522. + shift
  30523. + ;;
  30524. + -m*)
  30525. + arch="$arch $1"
  30526. + shift
  30527. + ;;
  30528. + -O2)
  30529. + optimize="-O"
  30530. + shift
  30531. + ;;
  30532. + -fomit-frame-pointer)
  30533. + shift
  30534. + ;;
  30535. + -O*|-f*)
  30536. + optimize="$optimize $1"
  30537. + shift
  30538. + ;;
  30539. + *)
  30540. + CFLAGS="$CFLAGS $1"
  30541. + shift
  30542. + ;;
  30543. + esac
  30544. +done
  30545. -# Commands used to build a loadable module (assumed same as above if empty)
  30546. -module_cmds=$lt_module_cmds
  30547. -module_expsym_cmds=$lt_module_expsym_cmds
  30548. +if test "$GCC" = yes
  30549. +then
  30550. + if test -z "$arch"
  30551. + then
  30552. + case "$host" in
  30553. + i386-*) ;;
  30554. + i?86-*) arch="-march=i486" ;;
  30555. + arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
  30556. + armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
  30557. + powerpc-*) ;;
  30558. + mips*-agenda-*) arch="-mcpu=vr4100" ;;
  30559. + mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
  30560. + esac
  30561. + fi
  30562. -# Commands to strip libraries.
  30563. -old_striplib=$lt_old_striplib
  30564. -striplib=$lt_striplib
  30565. + case "$optimize" in
  30566. + -O|"-O "*)
  30567. + optimize="-O"
  30568. + optimize="$optimize -fforce-addr"
  30569. + : #x optimize="$optimize -finline-functions"
  30570. + : #- optimize="$optimize -fstrength-reduce"
  30571. + optimize="$optimize -fthread-jumps"
  30572. + optimize="$optimize -fcse-follow-jumps"
  30573. + optimize="$optimize -fcse-skip-blocks"
  30574. + : #x optimize="$optimize -frerun-cse-after-loop"
  30575. + : #x optimize="$optimize -frerun-loop-opt"
  30576. + : #x optimize="$optimize -fgcse"
  30577. + optimize="$optimize -fexpensive-optimizations"
  30578. + optimize="$optimize -fregmove"
  30579. + : #* optimize="$optimize -fdelayed-branch"
  30580. + : #x optimize="$optimize -fschedule-insns"
  30581. + optimize="$optimize -fschedule-insns2"
  30582. + : #? optimize="$optimize -ffunction-sections"
  30583. + : #? optimize="$optimize -fcaller-saves"
  30584. + : #> optimize="$optimize -funroll-loops"
  30585. + : #> optimize="$optimize -funroll-all-loops"
  30586. + : #x optimize="$optimize -fmove-all-movables"
  30587. + : #x optimize="$optimize -freduce-all-givs"
  30588. + : #? optimize="$optimize -fstrict-aliasing"
  30589. + : #* optimize="$optimize -fstructure-noalias"
  30590. -# Dependencies to place before the objects being linked to create a
  30591. -# shared library.
  30592. -predep_objects=$lt_predep_objects
  30593. -
  30594. -# Dependencies to place after the objects being linked to create a
  30595. -# shared library.
  30596. -postdep_objects=$lt_postdep_objects
  30597. -
  30598. -# Dependencies to place before the objects being linked to create a
  30599. -# shared library.
  30600. -predeps=$lt_predeps
  30601. -
  30602. -# Dependencies to place after the objects being linked to create a
  30603. -# shared library.
  30604. -postdeps=$lt_postdeps
  30605. -
  30606. -# The library search path used internally by the compiler when linking
  30607. -# a shared library.
  30608. -compiler_lib_search_path=$lt_compiler_lib_search_path
  30609. + case "$host" in
  30610. + arm*-*)
  30611. + optimize="$optimize -fstrength-reduce"
  30612. + ;;
  30613. + mips*-*)
  30614. + optimize="$optimize -fstrength-reduce"
  30615. + optimize="$optimize -finline-functions"
  30616. + ;;
  30617. + i?86-*)
  30618. + optimize="$optimize -fstrength-reduce"
  30619. + ;;
  30620. + powerpc-apple-*)
  30621. + # this triggers an internal compiler error with gcc2
  30622. + : #optimize="$optimize -fstrength-reduce"
  30623. -# Method to check whether dependent libraries are shared objects.
  30624. -deplibs_check_method=$lt_deplibs_check_method
  30625. + # this is really only beneficial with gcc3
  30626. + : #optimize="$optimize -finline-functions"
  30627. + ;;
  30628. + *)
  30629. + # this sometimes provokes bugs in gcc 2.95.2
  30630. + : #optimize="$optimize -fstrength-reduce"
  30631. + ;;
  30632. + esac
  30633. + ;;
  30634. + esac
  30635. +fi
  30636. -# Command to use when deplibs_check_method == file_magic.
  30637. -file_magic_cmd=$lt_file_magic_cmd
  30638. +case "$host" in
  30639. + mips*-agenda-*)
  30640. -# Flag that allows shared libraries with undefined symbols to be built.
  30641. -allow_undefined_flag=$lt_allow_undefined_flag
  30642. +$as_echo "#define HAVE_MADD16_ASM 1" >>confdefs.h
  30643. -# Flag that forces no undefined symbols.
  30644. -no_undefined_flag=$lt_no_undefined_flag
  30645. + ;;
  30646. + mips*-luxsonor-*)
  30647. -# Commands used to finish a libtool library installation in a directory.
  30648. -finish_cmds=$lt_finish_cmds
  30649. +$as_echo "#define HAVE_MADD_ASM 1" >>confdefs.h
  30650. -# Same as above, but a single script fragment to be evaled but not shown.
  30651. -finish_eval=$lt_finish_eval
  30652. + ;;
  30653. +esac
  30654. -# Take the output of nm and produce a listing of raw symbols and C names.
  30655. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30656. -# Transform the output of nm in a proper C declaration
  30657. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30658. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  30659. +$as_echo_n "checking for ANSI C header files... " >&6; }
  30660. +if test "${ac_cv_header_stdc+set}" = set; then :
  30661. + $as_echo_n "(cached) " >&6
  30662. +else
  30663. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30664. +/* end confdefs.h. */
  30665. +#include <stdlib.h>
  30666. +#include <stdarg.h>
  30667. +#include <string.h>
  30668. +#include <float.h>
  30669. -# Transform the output of nm in a C name address pair
  30670. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30671. +int
  30672. +main ()
  30673. +{
  30674. -# This is the shared library runtime path variable.
  30675. -runpath_var=$runpath_var
  30676. + ;
  30677. + return 0;
  30678. +}
  30679. +_ACEOF
  30680. +if ac_fn_c_try_compile "$LINENO"; then :
  30681. + ac_cv_header_stdc=yes
  30682. +else
  30683. + ac_cv_header_stdc=no
  30684. +fi
  30685. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30686. -# This is the shared library path variable.
  30687. -shlibpath_var=$shlibpath_var
  30688. +if test $ac_cv_header_stdc = yes; then
  30689. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  30690. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30691. +/* end confdefs.h. */
  30692. +#include <string.h>
  30693. -# Is shlibpath searched before the hard-coded library search path?
  30694. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30695. +_ACEOF
  30696. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30697. + $EGREP "memchr" >/dev/null 2>&1; then :
  30698. -# How to hardcode a shared library path into an executable.
  30699. -hardcode_action=$hardcode_action
  30700. +else
  30701. + ac_cv_header_stdc=no
  30702. +fi
  30703. +rm -f conftest*
  30704. -# Whether we should hardcode library paths into libraries.
  30705. -hardcode_into_libs=$hardcode_into_libs
  30706. +fi
  30707. -# Flag to hardcode \$libdir into a binary during linking.
  30708. -# This must work even if \$libdir does not exist.
  30709. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  30710. +if test $ac_cv_header_stdc = yes; then
  30711. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  30712. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30713. +/* end confdefs.h. */
  30714. +#include <stdlib.h>
  30715. -# If ld is used when linking, flag to hardcode \$libdir into
  30716. -# a binary during linking. This must work even if \$libdir does
  30717. -# not exist.
  30718. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  30719. +_ACEOF
  30720. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  30721. + $EGREP "free" >/dev/null 2>&1; then :
  30722. -# Whether we need a single -rpath flag with a separated argument.
  30723. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  30724. +else
  30725. + ac_cv_header_stdc=no
  30726. +fi
  30727. +rm -f conftest*
  30728. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30729. -# resulting binary.
  30730. -hardcode_direct=$hardcode_direct
  30731. +fi
  30732. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30733. -# resulting binary.
  30734. -hardcode_minus_L=$hardcode_minus_L
  30735. +if test $ac_cv_header_stdc = yes; then
  30736. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  30737. + if test "$cross_compiling" = yes; then :
  30738. + :
  30739. +else
  30740. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30741. +/* end confdefs.h. */
  30742. +#include <ctype.h>
  30743. +#include <stdlib.h>
  30744. +#if ((' ' & 0x0FF) == 0x020)
  30745. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  30746. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  30747. +#else
  30748. +# define ISLOWER(c) \
  30749. + (('a' <= (c) && (c) <= 'i') \
  30750. + || ('j' <= (c) && (c) <= 'r') \
  30751. + || ('s' <= (c) && (c) <= 'z'))
  30752. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  30753. +#endif
  30754. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30755. -# the resulting binary.
  30756. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  30757. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  30758. +int
  30759. +main ()
  30760. +{
  30761. + int i;
  30762. + for (i = 0; i < 256; i++)
  30763. + if (XOR (islower (i), ISLOWER (i))
  30764. + || toupper (i) != TOUPPER (i))
  30765. + return 2;
  30766. + return 0;
  30767. +}
  30768. +_ACEOF
  30769. +if ac_fn_c_try_run "$LINENO"; then :
  30770. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30771. -# and all subsequent libraries and executables linked against it.
  30772. -hardcode_automatic=$hardcode_automatic
  30773. +else
  30774. + ac_cv_header_stdc=no
  30775. +fi
  30776. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  30777. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  30778. +fi
  30779. -# Variables whose values should be saved in libtool wrapper scripts and
  30780. -# restored at relink time.
  30781. -variables_saved_for_relink="$variables_saved_for_relink"
  30782. +fi
  30783. +fi
  30784. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  30785. +$as_echo "$ac_cv_header_stdc" >&6; }
  30786. +if test $ac_cv_header_stdc = yes; then
  30787. -# Whether libtool must link a program against all its dependency libraries.
  30788. -link_all_deplibs=$link_all_deplibs
  30789. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  30790. -# Compile-time system search path for libraries
  30791. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30792. +fi
  30793. -# Run-time system search path for libraries
  30794. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30795. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  30796. +$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  30797. +if test "${ac_cv_header_sys_wait_h+set}" = set; then :
  30798. + $as_echo_n "(cached) " >&6
  30799. +else
  30800. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30801. +/* end confdefs.h. */
  30802. +#include <sys/types.h>
  30803. +#include <sys/wait.h>
  30804. +#ifndef WEXITSTATUS
  30805. +# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  30806. +#endif
  30807. +#ifndef WIFEXITED
  30808. +# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  30809. +#endif
  30810. -# Fix the shell variable \$srcfile for the compiler.
  30811. -fix_srcfile_path="$fix_srcfile_path"
  30812. +int
  30813. +main ()
  30814. +{
  30815. + int s;
  30816. + wait (&s);
  30817. + s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  30818. + ;
  30819. + return 0;
  30820. +}
  30821. +_ACEOF
  30822. +if ac_fn_c_try_compile "$LINENO"; then :
  30823. + ac_cv_header_sys_wait_h=yes
  30824. +else
  30825. + ac_cv_header_sys_wait_h=no
  30826. +fi
  30827. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30828. +fi
  30829. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  30830. +$as_echo "$ac_cv_header_sys_wait_h" >&6; }
  30831. +if test $ac_cv_header_sys_wait_h = yes; then
  30832. -# Set to yes if exported symbols are required.
  30833. -always_export_symbols=$always_export_symbols
  30834. +$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  30835. -# The commands to list exported symbols.
  30836. -export_symbols_cmds=$lt_export_symbols_cmds
  30837. +fi
  30838. -# The commands to extract the exported symbol list from a shared archive.
  30839. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30840. +for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
  30841. +do :
  30842. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  30843. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  30844. +eval as_val=\$$as_ac_Header
  30845. + if test "x$as_val" = x""yes; then :
  30846. + cat >>confdefs.h <<_ACEOF
  30847. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  30848. +_ACEOF
  30849. -# Symbols that should not be listed in the preloaded symbols.
  30850. -exclude_expsyms=$lt_exclude_expsyms
  30851. +fi
  30852. -# Symbols that must always be exported.
  30853. -include_expsyms=$lt_include_expsyms
  30854. +done
  30855. -# ### END LIBTOOL CONFIG
  30856. -__EOF__
  30857. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  30858. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  30859. +if test "${ac_cv_c_const+set}" = set; then :
  30860. + $as_echo_n "(cached) " >&6
  30861. +else
  30862. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30863. +/* end confdefs.h. */
  30864. - case $host_os in
  30865. - aix3*)
  30866. - cat <<\EOF >> "$cfgfile"
  30867. +int
  30868. +main ()
  30869. +{
  30870. +/* FIXME: Include the comments suggested by Paul. */
  30871. +#ifndef __cplusplus
  30872. + /* Ultrix mips cc rejects this. */
  30873. + typedef int charset[2];
  30874. + const charset cs;
  30875. + /* SunOS 4.1.1 cc rejects this. */
  30876. + char const *const *pcpcc;
  30877. + char **ppc;
  30878. + /* NEC SVR4.0.2 mips cc rejects this. */
  30879. + struct point {int x, y;};
  30880. + static struct point const zero = {0,0};
  30881. + /* AIX XL C 1.02.0.0 rejects this.
  30882. + It does not let you subtract one const X* pointer from another in
  30883. + an arm of an if-expression whose if-part is not a constant
  30884. + expression */
  30885. + const char *g = "string";
  30886. + pcpcc = &g + (g ? g-g : 0);
  30887. + /* HPUX 7.0 cc rejects these. */
  30888. + ++pcpcc;
  30889. + ppc = (char**) pcpcc;
  30890. + pcpcc = (char const *const *) ppc;
  30891. + { /* SCO 3.2v4 cc rejects this. */
  30892. + char *t;
  30893. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  30894. -# AIX sometimes has problems with the GCC collect2 program. For some
  30895. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  30896. -# vanish in a puff of smoke.
  30897. -if test "X${COLLECT_NAMES+set}" != Xset; then
  30898. - COLLECT_NAMES=
  30899. - export COLLECT_NAMES
  30900. + *t++ = 0;
  30901. + if (s) return 0;
  30902. + }
  30903. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  30904. + int x[] = {25, 17};
  30905. + const int *foo = &x[0];
  30906. + ++foo;
  30907. + }
  30908. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  30909. + typedef const int *iptr;
  30910. + iptr p = 0;
  30911. + ++p;
  30912. + }
  30913. + { /* AIX XL C 1.02.0.0 rejects this saying
  30914. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  30915. + struct s { int j; const int *ap[3]; };
  30916. + struct s *b; b->j = 5;
  30917. + }
  30918. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  30919. + const int foo = 10;
  30920. + if (!foo) return 0;
  30921. + }
  30922. + return !cs[0] && !zero.x;
  30923. +#endif
  30924. +
  30925. + ;
  30926. + return 0;
  30927. +}
  30928. +_ACEOF
  30929. +if ac_fn_c_try_compile "$LINENO"; then :
  30930. + ac_cv_c_const=yes
  30931. +else
  30932. + ac_cv_c_const=no
  30933. fi
  30934. -EOF
  30935. - ;;
  30936. - esac
  30937. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30938. +fi
  30939. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  30940. +$as_echo "$ac_cv_c_const" >&6; }
  30941. +if test $ac_cv_c_const = no; then
  30942. - # We use sed instead of cat because bash on DJGPP gets confused if
  30943. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  30944. - # text mode, it properly converts lines to CR/LF. This bash problem
  30945. - # is reportedly fixed, but why not run on old versions too?
  30946. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  30947. +$as_echo "#define const /**/" >>confdefs.h
  30948. - mv -f "$cfgfile" "$ofile" || \
  30949. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  30950. - chmod +x "$ofile"
  30951. +fi
  30952. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  30953. +$as_echo_n "checking for inline... " >&6; }
  30954. +if test "${ac_cv_c_inline+set}" = set; then :
  30955. + $as_echo_n "(cached) " >&6
  30956. else
  30957. - # If there is no Makefile yet, we rely on a make rule to execute
  30958. - # `config.status --recheck' to rerun these tests and create the
  30959. - # libtool script then.
  30960. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30961. - if test -f "$ltmain_in"; then
  30962. - test -f Makefile && make "$ltmain"
  30963. - fi
  30964. + ac_cv_c_inline=no
  30965. +for ac_kw in inline __inline__ __inline; do
  30966. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  30967. +/* end confdefs.h. */
  30968. +#ifndef __cplusplus
  30969. +typedef int foo_t;
  30970. +static $ac_kw foo_t static_foo () {return 0; }
  30971. +$ac_kw foo_t foo () {return 0; }
  30972. +#endif
  30973. +
  30974. +_ACEOF
  30975. +if ac_fn_c_try_compile "$LINENO"; then :
  30976. + ac_cv_c_inline=$ac_kw
  30977. fi
  30978. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  30979. + test "$ac_cv_c_inline" != no && break
  30980. +done
  30981. +fi
  30982. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  30983. +$as_echo "$ac_cv_c_inline" >&6; }
  30984. -ac_ext=c
  30985. -ac_cpp='$CPP $CPPFLAGS'
  30986. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30987. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30988. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30989. +case $ac_cv_c_inline in
  30990. + inline | yes) ;;
  30991. + *)
  30992. + case $ac_cv_c_inline in
  30993. + no) ac_val=;;
  30994. + *) ac_val=$ac_cv_c_inline;;
  30995. + esac
  30996. + cat >>confdefs.h <<_ACEOF
  30997. +#ifndef __cplusplus
  30998. +#define inline $ac_val
  30999. +#endif
  31000. +_ACEOF
  31001. + ;;
  31002. +esac
  31003. -CC="$lt_save_CC"
  31004. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  31005. +$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  31006. +if test "${ac_cv_c_bigendian+set}" = set; then :
  31007. + $as_echo_n "(cached) " >&6
  31008. +else
  31009. + ac_cv_c_bigendian=unknown
  31010. + # See if we're dealing with a universal compiler.
  31011. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31012. +/* end confdefs.h. */
  31013. +#ifndef __APPLE_CC__
  31014. + not a universal capable compiler
  31015. + #endif
  31016. + typedef int dummy;
  31017. +
  31018. +_ACEOF
  31019. +if ac_fn_c_try_compile "$LINENO"; then :
  31020. +
  31021. + # Check for potential -arch flags. It is not universal unless
  31022. + # there are at least two -arch flags with different values.
  31023. + ac_arch=
  31024. + ac_prev=
  31025. + for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  31026. + if test -n "$ac_prev"; then
  31027. + case $ac_word in
  31028. + i?86 | x86_64 | ppc | ppc64)
  31029. + if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  31030. + ac_arch=$ac_word
  31031. + else
  31032. + ac_cv_c_bigendian=universal
  31033. + break
  31034. + fi
  31035. + ;;
  31036. + esac
  31037. + ac_prev=
  31038. + elif test "x$ac_word" = "x-arch"; then
  31039. + ac_prev=arch
  31040. + fi
  31041. + done
  31042. +fi
  31043. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31044. + if test $ac_cv_c_bigendian = unknown; then
  31045. + # See if sys/param.h defines the BYTE_ORDER macro.
  31046. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31047. +/* end confdefs.h. */
  31048. +#include <sys/types.h>
  31049. + #include <sys/param.h>
  31050. +int
  31051. +main ()
  31052. +{
  31053. +#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  31054. + && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  31055. + && LITTLE_ENDIAN)
  31056. + bogus endian macros
  31057. + #endif
  31058. -# Check whether --with-tags or --without-tags was given.
  31059. -if test "${with_tags+set}" = set; then
  31060. - withval="$with_tags"
  31061. - tagnames="$withval"
  31062. -fi;
  31063. -
  31064. -if test -f "$ltmain" && test -n "$tagnames"; then
  31065. - if test ! -f "${ofile}"; then
  31066. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  31067. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  31068. - fi
  31069. -
  31070. - if test -z "$LTCC"; then
  31071. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  31072. - if test -z "$LTCC"; then
  31073. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  31074. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  31075. - else
  31076. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  31077. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  31078. + ;
  31079. + return 0;
  31080. +}
  31081. +_ACEOF
  31082. +if ac_fn_c_try_compile "$LINENO"; then :
  31083. + # It does; now see whether it defined to BIG_ENDIAN or not.
  31084. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31085. +/* end confdefs.h. */
  31086. +#include <sys/types.h>
  31087. + #include <sys/param.h>
  31088. +
  31089. +int
  31090. +main ()
  31091. +{
  31092. +#if BYTE_ORDER != BIG_ENDIAN
  31093. + not big endian
  31094. + #endif
  31095. +
  31096. + ;
  31097. + return 0;
  31098. +}
  31099. +_ACEOF
  31100. +if ac_fn_c_try_compile "$LINENO"; then :
  31101. + ac_cv_c_bigendian=yes
  31102. +else
  31103. + ac_cv_c_bigendian=no
  31104. +fi
  31105. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31106. +fi
  31107. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31108. fi
  31109. - fi
  31110. + if test $ac_cv_c_bigendian = unknown; then
  31111. + # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  31112. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31113. +/* end confdefs.h. */
  31114. +#include <limits.h>
  31115. - # Extract list of available tagged configurations in $ofile.
  31116. - # Note that this assumes the entire list is on one line.
  31117. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  31118. +int
  31119. +main ()
  31120. +{
  31121. +#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  31122. + bogus endian macros
  31123. + #endif
  31124. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  31125. - for tagname in $tagnames; do
  31126. - IFS="$lt_save_ifs"
  31127. - # Check whether tagname contains only valid characters
  31128. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  31129. - "") ;;
  31130. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  31131. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  31132. - { (exit 1); exit 1; }; }
  31133. - ;;
  31134. - esac
  31135. + ;
  31136. + return 0;
  31137. +}
  31138. +_ACEOF
  31139. +if ac_fn_c_try_compile "$LINENO"; then :
  31140. + # It does; now see whether it defined to _BIG_ENDIAN or not.
  31141. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31142. +/* end confdefs.h. */
  31143. +#include <limits.h>
  31144. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  31145. - then
  31146. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  31147. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  31148. - { (exit 1); exit 1; }; }
  31149. +int
  31150. +main ()
  31151. +{
  31152. +#ifndef _BIG_ENDIAN
  31153. + not big endian
  31154. + #endif
  31155. +
  31156. + ;
  31157. + return 0;
  31158. +}
  31159. +_ACEOF
  31160. +if ac_fn_c_try_compile "$LINENO"; then :
  31161. + ac_cv_c_bigendian=yes
  31162. +else
  31163. + ac_cv_c_bigendian=no
  31164. +fi
  31165. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31166. +fi
  31167. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31168. fi
  31169. + if test $ac_cv_c_bigendian = unknown; then
  31170. + # Compile a test program.
  31171. + if test "$cross_compiling" = yes; then :
  31172. + # Try to guess by grepping values from an object file.
  31173. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31174. +/* end confdefs.h. */
  31175. +short int ascii_mm[] =
  31176. + { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  31177. + short int ascii_ii[] =
  31178. + { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  31179. + int use_ascii (int i) {
  31180. + return ascii_mm[i] + ascii_ii[i];
  31181. + }
  31182. + short int ebcdic_ii[] =
  31183. + { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  31184. + short int ebcdic_mm[] =
  31185. + { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  31186. + int use_ebcdic (int i) {
  31187. + return ebcdic_mm[i] + ebcdic_ii[i];
  31188. + }
  31189. + extern int foo;
  31190. - # Update the list of available tags.
  31191. - if test -n "$tagname"; then
  31192. - echo appending configuration tag \"$tagname\" to $ofile
  31193. -
  31194. - case $tagname in
  31195. - CXX)
  31196. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  31197. - ac_ext=cc
  31198. -ac_cpp='$CXXCPP $CPPFLAGS'
  31199. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31200. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31201. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  31202. +int
  31203. +main ()
  31204. +{
  31205. +return use_ascii (foo) == use_ebcdic (foo);
  31206. + ;
  31207. + return 0;
  31208. +}
  31209. +_ACEOF
  31210. +if ac_fn_c_try_compile "$LINENO"; then :
  31211. + if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  31212. + ac_cv_c_bigendian=yes
  31213. + fi
  31214. + if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  31215. + if test "$ac_cv_c_bigendian" = unknown; then
  31216. + ac_cv_c_bigendian=no
  31217. + else
  31218. + # finding both strings is unlikely to happen, but who knows?
  31219. + ac_cv_c_bigendian=unknown
  31220. + fi
  31221. + fi
  31222. +fi
  31223. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31224. +else
  31225. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31226. +/* end confdefs.h. */
  31227. +$ac_includes_default
  31228. +int
  31229. +main ()
  31230. +{
  31231. + /* Are we little or big endian? From Harbison&Steele. */
  31232. + union
  31233. + {
  31234. + long int l;
  31235. + char c[sizeof (long int)];
  31236. + } u;
  31237. + u.l = 1;
  31238. + return u.c[sizeof (long int) - 1] == 1;
  31239. + ;
  31240. + return 0;
  31241. +}
  31242. +_ACEOF
  31243. +if ac_fn_c_try_run "$LINENO"; then :
  31244. + ac_cv_c_bigendian=no
  31245. +else
  31246. + ac_cv_c_bigendian=yes
  31247. +fi
  31248. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31249. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  31250. +fi
  31251. + fi
  31252. +fi
  31253. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  31254. +$as_echo "$ac_cv_c_bigendian" >&6; }
  31255. + case $ac_cv_c_bigendian in #(
  31256. + yes)
  31257. + $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  31258. +;; #(
  31259. + no)
  31260. + ;; #(
  31261. + universal)
  31262. -archive_cmds_need_lc_CXX=no
  31263. -allow_undefined_flag_CXX=
  31264. -always_export_symbols_CXX=no
  31265. -archive_expsym_cmds_CXX=
  31266. -export_dynamic_flag_spec_CXX=
  31267. -hardcode_direct_CXX=no
  31268. -hardcode_libdir_flag_spec_CXX=
  31269. -hardcode_libdir_flag_spec_ld_CXX=
  31270. -hardcode_libdir_separator_CXX=
  31271. -hardcode_minus_L_CXX=no
  31272. -hardcode_automatic_CXX=no
  31273. -module_cmds_CXX=
  31274. -module_expsym_cmds_CXX=
  31275. -link_all_deplibs_CXX=unknown
  31276. -old_archive_cmds_CXX=$old_archive_cmds
  31277. -no_undefined_flag_CXX=
  31278. -whole_archive_flag_spec_CXX=
  31279. -enable_shared_with_static_runtimes_CXX=no
  31280. -
  31281. -# Dependencies to place before and after the object being linked:
  31282. -predep_objects_CXX=
  31283. -postdep_objects_CXX=
  31284. -predeps_CXX=
  31285. -postdeps_CXX=
  31286. -compiler_lib_search_path_CXX=
  31287. +$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  31288. -# Source file extension for C++ test sources.
  31289. -ac_ext=cc
  31290. + ;; #(
  31291. + *)
  31292. + as_fn_error "unknown endianness
  31293. + presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  31294. + esac
  31295. -# Object file extension for compiled C++ test sources.
  31296. -objext=o
  31297. -objext_CXX=$objext
  31298. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  31299. +if test "x$ac_cv_type_pid_t" = x""yes; then :
  31300. -# Code to be used in simple compile tests
  31301. -lt_simple_compile_test_code="int some_variable = 0;\n"
  31302. +else
  31303. -# Code to be used in simple link tests
  31304. -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  31305. +cat >>confdefs.h <<_ACEOF
  31306. +#define pid_t int
  31307. +_ACEOF
  31308. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  31309. +fi
  31310. -# If no C compiler was specified, use CC.
  31311. -LTCC=${LTCC-"$CC"}
  31312. -# Allow CC to be a program name with arguments.
  31313. -compiler=$CC
  31314. +# The cast to long int works around a bug in the HP C Compiler
  31315. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31316. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31317. +# This bug is HP SR number 8606223364.
  31318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  31319. +$as_echo_n "checking size of int... " >&6; }
  31320. +if test "${ac_cv_sizeof_int+set}" = set; then :
  31321. + $as_echo_n "(cached) " >&6
  31322. +else
  31323. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  31324. +else
  31325. + if test "$ac_cv_type_int" = yes; then
  31326. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31327. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31328. +{ as_fn_set_status 77
  31329. +as_fn_error "cannot compute sizeof (int)
  31330. +See \`config.log' for more details." "$LINENO" 5; }; }
  31331. + else
  31332. + ac_cv_sizeof_int=0
  31333. + fi
  31334. +fi
  31335. -# Allow CC to be a program name with arguments.
  31336. -lt_save_CC=$CC
  31337. -lt_save_LD=$LD
  31338. -lt_save_GCC=$GCC
  31339. -GCC=$GXX
  31340. -lt_save_with_gnu_ld=$with_gnu_ld
  31341. -lt_save_path_LD=$lt_cv_path_LD
  31342. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  31343. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  31344. -else
  31345. - unset lt_cv_prog_gnu_ld
  31346. fi
  31347. -if test -n "${lt_cv_path_LDCXX+set}"; then
  31348. - lt_cv_path_LD=$lt_cv_path_LDCXX
  31349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  31350. +$as_echo "$ac_cv_sizeof_int" >&6; }
  31351. +
  31352. +
  31353. +
  31354. +cat >>confdefs.h <<_ACEOF
  31355. +#define SIZEOF_INT $ac_cv_sizeof_int
  31356. +_ACEOF
  31357. +
  31358. +
  31359. +# The cast to long int works around a bug in the HP C Compiler
  31360. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31361. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31362. +# This bug is HP SR number 8606223364.
  31363. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  31364. +$as_echo_n "checking size of long... " >&6; }
  31365. +if test "${ac_cv_sizeof_long+set}" = set; then :
  31366. + $as_echo_n "(cached) " >&6
  31367. else
  31368. - unset lt_cv_path_LD
  31369. -fi
  31370. -test -z "${LDCXX+set}" || LD=$LDCXX
  31371. -CC=${CXX-"c++"}
  31372. -compiler=$CC
  31373. -compiler_CXX=$CC
  31374. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  31375. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  31376. -# We don't want -fno-exception wen compiling C++ code, so set the
  31377. -# no_builtin_flag separately
  31378. -if test "$GXX" = yes; then
  31379. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  31380. else
  31381. - lt_prog_compiler_no_builtin_flag_CXX=
  31382. + if test "$ac_cv_type_long" = yes; then
  31383. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31384. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31385. +{ as_fn_set_status 77
  31386. +as_fn_error "cannot compute sizeof (long)
  31387. +See \`config.log' for more details." "$LINENO" 5; }; }
  31388. + else
  31389. + ac_cv_sizeof_long=0
  31390. + fi
  31391. +fi
  31392. +
  31393. fi
  31394. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  31395. +$as_echo "$ac_cv_sizeof_long" >&6; }
  31396. +
  31397. -if test "$GXX" = yes; then
  31398. - # Set up default GNU C++ configuration
  31399. +
  31400. +cat >>confdefs.h <<_ACEOF
  31401. +#define SIZEOF_LONG $ac_cv_sizeof_long
  31402. +_ACEOF
  31403. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  31404. -if test "${with_gnu_ld+set}" = set; then
  31405. - withval="$with_gnu_ld"
  31406. - test "$withval" = no || with_gnu_ld=yes
  31407. +# The cast to long int works around a bug in the HP C Compiler
  31408. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  31409. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  31410. +# This bug is HP SR number 8606223364.
  31411. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  31412. +$as_echo_n "checking size of long long... " >&6; }
  31413. +if test "${ac_cv_sizeof_long_long+set}" = set; then :
  31414. + $as_echo_n "(cached) " >&6
  31415. else
  31416. - with_gnu_ld=no
  31417. -fi;
  31418. -ac_prog=ld
  31419. -if test "$GCC" = yes; then
  31420. - # Check if gcc -print-prog-name=ld gives a path.
  31421. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  31422. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  31423. - case $host in
  31424. - *-*-mingw*)
  31425. - # gcc leaves a trailing carriage return which upsets mingw
  31426. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  31427. - *)
  31428. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  31429. - esac
  31430. - case $ac_prog in
  31431. - # Accept absolute paths.
  31432. - [\\/]* | ?:[\\/]*)
  31433. - re_direlt='/[^/][^/]*/\.\./'
  31434. - # Canonicalize the pathname of ld
  31435. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  31436. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  31437. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  31438. - done
  31439. - test -z "$LD" && LD="$ac_prog"
  31440. - ;;
  31441. - "")
  31442. - # If it fails, then pretend we aren't using GCC.
  31443. - ac_prog=ld
  31444. - ;;
  31445. - *)
  31446. - # If it is relative, then search for the first ld in PATH.
  31447. - with_gnu_ld=unknown
  31448. - ;;
  31449. - esac
  31450. -elif test "$with_gnu_ld" = yes; then
  31451. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  31452. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  31453. -else
  31454. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  31455. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  31456. -fi
  31457. -if test "${lt_cv_path_LD+set}" = set; then
  31458. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31459. -else
  31460. - if test -z "$LD"; then
  31461. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  31462. - for ac_dir in $PATH; do
  31463. - IFS="$lt_save_ifs"
  31464. - test -z "$ac_dir" && ac_dir=.
  31465. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  31466. - lt_cv_path_LD="$ac_dir/$ac_prog"
  31467. - # Check to see if the program is GNU ld. I'd rather use --version,
  31468. - # but apparently some GNU ld's only accept -v.
  31469. - # Break only if it was the GNU/non-GNU ld that we prefer.
  31470. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  31471. - *GNU* | *'with BFD'*)
  31472. - test "$with_gnu_ld" != no && break
  31473. - ;;
  31474. - *)
  31475. - test "$with_gnu_ld" != yes && break
  31476. - ;;
  31477. - esac
  31478. - fi
  31479. - done
  31480. - IFS="$lt_save_ifs"
  31481. -else
  31482. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  31483. -fi
  31484. -fi
  31485. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  31486. -LD="$lt_cv_path_LD"
  31487. -if test -n "$LD"; then
  31488. - echo "$as_me:$LINENO: result: $LD" >&5
  31489. -echo "${ECHO_T}$LD" >&6
  31490. -else
  31491. - echo "$as_me:$LINENO: result: no" >&5
  31492. -echo "${ECHO_T}no" >&6
  31493. -fi
  31494. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  31495. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  31496. - { (exit 1); exit 1; }; }
  31497. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  31498. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  31499. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  31500. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31501. else
  31502. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  31503. -case `$LD -v 2>&1 </dev/null` in
  31504. -*GNU* | *'with BFD'*)
  31505. - lt_cv_prog_gnu_ld=yes
  31506. - ;;
  31507. -*)
  31508. - lt_cv_prog_gnu_ld=no
  31509. - ;;
  31510. -esac
  31511. + if test "$ac_cv_type_long_long" = yes; then
  31512. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31513. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31514. +{ as_fn_set_status 77
  31515. +as_fn_error "cannot compute sizeof (long long)
  31516. +See \`config.log' for more details." "$LINENO" 5; }; }
  31517. + else
  31518. + ac_cv_sizeof_long_long=0
  31519. + fi
  31520. fi
  31521. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  31522. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  31523. -with_gnu_ld=$lt_cv_prog_gnu_ld
  31524. +fi
  31525. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  31526. +$as_echo "$ac_cv_sizeof_long_long" >&6; }
  31527. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  31528. - # archiving commands below assume that GNU ld is being used.
  31529. - if test "$with_gnu_ld" = yes; then
  31530. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  31531. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  31532. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  31533. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  31534. +cat >>confdefs.h <<_ACEOF
  31535. +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  31536. +_ACEOF
  31537. - # If archive_cmds runs LD, not CC, wlarc should be empty
  31538. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  31539. - # investigate it a little bit more. (MM)
  31540. - wlarc='${wl}'
  31541. - # ancient GNU ld didn't support --whole-archive et. al.
  31542. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  31543. - grep 'no-whole-archive' > /dev/null; then
  31544. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  31545. - else
  31546. - whole_archive_flag_spec_CXX=
  31547. - fi
  31548. - else
  31549. - with_gnu_ld=no
  31550. - wlarc=
  31551. - # A generic and very simple default shared library creation
  31552. - # command for GNU C++ for the case where it uses the native
  31553. - # linker, instead of GNU ld. If possible, this setting should
  31554. - # overridden to take advantage of the native linker features on
  31555. - # the platform it is being used on.
  31556. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  31557. - fi
  31558. - # Commands to make compiler produce verbose output that lists
  31559. - # what "hidden" libraries, object files and flags are used when
  31560. - # linking a shared library.
  31561. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  31562. +for ac_func in waitpid fcntl pipe fork
  31563. +do :
  31564. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  31565. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  31566. +eval as_val=\$$as_ac_var
  31567. + if test "x$as_val" = x""yes; then :
  31568. + cat >>confdefs.h <<_ACEOF
  31569. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  31570. +_ACEOF
  31571. -else
  31572. - GXX=no
  31573. - with_gnu_ld=no
  31574. - wlarc=
  31575. fi
  31576. +done
  31577. -# PORTME: fill in a description of your system's C++ link characteristics
  31578. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31579. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  31580. -ld_shlibs_CXX=yes
  31581. -case $host_os in
  31582. - aix3*)
  31583. - # FIXME: insert proper C++ library support
  31584. - ld_shlibs_CXX=no
  31585. - ;;
  31586. - aix4* | aix5*)
  31587. - if test "$host_cpu" = ia64; then
  31588. - # On IA64, the linker does run time linking by default, so we don't
  31589. - # have to do anything special.
  31590. - aix_use_runtimelinking=no
  31591. - exp_sym_flag='-Bexport'
  31592. - no_entry_flag=""
  31593. - else
  31594. - aix_use_runtimelinking=no
  31595. - # Test if we are trying to use run time linking or normal
  31596. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31597. - # need to do runtime linking.
  31598. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31599. - for ld_flag in $LDFLAGS; do
  31600. - case $ld_flag in
  31601. - *-brtl*)
  31602. - aix_use_runtimelinking=yes
  31603. - break
  31604. - ;;
  31605. - esac
  31606. - done
  31607. - esac
  31608. - exp_sym_flag='-bexport'
  31609. - no_entry_flag='-bnoentry'
  31610. - fi
  31611. - # When large executables or shared objects are built, AIX ld can
  31612. - # have problems creating the table of contents. If linking a library
  31613. - # or program results in "error TOC overflow" add -mminimal-toc to
  31614. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31615. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31616. -
  31617. - archive_cmds_CXX=''
  31618. - hardcode_direct_CXX=yes
  31619. - hardcode_libdir_separator_CXX=':'
  31620. - link_all_deplibs_CXX=yes
  31621. -
  31622. - if test "$GXX" = yes; then
  31623. - case $host_os in aix4.012|aix4.012.*)
  31624. - # We only want to do this on AIX 4.2 and lower, the check
  31625. - # below for broken collect2 doesn't work under 4.3+
  31626. - collect2name=`${CC} -print-prog-name=collect2`
  31627. - if test -f "$collect2name" && \
  31628. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31629. - then
  31630. - # We have reworked collect2
  31631. - hardcode_direct_CXX=yes
  31632. - else
  31633. - # We have old collect2
  31634. - hardcode_direct_CXX=unsupported
  31635. - # It fails to find uninstalled libraries when the uninstalled
  31636. - # path is not listed in the libpath. Setting hardcode_minus_L
  31637. - # to unsupported forces relinking
  31638. - hardcode_minus_L_CXX=yes
  31639. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  31640. - hardcode_libdir_separator_CXX=
  31641. - fi
  31642. - esac
  31643. - shared_flag='-shared'
  31644. - else
  31645. - # not using gcc
  31646. - if test "$host_cpu" = ia64; then
  31647. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31648. - # chokes on -Wl,-G. The following line is correct:
  31649. - shared_flag='-G'
  31650. - else
  31651. - if test "$aix_use_runtimelinking" = yes; then
  31652. - shared_flag='${wl}-G'
  31653. - else
  31654. - shared_flag='${wl}-bM:SRE'
  31655. - fi
  31656. - fi
  31657. - fi
  31658. - # It seems that -bexpall does not export symbols beginning with
  31659. - # underscore (_), so it is better to generate a list of symbols to export.
  31660. - always_export_symbols_CXX=yes
  31661. - if test "$aix_use_runtimelinking" = yes; then
  31662. - # Warning - without using the other runtime loading flags (-brtl),
  31663. - # -berok will link without error, but may produce a broken library.
  31664. - allow_undefined_flag_CXX='-berok'
  31665. - # Determine the default libpath from the value encoded in an empty executable.
  31666. - cat >conftest.$ac_ext <<_ACEOF
  31667. -/* confdefs.h. */
  31668. -_ACEOF
  31669. -cat confdefs.h >>conftest.$ac_ext
  31670. -cat >>conftest.$ac_ext <<_ACEOF
  31671. -/* end confdefs.h. */
  31672. -int
  31673. -main ()
  31674. -{
  31675. - ;
  31676. - return 0;
  31677. -}
  31678. +
  31679. +cat >confcache <<\_ACEOF
  31680. +# This file is a shell script that caches the results of configure
  31681. +# tests run on this system so they can be shared between configure
  31682. +# scripts and configure runs, see configure's option --config-cache.
  31683. +# It is not useful on other systems. If it contains results you don't
  31684. +# want to keep, you may remove or edit it.
  31685. +#
  31686. +# config.status only pays attention to the cache file if you give it
  31687. +# the --recheck option to rerun configure.
  31688. +#
  31689. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  31690. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  31691. +# following values.
  31692. +
  31693. _ACEOF
  31694. -rm -f conftest.$ac_objext conftest$ac_exeext
  31695. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31696. - (eval $ac_link) 2>conftest.er1
  31697. - ac_status=$?
  31698. - grep -v '^ *+' conftest.er1 >conftest.err
  31699. - rm -f conftest.er1
  31700. - cat conftest.err >&5
  31701. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31702. - (exit $ac_status); } &&
  31703. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  31704. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31705. - (eval $ac_try) 2>&5
  31706. - ac_status=$?
  31707. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31708. - (exit $ac_status); }; } &&
  31709. - { ac_try='test -s conftest$ac_exeext'
  31710. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31711. - (eval $ac_try) 2>&5
  31712. - ac_status=$?
  31713. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31714. - (exit $ac_status); }; }; then
  31715. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31716. -}'`
  31717. -# Check for a 64-bit object if we didn't find anything.
  31718. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31719. -}'`; fi
  31720. -else
  31721. - echo "$as_me: failed program was:" >&5
  31722. -sed 's/^/| /' conftest.$ac_ext >&5
  31723. +# The following way of writing the cache mishandles newlines in values,
  31724. +# but we know of no workaround that is simple, portable, and efficient.
  31725. +# So, we kill variables containing newlines.
  31726. +# Ultrix sh set writes to stderr and can't be redirected directly,
  31727. +# and sets the high bit in the cache file unless we assign to the vars.
  31728. +(
  31729. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  31730. + eval ac_val=\$$ac_var
  31731. + case $ac_val in #(
  31732. + *${as_nl}*)
  31733. + case $ac_var in #(
  31734. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  31735. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  31736. + esac
  31737. + case $ac_var in #(
  31738. + _ | IFS | as_nl) ;; #(
  31739. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  31740. + *) { eval $ac_var=; unset $ac_var;} ;;
  31741. + esac ;;
  31742. + esac
  31743. + done
  31744. + (set) 2>&1 |
  31745. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  31746. + *${as_nl}ac_space=\ *)
  31747. + # `set' does not quote correctly, so add quotes: double-quote
  31748. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  31749. + sed -n \
  31750. + "s/'/'\\\\''/g;
  31751. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  31752. + ;; #(
  31753. + *)
  31754. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  31755. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  31756. + ;;
  31757. + esac |
  31758. + sort
  31759. +) |
  31760. + sed '
  31761. + /^ac_cv_env_/b end
  31762. + t clear
  31763. + :clear
  31764. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  31765. + t end
  31766. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  31767. + :end' >>confcache
  31768. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  31769. + if test -w "$cache_file"; then
  31770. + test "x$cache_file" != "x/dev/null" &&
  31771. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  31772. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  31773. + cat confcache >$cache_file
  31774. + else
  31775. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  31776. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  31777. + fi
  31778. fi
  31779. -rm -f conftest.err conftest.$ac_objext \
  31780. - conftest$ac_exeext conftest.$ac_ext
  31781. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31782. -
  31783. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  31784. +rm -f confcache
  31785. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  31786. - else
  31787. - if test "$host_cpu" = ia64; then
  31788. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  31789. - allow_undefined_flag_CXX="-z nodefs"
  31790. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  31791. - else
  31792. - # Determine the default libpath from the value encoded in an empty executable.
  31793. - cat >conftest.$ac_ext <<_ACEOF
  31794. -/* confdefs.h. */
  31795. -_ACEOF
  31796. -cat confdefs.h >>conftest.$ac_ext
  31797. -cat >>conftest.$ac_ext <<_ACEOF
  31798. -/* end confdefs.h. */
  31799. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to optimize for speed or for accuracy" >&5
  31800. +$as_echo_n "checking whether to optimize for speed or for accuracy... " >&6; }
  31801. -int
  31802. -main ()
  31803. -{
  31804. +# Check whether --enable-speed was given.
  31805. +if test "${enable_speed+set}" = set; then :
  31806. + enableval=$enable_speed;
  31807. + case "$enableval" in
  31808. + yes)
  31809. + optimize_for="speed"
  31810. - ;
  31811. - return 0;
  31812. -}
  31813. -_ACEOF
  31814. -rm -f conftest.$ac_objext conftest$ac_exeext
  31815. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31816. - (eval $ac_link) 2>conftest.er1
  31817. - ac_status=$?
  31818. - grep -v '^ *+' conftest.er1 >conftest.err
  31819. - rm -f conftest.er1
  31820. - cat conftest.err >&5
  31821. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31822. - (exit $ac_status); } &&
  31823. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  31824. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31825. - (eval $ac_try) 2>&5
  31826. - ac_status=$?
  31827. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31828. - (exit $ac_status); }; } &&
  31829. - { ac_try='test -s conftest$ac_exeext'
  31830. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31831. - (eval $ac_try) 2>&5
  31832. - ac_status=$?
  31833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31834. - (exit $ac_status); }; }; then
  31835. +$as_echo "#define OPT_SPEED 1" >>confdefs.h
  31836. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31837. -}'`
  31838. -# Check for a 64-bit object if we didn't find anything.
  31839. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31840. -}'`; fi
  31841. -else
  31842. - echo "$as_me: failed program was:" >&5
  31843. -sed 's/^/| /' conftest.$ac_ext >&5
  31844. + ;;
  31845. + esac
  31846. fi
  31847. -rm -f conftest.err conftest.$ac_objext \
  31848. - conftest$ac_exeext conftest.$ac_ext
  31849. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31850. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  31851. - # Warning - without using the other run time loading flags,
  31852. - # -berok will link without error, but may produce a broken library.
  31853. - no_undefined_flag_CXX=' ${wl}-bernotok'
  31854. - allow_undefined_flag_CXX=' ${wl}-berok'
  31855. - # -bexpall does not export symbols beginning with underscore (_)
  31856. - always_export_symbols_CXX=yes
  31857. - # Exported symbols can be pulled into shared objects from archives
  31858. - whole_archive_flag_spec_CXX=' '
  31859. - archive_cmds_need_lc_CXX=yes
  31860. - # This is similar to how AIX traditionally builds it's shared libraries.
  31861. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  31862. - fi
  31863. - fi
  31864. - ;;
  31865. - chorus*)
  31866. - case $cc_basename in
  31867. - *)
  31868. - # FIXME: insert proper C++ library support
  31869. - ld_shlibs_CXX=no
  31870. - ;;
  31871. - esac
  31872. - ;;
  31873. - cygwin* | mingw* | pw32*)
  31874. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  31875. - # as there is no search path for DLLs.
  31876. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  31877. - allow_undefined_flag_CXX=unsupported
  31878. - always_export_symbols_CXX=no
  31879. - enable_shared_with_static_runtimes_CXX=yes
  31880. -
  31881. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  31882. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  31883. - # If the export-symbols file already is a .def file (1st line
  31884. - # is EXPORTS), use it as is; otherwise, prepend...
  31885. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  31886. - cp $export_symbols $output_objdir/$soname.def;
  31887. - else
  31888. - echo EXPORTS > $output_objdir/$soname.def;
  31889. - cat $export_symbols >> $output_objdir/$soname.def;
  31890. - fi~
  31891. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  31892. - else
  31893. - ld_shlibs_CXX=no
  31894. - fi
  31895. - ;;
  31896. +# Check whether --enable-accuracy was given.
  31897. +if test "${enable_accuracy+set}" = set; then :
  31898. + enableval=$enable_accuracy;
  31899. + case "$enableval" in
  31900. + yes)
  31901. + if test "$optimize_for" = "speed"
  31902. + then
  31903. + optimize_for="both"
  31904. + else
  31905. + optimize_for="accuracy"
  31906. + fi
  31907. - darwin* | rhapsody*)
  31908. - if test "$GXX" = yes; then
  31909. - archive_cmds_need_lc_CXX=no
  31910. - case "$host_os" in
  31911. - rhapsody* | darwin1.[012])
  31912. - allow_undefined_flag_CXX='-undefined suppress'
  31913. - ;;
  31914. - *) # Darwin 1.3 on
  31915. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31916. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  31917. - else
  31918. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31919. - 10.[012])
  31920. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  31921. - ;;
  31922. - 10.*)
  31923. - allow_undefined_flag_CXX='-undefined dynamic_lookup'
  31924. - ;;
  31925. - esac
  31926. - fi
  31927. - ;;
  31928. +$as_echo "#define OPT_ACCURACY 1" >>confdefs.h
  31929. +
  31930. + ;;
  31931. esac
  31932. - lt_int_apple_cc_single_mod=no
  31933. - output_verbose_link_cmd='echo'
  31934. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  31935. - lt_int_apple_cc_single_mod=yes
  31936. - fi
  31937. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  31938. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  31939. - else
  31940. - archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
  31941. - fi
  31942. - module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31943. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  31944. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  31945. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31946. - else
  31947. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31948. - fi
  31949. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31950. - hardcode_direct_CXX=no
  31951. - hardcode_automatic_CXX=yes
  31952. - hardcode_shlibpath_var_CXX=unsupported
  31953. - whole_archive_flag_spec_CXX='-all_load $convenience'
  31954. - link_all_deplibs_CXX=yes
  31955. - else
  31956. - ld_shlibs_CXX=no
  31957. - fi
  31958. - ;;
  31959. +fi
  31960. - dgux*)
  31961. - case $cc_basename in
  31962. - ec++)
  31963. - # FIXME: insert proper C++ library support
  31964. - ld_shlibs_CXX=no
  31965. - ;;
  31966. - ghcx)
  31967. - # Green Hills C++ Compiler
  31968. - # FIXME: insert proper C++ library support
  31969. - ld_shlibs_CXX=no
  31970. - ;;
  31971. - *)
  31972. - # FIXME: insert proper C++ library support
  31973. - ld_shlibs_CXX=no
  31974. - ;;
  31975. - esac
  31976. - ;;
  31977. - freebsd12*)
  31978. - # C++ shared libraries reported to be fairly broken before switch to ELF
  31979. - ld_shlibs_CXX=no
  31980. - ;;
  31981. - freebsd-elf*)
  31982. - archive_cmds_need_lc_CXX=no
  31983. - ;;
  31984. - freebsd* | kfreebsd*-gnu)
  31985. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  31986. - # conventions
  31987. - ld_shlibs_CXX=yes
  31988. - ;;
  31989. - gnu*)
  31990. - ;;
  31991. - hpux9*)
  31992. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  31993. - hardcode_libdir_separator_CXX=:
  31994. - export_dynamic_flag_spec_CXX='${wl}-E'
  31995. - hardcode_direct_CXX=yes
  31996. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  31997. - # but as the default
  31998. - # location of the library.
  31999. -
  32000. - case $cc_basename in
  32001. - CC)
  32002. - # FIXME: insert proper C++ library support
  32003. - ld_shlibs_CXX=no
  32004. - ;;
  32005. - aCC)
  32006. - archive_cmds_CXX='$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'
  32007. - # Commands to make compiler produce verbose output that lists
  32008. - # what "hidden" libraries, object files and flags are used when
  32009. - # linking a shared library.
  32010. - #
  32011. - # There doesn't appear to be a way to prevent this compiler from
  32012. - # explicitly linking system object files so we need to strip them
  32013. - # from the output so that they don't get included in the library
  32014. - # dependencies.
  32015. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32016. - ;;
  32017. - *)
  32018. - if test "$GXX" = yes; then
  32019. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  32020. - else
  32021. - # FIXME: insert proper C++ library support
  32022. - ld_shlibs_CXX=no
  32023. - fi
  32024. - ;;
  32025. - esac
  32026. - ;;
  32027. - hpux10*|hpux11*)
  32028. - if test $with_gnu_ld = no; then
  32029. - case "$host_cpu" in
  32030. - hppa*64*)
  32031. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  32032. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  32033. - hardcode_libdir_separator_CXX=:
  32034. - ;;
  32035. - ia64*)
  32036. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  32037. - ;;
  32038. - *)
  32039. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  32040. - hardcode_libdir_separator_CXX=:
  32041. - export_dynamic_flag_spec_CXX='${wl}-E'
  32042. - ;;
  32043. - esac
  32044. - fi
  32045. - case "$host_cpu" in
  32046. - hppa*64*)
  32047. - hardcode_direct_CXX=no
  32048. - hardcode_shlibpath_var_CXX=no
  32049. - ;;
  32050. - ia64*)
  32051. - hardcode_direct_CXX=no
  32052. - hardcode_shlibpath_var_CXX=no
  32053. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  32054. - # but as the default
  32055. - # location of the library.
  32056. - ;;
  32057. - *)
  32058. - hardcode_direct_CXX=yes
  32059. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  32060. - # but as the default
  32061. - # location of the library.
  32062. - ;;
  32063. - esac
  32064. - case $cc_basename in
  32065. - CC)
  32066. - # FIXME: insert proper C++ library support
  32067. - ld_shlibs_CXX=no
  32068. - ;;
  32069. - aCC)
  32070. - case "$host_cpu" in
  32071. - hppa*64*|ia64*)
  32072. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  32073. - ;;
  32074. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${optimize_for-default}" >&5
  32075. +$as_echo "${optimize_for-default}" >&6; }
  32076. +
  32077. +if test "$optimize_for" = "both"
  32078. +then
  32079. + as_fn_error "cannot optimize for both speed and accuracy" "$LINENO" 5
  32080. +fi
  32081. +
  32082. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for architecture-specific fixed-point math routines" >&5
  32083. +$as_echo_n "checking for architecture-specific fixed-point math routines... " >&6; }
  32084. +# Check whether --enable-fpm was given.
  32085. +if test "${enable_fpm+set}" = set; then :
  32086. + enableval=$enable_fpm;
  32087. + case "$enableval" in
  32088. + yes) ;;
  32089. + no|default|approx) FPM="DEFAULT" ;;
  32090. + intel|i?86) FPM="INTEL" ;;
  32091. + arm) FPM="ARM" ;;
  32092. + mips) FPM="MIPS" ;;
  32093. + sparc) FPM="SPARC" ;;
  32094. + ppc|powerpc) FPM="PPC" ;;
  32095. + 64bit) FPM="64BIT" ;;
  32096. + float) FPM="FLOAT" ;;
  32097. *)
  32098. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32099. - ;;
  32100. - esac
  32101. - # Commands to make compiler produce verbose output that lists
  32102. - # what "hidden" libraries, object files and flags are used when
  32103. - # linking a shared library.
  32104. - #
  32105. - # There doesn't appear to be a way to prevent this compiler from
  32106. - # explicitly linking system object files so we need to strip them
  32107. - # from the output so that they don't get included in the library
  32108. - # dependencies.
  32109. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32110. - ;;
  32111. - *)
  32112. - if test "$GXX" = yes; then
  32113. - if test $with_gnu_ld = no; then
  32114. - case "$host_cpu" in
  32115. - ia64*|hppa*64*)
  32116. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  32117. - ;;
  32118. - *)
  32119. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32120. - ;;
  32121. - esac
  32122. - fi
  32123. - else
  32124. - # FIXME: insert proper C++ library support
  32125. - ld_shlibs_CXX=no
  32126. - fi
  32127. - ;;
  32128. - esac
  32129. - ;;
  32130. - irix5* | irix6*)
  32131. - case $cc_basename in
  32132. - CC)
  32133. - # SGI C++
  32134. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  32135. -
  32136. - # Archives containing C++ object files must be created using
  32137. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  32138. - # necessary to make sure instantiated templates are included
  32139. - # in the archive.
  32140. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  32141. - ;;
  32142. - *)
  32143. - if test "$GXX" = yes; then
  32144. - if test "$with_gnu_ld" = no; then
  32145. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  32146. - else
  32147. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  32148. - fi
  32149. - fi
  32150. - link_all_deplibs_CXX=yes
  32151. - ;;
  32152. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  32153. +$as_echo "failed" >&6; }
  32154. + as_fn_error "bad --enable-fpm option" "$LINENO" 5
  32155. + ;;
  32156. esac
  32157. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32158. - hardcode_libdir_separator_CXX=:
  32159. - ;;
  32160. - linux*)
  32161. - case $cc_basename in
  32162. - KCC)
  32163. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32164. -
  32165. - # KCC will only create a shared library if the output file
  32166. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32167. - # to its proper name (with version) after linking.
  32168. - archive_cmds_CXX='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'
  32169. - archive_expsym_cmds_CXX='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'
  32170. - # Commands to make compiler produce verbose output that lists
  32171. - # what "hidden" libraries, object files and flags are used when
  32172. - # linking a shared library.
  32173. - #
  32174. - # There doesn't appear to be a way to prevent this compiler from
  32175. - # explicitly linking system object files so we need to strip them
  32176. - # from the output so that they don't get included in the library
  32177. - # dependencies.
  32178. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32179. -
  32180. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  32181. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32182. -
  32183. - # Archives containing C++ object files must be created using
  32184. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  32185. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  32186. - ;;
  32187. - icpc)
  32188. - # Intel C++
  32189. - with_gnu_ld=yes
  32190. - archive_cmds_need_lc_CXX=no
  32191. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32192. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  32193. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32194. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  32195. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  32196. - ;;
  32197. - cxx)
  32198. - # Compaq C++
  32199. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  32200. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  32201. - runpath_var=LD_RUN_PATH
  32202. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32203. - hardcode_libdir_separator_CXX=:
  32204. +fi
  32205. - # Commands to make compiler produce verbose output that lists
  32206. - # what "hidden" libraries, object files and flags are used when
  32207. - # linking a shared library.
  32208. - #
  32209. - # There doesn't appear to be a way to prevent this compiler from
  32210. - # explicitly linking system object files so we need to strip them
  32211. - # from the output so that they don't get included in the library
  32212. - # dependencies.
  32213. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32214. - ;;
  32215. - esac
  32216. - ;;
  32217. - lynxos*)
  32218. - # FIXME: insert proper C++ library support
  32219. - ld_shlibs_CXX=no
  32220. - ;;
  32221. - m88k*)
  32222. - # FIXME: insert proper C++ library support
  32223. - ld_shlibs_CXX=no
  32224. - ;;
  32225. - mvs*)
  32226. - case $cc_basename in
  32227. - cxx)
  32228. - # FIXME: insert proper C++ library support
  32229. - ld_shlibs_CXX=no
  32230. - ;;
  32231. - *)
  32232. - # FIXME: insert proper C++ library support
  32233. - ld_shlibs_CXX=no
  32234. - ;;
  32235. +
  32236. +if test -z "$FPM" && test "$GCC" = yes
  32237. +then
  32238. + case "$host" in
  32239. + i?86-*) FPM="INTEL" ;;
  32240. + arm*-*) FPM="ARM" ;;
  32241. + mips*-*) FPM="MIPS" ;;
  32242. + sparc*-*) FPM="SPARC" ;;
  32243. + powerpc*-*) FPM="PPC" ;;
  32244. + # FIXME: need to test for 64-bit long long...
  32245. esac
  32246. - ;;
  32247. - netbsd* | knetbsd*-gnu)
  32248. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32249. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  32250. - wlarc=
  32251. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  32252. - hardcode_direct_CXX=yes
  32253. - hardcode_shlibpath_var_CXX=no
  32254. - fi
  32255. - # Workaround some broken pre-1.5 toolchains
  32256. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  32257. - ;;
  32258. - osf3*)
  32259. - case $cc_basename in
  32260. - KCC)
  32261. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32262. -
  32263. - # KCC will only create a shared library if the output file
  32264. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32265. - # to its proper name (with version) after linking.
  32266. - archive_cmds_CXX='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'
  32267. -
  32268. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32269. - hardcode_libdir_separator_CXX=:
  32270. -
  32271. - # Archives containing C++ object files must be created using
  32272. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  32273. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  32274. +fi
  32275. - ;;
  32276. - RCC)
  32277. - # Rational C++ 2.4.1
  32278. - # FIXME: insert proper C++ library support
  32279. - ld_shlibs_CXX=no
  32280. - ;;
  32281. - cxx)
  32282. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32283. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  32284. -
  32285. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32286. - hardcode_libdir_separator_CXX=:
  32287. -
  32288. - # Commands to make compiler produce verbose output that lists
  32289. - # what "hidden" libraries, object files and flags are used when
  32290. - # linking a shared library.
  32291. - #
  32292. - # There doesn't appear to be a way to prevent this compiler from
  32293. - # explicitly linking system object files so we need to strip them
  32294. - # from the output so that they don't get included in the library
  32295. - # dependencies.
  32296. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32297. - ;;
  32298. - *)
  32299. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32300. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32301. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  32302. -
  32303. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32304. - hardcode_libdir_separator_CXX=:
  32305. -
  32306. - # Commands to make compiler produce verbose output that lists
  32307. - # what "hidden" libraries, object files and flags are used when
  32308. - # linking a shared library.
  32309. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32310. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FPM=DEFAULT}" >&5
  32311. +$as_echo "${FPM=DEFAULT}" >&6; }
  32312. - else
  32313. - # FIXME: insert proper C++ library support
  32314. - ld_shlibs_CXX=no
  32315. - fi
  32316. - ;;
  32317. +if test "$FPM" = "DEFAULT"
  32318. +then
  32319. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: default fixed-point math will yield limited accuracy" >&5
  32320. +$as_echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
  32321. +fi
  32322. +
  32323. +FPM="-DFPM_$FPM"
  32324. +
  32325. +# Check whether --enable-sso was given.
  32326. +if test "${enable_sso+set}" = set; then :
  32327. + enableval=$enable_sso;
  32328. + case "$enableval" in
  32329. + yes)
  32330. +
  32331. +$as_echo "#define OPT_SSO 1" >>confdefs.h
  32332. +
  32333. + ;;
  32334. esac
  32335. - ;;
  32336. - osf4* | osf5*)
  32337. - case $cc_basename in
  32338. - KCC)
  32339. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  32340. -
  32341. - # KCC will only create a shared library if the output file
  32342. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  32343. - # to its proper name (with version) after linking.
  32344. - archive_cmds_CXX='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'
  32345. -
  32346. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  32347. - hardcode_libdir_separator_CXX=:
  32348. -
  32349. - # Archives containing C++ object files must be created using
  32350. - # the KAI C++ compiler.
  32351. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  32352. - ;;
  32353. - RCC)
  32354. - # Rational C++ 2.4.1
  32355. - # FIXME: insert proper C++ library support
  32356. - ld_shlibs_CXX=no
  32357. - ;;
  32358. - cxx)
  32359. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  32360. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  32361. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  32362. - echo "-hidden">> $lib.exp~
  32363. - $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 $objdir/so_locations -o $lib~
  32364. - $rm $lib.exp'
  32365. -
  32366. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  32367. - hardcode_libdir_separator_CXX=:
  32368. -
  32369. - # Commands to make compiler produce verbose output that lists
  32370. - # what "hidden" libraries, object files and flags are used when
  32371. - # linking a shared library.
  32372. - #
  32373. - # There doesn't appear to be a way to prevent this compiler from
  32374. - # explicitly linking system object files so we need to strip them
  32375. - # from the output so that they don't get included in the library
  32376. - # dependencies.
  32377. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32378. - ;;
  32379. - *)
  32380. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32381. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  32382. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  32383. -
  32384. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  32385. - hardcode_libdir_separator_CXX=:
  32386. -
  32387. - # Commands to make compiler produce verbose output that lists
  32388. - # what "hidden" libraries, object files and flags are used when
  32389. - # linking a shared library.
  32390. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  32391. - else
  32392. - # FIXME: insert proper C++ library support
  32393. - ld_shlibs_CXX=no
  32394. - fi
  32395. - ;;
  32396. +fi
  32397. +
  32398. +
  32399. +# Check whether --enable-aso was given.
  32400. +if test "${enable_aso+set}" = set; then :
  32401. + enableval=$enable_aso;
  32402. +else
  32403. + enable_aso=yes
  32404. +fi
  32405. +
  32406. +
  32407. +if test "$enable_aso" = yes
  32408. +then
  32409. + case "$host" in
  32410. + i?86-*)
  32411. + : #ASO="$ASO -DASO_INTERLEAVE1"
  32412. + ASO="$ASO -DASO_ZEROCHECK"
  32413. + : #not yet #ASO="$ASO -DASO_SYNTH"
  32414. + : #not yet #ASO_OBJS="synth_mmx.lo"
  32415. + ;;
  32416. + arm*-*)
  32417. + ASO="$ASO -DASO_INTERLEAVE1"
  32418. + ASO="$ASO -DASO_IMDCT"
  32419. + ASO_OBJS="imdct_l_arm.lo"
  32420. + ;;
  32421. + mips*-*)
  32422. + ASO="$ASO -DASO_INTERLEAVE2"
  32423. + ASO="$ASO -DASO_ZEROCHECK"
  32424. + ;;
  32425. esac
  32426. - ;;
  32427. - psos*)
  32428. - # FIXME: insert proper C++ library support
  32429. - ld_shlibs_CXX=no
  32430. - ;;
  32431. - sco*)
  32432. - archive_cmds_need_lc_CXX=no
  32433. - case $cc_basename in
  32434. - CC)
  32435. - # FIXME: insert proper C++ library support
  32436. - ld_shlibs_CXX=no
  32437. - ;;
  32438. - *)
  32439. - # FIXME: insert proper C++ library support
  32440. - ld_shlibs_CXX=no
  32441. - ;;
  32442. +fi
  32443. +
  32444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO/IEC interpretation" >&5
  32445. +$as_echo_n "checking for ISO/IEC interpretation... " >&6; }
  32446. +# Check whether --enable-strict-iso was given.
  32447. +if test "${enable_strict_iso+set}" = set; then :
  32448. + enableval=$enable_strict_iso;
  32449. + case "$enableval" in
  32450. + yes)
  32451. +
  32452. +$as_echo "#define OPT_STRICT 1" >>confdefs.h
  32453. +
  32454. + interpretation="strict"
  32455. + ;;
  32456. esac
  32457. - ;;
  32458. - sunos4*)
  32459. - case $cc_basename in
  32460. - CC)
  32461. - # Sun C++ 4.x
  32462. - # FIXME: insert proper C++ library support
  32463. - ld_shlibs_CXX=no
  32464. - ;;
  32465. - lcc)
  32466. - # Lucid
  32467. - # FIXME: insert proper C++ library support
  32468. - ld_shlibs_CXX=no
  32469. - ;;
  32470. - *)
  32471. - # FIXME: insert proper C++ library support
  32472. - ld_shlibs_CXX=no
  32473. - ;;
  32474. +
  32475. +fi
  32476. +
  32477. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${interpretation-best accepted practices}" >&5
  32478. +$as_echo "${interpretation-best accepted practices}" >&6; }
  32479. +
  32480. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable profiling" >&5
  32481. +$as_echo_n "checking whether to enable profiling... " >&6; }
  32482. +# Check whether --enable-profiling was given.
  32483. +if test "${enable_profiling+set}" = set; then :
  32484. + enableval=$enable_profiling;
  32485. + case "$enableval" in
  32486. + yes) profile="-pg" ;;
  32487. esac
  32488. - ;;
  32489. - solaris*)
  32490. - case $cc_basename in
  32491. - CC)
  32492. - # Sun C++ 4.2, 5.x and Centerline C++
  32493. - no_undefined_flag_CXX=' -zdefs'
  32494. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  32495. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32496. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32497. -
  32498. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  32499. - hardcode_shlibpath_var_CXX=no
  32500. - case $host_os in
  32501. - solaris2.0-5 | solaris2.0-5.*) ;;
  32502. - *)
  32503. - # The C++ compiler is used as linker so we must use $wl
  32504. - # flag to pass the commands to the underlying system
  32505. - # linker.
  32506. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  32507. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  32508. +
  32509. +fi
  32510. +
  32511. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_profiling-no}" >&5
  32512. +$as_echo "${enable_profiling-no}" >&6; }
  32513. +
  32514. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
  32515. +$as_echo_n "checking whether to enable debugging... " >&6; }
  32516. +# Check whether --enable-debugging was given.
  32517. +if test "${enable_debugging+set}" = set; then :
  32518. + enableval=$enable_debugging;
  32519. + case "$enableval" in
  32520. + yes)
  32521. +
  32522. +$as_echo "#define DEBUG 1" >>confdefs.h
  32523. +
  32524. + optimize=""
  32525. ;;
  32526. - esac
  32527. - link_all_deplibs_CXX=yes
  32528. + no)
  32529. + if test -n "$profile"
  32530. + then
  32531. + as_fn_error "--enable-profiling and --disable-debugging are incompatible" "$LINENO" 5
  32532. + fi
  32533. - # Commands to make compiler produce verbose output that lists
  32534. - # what "hidden" libraries, object files and flags are used when
  32535. - # linking a shared library.
  32536. - #
  32537. - # There doesn't appear to be a way to prevent this compiler from
  32538. - # explicitly linking system object files so we need to strip them
  32539. - # from the output so that they don't get included in the library
  32540. - # dependencies.
  32541. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  32542. -
  32543. - # Archives containing C++ object files must be created using
  32544. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  32545. - # necessary to make sure instantiated templates are included
  32546. - # in the archive.
  32547. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  32548. - ;;
  32549. - gcx)
  32550. - # Green Hills C++ Compiler
  32551. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32552. - # The C++ compiler must be used to create the archive.
  32553. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  32554. - ;;
  32555. - *)
  32556. - # GNU C++ compiler with Solaris linker
  32557. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  32558. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  32559. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  32560. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32561. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32562. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32563. -
  32564. - # Commands to make compiler produce verbose output that lists
  32565. - # what "hidden" libraries, object files and flags are used when
  32566. - # linking a shared library.
  32567. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  32568. - else
  32569. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  32570. - # platform.
  32571. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  32572. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  32573. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  32574. -
  32575. - # Commands to make compiler produce verbose output that lists
  32576. - # what "hidden" libraries, object files and flags are used when
  32577. - # linking a shared library.
  32578. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  32579. - fi
  32580. +$as_echo "#define NDEBUG 1" >>confdefs.h
  32581. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  32582. - fi
  32583. - ;;
  32584. + debug=""
  32585. + if test "$GCC" = yes
  32586. + then
  32587. + optimize="$optimize -fomit-frame-pointer"
  32588. + fi
  32589. + ;;
  32590. esac
  32591. - ;;
  32592. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  32593. - archive_cmds_need_lc_CXX=no
  32594. - ;;
  32595. - tandem*)
  32596. - case $cc_basename in
  32597. - NCC)
  32598. - # NonStop-UX NCC 3.20
  32599. - # FIXME: insert proper C++ library support
  32600. - ld_shlibs_CXX=no
  32601. - ;;
  32602. - *)
  32603. - # FIXME: insert proper C++ library support
  32604. - ld_shlibs_CXX=no
  32605. - ;;
  32606. +
  32607. +fi
  32608. +
  32609. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_debugging-default}" >&5
  32610. +$as_echo "${enable_debugging-default}" >&6; }
  32611. +
  32612. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable experimental code" >&5
  32613. +$as_echo_n "checking whether to enable experimental code... " >&6; }
  32614. +# Check whether --enable-experimental was given.
  32615. +if test "${enable_experimental+set}" = set; then :
  32616. + enableval=$enable_experimental;
  32617. + case "$enableval" in
  32618. + yes)
  32619. +
  32620. +$as_echo "#define EXPERIMENTAL 1" >>confdefs.h
  32621. +
  32622. + ;;
  32623. esac
  32624. - ;;
  32625. - vxworks*)
  32626. - # FIXME: insert proper C++ library support
  32627. - ld_shlibs_CXX=no
  32628. - ;;
  32629. - *)
  32630. - # FIXME: insert proper C++ library support
  32631. - ld_shlibs_CXX=no
  32632. - ;;
  32633. -esac
  32634. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  32635. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  32636. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  32637. -GCC_CXX="$GXX"
  32638. -LD_CXX="$LD"
  32639. +fi
  32640. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_experimental-no}" >&5
  32641. +$as_echo "${enable_experimental-no}" >&6; }
  32642. -cat > conftest.$ac_ext <<EOF
  32643. -class Foo
  32644. -{
  32645. -public:
  32646. - Foo (void) { a = 0; }
  32647. -private:
  32648. - int a;
  32649. -};
  32650. -EOF
  32651. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  32652. - (eval $ac_compile) 2>&5
  32653. - ac_status=$?
  32654. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32655. - (exit $ac_status); }; then
  32656. - # Parse the compiler output and extract the necessary
  32657. - # objects, libraries and library flags.
  32658. -
  32659. - # Sentinel used to keep track of whether or not we are before
  32660. - # the conftest object file.
  32661. - pre_test_object_deps_done=no
  32662. -
  32663. - # The `*' in the case matches for architectures that use `case' in
  32664. - # $output_verbose_cmd can trigger glob expansion during the loop
  32665. - # eval without this substitution.
  32666. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  32667. -
  32668. - for p in `eval $output_verbose_link_cmd`; do
  32669. - case $p in
  32670. -
  32671. - -L* | -R* | -l*)
  32672. - # Some compilers place space between "-{L,R}" and the path.
  32673. - # Remove the space.
  32674. - if test $p = "-L" \
  32675. - || test $p = "-R"; then
  32676. - prev=$p
  32677. - continue
  32678. - else
  32679. - prev=
  32680. - fi
  32681. +test -n "$arch" && CFLAGS="$CFLAGS $arch"
  32682. +test -n "$debug" && CFLAGS="$CFLAGS $debug"
  32683. +test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
  32684. +test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
  32685. - if test "$pre_test_object_deps_done" = no; then
  32686. - case $p in
  32687. - -L* | -R*)
  32688. - # Internal compiler library paths should come after those
  32689. - # provided the user. The postdeps already come after the
  32690. - # user supplied libs so there is no need to process them.
  32691. - if test -z "$compiler_lib_search_path_CXX"; then
  32692. - compiler_lib_search_path_CXX="${prev}${p}"
  32693. - else
  32694. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  32695. - fi
  32696. - ;;
  32697. - # The "-l" case would never come before the object being
  32698. - # linked, so don't bother handling this case.
  32699. - esac
  32700. - else
  32701. - if test -z "$postdeps_CXX"; then
  32702. - postdeps_CXX="${prev}${p}"
  32703. - else
  32704. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  32705. - fi
  32706. - fi
  32707. - ;;
  32708. - *.$objext)
  32709. - # This assumes that the test object file only shows up
  32710. - # once in the compiler output.
  32711. - if test "$p" = "conftest.$objext"; then
  32712. - pre_test_object_deps_done=yes
  32713. - continue
  32714. - fi
  32715. +ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
  32716. - if test "$pre_test_object_deps_done" = no; then
  32717. - if test -z "$predep_objects_CXX"; then
  32718. - predep_objects_CXX="$p"
  32719. - else
  32720. - predep_objects_CXX="$predep_objects_CXX $p"
  32721. - fi
  32722. - else
  32723. - if test -z "$postdep_objects_CXX"; then
  32724. - postdep_objects_CXX="$p"
  32725. - else
  32726. - postdep_objects_CXX="$postdep_objects_CXX $p"
  32727. - fi
  32728. - fi
  32729. - ;;
  32730. +cat >confcache <<\_ACEOF
  32731. +# This file is a shell script that caches the results of configure
  32732. +# tests run on this system so they can be shared between configure
  32733. +# scripts and configure runs, see configure's option --config-cache.
  32734. +# It is not useful on other systems. If it contains results you don't
  32735. +# want to keep, you may remove or edit it.
  32736. +#
  32737. +# config.status only pays attention to the cache file if you give it
  32738. +# the --recheck option to rerun configure.
  32739. +#
  32740. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  32741. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  32742. +# following values.
  32743. - *) ;; # Ignore the rest.
  32744. +_ACEOF
  32745. +# The following way of writing the cache mishandles newlines in values,
  32746. +# but we know of no workaround that is simple, portable, and efficient.
  32747. +# So, we kill variables containing newlines.
  32748. +# Ultrix sh set writes to stderr and can't be redirected directly,
  32749. +# and sets the high bit in the cache file unless we assign to the vars.
  32750. +(
  32751. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  32752. + eval ac_val=\$$ac_var
  32753. + case $ac_val in #(
  32754. + *${as_nl}*)
  32755. + case $ac_var in #(
  32756. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  32757. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  32758. + esac
  32759. + case $ac_var in #(
  32760. + _ | IFS | as_nl) ;; #(
  32761. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  32762. + *) { eval $ac_var=; unset $ac_var;} ;;
  32763. + esac ;;
  32764. esac
  32765. done
  32766. - # Clean up.
  32767. - rm -f a.out a.exe
  32768. -else
  32769. - echo "libtool.m4: error: problem compiling CXX test program"
  32770. + (set) 2>&1 |
  32771. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  32772. + *${as_nl}ac_space=\ *)
  32773. + # `set' does not quote correctly, so add quotes: double-quote
  32774. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  32775. + sed -n \
  32776. + "s/'/'\\\\''/g;
  32777. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  32778. + ;; #(
  32779. + *)
  32780. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  32781. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  32782. + ;;
  32783. + esac |
  32784. + sort
  32785. +) |
  32786. + sed '
  32787. + /^ac_cv_env_/b end
  32788. + t clear
  32789. + :clear
  32790. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  32791. + t end
  32792. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  32793. + :end' >>confcache
  32794. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  32795. + if test -w "$cache_file"; then
  32796. + test "x$cache_file" != "x/dev/null" &&
  32797. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  32798. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  32799. + cat confcache >$cache_file
  32800. + else
  32801. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  32802. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  32803. + fi
  32804. fi
  32805. +rm -f confcache
  32806. -$rm -f confest.$objext
  32807. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  32808. +# Let make expand exec_prefix.
  32809. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  32810. -case " $postdeps_CXX " in
  32811. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  32812. -esac
  32813. +DEFS=-DHAVE_CONFIG_H
  32814. -lt_prog_compiler_wl_CXX=
  32815. -lt_prog_compiler_pic_CXX=
  32816. -lt_prog_compiler_static_CXX=
  32817. -
  32818. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  32819. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  32820. -
  32821. - # C++ specific cases for pic, static, wl, etc.
  32822. - if test "$GXX" = yes; then
  32823. - lt_prog_compiler_wl_CXX='-Wl,'
  32824. - lt_prog_compiler_static_CXX='-static'
  32825. +ac_libobjs=
  32826. +ac_ltlibobjs=
  32827. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  32828. + # 1. Remove the extension, and $U if already installed.
  32829. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  32830. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  32831. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  32832. + # will be set to the directory where LIBOBJS objects are built.
  32833. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  32834. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  32835. +done
  32836. +LIBOBJS=$ac_libobjs
  32837. - case $host_os in
  32838. - aix*)
  32839. - # All AIX code is PIC.
  32840. - if test "$host_cpu" = ia64; then
  32841. - # AIX 5 now supports IA64 processor
  32842. - lt_prog_compiler_static_CXX='-Bstatic'
  32843. - fi
  32844. - ;;
  32845. - amigaos*)
  32846. - # FIXME: we need at least 68020 code to build shared libraries, but
  32847. - # adding the `-m68020' flag to GCC prevents building anything better,
  32848. - # like `-m68040'.
  32849. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  32850. - ;;
  32851. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  32852. - # PIC is the default for these OSes.
  32853. - ;;
  32854. - mingw* | os2* | pw32*)
  32855. - # This hack is so that the source file can tell whether it is being
  32856. - # built for inclusion in a dll (and should export symbols for example).
  32857. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  32858. - ;;
  32859. - darwin* | rhapsody*)
  32860. - # PIC is the default on this platform
  32861. - # Common symbols not allowed in MH_DYLIB files
  32862. - lt_prog_compiler_pic_CXX='-fno-common'
  32863. - ;;
  32864. - *djgpp*)
  32865. - # DJGPP does not support shared libraries at all
  32866. - lt_prog_compiler_pic_CXX=
  32867. - ;;
  32868. - sysv4*MP*)
  32869. - if test -d /usr/nec; then
  32870. - lt_prog_compiler_pic_CXX=-Kconform_pic
  32871. - fi
  32872. - ;;
  32873. - hpux*)
  32874. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  32875. - # not for PA HP-UX.
  32876. - case "$host_cpu" in
  32877. - hppa*64*|ia64*)
  32878. - ;;
  32879. - *)
  32880. - lt_prog_compiler_pic_CXX='-fPIC'
  32881. - ;;
  32882. - esac
  32883. - ;;
  32884. - *)
  32885. - lt_prog_compiler_pic_CXX='-fPIC'
  32886. - ;;
  32887. - esac
  32888. - else
  32889. - case $host_os in
  32890. - aix4* | aix5*)
  32891. - # All AIX code is PIC.
  32892. - if test "$host_cpu" = ia64; then
  32893. - # AIX 5 now supports IA64 processor
  32894. - lt_prog_compiler_static_CXX='-Bstatic'
  32895. - else
  32896. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  32897. - fi
  32898. - ;;
  32899. - chorus*)
  32900. - case $cc_basename in
  32901. - cxch68)
  32902. - # Green Hills C++ Compiler
  32903. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--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"
  32904. - ;;
  32905. - esac
  32906. - ;;
  32907. - dgux*)
  32908. - case $cc_basename in
  32909. - ec++)
  32910. - lt_prog_compiler_pic_CXX='-KPIC'
  32911. - ;;
  32912. - ghcx)
  32913. - # Green Hills C++ Compiler
  32914. - lt_prog_compiler_pic_CXX='-pic'
  32915. - ;;
  32916. - *)
  32917. - ;;
  32918. - esac
  32919. - ;;
  32920. - freebsd* | kfreebsd*-gnu)
  32921. - # FreeBSD uses GNU C++
  32922. - ;;
  32923. - hpux9* | hpux10* | hpux11*)
  32924. - case $cc_basename in
  32925. - CC)
  32926. - lt_prog_compiler_wl_CXX='-Wl,'
  32927. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  32928. - if test "$host_cpu" != ia64; then
  32929. - lt_prog_compiler_pic_CXX='+Z'
  32930. - fi
  32931. - ;;
  32932. - aCC)
  32933. - lt_prog_compiler_wl_CXX='-Wl,'
  32934. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  32935. - case "$host_cpu" in
  32936. - hppa*64*|ia64*)
  32937. - # +Z the default
  32938. - ;;
  32939. - *)
  32940. - lt_prog_compiler_pic_CXX='+Z'
  32941. - ;;
  32942. - esac
  32943. - ;;
  32944. - *)
  32945. - ;;
  32946. - esac
  32947. - ;;
  32948. - irix5* | irix6* | nonstopux*)
  32949. - case $cc_basename in
  32950. - CC)
  32951. - lt_prog_compiler_wl_CXX='-Wl,'
  32952. - lt_prog_compiler_static_CXX='-non_shared'
  32953. - # CC pic flag -KPIC is the default.
  32954. - ;;
  32955. - *)
  32956. - ;;
  32957. - esac
  32958. - ;;
  32959. - linux*)
  32960. - case $cc_basename in
  32961. - KCC)
  32962. - # KAI C++ Compiler
  32963. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  32964. - lt_prog_compiler_pic_CXX='-fPIC'
  32965. - ;;
  32966. - icpc)
  32967. - # Intel C++
  32968. - lt_prog_compiler_wl_CXX='-Wl,'
  32969. - lt_prog_compiler_pic_CXX='-KPIC'
  32970. - lt_prog_compiler_static_CXX='-static'
  32971. - ;;
  32972. - cxx)
  32973. - # Compaq C++
  32974. - # Make sure the PIC flag is empty. It appears that all Alpha
  32975. - # Linux and Compaq Tru64 Unix objects are PIC.
  32976. - lt_prog_compiler_pic_CXX=
  32977. - lt_prog_compiler_static_CXX='-non_shared'
  32978. - ;;
  32979. - *)
  32980. - ;;
  32981. - esac
  32982. - ;;
  32983. - lynxos*)
  32984. - ;;
  32985. - m88k*)
  32986. - ;;
  32987. - mvs*)
  32988. - case $cc_basename in
  32989. - cxx)
  32990. - lt_prog_compiler_pic_CXX='-W c,exportall'
  32991. - ;;
  32992. - *)
  32993. - ;;
  32994. - esac
  32995. - ;;
  32996. - netbsd* | knetbsd*-gnu)
  32997. - ;;
  32998. - osf3* | osf4* | osf5*)
  32999. - case $cc_basename in
  33000. - KCC)
  33001. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  33002. - ;;
  33003. - RCC)
  33004. - # Rational C++ 2.4.1
  33005. - lt_prog_compiler_pic_CXX='-pic'
  33006. - ;;
  33007. - cxx)
  33008. - # Digital/Compaq C++
  33009. - lt_prog_compiler_wl_CXX='-Wl,'
  33010. - # Make sure the PIC flag is empty. It appears that all Alpha
  33011. - # Linux and Compaq Tru64 Unix objects are PIC.
  33012. - lt_prog_compiler_pic_CXX=
  33013. - lt_prog_compiler_static_CXX='-non_shared'
  33014. - ;;
  33015. - *)
  33016. - ;;
  33017. - esac
  33018. - ;;
  33019. - psos*)
  33020. - ;;
  33021. - sco*)
  33022. - case $cc_basename in
  33023. - CC)
  33024. - lt_prog_compiler_pic_CXX='-fPIC'
  33025. - ;;
  33026. - *)
  33027. - ;;
  33028. - esac
  33029. - ;;
  33030. - solaris*)
  33031. - case $cc_basename in
  33032. - CC)
  33033. - # Sun C++ 4.2, 5.x and Centerline C++
  33034. - lt_prog_compiler_pic_CXX='-KPIC'
  33035. - lt_prog_compiler_static_CXX='-Bstatic'
  33036. - lt_prog_compiler_wl_CXX='-Qoption ld '
  33037. - ;;
  33038. - gcx)
  33039. - # Green Hills C++ Compiler
  33040. - lt_prog_compiler_pic_CXX='-PIC'
  33041. - ;;
  33042. - *)
  33043. - ;;
  33044. - esac
  33045. - ;;
  33046. - sunos4*)
  33047. - case $cc_basename in
  33048. - CC)
  33049. - # Sun C++ 4.x
  33050. - lt_prog_compiler_pic_CXX='-pic'
  33051. - lt_prog_compiler_static_CXX='-Bstatic'
  33052. - ;;
  33053. - lcc)
  33054. - # Lucid
  33055. - lt_prog_compiler_pic_CXX='-pic'
  33056. - ;;
  33057. - *)
  33058. - ;;
  33059. - esac
  33060. - ;;
  33061. - tandem*)
  33062. - case $cc_basename in
  33063. - NCC)
  33064. - # NonStop-UX NCC 3.20
  33065. - lt_prog_compiler_pic_CXX='-KPIC'
  33066. - ;;
  33067. - *)
  33068. - ;;
  33069. - esac
  33070. - ;;
  33071. - unixware*)
  33072. - ;;
  33073. - vxworks*)
  33074. - ;;
  33075. - *)
  33076. - lt_prog_compiler_can_build_shared_CXX=no
  33077. - ;;
  33078. - esac
  33079. - fi
  33080. -
  33081. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  33082. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  33083. -
  33084. -#
  33085. -# Check to make sure the PIC flag actually works.
  33086. -#
  33087. -if test -n "$lt_prog_compiler_pic_CXX"; then
  33088. -
  33089. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  33090. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  33091. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  33092. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33093. -else
  33094. - lt_prog_compiler_pic_works_CXX=no
  33095. - ac_outfile=conftest.$ac_objext
  33096. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33097. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  33098. - # Insert the option either (1) after the last *FLAGS variable, or
  33099. - # (2) before a word containing "conftest.", or (3) at the end.
  33100. - # Note that $ac_compile itself does not contain backslashes and begins
  33101. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33102. - # The option is referenced via a variable to avoid confusing sed.
  33103. - lt_compile=`echo "$ac_compile" | $SED \
  33104. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33105. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33106. - -e 's:$: $lt_compiler_flag:'`
  33107. - (eval echo "\"\$as_me:11015: $lt_compile\"" >&5)
  33108. - (eval "$lt_compile" 2>conftest.err)
  33109. - ac_status=$?
  33110. - cat conftest.err >&5
  33111. - echo "$as_me:11019: \$? = $ac_status" >&5
  33112. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33113. - # The compiler can only warn and ignore the option if not recognized
  33114. - # So say no if there are warnings
  33115. - if test ! -s conftest.err; then
  33116. - lt_prog_compiler_pic_works_CXX=yes
  33117. - fi
  33118. - fi
  33119. - $rm conftest*
  33120. -
  33121. -fi
  33122. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  33123. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  33124. -
  33125. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  33126. - case $lt_prog_compiler_pic_CXX in
  33127. - "" | " "*) ;;
  33128. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  33129. - esac
  33130. -else
  33131. - lt_prog_compiler_pic_CXX=
  33132. - lt_prog_compiler_can_build_shared_CXX=no
  33133. -fi
  33134. -
  33135. -fi
  33136. -case "$host_os" in
  33137. - # For platforms which do not support PIC, -DPIC is meaningless:
  33138. - *djgpp*)
  33139. - lt_prog_compiler_pic_CXX=
  33140. - ;;
  33141. - *)
  33142. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  33143. - ;;
  33144. -esac
  33145. -
  33146. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  33147. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  33148. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  33149. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33150. -else
  33151. - lt_cv_prog_compiler_c_o_CXX=no
  33152. - $rm -r conftest 2>/dev/null
  33153. - mkdir conftest
  33154. - cd conftest
  33155. - mkdir out
  33156. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33157. -
  33158. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  33159. - # Insert the option either (1) after the last *FLAGS variable, or
  33160. - # (2) before a word containing "conftest.", or (3) at the end.
  33161. - # Note that $ac_compile itself does not contain backslashes and begins
  33162. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33163. - lt_compile=`echo "$ac_compile" | $SED \
  33164. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33165. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33166. - -e 's:$: $lt_compiler_flag:'`
  33167. - (eval echo "\"\$as_me:11075: $lt_compile\"" >&5)
  33168. - (eval "$lt_compile" 2>out/conftest.err)
  33169. - ac_status=$?
  33170. - cat out/conftest.err >&5
  33171. - echo "$as_me:11079: \$? = $ac_status" >&5
  33172. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33173. - then
  33174. - # The compiler can only warn and ignore the option if not recognized
  33175. - # So say no if there are warnings
  33176. - if test ! -s out/conftest.err; then
  33177. - lt_cv_prog_compiler_c_o_CXX=yes
  33178. - fi
  33179. - fi
  33180. - chmod u+w .
  33181. - $rm conftest*
  33182. - # SGI C++ compiler will create directory out/ii_files/ for
  33183. - # template instantiation
  33184. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  33185. - $rm out/* && rmdir out
  33186. - cd ..
  33187. - rmdir conftest
  33188. - $rm conftest*
  33189. -
  33190. -fi
  33191. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  33192. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  33193. -
  33194. -
  33195. -hard_links="nottested"
  33196. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  33197. - # do not overwrite the value of need_locks provided by the user
  33198. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  33199. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  33200. - hard_links=yes
  33201. - $rm conftest*
  33202. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33203. - touch conftest.a
  33204. - ln conftest.a conftest.b 2>&5 || hard_links=no
  33205. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33206. - echo "$as_me:$LINENO: result: $hard_links" >&5
  33207. -echo "${ECHO_T}$hard_links" >&6
  33208. - if test "$hard_links" = no; then
  33209. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33210. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33211. - need_locks=warn
  33212. - fi
  33213. -else
  33214. - need_locks=no
  33215. -fi
  33216. -
  33217. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33218. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  33219. -
  33220. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33221. - case $host_os in
  33222. - aix4* | aix5*)
  33223. - # If we're using GNU nm, then we don't want the "-C" option.
  33224. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33225. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  33226. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  33227. - else
  33228. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  33229. - fi
  33230. - ;;
  33231. - pw32*)
  33232. - export_symbols_cmds_CXX="$ltdll_cmds"
  33233. - ;;
  33234. - cygwin* | mingw*)
  33235. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  33236. - ;;
  33237. - *)
  33238. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33239. - ;;
  33240. - esac
  33241. -
  33242. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  33243. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  33244. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  33245. -
  33246. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  33247. -if test "$GCC" = yes; then
  33248. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  33249. -fi
  33250. -
  33251. -#
  33252. -# Do we need to explicitly link libc?
  33253. -#
  33254. -case "x$archive_cmds_need_lc_CXX" in
  33255. -x|xyes)
  33256. - # Assume -lc should be added
  33257. - archive_cmds_need_lc_CXX=yes
  33258. -
  33259. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  33260. - case $archive_cmds_CXX in
  33261. - *'~'*)
  33262. - # FIXME: we may have to deal with multi-command sequences.
  33263. - ;;
  33264. - '$CC '*)
  33265. - # Test whether the compiler implicitly links with -lc since on some
  33266. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  33267. - # to ld, don't add -lc before -lgcc.
  33268. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  33269. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  33270. - $rm conftest*
  33271. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33272. -
  33273. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  33274. - (eval $ac_compile) 2>&5
  33275. - ac_status=$?
  33276. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33277. - (exit $ac_status); } 2>conftest.err; then
  33278. - soname=conftest
  33279. - lib=conftest
  33280. - libobjs=conftest.$ac_objext
  33281. - deplibs=
  33282. - wl=$lt_prog_compiler_wl_CXX
  33283. - compiler_flags=-v
  33284. - linker_flags=-v
  33285. - verstring=
  33286. - output_objdir=.
  33287. - libname=conftest
  33288. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  33289. - allow_undefined_flag_CXX=
  33290. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  33291. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  33292. - ac_status=$?
  33293. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33294. - (exit $ac_status); }
  33295. - then
  33296. - archive_cmds_need_lc_CXX=no
  33297. - else
  33298. - archive_cmds_need_lc_CXX=yes
  33299. - fi
  33300. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  33301. - else
  33302. - cat conftest.err 1>&5
  33303. - fi
  33304. - $rm conftest*
  33305. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  33306. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  33307. - ;;
  33308. - esac
  33309. - fi
  33310. - ;;
  33311. -esac
  33312. -
  33313. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  33314. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  33315. -library_names_spec=
  33316. -libname_spec='lib$name'
  33317. -soname_spec=
  33318. -shrext=".so"
  33319. -postinstall_cmds=
  33320. -postuninstall_cmds=
  33321. -finish_cmds=
  33322. -finish_eval=
  33323. -shlibpath_var=
  33324. -shlibpath_overrides_runpath=unknown
  33325. -version_type=none
  33326. -dynamic_linker="$host_os ld.so"
  33327. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  33328. -if test "$GCC" = yes; then
  33329. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33330. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  33331. - # if the path contains ";" then we assume it to be the separator
  33332. - # otherwise default to the standard path separator (i.e. ":") - it is
  33333. - # assumed that no part of a normal pathname contains ";" but that should
  33334. - # okay in the real world where ";" in dirpaths is itself problematic.
  33335. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33336. - else
  33337. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33338. - fi
  33339. -else
  33340. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  33341. -fi
  33342. -need_lib_prefix=unknown
  33343. -hardcode_into_libs=no
  33344. -
  33345. -# when you set need_version to no, make sure it does not cause -set_version
  33346. -# flags to be left without arguments
  33347. -need_version=unknown
  33348. -
  33349. -case $host_os in
  33350. -aix3*)
  33351. - version_type=linux
  33352. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  33353. - shlibpath_var=LIBPATH
  33354. -
  33355. - # AIX 3 has no versioning support, so we append a major version to the name.
  33356. - soname_spec='${libname}${release}${shared_ext}$major'
  33357. - ;;
  33358. -
  33359. -aix4* | aix5*)
  33360. - version_type=linux
  33361. - need_lib_prefix=no
  33362. - need_version=no
  33363. - hardcode_into_libs=yes
  33364. - if test "$host_cpu" = ia64; then
  33365. - # AIX 5 supports IA64
  33366. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  33367. - shlibpath_var=LD_LIBRARY_PATH
  33368. - else
  33369. - # With GCC up to 2.95.x, collect2 would create an import file
  33370. - # for dependence libraries. The import file would start with
  33371. - # the line `#! .'. This would cause the generated library to
  33372. - # depend on `.', always an invalid library. This was fixed in
  33373. - # development snapshots of GCC prior to 3.0.
  33374. - case $host_os in
  33375. - aix4 | aix4.[01] | aix4.[01].*)
  33376. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  33377. - echo ' yes '
  33378. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  33379. - :
  33380. - else
  33381. - can_build_shared=no
  33382. - fi
  33383. - ;;
  33384. - esac
  33385. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  33386. - # soname into executable. Probably we can add versioning support to
  33387. - # collect2, so additional links can be useful in future.
  33388. - if test "$aix_use_runtimelinking" = yes; then
  33389. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  33390. - # instead of lib<name>.a to let people know that these are not
  33391. - # typical AIX shared libraries.
  33392. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33393. - else
  33394. - # We preserve .a as extension for shared libraries through AIX4.2
  33395. - # and later when we are not doing run time linking.
  33396. - library_names_spec='${libname}${release}.a $libname.a'
  33397. - soname_spec='${libname}${release}${shared_ext}$major'
  33398. - fi
  33399. - shlibpath_var=LIBPATH
  33400. - fi
  33401. - ;;
  33402. -
  33403. -amigaos*)
  33404. - library_names_spec='$libname.ixlibrary $libname.a'
  33405. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  33406. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  33407. - ;;
  33408. -
  33409. -beos*)
  33410. - library_names_spec='${libname}${shared_ext}'
  33411. - dynamic_linker="$host_os ld.so"
  33412. - shlibpath_var=LIBRARY_PATH
  33413. - ;;
  33414. -
  33415. -bsdi4*)
  33416. - version_type=linux
  33417. - need_version=no
  33418. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33419. - soname_spec='${libname}${release}${shared_ext}$major'
  33420. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  33421. - shlibpath_var=LD_LIBRARY_PATH
  33422. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  33423. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  33424. - # the default ld.so.conf also contains /usr/contrib/lib and
  33425. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  33426. - # libtool to hard-code these into programs
  33427. - ;;
  33428. -
  33429. -cygwin* | mingw* | pw32*)
  33430. - version_type=windows
  33431. - shrext=".dll"
  33432. - need_version=no
  33433. - need_lib_prefix=no
  33434. -
  33435. - case $GCC,$host_os in
  33436. - yes,cygwin* | yes,mingw* | yes,pw32*)
  33437. - library_names_spec='$libname.dll.a'
  33438. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  33439. - postinstall_cmds='base_file=`basename \${file}`~
  33440. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  33441. - dldir=$destdir/`dirname \$dlpath`~
  33442. - test -d \$dldir || mkdir -p \$dldir~
  33443. - $install_prog $dir/$dlname \$dldir/$dlname'
  33444. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  33445. - dlpath=$dir/\$dldll~
  33446. - $rm \$dlpath'
  33447. - shlibpath_overrides_runpath=yes
  33448. -
  33449. - case $host_os in
  33450. - cygwin*)
  33451. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  33452. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33453. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  33454. - ;;
  33455. - mingw*)
  33456. - # MinGW DLLs use traditional 'lib' prefix
  33457. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  33458. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  33459. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  33460. - # It is most probably a Windows format PATH printed by
  33461. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  33462. - # path with ; separators, and with drive letters. We can handle the
  33463. - # drive letters (cygwin fileutils understands them), so leave them,
  33464. - # especially as we might pass files found there to a mingw objdump,
  33465. - # which wouldn't understand a cygwinified path. Ahh.
  33466. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  33467. - else
  33468. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  33469. - fi
  33470. - ;;
  33471. - pw32*)
  33472. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  33473. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  33474. - ;;
  33475. - esac
  33476. - ;;
  33477. -
  33478. - *)
  33479. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  33480. - ;;
  33481. - esac
  33482. - dynamic_linker='Win32 ld.exe'
  33483. - # FIXME: first we should search . and the directory the executable is in
  33484. - shlibpath_var=PATH
  33485. - ;;
  33486. -
  33487. -darwin* | rhapsody*)
  33488. - dynamic_linker="$host_os dyld"
  33489. - version_type=darwin
  33490. - need_lib_prefix=no
  33491. - need_version=no
  33492. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  33493. - soname_spec='${libname}${release}${major}$shared_ext'
  33494. - shlibpath_overrides_runpath=yes
  33495. - shlibpath_var=DYLD_LIBRARY_PATH
  33496. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  33497. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  33498. - if test "$GCC" = yes; then
  33499. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  33500. - else
  33501. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  33502. - fi
  33503. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  33504. - ;;
  33505. -
  33506. -dgux*)
  33507. - version_type=linux
  33508. - need_lib_prefix=no
  33509. - need_version=no
  33510. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  33511. - soname_spec='${libname}${release}${shared_ext}$major'
  33512. - shlibpath_var=LD_LIBRARY_PATH
  33513. - ;;
  33514. -
  33515. -freebsd1*)
  33516. - dynamic_linker=no
  33517. - ;;
  33518. -
  33519. -kfreebsd*-gnu)
  33520. - version_type=linux
  33521. - need_lib_prefix=no
  33522. - need_version=no
  33523. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33524. - soname_spec='${libname}${release}${shared_ext}$major'
  33525. - shlibpath_var=LD_LIBRARY_PATH
  33526. - shlibpath_overrides_runpath=no
  33527. - hardcode_into_libs=yes
  33528. - dynamic_linker='GNU ld.so'
  33529. - ;;
  33530. -
  33531. -freebsd*)
  33532. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  33533. - version_type=freebsd-$objformat
  33534. - case $version_type in
  33535. - freebsd-elf*)
  33536. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  33537. - need_version=no
  33538. - need_lib_prefix=no
  33539. - ;;
  33540. - freebsd-*)
  33541. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  33542. - need_version=yes
  33543. - ;;
  33544. - esac
  33545. - shlibpath_var=LD_LIBRARY_PATH
  33546. - case $host_os in
  33547. - freebsd2*)
  33548. - shlibpath_overrides_runpath=yes
  33549. - ;;
  33550. - freebsd3.01* | freebsdelf3.01*)
  33551. - shlibpath_overrides_runpath=yes
  33552. - hardcode_into_libs=yes
  33553. - ;;
  33554. - *) # from 3.2 on
  33555. - shlibpath_overrides_runpath=no
  33556. - hardcode_into_libs=yes
  33557. - ;;
  33558. - esac
  33559. - ;;
  33560. -
  33561. -gnu*)
  33562. - version_type=linux
  33563. - need_lib_prefix=no
  33564. - need_version=no
  33565. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  33566. - soname_spec='${libname}${release}${shared_ext}$major'
  33567. - shlibpath_var=LD_LIBRARY_PATH
  33568. - hardcode_into_libs=yes
  33569. - ;;
  33570. -
  33571. -hpux9* | hpux10* | hpux11*)
  33572. - # Give a soname corresponding to the major version so that dld.sl refuses to
  33573. - # link against other versions.
  33574. - version_type=sunos
  33575. - need_lib_prefix=no
  33576. - need_version=no
  33577. - case "$host_cpu" in
  33578. - ia64*)
  33579. - shrext='.so'
  33580. - hardcode_into_libs=yes
  33581. - dynamic_linker="$host_os dld.so"
  33582. - shlibpath_var=LD_LIBRARY_PATH
  33583. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33584. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33585. - soname_spec='${libname}${release}${shared_ext}$major'
  33586. - if test "X$HPUX_IA64_MODE" = X32; then
  33587. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  33588. - else
  33589. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  33590. - fi
  33591. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33592. - ;;
  33593. - hppa*64*)
  33594. - shrext='.sl'
  33595. - hardcode_into_libs=yes
  33596. - dynamic_linker="$host_os dld.sl"
  33597. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  33598. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  33599. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33600. - soname_spec='${libname}${release}${shared_ext}$major'
  33601. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  33602. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  33603. - ;;
  33604. - *)
  33605. - shrext='.sl'
  33606. - dynamic_linker="$host_os dld.sl"
  33607. - shlibpath_var=SHLIB_PATH
  33608. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  33609. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33610. - soname_spec='${libname}${release}${shared_ext}$major'
  33611. - ;;
  33612. - esac
  33613. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  33614. - postinstall_cmds='chmod 555 $lib'
  33615. - ;;
  33616. -
  33617. -irix5* | irix6* | nonstopux*)
  33618. - case $host_os in
  33619. - nonstopux*) version_type=nonstopux ;;
  33620. - *)
  33621. - if test "$lt_cv_prog_gnu_ld" = yes; then
  33622. - version_type=linux
  33623. - else
  33624. - version_type=irix
  33625. - fi ;;
  33626. - esac
  33627. - need_lib_prefix=no
  33628. - need_version=no
  33629. - soname_spec='${libname}${release}${shared_ext}$major'
  33630. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  33631. - case $host_os in
  33632. - irix5* | nonstopux*)
  33633. - libsuff= shlibsuff=
  33634. - ;;
  33635. - *)
  33636. - case $LD in # libtool.m4 will add one of these switches to LD
  33637. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  33638. - libsuff= shlibsuff= libmagic=32-bit;;
  33639. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  33640. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  33641. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  33642. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  33643. - *) libsuff= shlibsuff= libmagic=never-match;;
  33644. - esac
  33645. - ;;
  33646. - esac
  33647. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  33648. - shlibpath_overrides_runpath=no
  33649. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  33650. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  33651. - hardcode_into_libs=yes
  33652. - ;;
  33653. -
  33654. -# No shared lib support for Linux oldld, aout, or coff.
  33655. -linux*oldld* | linux*aout* | linux*coff*)
  33656. - dynamic_linker=no
  33657. - ;;
  33658. -
  33659. -# This must be Linux ELF.
  33660. -linux*)
  33661. - version_type=linux
  33662. - need_lib_prefix=no
  33663. - need_version=no
  33664. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33665. - soname_spec='${libname}${release}${shared_ext}$major'
  33666. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  33667. - shlibpath_var=LD_LIBRARY_PATH
  33668. - shlibpath_overrides_runpath=no
  33669. - # This implies no fast_install, which is unacceptable.
  33670. - # Some rework will be needed to allow for fast_install
  33671. - # before this can be enabled.
  33672. - hardcode_into_libs=yes
  33673. -
  33674. - # Append ld.so.conf contents to the search path
  33675. - if test -f /etc/ld.so.conf; then
  33676. - ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  33677. - sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  33678. - fi
  33679. -
  33680. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  33681. - # powerpc, because MkLinux only supported shared libraries with the
  33682. - # GNU dynamic linker. Since this was broken with cross compilers,
  33683. - # most powerpc-linux boxes support dynamic linking these days and
  33684. - # people can always --disable-shared, the test was removed, and we
  33685. - # assume the GNU/Linux dynamic linker is in use.
  33686. - dynamic_linker='GNU/Linux ld.so'
  33687. - ;;
  33688. -
  33689. -knetbsd*-gnu)
  33690. - version_type=linux
  33691. - need_lib_prefix=no
  33692. - need_version=no
  33693. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33694. - soname_spec='${libname}${release}${shared_ext}$major'
  33695. - shlibpath_var=LD_LIBRARY_PATH
  33696. - shlibpath_overrides_runpath=no
  33697. - hardcode_into_libs=yes
  33698. - dynamic_linker='GNU ld.so'
  33699. - ;;
  33700. -
  33701. -netbsd*)
  33702. - version_type=sunos
  33703. - need_lib_prefix=no
  33704. - need_version=no
  33705. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33706. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33707. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33708. - dynamic_linker='NetBSD (a.out) ld.so'
  33709. - else
  33710. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  33711. - soname_spec='${libname}${release}${shared_ext}$major'
  33712. - dynamic_linker='NetBSD ld.elf_so'
  33713. - fi
  33714. - shlibpath_var=LD_LIBRARY_PATH
  33715. - shlibpath_overrides_runpath=yes
  33716. - hardcode_into_libs=yes
  33717. - ;;
  33718. -
  33719. -newsos6)
  33720. - version_type=linux
  33721. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33722. - shlibpath_var=LD_LIBRARY_PATH
  33723. - shlibpath_overrides_runpath=yes
  33724. - ;;
  33725. -
  33726. -nto-qnx*)
  33727. - version_type=linux
  33728. - need_lib_prefix=no
  33729. - need_version=no
  33730. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33731. - soname_spec='${libname}${release}${shared_ext}$major'
  33732. - shlibpath_var=LD_LIBRARY_PATH
  33733. - shlibpath_overrides_runpath=yes
  33734. - ;;
  33735. -
  33736. -openbsd*)
  33737. - version_type=sunos
  33738. - need_lib_prefix=no
  33739. - need_version=yes
  33740. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33741. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  33742. - shlibpath_var=LD_LIBRARY_PATH
  33743. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  33744. - case $host_os in
  33745. - openbsd2.[89] | openbsd2.[89].*)
  33746. - shlibpath_overrides_runpath=no
  33747. - ;;
  33748. - *)
  33749. - shlibpath_overrides_runpath=yes
  33750. - ;;
  33751. - esac
  33752. - else
  33753. - shlibpath_overrides_runpath=yes
  33754. - fi
  33755. - ;;
  33756. -
  33757. -os2*)
  33758. - libname_spec='$name'
  33759. - shrext=".dll"
  33760. - need_lib_prefix=no
  33761. - library_names_spec='$libname${shared_ext} $libname.a'
  33762. - dynamic_linker='OS/2 ld.exe'
  33763. - shlibpath_var=LIBPATH
  33764. - ;;
  33765. -
  33766. -osf3* | osf4* | osf5*)
  33767. - version_type=osf
  33768. - need_lib_prefix=no
  33769. - need_version=no
  33770. - soname_spec='${libname}${release}${shared_ext}$major'
  33771. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33772. - shlibpath_var=LD_LIBRARY_PATH
  33773. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  33774. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  33775. - ;;
  33776. -
  33777. -sco3.2v5*)
  33778. - version_type=osf
  33779. - soname_spec='${libname}${release}${shared_ext}$major'
  33780. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33781. - shlibpath_var=LD_LIBRARY_PATH
  33782. - ;;
  33783. -
  33784. -solaris*)
  33785. - version_type=linux
  33786. - need_lib_prefix=no
  33787. - need_version=no
  33788. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33789. - soname_spec='${libname}${release}${shared_ext}$major'
  33790. - shlibpath_var=LD_LIBRARY_PATH
  33791. - shlibpath_overrides_runpath=yes
  33792. - hardcode_into_libs=yes
  33793. - # ldd complains unless libraries are executable
  33794. - postinstall_cmds='chmod +x $lib'
  33795. - ;;
  33796. -
  33797. -sunos4*)
  33798. - version_type=sunos
  33799. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  33800. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  33801. - shlibpath_var=LD_LIBRARY_PATH
  33802. - shlibpath_overrides_runpath=yes
  33803. - if test "$with_gnu_ld" = yes; then
  33804. - need_lib_prefix=no
  33805. - fi
  33806. - need_version=yes
  33807. - ;;
  33808. -
  33809. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  33810. - version_type=linux
  33811. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33812. - soname_spec='${libname}${release}${shared_ext}$major'
  33813. - shlibpath_var=LD_LIBRARY_PATH
  33814. - case $host_vendor in
  33815. - sni)
  33816. - shlibpath_overrides_runpath=no
  33817. - need_lib_prefix=no
  33818. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  33819. - runpath_var=LD_RUN_PATH
  33820. - ;;
  33821. - siemens)
  33822. - need_lib_prefix=no
  33823. - ;;
  33824. - motorola)
  33825. - need_lib_prefix=no
  33826. - need_version=no
  33827. - shlibpath_overrides_runpath=no
  33828. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  33829. - ;;
  33830. - esac
  33831. - ;;
  33832. -
  33833. -sysv4*MP*)
  33834. - if test -d /usr/nec ;then
  33835. - version_type=linux
  33836. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  33837. - soname_spec='$libname${shared_ext}.$major'
  33838. - shlibpath_var=LD_LIBRARY_PATH
  33839. - fi
  33840. - ;;
  33841. -
  33842. -uts4*)
  33843. - version_type=linux
  33844. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  33845. - soname_spec='${libname}${release}${shared_ext}$major'
  33846. - shlibpath_var=LD_LIBRARY_PATH
  33847. - ;;
  33848. -
  33849. -*)
  33850. - dynamic_linker=no
  33851. - ;;
  33852. -esac
  33853. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  33854. -echo "${ECHO_T}$dynamic_linker" >&6
  33855. -test "$dynamic_linker" = no && can_build_shared=no
  33856. -
  33857. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  33858. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  33859. -hardcode_action_CXX=
  33860. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  33861. - test -n "$runpath_var CXX" || \
  33862. - test "X$hardcode_automatic_CXX"="Xyes" ; then
  33863. -
  33864. - # We can hardcode non-existant directories.
  33865. - if test "$hardcode_direct_CXX" != no &&
  33866. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  33867. - # have to relink, otherwise we might link with an installed library
  33868. - # when we should be linking with a yet-to-be-installed one
  33869. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  33870. - test "$hardcode_minus_L_CXX" != no; then
  33871. - # Linking always hardcodes the temporary library directory.
  33872. - hardcode_action_CXX=relink
  33873. - else
  33874. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  33875. - hardcode_action_CXX=immediate
  33876. - fi
  33877. -else
  33878. - # We cannot hardcode anything, or else we can only hardcode existing
  33879. - # directories.
  33880. - hardcode_action_CXX=unsupported
  33881. -fi
  33882. -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  33883. -echo "${ECHO_T}$hardcode_action_CXX" >&6
  33884. -
  33885. -if test "$hardcode_action_CXX" = relink; then
  33886. - # Fast installation is not supported
  33887. - enable_fast_install=no
  33888. -elif test "$shlibpath_overrides_runpath" = yes ||
  33889. - test "$enable_shared" = no; then
  33890. - # Fast installation is not necessary
  33891. - enable_fast_install=needless
  33892. -fi
  33893. -
  33894. -striplib=
  33895. -old_striplib=
  33896. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  33897. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  33898. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  33899. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  33900. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  33901. - echo "$as_me:$LINENO: result: yes" >&5
  33902. -echo "${ECHO_T}yes" >&6
  33903. -else
  33904. -# FIXME - insert some real tests, host_os isn't really good enough
  33905. - case $host_os in
  33906. - darwin*)
  33907. - if test -n "$STRIP" ; then
  33908. - striplib="$STRIP -x"
  33909. - echo "$as_me:$LINENO: result: yes" >&5
  33910. -echo "${ECHO_T}yes" >&6
  33911. - else
  33912. - echo "$as_me:$LINENO: result: no" >&5
  33913. -echo "${ECHO_T}no" >&6
  33914. -fi
  33915. - ;;
  33916. - *)
  33917. - echo "$as_me:$LINENO: result: no" >&5
  33918. -echo "${ECHO_T}no" >&6
  33919. - ;;
  33920. - esac
  33921. -fi
  33922. -
  33923. -if test "x$enable_dlopen" != xyes; then
  33924. - enable_dlopen=unknown
  33925. - enable_dlopen_self=unknown
  33926. - enable_dlopen_self_static=unknown
  33927. -else
  33928. - lt_cv_dlopen=no
  33929. - lt_cv_dlopen_libs=
  33930. -
  33931. - case $host_os in
  33932. - beos*)
  33933. - lt_cv_dlopen="load_add_on"
  33934. - lt_cv_dlopen_libs=
  33935. - lt_cv_dlopen_self=yes
  33936. - ;;
  33937. -
  33938. - mingw* | pw32*)
  33939. - lt_cv_dlopen="LoadLibrary"
  33940. - lt_cv_dlopen_libs=
  33941. - ;;
  33942. -
  33943. - cygwin*)
  33944. - lt_cv_dlopen="dlopen"
  33945. - lt_cv_dlopen_libs=
  33946. - ;;
  33947. -
  33948. - darwin*)
  33949. - # if libdl is installed we need to link against it
  33950. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  33951. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  33952. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  33953. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33954. -else
  33955. - ac_check_lib_save_LIBS=$LIBS
  33956. -LIBS="-ldl $LIBS"
  33957. -cat >conftest.$ac_ext <<_ACEOF
  33958. -/* confdefs.h. */
  33959. -_ACEOF
  33960. -cat confdefs.h >>conftest.$ac_ext
  33961. -cat >>conftest.$ac_ext <<_ACEOF
  33962. -/* end confdefs.h. */
  33963. -
  33964. -/* Override any gcc2 internal prototype to avoid an error. */
  33965. -#ifdef __cplusplus
  33966. -extern "C"
  33967. -#endif
  33968. -/* We use char because int might match the return type of a gcc2
  33969. - builtin and then its argument prototype would still apply. */
  33970. -char dlopen ();
  33971. -int
  33972. -main ()
  33973. -{
  33974. -dlopen ();
  33975. - ;
  33976. - return 0;
  33977. -}
  33978. -_ACEOF
  33979. -rm -f conftest.$ac_objext conftest$ac_exeext
  33980. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33981. - (eval $ac_link) 2>conftest.er1
  33982. - ac_status=$?
  33983. - grep -v '^ *+' conftest.er1 >conftest.err
  33984. - rm -f conftest.er1
  33985. - cat conftest.err >&5
  33986. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33987. - (exit $ac_status); } &&
  33988. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  33989. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33990. - (eval $ac_try) 2>&5
  33991. - ac_status=$?
  33992. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33993. - (exit $ac_status); }; } &&
  33994. - { ac_try='test -s conftest$ac_exeext'
  33995. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33996. - (eval $ac_try) 2>&5
  33997. - ac_status=$?
  33998. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33999. - (exit $ac_status); }; }; then
  34000. - ac_cv_lib_dl_dlopen=yes
  34001. -else
  34002. - echo "$as_me: failed program was:" >&5
  34003. -sed 's/^/| /' conftest.$ac_ext >&5
  34004. -
  34005. -ac_cv_lib_dl_dlopen=no
  34006. -fi
  34007. -rm -f conftest.err conftest.$ac_objext \
  34008. - conftest$ac_exeext conftest.$ac_ext
  34009. -LIBS=$ac_check_lib_save_LIBS
  34010. -fi
  34011. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  34012. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  34013. -if test $ac_cv_lib_dl_dlopen = yes; then
  34014. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34015. -else
  34016. -
  34017. - lt_cv_dlopen="dyld"
  34018. - lt_cv_dlopen_libs=
  34019. - lt_cv_dlopen_self=yes
  34020. -
  34021. -fi
  34022. -
  34023. - ;;
  34024. -
  34025. - *)
  34026. - echo "$as_me:$LINENO: checking for shl_load" >&5
  34027. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  34028. -if test "${ac_cv_func_shl_load+set}" = set; then
  34029. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34030. -else
  34031. - cat >conftest.$ac_ext <<_ACEOF
  34032. -/* confdefs.h. */
  34033. -_ACEOF
  34034. -cat confdefs.h >>conftest.$ac_ext
  34035. -cat >>conftest.$ac_ext <<_ACEOF
  34036. -/* end confdefs.h. */
  34037. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  34038. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34039. -#define shl_load innocuous_shl_load
  34040. -
  34041. -/* System header to define __stub macros and hopefully few prototypes,
  34042. - which can conflict with char shl_load (); below.
  34043. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34044. - <limits.h> exists even on freestanding compilers. */
  34045. -
  34046. -#ifdef __STDC__
  34047. -# include <limits.h>
  34048. -#else
  34049. -# include <assert.h>
  34050. -#endif
  34051. -
  34052. -#undef shl_load
  34053. -
  34054. -/* Override any gcc2 internal prototype to avoid an error. */
  34055. -#ifdef __cplusplus
  34056. -extern "C"
  34057. -{
  34058. -#endif
  34059. -/* We use char because int might match the return type of a gcc2
  34060. - builtin and then its argument prototype would still apply. */
  34061. -char shl_load ();
  34062. -/* The GNU C library defines this for functions which it implements
  34063. - to always fail with ENOSYS. Some functions are actually named
  34064. - something starting with __ and the normal name is an alias. */
  34065. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  34066. -choke me
  34067. -#else
  34068. -char (*f) () = shl_load;
  34069. -#endif
  34070. -#ifdef __cplusplus
  34071. -}
  34072. -#endif
  34073. -
  34074. -int
  34075. -main ()
  34076. -{
  34077. -return f != shl_load;
  34078. - ;
  34079. - return 0;
  34080. -}
  34081. -_ACEOF
  34082. -rm -f conftest.$ac_objext conftest$ac_exeext
  34083. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34084. - (eval $ac_link) 2>conftest.er1
  34085. - ac_status=$?
  34086. - grep -v '^ *+' conftest.er1 >conftest.err
  34087. - rm -f conftest.er1
  34088. - cat conftest.err >&5
  34089. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34090. - (exit $ac_status); } &&
  34091. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34092. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34093. - (eval $ac_try) 2>&5
  34094. - ac_status=$?
  34095. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34096. - (exit $ac_status); }; } &&
  34097. - { ac_try='test -s conftest$ac_exeext'
  34098. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34099. - (eval $ac_try) 2>&5
  34100. - ac_status=$?
  34101. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34102. - (exit $ac_status); }; }; then
  34103. - ac_cv_func_shl_load=yes
  34104. -else
  34105. - echo "$as_me: failed program was:" >&5
  34106. -sed 's/^/| /' conftest.$ac_ext >&5
  34107. -
  34108. -ac_cv_func_shl_load=no
  34109. -fi
  34110. -rm -f conftest.err conftest.$ac_objext \
  34111. - conftest$ac_exeext conftest.$ac_ext
  34112. -fi
  34113. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  34114. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  34115. -if test $ac_cv_func_shl_load = yes; then
  34116. - lt_cv_dlopen="shl_load"
  34117. -else
  34118. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  34119. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  34120. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  34121. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34122. -else
  34123. - ac_check_lib_save_LIBS=$LIBS
  34124. -LIBS="-ldld $LIBS"
  34125. -cat >conftest.$ac_ext <<_ACEOF
  34126. -/* confdefs.h. */
  34127. -_ACEOF
  34128. -cat confdefs.h >>conftest.$ac_ext
  34129. -cat >>conftest.$ac_ext <<_ACEOF
  34130. -/* end confdefs.h. */
  34131. -
  34132. -/* Override any gcc2 internal prototype to avoid an error. */
  34133. -#ifdef __cplusplus
  34134. -extern "C"
  34135. -#endif
  34136. -/* We use char because int might match the return type of a gcc2
  34137. - builtin and then its argument prototype would still apply. */
  34138. -char shl_load ();
  34139. -int
  34140. -main ()
  34141. -{
  34142. -shl_load ();
  34143. - ;
  34144. - return 0;
  34145. -}
  34146. -_ACEOF
  34147. -rm -f conftest.$ac_objext conftest$ac_exeext
  34148. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34149. - (eval $ac_link) 2>conftest.er1
  34150. - ac_status=$?
  34151. - grep -v '^ *+' conftest.er1 >conftest.err
  34152. - rm -f conftest.er1
  34153. - cat conftest.err >&5
  34154. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34155. - (exit $ac_status); } &&
  34156. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34157. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34158. - (eval $ac_try) 2>&5
  34159. - ac_status=$?
  34160. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34161. - (exit $ac_status); }; } &&
  34162. - { ac_try='test -s conftest$ac_exeext'
  34163. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34164. - (eval $ac_try) 2>&5
  34165. - ac_status=$?
  34166. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34167. - (exit $ac_status); }; }; then
  34168. - ac_cv_lib_dld_shl_load=yes
  34169. -else
  34170. - echo "$as_me: failed program was:" >&5
  34171. -sed 's/^/| /' conftest.$ac_ext >&5
  34172. -
  34173. -ac_cv_lib_dld_shl_load=no
  34174. -fi
  34175. -rm -f conftest.err conftest.$ac_objext \
  34176. - conftest$ac_exeext conftest.$ac_ext
  34177. -LIBS=$ac_check_lib_save_LIBS
  34178. -fi
  34179. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  34180. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  34181. -if test $ac_cv_lib_dld_shl_load = yes; then
  34182. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  34183. -else
  34184. - echo "$as_me:$LINENO: checking for dlopen" >&5
  34185. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  34186. -if test "${ac_cv_func_dlopen+set}" = set; then
  34187. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34188. -else
  34189. - cat >conftest.$ac_ext <<_ACEOF
  34190. -/* confdefs.h. */
  34191. -_ACEOF
  34192. -cat confdefs.h >>conftest.$ac_ext
  34193. -cat >>conftest.$ac_ext <<_ACEOF
  34194. -/* end confdefs.h. */
  34195. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  34196. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  34197. -#define dlopen innocuous_dlopen
  34198. -
  34199. -/* System header to define __stub macros and hopefully few prototypes,
  34200. - which can conflict with char dlopen (); below.
  34201. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  34202. - <limits.h> exists even on freestanding compilers. */
  34203. -
  34204. -#ifdef __STDC__
  34205. -# include <limits.h>
  34206. -#else
  34207. -# include <assert.h>
  34208. -#endif
  34209. -
  34210. -#undef dlopen
  34211. -
  34212. -/* Override any gcc2 internal prototype to avoid an error. */
  34213. -#ifdef __cplusplus
  34214. -extern "C"
  34215. -{
  34216. -#endif
  34217. -/* We use char because int might match the return type of a gcc2
  34218. - builtin and then its argument prototype would still apply. */
  34219. -char dlopen ();
  34220. -/* The GNU C library defines this for functions which it implements
  34221. - to always fail with ENOSYS. Some functions are actually named
  34222. - something starting with __ and the normal name is an alias. */
  34223. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  34224. -choke me
  34225. -#else
  34226. -char (*f) () = dlopen;
  34227. -#endif
  34228. -#ifdef __cplusplus
  34229. -}
  34230. -#endif
  34231. -
  34232. -int
  34233. -main ()
  34234. -{
  34235. -return f != dlopen;
  34236. - ;
  34237. - return 0;
  34238. -}
  34239. -_ACEOF
  34240. -rm -f conftest.$ac_objext conftest$ac_exeext
  34241. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34242. - (eval $ac_link) 2>conftest.er1
  34243. - ac_status=$?
  34244. - grep -v '^ *+' conftest.er1 >conftest.err
  34245. - rm -f conftest.er1
  34246. - cat conftest.err >&5
  34247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34248. - (exit $ac_status); } &&
  34249. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34250. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34251. - (eval $ac_try) 2>&5
  34252. - ac_status=$?
  34253. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34254. - (exit $ac_status); }; } &&
  34255. - { ac_try='test -s conftest$ac_exeext'
  34256. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34257. - (eval $ac_try) 2>&5
  34258. - ac_status=$?
  34259. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34260. - (exit $ac_status); }; }; then
  34261. - ac_cv_func_dlopen=yes
  34262. -else
  34263. - echo "$as_me: failed program was:" >&5
  34264. -sed 's/^/| /' conftest.$ac_ext >&5
  34265. -
  34266. -ac_cv_func_dlopen=no
  34267. -fi
  34268. -rm -f conftest.err conftest.$ac_objext \
  34269. - conftest$ac_exeext conftest.$ac_ext
  34270. -fi
  34271. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  34272. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  34273. -if test $ac_cv_func_dlopen = yes; then
  34274. - lt_cv_dlopen="dlopen"
  34275. -else
  34276. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  34277. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  34278. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  34279. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34280. -else
  34281. - ac_check_lib_save_LIBS=$LIBS
  34282. -LIBS="-ldl $LIBS"
  34283. -cat >conftest.$ac_ext <<_ACEOF
  34284. -/* confdefs.h. */
  34285. -_ACEOF
  34286. -cat confdefs.h >>conftest.$ac_ext
  34287. -cat >>conftest.$ac_ext <<_ACEOF
  34288. -/* end confdefs.h. */
  34289. -
  34290. -/* Override any gcc2 internal prototype to avoid an error. */
  34291. -#ifdef __cplusplus
  34292. -extern "C"
  34293. -#endif
  34294. -/* We use char because int might match the return type of a gcc2
  34295. - builtin and then its argument prototype would still apply. */
  34296. -char dlopen ();
  34297. -int
  34298. -main ()
  34299. -{
  34300. -dlopen ();
  34301. - ;
  34302. - return 0;
  34303. -}
  34304. -_ACEOF
  34305. -rm -f conftest.$ac_objext conftest$ac_exeext
  34306. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34307. - (eval $ac_link) 2>conftest.er1
  34308. - ac_status=$?
  34309. - grep -v '^ *+' conftest.er1 >conftest.err
  34310. - rm -f conftest.er1
  34311. - cat conftest.err >&5
  34312. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34313. - (exit $ac_status); } &&
  34314. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34315. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34316. - (eval $ac_try) 2>&5
  34317. - ac_status=$?
  34318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34319. - (exit $ac_status); }; } &&
  34320. - { ac_try='test -s conftest$ac_exeext'
  34321. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34322. - (eval $ac_try) 2>&5
  34323. - ac_status=$?
  34324. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34325. - (exit $ac_status); }; }; then
  34326. - ac_cv_lib_dl_dlopen=yes
  34327. -else
  34328. - echo "$as_me: failed program was:" >&5
  34329. -sed 's/^/| /' conftest.$ac_ext >&5
  34330. -
  34331. -ac_cv_lib_dl_dlopen=no
  34332. -fi
  34333. -rm -f conftest.err conftest.$ac_objext \
  34334. - conftest$ac_exeext conftest.$ac_ext
  34335. -LIBS=$ac_check_lib_save_LIBS
  34336. -fi
  34337. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  34338. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  34339. -if test $ac_cv_lib_dl_dlopen = yes; then
  34340. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  34341. -else
  34342. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  34343. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  34344. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  34345. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34346. -else
  34347. - ac_check_lib_save_LIBS=$LIBS
  34348. -LIBS="-lsvld $LIBS"
  34349. -cat >conftest.$ac_ext <<_ACEOF
  34350. -/* confdefs.h. */
  34351. -_ACEOF
  34352. -cat confdefs.h >>conftest.$ac_ext
  34353. -cat >>conftest.$ac_ext <<_ACEOF
  34354. -/* end confdefs.h. */
  34355. -
  34356. -/* Override any gcc2 internal prototype to avoid an error. */
  34357. -#ifdef __cplusplus
  34358. -extern "C"
  34359. -#endif
  34360. -/* We use char because int might match the return type of a gcc2
  34361. - builtin and then its argument prototype would still apply. */
  34362. -char dlopen ();
  34363. -int
  34364. -main ()
  34365. -{
  34366. -dlopen ();
  34367. - ;
  34368. - return 0;
  34369. -}
  34370. -_ACEOF
  34371. -rm -f conftest.$ac_objext conftest$ac_exeext
  34372. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34373. - (eval $ac_link) 2>conftest.er1
  34374. - ac_status=$?
  34375. - grep -v '^ *+' conftest.er1 >conftest.err
  34376. - rm -f conftest.er1
  34377. - cat conftest.err >&5
  34378. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34379. - (exit $ac_status); } &&
  34380. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34381. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34382. - (eval $ac_try) 2>&5
  34383. - ac_status=$?
  34384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34385. - (exit $ac_status); }; } &&
  34386. - { ac_try='test -s conftest$ac_exeext'
  34387. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34388. - (eval $ac_try) 2>&5
  34389. - ac_status=$?
  34390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34391. - (exit $ac_status); }; }; then
  34392. - ac_cv_lib_svld_dlopen=yes
  34393. -else
  34394. - echo "$as_me: failed program was:" >&5
  34395. -sed 's/^/| /' conftest.$ac_ext >&5
  34396. -
  34397. -ac_cv_lib_svld_dlopen=no
  34398. -fi
  34399. -rm -f conftest.err conftest.$ac_objext \
  34400. - conftest$ac_exeext conftest.$ac_ext
  34401. -LIBS=$ac_check_lib_save_LIBS
  34402. -fi
  34403. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  34404. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  34405. -if test $ac_cv_lib_svld_dlopen = yes; then
  34406. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  34407. -else
  34408. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  34409. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  34410. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  34411. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34412. -else
  34413. - ac_check_lib_save_LIBS=$LIBS
  34414. -LIBS="-ldld $LIBS"
  34415. -cat >conftest.$ac_ext <<_ACEOF
  34416. -/* confdefs.h. */
  34417. -_ACEOF
  34418. -cat confdefs.h >>conftest.$ac_ext
  34419. -cat >>conftest.$ac_ext <<_ACEOF
  34420. -/* end confdefs.h. */
  34421. -
  34422. -/* Override any gcc2 internal prototype to avoid an error. */
  34423. -#ifdef __cplusplus
  34424. -extern "C"
  34425. -#endif
  34426. -/* We use char because int might match the return type of a gcc2
  34427. - builtin and then its argument prototype would still apply. */
  34428. -char dld_link ();
  34429. -int
  34430. -main ()
  34431. -{
  34432. -dld_link ();
  34433. - ;
  34434. - return 0;
  34435. -}
  34436. -_ACEOF
  34437. -rm -f conftest.$ac_objext conftest$ac_exeext
  34438. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34439. - (eval $ac_link) 2>conftest.er1
  34440. - ac_status=$?
  34441. - grep -v '^ *+' conftest.er1 >conftest.err
  34442. - rm -f conftest.er1
  34443. - cat conftest.err >&5
  34444. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34445. - (exit $ac_status); } &&
  34446. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  34447. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34448. - (eval $ac_try) 2>&5
  34449. - ac_status=$?
  34450. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34451. - (exit $ac_status); }; } &&
  34452. - { ac_try='test -s conftest$ac_exeext'
  34453. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34454. - (eval $ac_try) 2>&5
  34455. - ac_status=$?
  34456. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34457. - (exit $ac_status); }; }; then
  34458. - ac_cv_lib_dld_dld_link=yes
  34459. -else
  34460. - echo "$as_me: failed program was:" >&5
  34461. -sed 's/^/| /' conftest.$ac_ext >&5
  34462. -
  34463. -ac_cv_lib_dld_dld_link=no
  34464. -fi
  34465. -rm -f conftest.err conftest.$ac_objext \
  34466. - conftest$ac_exeext conftest.$ac_ext
  34467. -LIBS=$ac_check_lib_save_LIBS
  34468. -fi
  34469. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  34470. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  34471. -if test $ac_cv_lib_dld_dld_link = yes; then
  34472. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  34473. -fi
  34474. -
  34475. -
  34476. -fi
  34477. -
  34478. -
  34479. -fi
  34480. -
  34481. -
  34482. -fi
  34483. -
  34484. -
  34485. -fi
  34486. -
  34487. -
  34488. -fi
  34489. -
  34490. - ;;
  34491. - esac
  34492. -
  34493. - if test "x$lt_cv_dlopen" != xno; then
  34494. - enable_dlopen=yes
  34495. - else
  34496. - enable_dlopen=no
  34497. - fi
  34498. -
  34499. - case $lt_cv_dlopen in
  34500. - dlopen)
  34501. - save_CPPFLAGS="$CPPFLAGS"
  34502. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  34503. -
  34504. - save_LDFLAGS="$LDFLAGS"
  34505. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  34506. -
  34507. - save_LIBS="$LIBS"
  34508. - LIBS="$lt_cv_dlopen_libs $LIBS"
  34509. -
  34510. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  34511. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  34512. -if test "${lt_cv_dlopen_self+set}" = set; then
  34513. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34514. -else
  34515. - if test "$cross_compiling" = yes; then :
  34516. - lt_cv_dlopen_self=cross
  34517. -else
  34518. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34519. - lt_status=$lt_dlunknown
  34520. - cat > conftest.$ac_ext <<EOF
  34521. -#line 12429 "configure"
  34522. -#include "confdefs.h"
  34523. -
  34524. -#if HAVE_DLFCN_H
  34525. -#include <dlfcn.h>
  34526. -#endif
  34527. -
  34528. -#include <stdio.h>
  34529. -
  34530. -#ifdef RTLD_GLOBAL
  34531. -# define LT_DLGLOBAL RTLD_GLOBAL
  34532. -#else
  34533. -# ifdef DL_GLOBAL
  34534. -# define LT_DLGLOBAL DL_GLOBAL
  34535. -# else
  34536. -# define LT_DLGLOBAL 0
  34537. -# endif
  34538. -#endif
  34539. -
  34540. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34541. - find out it does not work in some platform. */
  34542. -#ifndef LT_DLLAZY_OR_NOW
  34543. -# ifdef RTLD_LAZY
  34544. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34545. -# else
  34546. -# ifdef DL_LAZY
  34547. -# define LT_DLLAZY_OR_NOW DL_LAZY
  34548. -# else
  34549. -# ifdef RTLD_NOW
  34550. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  34551. -# else
  34552. -# ifdef DL_NOW
  34553. -# define LT_DLLAZY_OR_NOW DL_NOW
  34554. -# else
  34555. -# define LT_DLLAZY_OR_NOW 0
  34556. -# endif
  34557. -# endif
  34558. -# endif
  34559. -# endif
  34560. -#endif
  34561. -
  34562. -#ifdef __cplusplus
  34563. -extern "C" void exit (int);
  34564. -#endif
  34565. -
  34566. -void fnord() { int i=42;}
  34567. -int main ()
  34568. -{
  34569. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34570. - int status = $lt_dlunknown;
  34571. -
  34572. - if (self)
  34573. - {
  34574. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34575. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34576. - /* dlclose (self); */
  34577. - }
  34578. -
  34579. - exit (status);
  34580. -}
  34581. -EOF
  34582. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34583. - (eval $ac_link) 2>&5
  34584. - ac_status=$?
  34585. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34586. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  34587. - (./conftest; exit; ) 2>/dev/null
  34588. - lt_status=$?
  34589. - case x$lt_status in
  34590. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  34591. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  34592. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  34593. - esac
  34594. - else :
  34595. - # compilation failed
  34596. - lt_cv_dlopen_self=no
  34597. - fi
  34598. -fi
  34599. -rm -fr conftest*
  34600. -
  34601. -
  34602. -fi
  34603. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  34604. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  34605. -
  34606. - if test "x$lt_cv_dlopen_self" = xyes; then
  34607. - LDFLAGS="$LDFLAGS $link_static_flag"
  34608. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  34609. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  34610. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  34611. - echo $ECHO_N "(cached) $ECHO_C" >&6
  34612. -else
  34613. - if test "$cross_compiling" = yes; then :
  34614. - lt_cv_dlopen_self_static=cross
  34615. -else
  34616. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  34617. - lt_status=$lt_dlunknown
  34618. - cat > conftest.$ac_ext <<EOF
  34619. -#line 12527 "configure"
  34620. -#include "confdefs.h"
  34621. -
  34622. -#if HAVE_DLFCN_H
  34623. -#include <dlfcn.h>
  34624. -#endif
  34625. -
  34626. -#include <stdio.h>
  34627. -
  34628. -#ifdef RTLD_GLOBAL
  34629. -# define LT_DLGLOBAL RTLD_GLOBAL
  34630. -#else
  34631. -# ifdef DL_GLOBAL
  34632. -# define LT_DLGLOBAL DL_GLOBAL
  34633. -# else
  34634. -# define LT_DLGLOBAL 0
  34635. -# endif
  34636. -#endif
  34637. -
  34638. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  34639. - find out it does not work in some platform. */
  34640. -#ifndef LT_DLLAZY_OR_NOW
  34641. -# ifdef RTLD_LAZY
  34642. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  34643. -# else
  34644. -# ifdef DL_LAZY
  34645. -# define LT_DLLAZY_OR_NOW DL_LAZY
  34646. -# else
  34647. -# ifdef RTLD_NOW
  34648. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  34649. -# else
  34650. -# ifdef DL_NOW
  34651. -# define LT_DLLAZY_OR_NOW DL_NOW
  34652. -# else
  34653. -# define LT_DLLAZY_OR_NOW 0
  34654. -# endif
  34655. -# endif
  34656. -# endif
  34657. -# endif
  34658. -#endif
  34659. -
  34660. -#ifdef __cplusplus
  34661. -extern "C" void exit (int);
  34662. -#endif
  34663. -
  34664. -void fnord() { int i=42;}
  34665. -int main ()
  34666. -{
  34667. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  34668. - int status = $lt_dlunknown;
  34669. -
  34670. - if (self)
  34671. - {
  34672. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  34673. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  34674. - /* dlclose (self); */
  34675. - }
  34676. -
  34677. - exit (status);
  34678. -}
  34679. -EOF
  34680. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34681. - (eval $ac_link) 2>&5
  34682. - ac_status=$?
  34683. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34684. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  34685. - (./conftest; exit; ) 2>/dev/null
  34686. - lt_status=$?
  34687. - case x$lt_status in
  34688. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  34689. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  34690. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  34691. - esac
  34692. - else :
  34693. - # compilation failed
  34694. - lt_cv_dlopen_self_static=no
  34695. - fi
  34696. -fi
  34697. -rm -fr conftest*
  34698. -
  34699. -
  34700. -fi
  34701. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  34702. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  34703. - fi
  34704. -
  34705. - CPPFLAGS="$save_CPPFLAGS"
  34706. - LDFLAGS="$save_LDFLAGS"
  34707. - LIBS="$save_LIBS"
  34708. - ;;
  34709. - esac
  34710. -
  34711. - case $lt_cv_dlopen_self in
  34712. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  34713. - *) enable_dlopen_self=unknown ;;
  34714. - esac
  34715. -
  34716. - case $lt_cv_dlopen_self_static in
  34717. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  34718. - *) enable_dlopen_self_static=unknown ;;
  34719. - esac
  34720. -fi
  34721. -
  34722. -
  34723. -# The else clause should only fire when bootstrapping the
  34724. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  34725. -# with your package, and you will get complaints that there are
  34726. -# no rules to generate ltmain.sh.
  34727. -if test -f "$ltmain"; then
  34728. - # See if we are running on zsh, and set the options which allow our commands through
  34729. - # without removal of \ escapes.
  34730. - if test -n "${ZSH_VERSION+set}" ; then
  34731. - setopt NO_GLOB_SUBST
  34732. - fi
  34733. - # Now quote all the things that may contain metacharacters while being
  34734. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  34735. - # variables and quote the copies for generation of the libtool script.
  34736. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  34737. - SED SHELL STRIP \
  34738. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  34739. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  34740. - deplibs_check_method reload_flag reload_cmds need_locks \
  34741. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  34742. - lt_cv_sys_global_symbol_to_c_name_address \
  34743. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  34744. - old_postinstall_cmds old_postuninstall_cmds \
  34745. - compiler_CXX \
  34746. - CC_CXX \
  34747. - LD_CXX \
  34748. - lt_prog_compiler_wl_CXX \
  34749. - lt_prog_compiler_pic_CXX \
  34750. - lt_prog_compiler_static_CXX \
  34751. - lt_prog_compiler_no_builtin_flag_CXX \
  34752. - export_dynamic_flag_spec_CXX \
  34753. - thread_safe_flag_spec_CXX \
  34754. - whole_archive_flag_spec_CXX \
  34755. - enable_shared_with_static_runtimes_CXX \
  34756. - old_archive_cmds_CXX \
  34757. - old_archive_from_new_cmds_CXX \
  34758. - predep_objects_CXX \
  34759. - postdep_objects_CXX \
  34760. - predeps_CXX \
  34761. - postdeps_CXX \
  34762. - compiler_lib_search_path_CXX \
  34763. - archive_cmds_CXX \
  34764. - archive_expsym_cmds_CXX \
  34765. - postinstall_cmds_CXX \
  34766. - postuninstall_cmds_CXX \
  34767. - old_archive_from_expsyms_cmds_CXX \
  34768. - allow_undefined_flag_CXX \
  34769. - no_undefined_flag_CXX \
  34770. - export_symbols_cmds_CXX \
  34771. - hardcode_libdir_flag_spec_CXX \
  34772. - hardcode_libdir_flag_spec_ld_CXX \
  34773. - hardcode_libdir_separator_CXX \
  34774. - hardcode_automatic_CXX \
  34775. - module_cmds_CXX \
  34776. - module_expsym_cmds_CXX \
  34777. - lt_cv_prog_compiler_c_o_CXX \
  34778. - exclude_expsyms_CXX \
  34779. - include_expsyms_CXX; do
  34780. -
  34781. - case $var in
  34782. - old_archive_cmds_CXX | \
  34783. - old_archive_from_new_cmds_CXX | \
  34784. - archive_cmds_CXX | \
  34785. - archive_expsym_cmds_CXX | \
  34786. - module_cmds_CXX | \
  34787. - module_expsym_cmds_CXX | \
  34788. - old_archive_from_expsyms_cmds_CXX | \
  34789. - export_symbols_cmds_CXX | \
  34790. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  34791. - postinstall_cmds | postuninstall_cmds | \
  34792. - old_postinstall_cmds | old_postuninstall_cmds | \
  34793. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  34794. - # Double-quote double-evaled strings.
  34795. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  34796. - ;;
  34797. - *)
  34798. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  34799. - ;;
  34800. - esac
  34801. - done
  34802. -
  34803. - case $lt_echo in
  34804. - *'\$0 --fallback-echo"')
  34805. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  34806. - ;;
  34807. - esac
  34808. -
  34809. -cfgfile="$ofile"
  34810. -
  34811. - cat <<__EOF__ >> "$cfgfile"
  34812. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  34813. -
  34814. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  34815. -
  34816. -# Shell to use when invoking shell scripts.
  34817. -SHELL=$lt_SHELL
  34818. -
  34819. -# Whether or not to build shared libraries.
  34820. -build_libtool_libs=$enable_shared
  34821. -
  34822. -# Whether or not to build static libraries.
  34823. -build_old_libs=$enable_static
  34824. -
  34825. -# Whether or not to add -lc for building shared libraries.
  34826. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  34827. -
  34828. -# Whether or not to disallow shared libs when runtime libs are static
  34829. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  34830. -
  34831. -# Whether or not to optimize for fast installation.
  34832. -fast_install=$enable_fast_install
  34833. -
  34834. -# The host system.
  34835. -host_alias=$host_alias
  34836. -host=$host
  34837. -
  34838. -# An echo program that does not interpret backslashes.
  34839. -echo=$lt_echo
  34840. -
  34841. -# The archiver.
  34842. -AR=$lt_AR
  34843. -AR_FLAGS=$lt_AR_FLAGS
  34844. -
  34845. -# A C compiler.
  34846. -LTCC=$lt_LTCC
  34847. -
  34848. -# A language-specific compiler.
  34849. -CC=$lt_compiler_CXX
  34850. -
  34851. -# Is the compiler the GNU C compiler?
  34852. -with_gcc=$GCC_CXX
  34853. -
  34854. -# An ERE matcher.
  34855. -EGREP=$lt_EGREP
  34856. -
  34857. -# The linker used to build libraries.
  34858. -LD=$lt_LD_CXX
  34859. -
  34860. -# Whether we need hard or soft links.
  34861. -LN_S=$lt_LN_S
  34862. -
  34863. -# A BSD-compatible nm program.
  34864. -NM=$lt_NM
  34865. -
  34866. -# A symbol stripping program
  34867. -STRIP=$lt_STRIP
  34868. -
  34869. -# Used to examine libraries when file_magic_cmd begins "file"
  34870. -MAGIC_CMD=$MAGIC_CMD
  34871. -
  34872. -# Used on cygwin: DLL creation program.
  34873. -DLLTOOL="$DLLTOOL"
  34874. -
  34875. -# Used on cygwin: object dumper.
  34876. -OBJDUMP="$OBJDUMP"
  34877. -
  34878. -# Used on cygwin: assembler.
  34879. -AS="$AS"
  34880. -
  34881. -# The name of the directory that contains temporary libtool files.
  34882. -objdir=$objdir
  34883. -
  34884. -# How to create reloadable object files.
  34885. -reload_flag=$lt_reload_flag
  34886. -reload_cmds=$lt_reload_cmds
  34887. -
  34888. -# How to pass a linker flag through the compiler.
  34889. -wl=$lt_lt_prog_compiler_wl_CXX
  34890. -
  34891. -# Object file suffix (normally "o").
  34892. -objext="$ac_objext"
  34893. -
  34894. -# Old archive suffix (normally "a").
  34895. -libext="$libext"
  34896. -
  34897. -# Shared library suffix (normally ".so").
  34898. -shrext='$shrext'
  34899. -
  34900. -# Executable file suffix (normally "").
  34901. -exeext="$exeext"
  34902. -
  34903. -# Additional compiler flags for building library objects.
  34904. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  34905. -pic_mode=$pic_mode
  34906. -
  34907. -# What is the maximum length of a command?
  34908. -max_cmd_len=$lt_cv_sys_max_cmd_len
  34909. -
  34910. -# Does compiler simultaneously support -c and -o options?
  34911. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  34912. -
  34913. -# Must we lock files when doing compilation ?
  34914. -need_locks=$lt_need_locks
  34915. -
  34916. -# Do we need the lib prefix for modules?
  34917. -need_lib_prefix=$need_lib_prefix
  34918. -
  34919. -# Do we need a version for libraries?
  34920. -need_version=$need_version
  34921. -
  34922. -# Whether dlopen is supported.
  34923. -dlopen_support=$enable_dlopen
  34924. -
  34925. -# Whether dlopen of programs is supported.
  34926. -dlopen_self=$enable_dlopen_self
  34927. -
  34928. -# Whether dlopen of statically linked programs is supported.
  34929. -dlopen_self_static=$enable_dlopen_self_static
  34930. -
  34931. -# Compiler flag to prevent dynamic linking.
  34932. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  34933. -
  34934. -# Compiler flag to turn off builtin functions.
  34935. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  34936. -
  34937. -# Compiler flag to allow reflexive dlopens.
  34938. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  34939. -
  34940. -# Compiler flag to generate shared objects directly from archives.
  34941. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  34942. -
  34943. -# Compiler flag to generate thread-safe objects.
  34944. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  34945. -
  34946. -# Library versioning type.
  34947. -version_type=$version_type
  34948. -
  34949. -# Format of library name prefix.
  34950. -libname_spec=$lt_libname_spec
  34951. -
  34952. -# List of archive names. First name is the real one, the rest are links.
  34953. -# The last name is the one that the linker finds with -lNAME.
  34954. -library_names_spec=$lt_library_names_spec
  34955. -
  34956. -# The coded name of the library, if different from the real name.
  34957. -soname_spec=$lt_soname_spec
  34958. -
  34959. -# Commands used to build and install an old-style archive.
  34960. -RANLIB=$lt_RANLIB
  34961. -old_archive_cmds=$lt_old_archive_cmds_CXX
  34962. -old_postinstall_cmds=$lt_old_postinstall_cmds
  34963. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  34964. -
  34965. -# Create an old-style archive from a shared archive.
  34966. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  34967. -
  34968. -# Create a temporary old-style archive to link instead of a shared archive.
  34969. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  34970. -
  34971. -# Commands used to build and install a shared archive.
  34972. -archive_cmds=$lt_archive_cmds_CXX
  34973. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  34974. -postinstall_cmds=$lt_postinstall_cmds
  34975. -postuninstall_cmds=$lt_postuninstall_cmds
  34976. -
  34977. -# Commands used to build a loadable module (assumed same as above if empty)
  34978. -module_cmds=$lt_module_cmds_CXX
  34979. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  34980. -
  34981. -# Commands to strip libraries.
  34982. -old_striplib=$lt_old_striplib
  34983. -striplib=$lt_striplib
  34984. -
  34985. -# Dependencies to place before the objects being linked to create a
  34986. -# shared library.
  34987. -predep_objects=$lt_predep_objects_CXX
  34988. -
  34989. -# Dependencies to place after the objects being linked to create a
  34990. -# shared library.
  34991. -postdep_objects=$lt_postdep_objects_CXX
  34992. -
  34993. -# Dependencies to place before the objects being linked to create a
  34994. -# shared library.
  34995. -predeps=$lt_predeps_CXX
  34996. -
  34997. -# Dependencies to place after the objects being linked to create a
  34998. -# shared library.
  34999. -postdeps=$lt_postdeps_CXX
  35000. -
  35001. -# The library search path used internally by the compiler when linking
  35002. -# a shared library.
  35003. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  35004. -
  35005. -# Method to check whether dependent libraries are shared objects.
  35006. -deplibs_check_method=$lt_deplibs_check_method
  35007. -
  35008. -# Command to use when deplibs_check_method == file_magic.
  35009. -file_magic_cmd=$lt_file_magic_cmd
  35010. -
  35011. -# Flag that allows shared libraries with undefined symbols to be built.
  35012. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  35013. -
  35014. -# Flag that forces no undefined symbols.
  35015. -no_undefined_flag=$lt_no_undefined_flag_CXX
  35016. -
  35017. -# Commands used to finish a libtool library installation in a directory.
  35018. -finish_cmds=$lt_finish_cmds
  35019. -
  35020. -# Same as above, but a single script fragment to be evaled but not shown.
  35021. -finish_eval=$lt_finish_eval
  35022. -
  35023. -# Take the output of nm and produce a listing of raw symbols and C names.
  35024. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  35025. -
  35026. -# Transform the output of nm in a proper C declaration
  35027. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  35028. -
  35029. -# Transform the output of nm in a C name address pair
  35030. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  35031. -
  35032. -# This is the shared library runtime path variable.
  35033. -runpath_var=$runpath_var
  35034. -
  35035. -# This is the shared library path variable.
  35036. -shlibpath_var=$shlibpath_var
  35037. -
  35038. -# Is shlibpath searched before the hard-coded library search path?
  35039. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  35040. -
  35041. -# How to hardcode a shared library path into an executable.
  35042. -hardcode_action=$hardcode_action_CXX
  35043. -
  35044. -# Whether we should hardcode library paths into libraries.
  35045. -hardcode_into_libs=$hardcode_into_libs
  35046. -
  35047. -# Flag to hardcode \$libdir into a binary during linking.
  35048. -# This must work even if \$libdir does not exist.
  35049. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  35050. -
  35051. -# If ld is used when linking, flag to hardcode \$libdir into
  35052. -# a binary during linking. This must work even if \$libdir does
  35053. -# not exist.
  35054. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  35055. -
  35056. -# Whether we need a single -rpath flag with a separated argument.
  35057. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  35058. -
  35059. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  35060. -# resulting binary.
  35061. -hardcode_direct=$hardcode_direct_CXX
  35062. -
  35063. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  35064. -# resulting binary.
  35065. -hardcode_minus_L=$hardcode_minus_L_CXX
  35066. -
  35067. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  35068. -# the resulting binary.
  35069. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  35070. -
  35071. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  35072. -# and all subsequent libraries and executables linked against it.
  35073. -hardcode_automatic=$hardcode_automatic_CXX
  35074. -
  35075. -# Variables whose values should be saved in libtool wrapper scripts and
  35076. -# restored at relink time.
  35077. -variables_saved_for_relink="$variables_saved_for_relink"
  35078. -
  35079. -# Whether libtool must link a program against all its dependency libraries.
  35080. -link_all_deplibs=$link_all_deplibs_CXX
  35081. -
  35082. -# Compile-time system search path for libraries
  35083. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  35084. -
  35085. -# Run-time system search path for libraries
  35086. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  35087. -
  35088. -# Fix the shell variable \$srcfile for the compiler.
  35089. -fix_srcfile_path="$fix_srcfile_path_CXX"
  35090. -
  35091. -# Set to yes if exported symbols are required.
  35092. -always_export_symbols=$always_export_symbols_CXX
  35093. -
  35094. -# The commands to list exported symbols.
  35095. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  35096. -
  35097. -# The commands to extract the exported symbol list from a shared archive.
  35098. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  35099. -
  35100. -# Symbols that should not be listed in the preloaded symbols.
  35101. -exclude_expsyms=$lt_exclude_expsyms_CXX
  35102. -
  35103. -# Symbols that must always be exported.
  35104. -include_expsyms=$lt_include_expsyms_CXX
  35105. -
  35106. -# ### END LIBTOOL TAG CONFIG: $tagname
  35107. -
  35108. -__EOF__
  35109. -
  35110. -
  35111. -else
  35112. - # If there is no Makefile yet, we rely on a make rule to execute
  35113. - # `config.status --recheck' to rerun these tests and create the
  35114. - # libtool script then.
  35115. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  35116. - if test -f "$ltmain_in"; then
  35117. - test -f Makefile && make "$ltmain"
  35118. - fi
  35119. -fi
  35120. -
  35121. -
  35122. -ac_ext=c
  35123. -ac_cpp='$CPP $CPPFLAGS'
  35124. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  35125. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35126. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  35127. -
  35128. -CC=$lt_save_CC
  35129. -LDCXX=$LD
  35130. -LD=$lt_save_LD
  35131. -GCC=$lt_save_GCC
  35132. -with_gnu_ldcxx=$with_gnu_ld
  35133. -with_gnu_ld=$lt_save_with_gnu_ld
  35134. -lt_cv_path_LDCXX=$lt_cv_path_LD
  35135. -lt_cv_path_LD=$lt_save_path_LD
  35136. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  35137. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  35138. -
  35139. - else
  35140. - tagname=""
  35141. - fi
  35142. - ;;
  35143. -
  35144. - F77)
  35145. - if test -n "$F77" && test "X$F77" != "Xno"; then
  35146. -
  35147. -ac_ext=f
  35148. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  35149. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  35150. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  35151. -
  35152. -
  35153. -archive_cmds_need_lc_F77=no
  35154. -allow_undefined_flag_F77=
  35155. -always_export_symbols_F77=no
  35156. -archive_expsym_cmds_F77=
  35157. -export_dynamic_flag_spec_F77=
  35158. -hardcode_direct_F77=no
  35159. -hardcode_libdir_flag_spec_F77=
  35160. -hardcode_libdir_flag_spec_ld_F77=
  35161. -hardcode_libdir_separator_F77=
  35162. -hardcode_minus_L_F77=no
  35163. -hardcode_automatic_F77=no
  35164. -module_cmds_F77=
  35165. -module_expsym_cmds_F77=
  35166. -link_all_deplibs_F77=unknown
  35167. -old_archive_cmds_F77=$old_archive_cmds
  35168. -no_undefined_flag_F77=
  35169. -whole_archive_flag_spec_F77=
  35170. -enable_shared_with_static_runtimes_F77=no
  35171. -
  35172. -# Source file extension for f77 test sources.
  35173. -ac_ext=f
  35174. -
  35175. -# Object file extension for compiled f77 test sources.
  35176. -objext=o
  35177. -objext_F77=$objext
  35178. -
  35179. -# Code to be used in simple compile tests
  35180. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  35181. -
  35182. -# Code to be used in simple link tests
  35183. -lt_simple_link_test_code=" program t\n end\n"
  35184. -
  35185. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  35186. -
  35187. -# If no C compiler was specified, use CC.
  35188. -LTCC=${LTCC-"$CC"}
  35189. -
  35190. -# Allow CC to be a program name with arguments.
  35191. -compiler=$CC
  35192. -
  35193. -
  35194. -# Allow CC to be a program name with arguments.
  35195. -lt_save_CC="$CC"
  35196. -CC=${F77-"f77"}
  35197. -compiler=$CC
  35198. -compiler_F77=$CC
  35199. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  35200. -
  35201. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  35202. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  35203. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  35204. -echo "${ECHO_T}$can_build_shared" >&6
  35205. -
  35206. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  35207. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  35208. -test "$can_build_shared" = "no" && enable_shared=no
  35209. -
  35210. -# On AIX, shared libraries and static libraries use the same namespace, and
  35211. -# are all built from PIC.
  35212. -case "$host_os" in
  35213. -aix3*)
  35214. - test "$enable_shared" = yes && enable_static=no
  35215. - if test -n "$RANLIB"; then
  35216. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  35217. - postinstall_cmds='$RANLIB $lib'
  35218. - fi
  35219. - ;;
  35220. -aix4*)
  35221. - test "$enable_shared" = yes && enable_static=no
  35222. - ;;
  35223. -esac
  35224. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  35225. -echo "${ECHO_T}$enable_shared" >&6
  35226. -
  35227. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  35228. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  35229. -# Make sure either enable_shared or enable_static is yes.
  35230. -test "$enable_shared" = yes || enable_static=yes
  35231. -echo "$as_me:$LINENO: result: $enable_static" >&5
  35232. -echo "${ECHO_T}$enable_static" >&6
  35233. -
  35234. -test "$ld_shlibs_F77" = no && can_build_shared=no
  35235. -
  35236. -GCC_F77="$G77"
  35237. -LD_F77="$LD"
  35238. -
  35239. -lt_prog_compiler_wl_F77=
  35240. -lt_prog_compiler_pic_F77=
  35241. -lt_prog_compiler_static_F77=
  35242. -
  35243. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  35244. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  35245. -
  35246. - if test "$GCC" = yes; then
  35247. - lt_prog_compiler_wl_F77='-Wl,'
  35248. - lt_prog_compiler_static_F77='-static'
  35249. -
  35250. - case $host_os in
  35251. - aix*)
  35252. - # All AIX code is PIC.
  35253. - if test "$host_cpu" = ia64; then
  35254. - # AIX 5 now supports IA64 processor
  35255. - lt_prog_compiler_static_F77='-Bstatic'
  35256. - fi
  35257. - ;;
  35258. -
  35259. - amigaos*)
  35260. - # FIXME: we need at least 68020 code to build shared libraries, but
  35261. - # adding the `-m68020' flag to GCC prevents building anything better,
  35262. - # like `-m68040'.
  35263. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  35264. - ;;
  35265. -
  35266. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  35267. - # PIC is the default for these OSes.
  35268. - ;;
  35269. -
  35270. - mingw* | pw32* | os2*)
  35271. - # This hack is so that the source file can tell whether it is being
  35272. - # built for inclusion in a dll (and should export symbols for example).
  35273. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  35274. - ;;
  35275. -
  35276. - darwin* | rhapsody*)
  35277. - # PIC is the default on this platform
  35278. - # Common symbols not allowed in MH_DYLIB files
  35279. - lt_prog_compiler_pic_F77='-fno-common'
  35280. - ;;
  35281. -
  35282. - msdosdjgpp*)
  35283. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  35284. - # on systems that don't support them.
  35285. - lt_prog_compiler_can_build_shared_F77=no
  35286. - enable_shared=no
  35287. - ;;
  35288. -
  35289. - sysv4*MP*)
  35290. - if test -d /usr/nec; then
  35291. - lt_prog_compiler_pic_F77=-Kconform_pic
  35292. - fi
  35293. - ;;
  35294. -
  35295. - hpux*)
  35296. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35297. - # not for PA HP-UX.
  35298. - case "$host_cpu" in
  35299. - hppa*64*|ia64*)
  35300. - # +Z the default
  35301. - ;;
  35302. - *)
  35303. - lt_prog_compiler_pic_F77='-fPIC'
  35304. - ;;
  35305. - esac
  35306. - ;;
  35307. -
  35308. - *)
  35309. - lt_prog_compiler_pic_F77='-fPIC'
  35310. - ;;
  35311. - esac
  35312. - else
  35313. - # PORTME Check for flag to pass linker flags through the system compiler.
  35314. - case $host_os in
  35315. - aix*)
  35316. - lt_prog_compiler_wl_F77='-Wl,'
  35317. - if test "$host_cpu" = ia64; then
  35318. - # AIX 5 now supports IA64 processor
  35319. - lt_prog_compiler_static_F77='-Bstatic'
  35320. - else
  35321. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  35322. - fi
  35323. - ;;
  35324. -
  35325. - mingw* | pw32* | os2*)
  35326. - # This hack is so that the source file can tell whether it is being
  35327. - # built for inclusion in a dll (and should export symbols for example).
  35328. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  35329. - ;;
  35330. -
  35331. - hpux9* | hpux10* | hpux11*)
  35332. - lt_prog_compiler_wl_F77='-Wl,'
  35333. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  35334. - # not for PA HP-UX.
  35335. - case "$host_cpu" in
  35336. - hppa*64*|ia64*)
  35337. - # +Z the default
  35338. - ;;
  35339. - *)
  35340. - lt_prog_compiler_pic_F77='+Z'
  35341. - ;;
  35342. - esac
  35343. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  35344. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  35345. - ;;
  35346. -
  35347. - irix5* | irix6* | nonstopux*)
  35348. - lt_prog_compiler_wl_F77='-Wl,'
  35349. - # PIC (with -KPIC) is the default.
  35350. - lt_prog_compiler_static_F77='-non_shared'
  35351. - ;;
  35352. -
  35353. - newsos6)
  35354. - lt_prog_compiler_pic_F77='-KPIC'
  35355. - lt_prog_compiler_static_F77='-Bstatic'
  35356. - ;;
  35357. -
  35358. - linux*)
  35359. - case $CC in
  35360. - icc* | ecc*)
  35361. - lt_prog_compiler_wl_F77='-Wl,'
  35362. - lt_prog_compiler_pic_F77='-KPIC'
  35363. - lt_prog_compiler_static_F77='-static'
  35364. - ;;
  35365. - ccc*)
  35366. - lt_prog_compiler_wl_F77='-Wl,'
  35367. - # All Alpha code is PIC.
  35368. - lt_prog_compiler_static_F77='-non_shared'
  35369. - ;;
  35370. - esac
  35371. - ;;
  35372. -
  35373. - osf3* | osf4* | osf5*)
  35374. - lt_prog_compiler_wl_F77='-Wl,'
  35375. - # All OSF/1 code is PIC.
  35376. - lt_prog_compiler_static_F77='-non_shared'
  35377. - ;;
  35378. -
  35379. - sco3.2v5*)
  35380. - lt_prog_compiler_pic_F77='-Kpic'
  35381. - lt_prog_compiler_static_F77='-dn'
  35382. - ;;
  35383. -
  35384. - solaris*)
  35385. - lt_prog_compiler_wl_F77='-Wl,'
  35386. - lt_prog_compiler_pic_F77='-KPIC'
  35387. - lt_prog_compiler_static_F77='-Bstatic'
  35388. - ;;
  35389. -
  35390. - sunos4*)
  35391. - lt_prog_compiler_wl_F77='-Qoption ld '
  35392. - lt_prog_compiler_pic_F77='-PIC'
  35393. - lt_prog_compiler_static_F77='-Bstatic'
  35394. - ;;
  35395. -
  35396. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35397. - lt_prog_compiler_wl_F77='-Wl,'
  35398. - lt_prog_compiler_pic_F77='-KPIC'
  35399. - lt_prog_compiler_static_F77='-Bstatic'
  35400. - ;;
  35401. -
  35402. - sysv4*MP*)
  35403. - if test -d /usr/nec ;then
  35404. - lt_prog_compiler_pic_F77='-Kconform_pic'
  35405. - lt_prog_compiler_static_F77='-Bstatic'
  35406. - fi
  35407. - ;;
  35408. -
  35409. - uts4*)
  35410. - lt_prog_compiler_pic_F77='-pic'
  35411. - lt_prog_compiler_static_F77='-Bstatic'
  35412. - ;;
  35413. -
  35414. - *)
  35415. - lt_prog_compiler_can_build_shared_F77=no
  35416. - ;;
  35417. - esac
  35418. - fi
  35419. -
  35420. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  35421. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  35422. -
  35423. -#
  35424. -# Check to make sure the PIC flag actually works.
  35425. -#
  35426. -if test -n "$lt_prog_compiler_pic_F77"; then
  35427. -
  35428. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  35429. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  35430. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  35431. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35432. -else
  35433. - lt_prog_compiler_pic_works_F77=no
  35434. - ac_outfile=conftest.$ac_objext
  35435. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35436. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  35437. - # Insert the option either (1) after the last *FLAGS variable, or
  35438. - # (2) before a word containing "conftest.", or (3) at the end.
  35439. - # Note that $ac_compile itself does not contain backslashes and begins
  35440. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35441. - # The option is referenced via a variable to avoid confusing sed.
  35442. - lt_compile=`echo "$ac_compile" | $SED \
  35443. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  35444. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35445. - -e 's:$: $lt_compiler_flag:'`
  35446. - (eval echo "\"\$as_me:13354: $lt_compile\"" >&5)
  35447. - (eval "$lt_compile" 2>conftest.err)
  35448. - ac_status=$?
  35449. - cat conftest.err >&5
  35450. - echo "$as_me:13358: \$? = $ac_status" >&5
  35451. - if (exit $ac_status) && test -s "$ac_outfile"; then
  35452. - # The compiler can only warn and ignore the option if not recognized
  35453. - # So say no if there are warnings
  35454. - if test ! -s conftest.err; then
  35455. - lt_prog_compiler_pic_works_F77=yes
  35456. - fi
  35457. - fi
  35458. - $rm conftest*
  35459. -
  35460. -fi
  35461. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  35462. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  35463. -
  35464. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  35465. - case $lt_prog_compiler_pic_F77 in
  35466. - "" | " "*) ;;
  35467. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  35468. - esac
  35469. -else
  35470. - lt_prog_compiler_pic_F77=
  35471. - lt_prog_compiler_can_build_shared_F77=no
  35472. -fi
  35473. -
  35474. -fi
  35475. -case "$host_os" in
  35476. - # For platforms which do not support PIC, -DPIC is meaningless:
  35477. - *djgpp*)
  35478. - lt_prog_compiler_pic_F77=
  35479. - ;;
  35480. - *)
  35481. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  35482. - ;;
  35483. -esac
  35484. -
  35485. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  35486. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  35487. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  35488. - echo $ECHO_N "(cached) $ECHO_C" >&6
  35489. -else
  35490. - lt_cv_prog_compiler_c_o_F77=no
  35491. - $rm -r conftest 2>/dev/null
  35492. - mkdir conftest
  35493. - cd conftest
  35494. - mkdir out
  35495. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35496. -
  35497. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  35498. - # Insert the option either (1) after the last *FLAGS variable, or
  35499. - # (2) before a word containing "conftest.", or (3) at the end.
  35500. - # Note that $ac_compile itself does not contain backslashes and begins
  35501. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  35502. - lt_compile=`echo "$ac_compile" | $SED \
  35503. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  35504. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35505. - -e 's:$: $lt_compiler_flag:'`
  35506. - (eval echo "\"\$as_me:13414: $lt_compile\"" >&5)
  35507. - (eval "$lt_compile" 2>out/conftest.err)
  35508. - ac_status=$?
  35509. - cat out/conftest.err >&5
  35510. - echo "$as_me:13418: \$? = $ac_status" >&5
  35511. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35512. - then
  35513. - # The compiler can only warn and ignore the option if not recognized
  35514. - # So say no if there are warnings
  35515. - if test ! -s out/conftest.err; then
  35516. - lt_cv_prog_compiler_c_o_F77=yes
  35517. - fi
  35518. - fi
  35519. - chmod u+w .
  35520. - $rm conftest*
  35521. - # SGI C++ compiler will create directory out/ii_files/ for
  35522. - # template instantiation
  35523. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  35524. - $rm out/* && rmdir out
  35525. - cd ..
  35526. - rmdir conftest
  35527. - $rm conftest*
  35528. -
  35529. -fi
  35530. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  35531. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  35532. -
  35533. -
  35534. -hard_links="nottested"
  35535. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  35536. - # do not overwrite the value of need_locks provided by the user
  35537. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  35538. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  35539. - hard_links=yes
  35540. - $rm conftest*
  35541. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35542. - touch conftest.a
  35543. - ln conftest.a conftest.b 2>&5 || hard_links=no
  35544. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35545. - echo "$as_me:$LINENO: result: $hard_links" >&5
  35546. -echo "${ECHO_T}$hard_links" >&6
  35547. - if test "$hard_links" = no; then
  35548. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  35549. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  35550. - need_locks=warn
  35551. - fi
  35552. -else
  35553. - need_locks=no
  35554. -fi
  35555. -
  35556. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  35557. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  35558. -
  35559. - runpath_var=
  35560. - allow_undefined_flag_F77=
  35561. - enable_shared_with_static_runtimes_F77=no
  35562. - archive_cmds_F77=
  35563. - archive_expsym_cmds_F77=
  35564. - old_archive_From_new_cmds_F77=
  35565. - old_archive_from_expsyms_cmds_F77=
  35566. - export_dynamic_flag_spec_F77=
  35567. - whole_archive_flag_spec_F77=
  35568. - thread_safe_flag_spec_F77=
  35569. - hardcode_libdir_flag_spec_F77=
  35570. - hardcode_libdir_flag_spec_ld_F77=
  35571. - hardcode_libdir_separator_F77=
  35572. - hardcode_direct_F77=no
  35573. - hardcode_minus_L_F77=no
  35574. - hardcode_shlibpath_var_F77=unsupported
  35575. - link_all_deplibs_F77=unknown
  35576. - hardcode_automatic_F77=no
  35577. - module_cmds_F77=
  35578. - module_expsym_cmds_F77=
  35579. - always_export_symbols_F77=no
  35580. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  35581. - # include_expsyms should be a list of space-separated symbols to be *always*
  35582. - # included in the symbol list
  35583. - include_expsyms_F77=
  35584. - # exclude_expsyms can be an extended regexp of symbols to exclude
  35585. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  35586. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  35587. - # as well as any symbol that contains `d'.
  35588. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  35589. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  35590. - # platforms (ab)use it in PIC code, but their linkers get confused if
  35591. - # the symbol is explicitly referenced. Since portable code cannot
  35592. - # rely on this symbol name, it's probably fine to never include it in
  35593. - # preloaded symbol tables.
  35594. - extract_expsyms_cmds=
  35595. -
  35596. - case $host_os in
  35597. - cygwin* | mingw* | pw32*)
  35598. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  35599. - # When not using gcc, we currently assume that we are using
  35600. - # Microsoft Visual C++.
  35601. - if test "$GCC" != yes; then
  35602. - with_gnu_ld=no
  35603. - fi
  35604. - ;;
  35605. - openbsd*)
  35606. - with_gnu_ld=no
  35607. - ;;
  35608. - esac
  35609. -
  35610. - ld_shlibs_F77=yes
  35611. - if test "$with_gnu_ld" = yes; then
  35612. - # If archive_cmds runs LD, not CC, wlarc should be empty
  35613. - wlarc='${wl}'
  35614. -
  35615. - # See if GNU ld supports shared libraries.
  35616. - case $host_os in
  35617. - aix3* | aix4* | aix5*)
  35618. - # On AIX/PPC, the GNU linker is very broken
  35619. - if test "$host_cpu" != ia64; then
  35620. - ld_shlibs_F77=no
  35621. - cat <<EOF 1>&2
  35622. -
  35623. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  35624. -*** to be unable to reliably create shared libraries on AIX.
  35625. -*** Therefore, libtool is disabling shared libraries support. If you
  35626. -*** really care for shared libraries, you may want to modify your PATH
  35627. -*** so that a non-GNU linker is found, and then restart.
  35628. -
  35629. -EOF
  35630. - fi
  35631. - ;;
  35632. -
  35633. - amigaos*)
  35634. - archive_cmds_F77='$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)'
  35635. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35636. - hardcode_minus_L_F77=yes
  35637. -
  35638. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  35639. - # that the semantics of dynamic libraries on AmigaOS, at least up
  35640. - # to version 4, is to share data among multiple programs linked
  35641. - # with the same dynamic library. Since this doesn't match the
  35642. - # behavior of shared libraries on other platforms, we can't use
  35643. - # them.
  35644. - ld_shlibs_F77=no
  35645. - ;;
  35646. -
  35647. - beos*)
  35648. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35649. - allow_undefined_flag_F77=unsupported
  35650. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  35651. - # support --undefined. This deserves some investigation. FIXME
  35652. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35653. - else
  35654. - ld_shlibs_F77=no
  35655. - fi
  35656. - ;;
  35657. -
  35658. - cygwin* | mingw* | pw32*)
  35659. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  35660. - # as there is no search path for DLLs.
  35661. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35662. - allow_undefined_flag_F77=unsupported
  35663. - always_export_symbols_F77=no
  35664. - enable_shared_with_static_runtimes_F77=yes
  35665. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  35666. -
  35667. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  35668. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  35669. - # If the export-symbols file already is a .def file (1st line
  35670. - # is EXPORTS), use it as is; otherwise, prepend...
  35671. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  35672. - cp $export_symbols $output_objdir/$soname.def;
  35673. - else
  35674. - echo EXPORTS > $output_objdir/$soname.def;
  35675. - cat $export_symbols >> $output_objdir/$soname.def;
  35676. - fi~
  35677. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  35678. - else
  35679. - ld_shlibs=no
  35680. - fi
  35681. - ;;
  35682. -
  35683. - netbsd* | knetbsd*-gnu)
  35684. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35685. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  35686. - wlarc=
  35687. - else
  35688. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35689. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35690. - fi
  35691. - ;;
  35692. -
  35693. - solaris* | sysv5*)
  35694. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  35695. - ld_shlibs_F77=no
  35696. - cat <<EOF 1>&2
  35697. -
  35698. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  35699. -*** create shared libraries on Solaris systems. Therefore, libtool
  35700. -*** is disabling shared libraries support. We urge you to upgrade GNU
  35701. -*** binutils to release 2.9.1 or newer. Another option is to modify
  35702. -*** your PATH or compiler configuration so that the native linker is
  35703. -*** used, and then restart.
  35704. -
  35705. -EOF
  35706. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35707. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35708. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35709. - else
  35710. - ld_shlibs_F77=no
  35711. - fi
  35712. - ;;
  35713. -
  35714. - sunos4*)
  35715. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35716. - wlarc=
  35717. - hardcode_direct_F77=yes
  35718. - hardcode_shlibpath_var_F77=no
  35719. - ;;
  35720. -
  35721. - linux*)
  35722. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  35723. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35724. - archive_cmds_F77="$tmp_archive_cmds"
  35725. - supports_anon_versioning=no
  35726. - case `$LD -v 2>/dev/null` in
  35727. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  35728. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  35729. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  35730. - *\ 2.11.*) ;; # other 2.11 versions
  35731. - *) supports_anon_versioning=yes ;;
  35732. - esac
  35733. - if test $supports_anon_versioning = yes; then
  35734. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  35735. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35736. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  35737. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  35738. - else
  35739. - archive_expsym_cmds_F77="$tmp_archive_cmds"
  35740. - fi
  35741. - else
  35742. - ld_shlibs_F77=no
  35743. - fi
  35744. - ;;
  35745. -
  35746. - *)
  35747. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  35748. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35749. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35750. - else
  35751. - ld_shlibs_F77=no
  35752. - fi
  35753. - ;;
  35754. - esac
  35755. -
  35756. - if test "$ld_shlibs_F77" = yes; then
  35757. - runpath_var=LD_RUN_PATH
  35758. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  35759. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  35760. - # ancient GNU ld didn't support --whole-archive et. al.
  35761. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  35762. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35763. - else
  35764. - whole_archive_flag_spec_F77=
  35765. - fi
  35766. - fi
  35767. - else
  35768. - # PORTME fill in a description of your system's linker (not GNU ld)
  35769. - case $host_os in
  35770. - aix3*)
  35771. - allow_undefined_flag_F77=unsupported
  35772. - always_export_symbols_F77=yes
  35773. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  35774. - # Note: this linker hardcodes the directories in LIBPATH if there
  35775. - # are no directories specified by -L.
  35776. - hardcode_minus_L_F77=yes
  35777. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  35778. - # Neither direct hardcoding nor static linking is supported with a
  35779. - # broken collect2.
  35780. - hardcode_direct_F77=unsupported
  35781. - fi
  35782. - ;;
  35783. -
  35784. - aix4* | aix5*)
  35785. - if test "$host_cpu" = ia64; then
  35786. - # On IA64, the linker does run time linking by default, so we don't
  35787. - # have to do anything special.
  35788. - aix_use_runtimelinking=no
  35789. - exp_sym_flag='-Bexport'
  35790. - no_entry_flag=""
  35791. - else
  35792. - # If we're using GNU nm, then we don't want the "-C" option.
  35793. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  35794. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  35795. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  35796. - else
  35797. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  35798. - fi
  35799. - aix_use_runtimelinking=no
  35800. -
  35801. - # Test if we are trying to use run time linking or normal
  35802. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  35803. - # need to do runtime linking.
  35804. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  35805. - for ld_flag in $LDFLAGS; do
  35806. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  35807. - aix_use_runtimelinking=yes
  35808. - break
  35809. - fi
  35810. - done
  35811. - esac
  35812. -
  35813. - exp_sym_flag='-bexport'
  35814. - no_entry_flag='-bnoentry'
  35815. - fi
  35816. -
  35817. - # When large executables or shared objects are built, AIX ld can
  35818. - # have problems creating the table of contents. If linking a library
  35819. - # or program results in "error TOC overflow" add -mminimal-toc to
  35820. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  35821. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  35822. -
  35823. - archive_cmds_F77=''
  35824. - hardcode_direct_F77=yes
  35825. - hardcode_libdir_separator_F77=':'
  35826. - link_all_deplibs_F77=yes
  35827. -
  35828. - if test "$GCC" = yes; then
  35829. - case $host_os in aix4.012|aix4.012.*)
  35830. - # We only want to do this on AIX 4.2 and lower, the check
  35831. - # below for broken collect2 doesn't work under 4.3+
  35832. - collect2name=`${CC} -print-prog-name=collect2`
  35833. - if test -f "$collect2name" && \
  35834. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  35835. - then
  35836. - # We have reworked collect2
  35837. - hardcode_direct_F77=yes
  35838. - else
  35839. - # We have old collect2
  35840. - hardcode_direct_F77=unsupported
  35841. - # It fails to find uninstalled libraries when the uninstalled
  35842. - # path is not listed in the libpath. Setting hardcode_minus_L
  35843. - # to unsupported forces relinking
  35844. - hardcode_minus_L_F77=yes
  35845. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35846. - hardcode_libdir_separator_F77=
  35847. - fi
  35848. - esac
  35849. - shared_flag='-shared'
  35850. - else
  35851. - # not using gcc
  35852. - if test "$host_cpu" = ia64; then
  35853. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35854. - # chokes on -Wl,-G. The following line is correct:
  35855. - shared_flag='-G'
  35856. - else
  35857. - if test "$aix_use_runtimelinking" = yes; then
  35858. - shared_flag='${wl}-G'
  35859. - else
  35860. - shared_flag='${wl}-bM:SRE'
  35861. - fi
  35862. - fi
  35863. - fi
  35864. -
  35865. - # It seems that -bexpall does not export symbols beginning with
  35866. - # underscore (_), so it is better to generate a list of symbols to export.
  35867. - always_export_symbols_F77=yes
  35868. - if test "$aix_use_runtimelinking" = yes; then
  35869. - # Warning - without using the other runtime loading flags (-brtl),
  35870. - # -berok will link without error, but may produce a broken library.
  35871. - allow_undefined_flag_F77='-berok'
  35872. - # Determine the default libpath from the value encoded in an empty executable.
  35873. - cat >conftest.$ac_ext <<_ACEOF
  35874. - program main
  35875. -
  35876. - end
  35877. -_ACEOF
  35878. -rm -f conftest.$ac_objext conftest$ac_exeext
  35879. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35880. - (eval $ac_link) 2>conftest.er1
  35881. - ac_status=$?
  35882. - grep -v '^ *+' conftest.er1 >conftest.err
  35883. - rm -f conftest.er1
  35884. - cat conftest.err >&5
  35885. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35886. - (exit $ac_status); } &&
  35887. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  35888. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35889. - (eval $ac_try) 2>&5
  35890. - ac_status=$?
  35891. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35892. - (exit $ac_status); }; } &&
  35893. - { ac_try='test -s conftest$ac_exeext'
  35894. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35895. - (eval $ac_try) 2>&5
  35896. - ac_status=$?
  35897. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35898. - (exit $ac_status); }; }; then
  35899. -
  35900. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35901. -}'`
  35902. -# Check for a 64-bit object if we didn't find anything.
  35903. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35904. -}'`; fi
  35905. -else
  35906. - echo "$as_me: failed program was:" >&5
  35907. -sed 's/^/| /' conftest.$ac_ext >&5
  35908. -
  35909. -fi
  35910. -rm -f conftest.err conftest.$ac_objext \
  35911. - conftest$ac_exeext conftest.$ac_ext
  35912. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35913. -
  35914. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  35915. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  35916. - else
  35917. - if test "$host_cpu" = ia64; then
  35918. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  35919. - allow_undefined_flag_F77="-z nodefs"
  35920. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  35921. - else
  35922. - # Determine the default libpath from the value encoded in an empty executable.
  35923. - cat >conftest.$ac_ext <<_ACEOF
  35924. - program main
  35925. -
  35926. - end
  35927. -_ACEOF
  35928. -rm -f conftest.$ac_objext conftest$ac_exeext
  35929. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  35930. - (eval $ac_link) 2>conftest.er1
  35931. - ac_status=$?
  35932. - grep -v '^ *+' conftest.er1 >conftest.err
  35933. - rm -f conftest.er1
  35934. - cat conftest.err >&5
  35935. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35936. - (exit $ac_status); } &&
  35937. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  35938. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35939. - (eval $ac_try) 2>&5
  35940. - ac_status=$?
  35941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35942. - (exit $ac_status); }; } &&
  35943. - { ac_try='test -s conftest$ac_exeext'
  35944. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  35945. - (eval $ac_try) 2>&5
  35946. - ac_status=$?
  35947. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35948. - (exit $ac_status); }; }; then
  35949. -
  35950. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35951. -}'`
  35952. -# Check for a 64-bit object if we didn't find anything.
  35953. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  35954. -}'`; fi
  35955. -else
  35956. - echo "$as_me: failed program was:" >&5
  35957. -sed 's/^/| /' conftest.$ac_ext >&5
  35958. -
  35959. -fi
  35960. -rm -f conftest.err conftest.$ac_objext \
  35961. - conftest$ac_exeext conftest.$ac_ext
  35962. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35963. -
  35964. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  35965. - # Warning - without using the other run time loading flags,
  35966. - # -berok will link without error, but may produce a broken library.
  35967. - no_undefined_flag_F77=' ${wl}-bernotok'
  35968. - allow_undefined_flag_F77=' ${wl}-berok'
  35969. - # -bexpall does not export symbols beginning with underscore (_)
  35970. - always_export_symbols_F77=yes
  35971. - # Exported symbols can be pulled into shared objects from archives
  35972. - whole_archive_flag_spec_F77=' '
  35973. - archive_cmds_need_lc_F77=yes
  35974. - # This is similar to how AIX traditionally builds it's shared libraries.
  35975. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  35976. - fi
  35977. - fi
  35978. - ;;
  35979. -
  35980. - amigaos*)
  35981. - archive_cmds_F77='$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)'
  35982. - hardcode_libdir_flag_spec_F77='-L$libdir'
  35983. - hardcode_minus_L_F77=yes
  35984. - # see comment about different semantics on the GNU ld section
  35985. - ld_shlibs_F77=no
  35986. - ;;
  35987. -
  35988. - bsdi4*)
  35989. - export_dynamic_flag_spec_F77=-rdynamic
  35990. - ;;
  35991. -
  35992. - cygwin* | mingw* | pw32*)
  35993. - # When not using gcc, we currently assume that we are using
  35994. - # Microsoft Visual C++.
  35995. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  35996. - # no search path for DLLs.
  35997. - hardcode_libdir_flag_spec_F77=' '
  35998. - allow_undefined_flag_F77=unsupported
  35999. - # Tell ltmain to make .lib files, not .a files.
  36000. - libext=lib
  36001. - # Tell ltmain to make .dll files, not .so files.
  36002. - shrext=".dll"
  36003. - # FIXME: Setting linknames here is a bad hack.
  36004. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  36005. - # The linker will automatically build a .lib file if we build a DLL.
  36006. - old_archive_From_new_cmds_F77='true'
  36007. - # FIXME: Should let the user specify the lib program.
  36008. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  36009. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  36010. - enable_shared_with_static_runtimes_F77=yes
  36011. - ;;
  36012. -
  36013. - darwin* | rhapsody*)
  36014. - if test "$GXX" = yes ; then
  36015. - archive_cmds_need_lc_F77=no
  36016. - case "$host_os" in
  36017. - rhapsody* | darwin1.[012])
  36018. - allow_undefined_flag_F77='-undefined suppress'
  36019. - ;;
  36020. - *) # Darwin 1.3 on
  36021. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  36022. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  36023. - else
  36024. - case ${MACOSX_DEPLOYMENT_TARGET} in
  36025. - 10.[012])
  36026. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  36027. - ;;
  36028. - 10.*)
  36029. - allow_undefined_flag_F77='-undefined dynamic_lookup'
  36030. - ;;
  36031. - esac
  36032. - fi
  36033. - ;;
  36034. - esac
  36035. - lt_int_apple_cc_single_mod=no
  36036. - output_verbose_link_cmd='echo'
  36037. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  36038. - lt_int_apple_cc_single_mod=yes
  36039. - fi
  36040. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  36041. - archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  36042. - else
  36043. - archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
  36044. - fi
  36045. - module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  36046. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  36047. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  36048. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36049. - else
  36050. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36051. - fi
  36052. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  36053. - hardcode_direct_F77=no
  36054. - hardcode_automatic_F77=yes
  36055. - hardcode_shlibpath_var_F77=unsupported
  36056. - whole_archive_flag_spec_F77='-all_load $convenience'
  36057. - link_all_deplibs_F77=yes
  36058. - else
  36059. - ld_shlibs_F77=no
  36060. - fi
  36061. - ;;
  36062. -
  36063. - dgux*)
  36064. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36065. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36066. - hardcode_shlibpath_var_F77=no
  36067. - ;;
  36068. -
  36069. - freebsd1*)
  36070. - ld_shlibs_F77=no
  36071. - ;;
  36072. -
  36073. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  36074. - # support. Future versions do this automatically, but an explicit c++rt0.o
  36075. - # does not break anything, and helps significantly (at the cost of a little
  36076. - # extra space).
  36077. - freebsd2.2*)
  36078. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  36079. - hardcode_libdir_flag_spec_F77='-R$libdir'
  36080. - hardcode_direct_F77=yes
  36081. - hardcode_shlibpath_var_F77=no
  36082. - ;;
  36083. -
  36084. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  36085. - freebsd2*)
  36086. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36087. - hardcode_direct_F77=yes
  36088. - hardcode_minus_L_F77=yes
  36089. - hardcode_shlibpath_var_F77=no
  36090. - ;;
  36091. -
  36092. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  36093. - freebsd* | kfreebsd*-gnu)
  36094. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  36095. - hardcode_libdir_flag_spec_F77='-R$libdir'
  36096. - hardcode_direct_F77=yes
  36097. - hardcode_shlibpath_var_F77=no
  36098. - ;;
  36099. -
  36100. - hpux9*)
  36101. - if test "$GCC" = yes; then
  36102. - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  36103. - else
  36104. - archive_cmds_F77='$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'
  36105. - fi
  36106. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  36107. - hardcode_libdir_separator_F77=:
  36108. - hardcode_direct_F77=yes
  36109. -
  36110. - # hardcode_minus_L: Not really in the search PATH,
  36111. - # but as the default location of the library.
  36112. - hardcode_minus_L_F77=yes
  36113. - export_dynamic_flag_spec_F77='${wl}-E'
  36114. - ;;
  36115. -
  36116. - hpux10* | hpux11*)
  36117. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36118. - case "$host_cpu" in
  36119. - hppa*64*|ia64*)
  36120. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36121. - ;;
  36122. - *)
  36123. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36124. - ;;
  36125. - esac
  36126. - else
  36127. - case "$host_cpu" in
  36128. - hppa*64*|ia64*)
  36129. - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  36130. - ;;
  36131. - *)
  36132. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  36133. - ;;
  36134. - esac
  36135. - fi
  36136. - if test "$with_gnu_ld" = no; then
  36137. - case "$host_cpu" in
  36138. - hppa*64*)
  36139. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  36140. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  36141. - hardcode_libdir_separator_F77=:
  36142. - hardcode_direct_F77=no
  36143. - hardcode_shlibpath_var_F77=no
  36144. - ;;
  36145. - ia64*)
  36146. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36147. - hardcode_direct_F77=no
  36148. - hardcode_shlibpath_var_F77=no
  36149. -
  36150. - # hardcode_minus_L: Not really in the search PATH,
  36151. - # but as the default location of the library.
  36152. - hardcode_minus_L_F77=yes
  36153. - ;;
  36154. - *)
  36155. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  36156. - hardcode_libdir_separator_F77=:
  36157. - hardcode_direct_F77=yes
  36158. - export_dynamic_flag_spec_F77='${wl}-E'
  36159. -
  36160. - # hardcode_minus_L: Not really in the search PATH,
  36161. - # but as the default location of the library.
  36162. - hardcode_minus_L_F77=yes
  36163. - ;;
  36164. - esac
  36165. - fi
  36166. - ;;
  36167. -
  36168. - irix5* | irix6* | nonstopux*)
  36169. - if test "$GCC" = yes; then
  36170. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36171. - else
  36172. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36173. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  36174. - fi
  36175. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  36176. - hardcode_libdir_separator_F77=:
  36177. - link_all_deplibs_F77=yes
  36178. - ;;
  36179. -
  36180. - netbsd* | knetbsd*-gnu)
  36181. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36182. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  36183. - else
  36184. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  36185. - fi
  36186. - hardcode_libdir_flag_spec_F77='-R$libdir'
  36187. - hardcode_direct_F77=yes
  36188. - hardcode_shlibpath_var_F77=no
  36189. - ;;
  36190. -
  36191. - newsos6)
  36192. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36193. - hardcode_direct_F77=yes
  36194. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  36195. - hardcode_libdir_separator_F77=:
  36196. - hardcode_shlibpath_var_F77=no
  36197. - ;;
  36198. -
  36199. - openbsd*)
  36200. - hardcode_direct_F77=yes
  36201. - hardcode_shlibpath_var_F77=no
  36202. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36203. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36204. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  36205. - export_dynamic_flag_spec_F77='${wl}-E'
  36206. - else
  36207. - case $host_os in
  36208. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  36209. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36210. - hardcode_libdir_flag_spec_F77='-R$libdir'
  36211. - ;;
  36212. - *)
  36213. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36214. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  36215. - ;;
  36216. - esac
  36217. - fi
  36218. - ;;
  36219. -
  36220. - os2*)
  36221. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36222. - hardcode_minus_L_F77=yes
  36223. - allow_undefined_flag_F77=unsupported
  36224. - archive_cmds_F77='$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'
  36225. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  36226. - ;;
  36227. -
  36228. - osf3*)
  36229. - if test "$GCC" = yes; then
  36230. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  36231. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36232. - else
  36233. - allow_undefined_flag_F77=' -expect_unresolved \*'
  36234. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36235. - fi
  36236. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  36237. - hardcode_libdir_separator_F77=:
  36238. - ;;
  36239. -
  36240. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  36241. - if test "$GCC" = yes; then
  36242. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  36243. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36244. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  36245. - else
  36246. - allow_undefined_flag_F77=' -expect_unresolved \*'
  36247. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  36248. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  36249. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  36250. -
  36251. - # Both c and cxx compiler support -rpath directly
  36252. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  36253. - fi
  36254. - hardcode_libdir_separator_F77=:
  36255. - ;;
  36256. -
  36257. - sco3.2v5*)
  36258. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36259. - hardcode_shlibpath_var_F77=no
  36260. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  36261. - runpath_var=LD_RUN_PATH
  36262. - hardcode_runpath_var=yes
  36263. - ;;
  36264. -
  36265. - solaris*)
  36266. - no_undefined_flag_F77=' -z text'
  36267. - if test "$GCC" = yes; then
  36268. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36269. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36270. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  36271. - else
  36272. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36273. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36274. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  36275. - fi
  36276. - hardcode_libdir_flag_spec_F77='-R$libdir'
  36277. - hardcode_shlibpath_var_F77=no
  36278. - case $host_os in
  36279. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  36280. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  36281. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  36282. - esac
  36283. - link_all_deplibs_F77=yes
  36284. - ;;
  36285. -
  36286. - sunos4*)
  36287. - if test "x$host_vendor" = xsequent; then
  36288. - # Use $CC to link under sequent, because it throws in some extra .o
  36289. - # files that make .init and .fini sections work.
  36290. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  36291. - else
  36292. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  36293. - fi
  36294. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36295. - hardcode_direct_F77=yes
  36296. - hardcode_minus_L_F77=yes
  36297. - hardcode_shlibpath_var_F77=no
  36298. - ;;
  36299. -
  36300. - sysv4)
  36301. - case $host_vendor in
  36302. - sni)
  36303. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36304. - hardcode_direct_F77=yes # is this really true???
  36305. - ;;
  36306. - siemens)
  36307. - ## LD is ld it makes a PLAMLIB
  36308. - ## CC just makes a GrossModule.
  36309. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  36310. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  36311. - hardcode_direct_F77=no
  36312. - ;;
  36313. - motorola)
  36314. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36315. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  36316. - ;;
  36317. - esac
  36318. - runpath_var='LD_RUN_PATH'
  36319. - hardcode_shlibpath_var_F77=no
  36320. - ;;
  36321. -
  36322. - sysv4.3*)
  36323. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36324. - hardcode_shlibpath_var_F77=no
  36325. - export_dynamic_flag_spec_F77='-Bexport'
  36326. - ;;
  36327. -
  36328. - sysv4*MP*)
  36329. - if test -d /usr/nec; then
  36330. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36331. - hardcode_shlibpath_var_F77=no
  36332. - runpath_var=LD_RUN_PATH
  36333. - hardcode_runpath_var=yes
  36334. - ld_shlibs_F77=yes
  36335. - fi
  36336. - ;;
  36337. -
  36338. - sysv4.2uw2*)
  36339. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  36340. - hardcode_direct_F77=yes
  36341. - hardcode_minus_L_F77=no
  36342. - hardcode_shlibpath_var_F77=no
  36343. - hardcode_runpath_var=yes
  36344. - runpath_var=LD_RUN_PATH
  36345. - ;;
  36346. -
  36347. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  36348. - no_undefined_flag_F77='${wl}-z ${wl}text'
  36349. - if test "$GCC" = yes; then
  36350. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36351. - else
  36352. - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36353. - fi
  36354. - runpath_var='LD_RUN_PATH'
  36355. - hardcode_shlibpath_var_F77=no
  36356. - ;;
  36357. -
  36358. - sysv5*)
  36359. - no_undefined_flag_F77=' -z text'
  36360. - # $CC -shared without GNU ld will not create a library from C++
  36361. - # object files and a static libstdc++, better avoid it by now
  36362. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36363. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  36364. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  36365. - hardcode_libdir_flag_spec_F77=
  36366. - hardcode_shlibpath_var_F77=no
  36367. - runpath_var='LD_RUN_PATH'
  36368. - ;;
  36369. -
  36370. - uts4*)
  36371. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36372. - hardcode_libdir_flag_spec_F77='-L$libdir'
  36373. - hardcode_shlibpath_var_F77=no
  36374. - ;;
  36375. -
  36376. - *)
  36377. - ld_shlibs_F77=no
  36378. - ;;
  36379. - esac
  36380. - fi
  36381. -
  36382. -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  36383. -echo "${ECHO_T}$ld_shlibs_F77" >&6
  36384. -test "$ld_shlibs_F77" = no && can_build_shared=no
  36385. -
  36386. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  36387. -if test "$GCC" = yes; then
  36388. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  36389. -fi
  36390. -
  36391. -#
  36392. -# Do we need to explicitly link libc?
  36393. -#
  36394. -case "x$archive_cmds_need_lc_F77" in
  36395. -x|xyes)
  36396. - # Assume -lc should be added
  36397. - archive_cmds_need_lc_F77=yes
  36398. -
  36399. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  36400. - case $archive_cmds_F77 in
  36401. - *'~'*)
  36402. - # FIXME: we may have to deal with multi-command sequences.
  36403. - ;;
  36404. - '$CC '*)
  36405. - # Test whether the compiler implicitly links with -lc since on some
  36406. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36407. - # to ld, don't add -lc before -lgcc.
  36408. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  36409. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  36410. - $rm conftest*
  36411. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36412. -
  36413. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  36414. - (eval $ac_compile) 2>&5
  36415. - ac_status=$?
  36416. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36417. - (exit $ac_status); } 2>conftest.err; then
  36418. - soname=conftest
  36419. - lib=conftest
  36420. - libobjs=conftest.$ac_objext
  36421. - deplibs=
  36422. - wl=$lt_prog_compiler_wl_F77
  36423. - compiler_flags=-v
  36424. - linker_flags=-v
  36425. - verstring=
  36426. - output_objdir=.
  36427. - libname=conftest
  36428. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  36429. - allow_undefined_flag_F77=
  36430. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  36431. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36432. - ac_status=$?
  36433. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36434. - (exit $ac_status); }
  36435. - then
  36436. - archive_cmds_need_lc_F77=no
  36437. - else
  36438. - archive_cmds_need_lc_F77=yes
  36439. - fi
  36440. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  36441. - else
  36442. - cat conftest.err 1>&5
  36443. - fi
  36444. - $rm conftest*
  36445. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  36446. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  36447. - ;;
  36448. - esac
  36449. - fi
  36450. - ;;
  36451. -esac
  36452. -
  36453. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  36454. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  36455. -library_names_spec=
  36456. -libname_spec='lib$name'
  36457. -soname_spec=
  36458. -shrext=".so"
  36459. -postinstall_cmds=
  36460. -postuninstall_cmds=
  36461. -finish_cmds=
  36462. -finish_eval=
  36463. -shlibpath_var=
  36464. -shlibpath_overrides_runpath=unknown
  36465. -version_type=none
  36466. -dynamic_linker="$host_os ld.so"
  36467. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36468. -if test "$GCC" = yes; then
  36469. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36470. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  36471. - # if the path contains ";" then we assume it to be the separator
  36472. - # otherwise default to the standard path separator (i.e. ":") - it is
  36473. - # assumed that no part of a normal pathname contains ";" but that should
  36474. - # okay in the real world where ";" in dirpaths is itself problematic.
  36475. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36476. - else
  36477. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36478. - fi
  36479. -else
  36480. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36481. -fi
  36482. -need_lib_prefix=unknown
  36483. -hardcode_into_libs=no
  36484. -
  36485. -# when you set need_version to no, make sure it does not cause -set_version
  36486. -# flags to be left without arguments
  36487. -need_version=unknown
  36488. -
  36489. -case $host_os in
  36490. -aix3*)
  36491. - version_type=linux
  36492. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  36493. - shlibpath_var=LIBPATH
  36494. -
  36495. - # AIX 3 has no versioning support, so we append a major version to the name.
  36496. - soname_spec='${libname}${release}${shared_ext}$major'
  36497. - ;;
  36498. -
  36499. -aix4* | aix5*)
  36500. - version_type=linux
  36501. - need_lib_prefix=no
  36502. - need_version=no
  36503. - hardcode_into_libs=yes
  36504. - if test "$host_cpu" = ia64; then
  36505. - # AIX 5 supports IA64
  36506. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  36507. - shlibpath_var=LD_LIBRARY_PATH
  36508. - else
  36509. - # With GCC up to 2.95.x, collect2 would create an import file
  36510. - # for dependence libraries. The import file would start with
  36511. - # the line `#! .'. This would cause the generated library to
  36512. - # depend on `.', always an invalid library. This was fixed in
  36513. - # development snapshots of GCC prior to 3.0.
  36514. - case $host_os in
  36515. - aix4 | aix4.[01] | aix4.[01].*)
  36516. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36517. - echo ' yes '
  36518. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  36519. - :
  36520. - else
  36521. - can_build_shared=no
  36522. - fi
  36523. - ;;
  36524. - esac
  36525. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  36526. - # soname into executable. Probably we can add versioning support to
  36527. - # collect2, so additional links can be useful in future.
  36528. - if test "$aix_use_runtimelinking" = yes; then
  36529. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  36530. - # instead of lib<name>.a to let people know that these are not
  36531. - # typical AIX shared libraries.
  36532. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36533. - else
  36534. - # We preserve .a as extension for shared libraries through AIX4.2
  36535. - # and later when we are not doing run time linking.
  36536. - library_names_spec='${libname}${release}.a $libname.a'
  36537. - soname_spec='${libname}${release}${shared_ext}$major'
  36538. - fi
  36539. - shlibpath_var=LIBPATH
  36540. - fi
  36541. - ;;
  36542. -
  36543. -amigaos*)
  36544. - library_names_spec='$libname.ixlibrary $libname.a'
  36545. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36546. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  36547. - ;;
  36548. -
  36549. -beos*)
  36550. - library_names_spec='${libname}${shared_ext}'
  36551. - dynamic_linker="$host_os ld.so"
  36552. - shlibpath_var=LIBRARY_PATH
  36553. - ;;
  36554. -
  36555. -bsdi4*)
  36556. - version_type=linux
  36557. - need_version=no
  36558. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36559. - soname_spec='${libname}${release}${shared_ext}$major'
  36560. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36561. - shlibpath_var=LD_LIBRARY_PATH
  36562. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36563. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36564. - # the default ld.so.conf also contains /usr/contrib/lib and
  36565. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36566. - # libtool to hard-code these into programs
  36567. - ;;
  36568. -
  36569. -cygwin* | mingw* | pw32*)
  36570. - version_type=windows
  36571. - shrext=".dll"
  36572. - need_version=no
  36573. - need_lib_prefix=no
  36574. -
  36575. - case $GCC,$host_os in
  36576. - yes,cygwin* | yes,mingw* | yes,pw32*)
  36577. - library_names_spec='$libname.dll.a'
  36578. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36579. - postinstall_cmds='base_file=`basename \${file}`~
  36580. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  36581. - dldir=$destdir/`dirname \$dlpath`~
  36582. - test -d \$dldir || mkdir -p \$dldir~
  36583. - $install_prog $dir/$dlname \$dldir/$dlname'
  36584. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36585. - dlpath=$dir/\$dldll~
  36586. - $rm \$dlpath'
  36587. - shlibpath_overrides_runpath=yes
  36588. -
  36589. - case $host_os in
  36590. - cygwin*)
  36591. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36592. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36593. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36594. - ;;
  36595. - mingw*)
  36596. - # MinGW DLLs use traditional 'lib' prefix
  36597. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36598. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36599. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  36600. - # It is most probably a Windows format PATH printed by
  36601. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36602. - # path with ; separators, and with drive letters. We can handle the
  36603. - # drive letters (cygwin fileutils understands them), so leave them,
  36604. - # especially as we might pass files found there to a mingw objdump,
  36605. - # which wouldn't understand a cygwinified path. Ahh.
  36606. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36607. - else
  36608. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36609. - fi
  36610. - ;;
  36611. - pw32*)
  36612. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  36613. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  36614. - ;;
  36615. - esac
  36616. - ;;
  36617. -
  36618. - *)
  36619. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36620. - ;;
  36621. - esac
  36622. - dynamic_linker='Win32 ld.exe'
  36623. - # FIXME: first we should search . and the directory the executable is in
  36624. - shlibpath_var=PATH
  36625. - ;;
  36626. -
  36627. -darwin* | rhapsody*)
  36628. - dynamic_linker="$host_os dyld"
  36629. - version_type=darwin
  36630. - need_lib_prefix=no
  36631. - need_version=no
  36632. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36633. - soname_spec='${libname}${release}${major}$shared_ext'
  36634. - shlibpath_overrides_runpath=yes
  36635. - shlibpath_var=DYLD_LIBRARY_PATH
  36636. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  36637. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  36638. - if test "$GCC" = yes; then
  36639. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  36640. - else
  36641. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  36642. - fi
  36643. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36644. - ;;
  36645. -
  36646. -dgux*)
  36647. - version_type=linux
  36648. - need_lib_prefix=no
  36649. - need_version=no
  36650. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36651. - soname_spec='${libname}${release}${shared_ext}$major'
  36652. - shlibpath_var=LD_LIBRARY_PATH
  36653. - ;;
  36654. -
  36655. -freebsd1*)
  36656. - dynamic_linker=no
  36657. - ;;
  36658. -
  36659. -kfreebsd*-gnu)
  36660. - version_type=linux
  36661. - need_lib_prefix=no
  36662. - need_version=no
  36663. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36664. - soname_spec='${libname}${release}${shared_ext}$major'
  36665. - shlibpath_var=LD_LIBRARY_PATH
  36666. - shlibpath_overrides_runpath=no
  36667. - hardcode_into_libs=yes
  36668. - dynamic_linker='GNU ld.so'
  36669. - ;;
  36670. -
  36671. -freebsd*)
  36672. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  36673. - version_type=freebsd-$objformat
  36674. - case $version_type in
  36675. - freebsd-elf*)
  36676. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  36677. - need_version=no
  36678. - need_lib_prefix=no
  36679. - ;;
  36680. - freebsd-*)
  36681. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  36682. - need_version=yes
  36683. - ;;
  36684. - esac
  36685. - shlibpath_var=LD_LIBRARY_PATH
  36686. - case $host_os in
  36687. - freebsd2*)
  36688. - shlibpath_overrides_runpath=yes
  36689. - ;;
  36690. - freebsd3.01* | freebsdelf3.01*)
  36691. - shlibpath_overrides_runpath=yes
  36692. - hardcode_into_libs=yes
  36693. - ;;
  36694. - *) # from 3.2 on
  36695. - shlibpath_overrides_runpath=no
  36696. - hardcode_into_libs=yes
  36697. - ;;
  36698. - esac
  36699. - ;;
  36700. -
  36701. -gnu*)
  36702. - version_type=linux
  36703. - need_lib_prefix=no
  36704. - need_version=no
  36705. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  36706. - soname_spec='${libname}${release}${shared_ext}$major'
  36707. - shlibpath_var=LD_LIBRARY_PATH
  36708. - hardcode_into_libs=yes
  36709. - ;;
  36710. -
  36711. -hpux9* | hpux10* | hpux11*)
  36712. - # Give a soname corresponding to the major version so that dld.sl refuses to
  36713. - # link against other versions.
  36714. - version_type=sunos
  36715. - need_lib_prefix=no
  36716. - need_version=no
  36717. - case "$host_cpu" in
  36718. - ia64*)
  36719. - shrext='.so'
  36720. - hardcode_into_libs=yes
  36721. - dynamic_linker="$host_os dld.so"
  36722. - shlibpath_var=LD_LIBRARY_PATH
  36723. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36724. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36725. - soname_spec='${libname}${release}${shared_ext}$major'
  36726. - if test "X$HPUX_IA64_MODE" = X32; then
  36727. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  36728. - else
  36729. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  36730. - fi
  36731. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36732. - ;;
  36733. - hppa*64*)
  36734. - shrext='.sl'
  36735. - hardcode_into_libs=yes
  36736. - dynamic_linker="$host_os dld.sl"
  36737. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  36738. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  36739. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36740. - soname_spec='${libname}${release}${shared_ext}$major'
  36741. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  36742. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  36743. - ;;
  36744. - *)
  36745. - shrext='.sl'
  36746. - dynamic_linker="$host_os dld.sl"
  36747. - shlibpath_var=SHLIB_PATH
  36748. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  36749. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36750. - soname_spec='${libname}${release}${shared_ext}$major'
  36751. - ;;
  36752. - esac
  36753. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  36754. - postinstall_cmds='chmod 555 $lib'
  36755. - ;;
  36756. -
  36757. -irix5* | irix6* | nonstopux*)
  36758. - case $host_os in
  36759. - nonstopux*) version_type=nonstopux ;;
  36760. - *)
  36761. - if test "$lt_cv_prog_gnu_ld" = yes; then
  36762. - version_type=linux
  36763. - else
  36764. - version_type=irix
  36765. - fi ;;
  36766. - esac
  36767. - need_lib_prefix=no
  36768. - need_version=no
  36769. - soname_spec='${libname}${release}${shared_ext}$major'
  36770. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  36771. - case $host_os in
  36772. - irix5* | nonstopux*)
  36773. - libsuff= shlibsuff=
  36774. - ;;
  36775. - *)
  36776. - case $LD in # libtool.m4 will add one of these switches to LD
  36777. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  36778. - libsuff= shlibsuff= libmagic=32-bit;;
  36779. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  36780. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  36781. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  36782. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  36783. - *) libsuff= shlibsuff= libmagic=never-match;;
  36784. - esac
  36785. - ;;
  36786. - esac
  36787. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  36788. - shlibpath_overrides_runpath=no
  36789. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  36790. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  36791. - hardcode_into_libs=yes
  36792. - ;;
  36793. -
  36794. -# No shared lib support for Linux oldld, aout, or coff.
  36795. -linux*oldld* | linux*aout* | linux*coff*)
  36796. - dynamic_linker=no
  36797. - ;;
  36798. -
  36799. -# This must be Linux ELF.
  36800. -linux*)
  36801. - version_type=linux
  36802. - need_lib_prefix=no
  36803. - need_version=no
  36804. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36805. - soname_spec='${libname}${release}${shared_ext}$major'
  36806. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  36807. - shlibpath_var=LD_LIBRARY_PATH
  36808. - shlibpath_overrides_runpath=no
  36809. - # This implies no fast_install, which is unacceptable.
  36810. - # Some rework will be needed to allow for fast_install
  36811. - # before this can be enabled.
  36812. - hardcode_into_libs=yes
  36813. -
  36814. - # Append ld.so.conf contents to the search path
  36815. - if test -f /etc/ld.so.conf; then
  36816. - ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  36817. - sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  36818. - fi
  36819. -
  36820. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  36821. - # powerpc, because MkLinux only supported shared libraries with the
  36822. - # GNU dynamic linker. Since this was broken with cross compilers,
  36823. - # most powerpc-linux boxes support dynamic linking these days and
  36824. - # people can always --disable-shared, the test was removed, and we
  36825. - # assume the GNU/Linux dynamic linker is in use.
  36826. - dynamic_linker='GNU/Linux ld.so'
  36827. - ;;
  36828. -
  36829. -knetbsd*-gnu)
  36830. - version_type=linux
  36831. - need_lib_prefix=no
  36832. - need_version=no
  36833. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36834. - soname_spec='${libname}${release}${shared_ext}$major'
  36835. - shlibpath_var=LD_LIBRARY_PATH
  36836. - shlibpath_overrides_runpath=no
  36837. - hardcode_into_libs=yes
  36838. - dynamic_linker='GNU ld.so'
  36839. - ;;
  36840. -
  36841. -netbsd*)
  36842. - version_type=sunos
  36843. - need_lib_prefix=no
  36844. - need_version=no
  36845. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  36846. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36847. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36848. - dynamic_linker='NetBSD (a.out) ld.so'
  36849. - else
  36850. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  36851. - soname_spec='${libname}${release}${shared_ext}$major'
  36852. - dynamic_linker='NetBSD ld.elf_so'
  36853. - fi
  36854. - shlibpath_var=LD_LIBRARY_PATH
  36855. - shlibpath_overrides_runpath=yes
  36856. - hardcode_into_libs=yes
  36857. - ;;
  36858. -
  36859. -newsos6)
  36860. - version_type=linux
  36861. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36862. - shlibpath_var=LD_LIBRARY_PATH
  36863. - shlibpath_overrides_runpath=yes
  36864. - ;;
  36865. -
  36866. -nto-qnx*)
  36867. - version_type=linux
  36868. - need_lib_prefix=no
  36869. - need_version=no
  36870. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36871. - soname_spec='${libname}${release}${shared_ext}$major'
  36872. - shlibpath_var=LD_LIBRARY_PATH
  36873. - shlibpath_overrides_runpath=yes
  36874. - ;;
  36875. -
  36876. -openbsd*)
  36877. - version_type=sunos
  36878. - need_lib_prefix=no
  36879. - need_version=yes
  36880. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36881. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  36882. - shlibpath_var=LD_LIBRARY_PATH
  36883. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36884. - case $host_os in
  36885. - openbsd2.[89] | openbsd2.[89].*)
  36886. - shlibpath_overrides_runpath=no
  36887. - ;;
  36888. - *)
  36889. - shlibpath_overrides_runpath=yes
  36890. - ;;
  36891. - esac
  36892. - else
  36893. - shlibpath_overrides_runpath=yes
  36894. - fi
  36895. - ;;
  36896. -
  36897. -os2*)
  36898. - libname_spec='$name'
  36899. - shrext=".dll"
  36900. - need_lib_prefix=no
  36901. - library_names_spec='$libname${shared_ext} $libname.a'
  36902. - dynamic_linker='OS/2 ld.exe'
  36903. - shlibpath_var=LIBPATH
  36904. - ;;
  36905. -
  36906. -osf3* | osf4* | osf5*)
  36907. - version_type=osf
  36908. - need_lib_prefix=no
  36909. - need_version=no
  36910. - soname_spec='${libname}${release}${shared_ext}$major'
  36911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36912. - shlibpath_var=LD_LIBRARY_PATH
  36913. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  36914. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  36915. - ;;
  36916. -
  36917. -sco3.2v5*)
  36918. - version_type=osf
  36919. - soname_spec='${libname}${release}${shared_ext}$major'
  36920. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36921. - shlibpath_var=LD_LIBRARY_PATH
  36922. - ;;
  36923. -
  36924. -solaris*)
  36925. - version_type=linux
  36926. - need_lib_prefix=no
  36927. - need_version=no
  36928. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36929. - soname_spec='${libname}${release}${shared_ext}$major'
  36930. - shlibpath_var=LD_LIBRARY_PATH
  36931. - shlibpath_overrides_runpath=yes
  36932. - hardcode_into_libs=yes
  36933. - # ldd complains unless libraries are executable
  36934. - postinstall_cmds='chmod +x $lib'
  36935. - ;;
  36936. -
  36937. -sunos4*)
  36938. - version_type=sunos
  36939. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  36940. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  36941. - shlibpath_var=LD_LIBRARY_PATH
  36942. - shlibpath_overrides_runpath=yes
  36943. - if test "$with_gnu_ld" = yes; then
  36944. - need_lib_prefix=no
  36945. - fi
  36946. - need_version=yes
  36947. - ;;
  36948. -
  36949. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  36950. - version_type=linux
  36951. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36952. - soname_spec='${libname}${release}${shared_ext}$major'
  36953. - shlibpath_var=LD_LIBRARY_PATH
  36954. - case $host_vendor in
  36955. - sni)
  36956. - shlibpath_overrides_runpath=no
  36957. - need_lib_prefix=no
  36958. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  36959. - runpath_var=LD_RUN_PATH
  36960. - ;;
  36961. - siemens)
  36962. - need_lib_prefix=no
  36963. - ;;
  36964. - motorola)
  36965. - need_lib_prefix=no
  36966. - need_version=no
  36967. - shlibpath_overrides_runpath=no
  36968. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  36969. - ;;
  36970. - esac
  36971. - ;;
  36972. -
  36973. -sysv4*MP*)
  36974. - if test -d /usr/nec ;then
  36975. - version_type=linux
  36976. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  36977. - soname_spec='$libname${shared_ext}.$major'
  36978. - shlibpath_var=LD_LIBRARY_PATH
  36979. - fi
  36980. - ;;
  36981. -
  36982. -uts4*)
  36983. - version_type=linux
  36984. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36985. - soname_spec='${libname}${release}${shared_ext}$major'
  36986. - shlibpath_var=LD_LIBRARY_PATH
  36987. - ;;
  36988. -
  36989. -*)
  36990. - dynamic_linker=no
  36991. - ;;
  36992. -esac
  36993. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  36994. -echo "${ECHO_T}$dynamic_linker" >&6
  36995. -test "$dynamic_linker" = no && can_build_shared=no
  36996. -
  36997. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  36998. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  36999. -hardcode_action_F77=
  37000. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  37001. - test -n "$runpath_var F77" || \
  37002. - test "X$hardcode_automatic_F77"="Xyes" ; then
  37003. -
  37004. - # We can hardcode non-existant directories.
  37005. - if test "$hardcode_direct_F77" != no &&
  37006. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37007. - # have to relink, otherwise we might link with an installed library
  37008. - # when we should be linking with a yet-to-be-installed one
  37009. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  37010. - test "$hardcode_minus_L_F77" != no; then
  37011. - # Linking always hardcodes the temporary library directory.
  37012. - hardcode_action_F77=relink
  37013. - else
  37014. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37015. - hardcode_action_F77=immediate
  37016. - fi
  37017. -else
  37018. - # We cannot hardcode anything, or else we can only hardcode existing
  37019. - # directories.
  37020. - hardcode_action_F77=unsupported
  37021. -fi
  37022. -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  37023. -echo "${ECHO_T}$hardcode_action_F77" >&6
  37024. -
  37025. -if test "$hardcode_action_F77" = relink; then
  37026. - # Fast installation is not supported
  37027. - enable_fast_install=no
  37028. -elif test "$shlibpath_overrides_runpath" = yes ||
  37029. - test "$enable_shared" = no; then
  37030. - # Fast installation is not necessary
  37031. - enable_fast_install=needless
  37032. -fi
  37033. -
  37034. -striplib=
  37035. -old_striplib=
  37036. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  37037. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  37038. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  37039. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  37040. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  37041. - echo "$as_me:$LINENO: result: yes" >&5
  37042. -echo "${ECHO_T}yes" >&6
  37043. -else
  37044. -# FIXME - insert some real tests, host_os isn't really good enough
  37045. - case $host_os in
  37046. - darwin*)
  37047. - if test -n "$STRIP" ; then
  37048. - striplib="$STRIP -x"
  37049. - echo "$as_me:$LINENO: result: yes" >&5
  37050. -echo "${ECHO_T}yes" >&6
  37051. - else
  37052. - echo "$as_me:$LINENO: result: no" >&5
  37053. -echo "${ECHO_T}no" >&6
  37054. -fi
  37055. - ;;
  37056. - *)
  37057. - echo "$as_me:$LINENO: result: no" >&5
  37058. -echo "${ECHO_T}no" >&6
  37059. - ;;
  37060. - esac
  37061. -fi
  37062. -
  37063. -
  37064. -
  37065. -# The else clause should only fire when bootstrapping the
  37066. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37067. -# with your package, and you will get complaints that there are
  37068. -# no rules to generate ltmain.sh.
  37069. -if test -f "$ltmain"; then
  37070. - # See if we are running on zsh, and set the options which allow our commands through
  37071. - # without removal of \ escapes.
  37072. - if test -n "${ZSH_VERSION+set}" ; then
  37073. - setopt NO_GLOB_SUBST
  37074. - fi
  37075. - # Now quote all the things that may contain metacharacters while being
  37076. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37077. - # variables and quote the copies for generation of the libtool script.
  37078. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  37079. - SED SHELL STRIP \
  37080. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37081. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37082. - deplibs_check_method reload_flag reload_cmds need_locks \
  37083. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37084. - lt_cv_sys_global_symbol_to_c_name_address \
  37085. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37086. - old_postinstall_cmds old_postuninstall_cmds \
  37087. - compiler_F77 \
  37088. - CC_F77 \
  37089. - LD_F77 \
  37090. - lt_prog_compiler_wl_F77 \
  37091. - lt_prog_compiler_pic_F77 \
  37092. - lt_prog_compiler_static_F77 \
  37093. - lt_prog_compiler_no_builtin_flag_F77 \
  37094. - export_dynamic_flag_spec_F77 \
  37095. - thread_safe_flag_spec_F77 \
  37096. - whole_archive_flag_spec_F77 \
  37097. - enable_shared_with_static_runtimes_F77 \
  37098. - old_archive_cmds_F77 \
  37099. - old_archive_from_new_cmds_F77 \
  37100. - predep_objects_F77 \
  37101. - postdep_objects_F77 \
  37102. - predeps_F77 \
  37103. - postdeps_F77 \
  37104. - compiler_lib_search_path_F77 \
  37105. - archive_cmds_F77 \
  37106. - archive_expsym_cmds_F77 \
  37107. - postinstall_cmds_F77 \
  37108. - postuninstall_cmds_F77 \
  37109. - old_archive_from_expsyms_cmds_F77 \
  37110. - allow_undefined_flag_F77 \
  37111. - no_undefined_flag_F77 \
  37112. - export_symbols_cmds_F77 \
  37113. - hardcode_libdir_flag_spec_F77 \
  37114. - hardcode_libdir_flag_spec_ld_F77 \
  37115. - hardcode_libdir_separator_F77 \
  37116. - hardcode_automatic_F77 \
  37117. - module_cmds_F77 \
  37118. - module_expsym_cmds_F77 \
  37119. - lt_cv_prog_compiler_c_o_F77 \
  37120. - exclude_expsyms_F77 \
  37121. - include_expsyms_F77; do
  37122. -
  37123. - case $var in
  37124. - old_archive_cmds_F77 | \
  37125. - old_archive_from_new_cmds_F77 | \
  37126. - archive_cmds_F77 | \
  37127. - archive_expsym_cmds_F77 | \
  37128. - module_cmds_F77 | \
  37129. - module_expsym_cmds_F77 | \
  37130. - old_archive_from_expsyms_cmds_F77 | \
  37131. - export_symbols_cmds_F77 | \
  37132. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37133. - postinstall_cmds | postuninstall_cmds | \
  37134. - old_postinstall_cmds | old_postuninstall_cmds | \
  37135. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37136. - # Double-quote double-evaled strings.
  37137. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37138. - ;;
  37139. - *)
  37140. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37141. - ;;
  37142. - esac
  37143. - done
  37144. -
  37145. - case $lt_echo in
  37146. - *'\$0 --fallback-echo"')
  37147. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37148. - ;;
  37149. - esac
  37150. -
  37151. -cfgfile="$ofile"
  37152. -
  37153. - cat <<__EOF__ >> "$cfgfile"
  37154. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37155. -
  37156. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37157. -
  37158. -# Shell to use when invoking shell scripts.
  37159. -SHELL=$lt_SHELL
  37160. -
  37161. -# Whether or not to build shared libraries.
  37162. -build_libtool_libs=$enable_shared
  37163. -
  37164. -# Whether or not to build static libraries.
  37165. -build_old_libs=$enable_static
  37166. -
  37167. -# Whether or not to add -lc for building shared libraries.
  37168. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  37169. -
  37170. -# Whether or not to disallow shared libs when runtime libs are static
  37171. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  37172. -
  37173. -# Whether or not to optimize for fast installation.
  37174. -fast_install=$enable_fast_install
  37175. -
  37176. -# The host system.
  37177. -host_alias=$host_alias
  37178. -host=$host
  37179. -
  37180. -# An echo program that does not interpret backslashes.
  37181. -echo=$lt_echo
  37182. -
  37183. -# The archiver.
  37184. -AR=$lt_AR
  37185. -AR_FLAGS=$lt_AR_FLAGS
  37186. -
  37187. -# A C compiler.
  37188. -LTCC=$lt_LTCC
  37189. -
  37190. -# A language-specific compiler.
  37191. -CC=$lt_compiler_F77
  37192. -
  37193. -# Is the compiler the GNU C compiler?
  37194. -with_gcc=$GCC_F77
  37195. -
  37196. -# An ERE matcher.
  37197. -EGREP=$lt_EGREP
  37198. -
  37199. -# The linker used to build libraries.
  37200. -LD=$lt_LD_F77
  37201. -
  37202. -# Whether we need hard or soft links.
  37203. -LN_S=$lt_LN_S
  37204. -
  37205. -# A BSD-compatible nm program.
  37206. -NM=$lt_NM
  37207. -
  37208. -# A symbol stripping program
  37209. -STRIP=$lt_STRIP
  37210. -
  37211. -# Used to examine libraries when file_magic_cmd begins "file"
  37212. -MAGIC_CMD=$MAGIC_CMD
  37213. -
  37214. -# Used on cygwin: DLL creation program.
  37215. -DLLTOOL="$DLLTOOL"
  37216. -
  37217. -# Used on cygwin: object dumper.
  37218. -OBJDUMP="$OBJDUMP"
  37219. -
  37220. -# Used on cygwin: assembler.
  37221. -AS="$AS"
  37222. -
  37223. -# The name of the directory that contains temporary libtool files.
  37224. -objdir=$objdir
  37225. -
  37226. -# How to create reloadable object files.
  37227. -reload_flag=$lt_reload_flag
  37228. -reload_cmds=$lt_reload_cmds
  37229. -
  37230. -# How to pass a linker flag through the compiler.
  37231. -wl=$lt_lt_prog_compiler_wl_F77
  37232. -
  37233. -# Object file suffix (normally "o").
  37234. -objext="$ac_objext"
  37235. -
  37236. -# Old archive suffix (normally "a").
  37237. -libext="$libext"
  37238. -
  37239. -# Shared library suffix (normally ".so").
  37240. -shrext='$shrext'
  37241. -
  37242. -# Executable file suffix (normally "").
  37243. -exeext="$exeext"
  37244. -
  37245. -# Additional compiler flags for building library objects.
  37246. -pic_flag=$lt_lt_prog_compiler_pic_F77
  37247. -pic_mode=$pic_mode
  37248. -
  37249. -# What is the maximum length of a command?
  37250. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37251. -
  37252. -# Does compiler simultaneously support -c and -o options?
  37253. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  37254. -
  37255. -# Must we lock files when doing compilation ?
  37256. -need_locks=$lt_need_locks
  37257. -
  37258. -# Do we need the lib prefix for modules?
  37259. -need_lib_prefix=$need_lib_prefix
  37260. -
  37261. -# Do we need a version for libraries?
  37262. -need_version=$need_version
  37263. -
  37264. -# Whether dlopen is supported.
  37265. -dlopen_support=$enable_dlopen
  37266. -
  37267. -# Whether dlopen of programs is supported.
  37268. -dlopen_self=$enable_dlopen_self
  37269. -
  37270. -# Whether dlopen of statically linked programs is supported.
  37271. -dlopen_self_static=$enable_dlopen_self_static
  37272. -
  37273. -# Compiler flag to prevent dynamic linking.
  37274. -link_static_flag=$lt_lt_prog_compiler_static_F77
  37275. -
  37276. -# Compiler flag to turn off builtin functions.
  37277. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  37278. -
  37279. -# Compiler flag to allow reflexive dlopens.
  37280. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  37281. -
  37282. -# Compiler flag to generate shared objects directly from archives.
  37283. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  37284. -
  37285. -# Compiler flag to generate thread-safe objects.
  37286. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  37287. -
  37288. -# Library versioning type.
  37289. -version_type=$version_type
  37290. -
  37291. -# Format of library name prefix.
  37292. -libname_spec=$lt_libname_spec
  37293. -
  37294. -# List of archive names. First name is the real one, the rest are links.
  37295. -# The last name is the one that the linker finds with -lNAME.
  37296. -library_names_spec=$lt_library_names_spec
  37297. -
  37298. -# The coded name of the library, if different from the real name.
  37299. -soname_spec=$lt_soname_spec
  37300. -
  37301. -# Commands used to build and install an old-style archive.
  37302. -RANLIB=$lt_RANLIB
  37303. -old_archive_cmds=$lt_old_archive_cmds_F77
  37304. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37305. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37306. -
  37307. -# Create an old-style archive from a shared archive.
  37308. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  37309. -
  37310. -# Create a temporary old-style archive to link instead of a shared archive.
  37311. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  37312. -
  37313. -# Commands used to build and install a shared archive.
  37314. -archive_cmds=$lt_archive_cmds_F77
  37315. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  37316. -postinstall_cmds=$lt_postinstall_cmds
  37317. -postuninstall_cmds=$lt_postuninstall_cmds
  37318. -
  37319. -# Commands used to build a loadable module (assumed same as above if empty)
  37320. -module_cmds=$lt_module_cmds_F77
  37321. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  37322. -
  37323. -# Commands to strip libraries.
  37324. -old_striplib=$lt_old_striplib
  37325. -striplib=$lt_striplib
  37326. -
  37327. -# Dependencies to place before the objects being linked to create a
  37328. -# shared library.
  37329. -predep_objects=$lt_predep_objects_F77
  37330. -
  37331. -# Dependencies to place after the objects being linked to create a
  37332. -# shared library.
  37333. -postdep_objects=$lt_postdep_objects_F77
  37334. -
  37335. -# Dependencies to place before the objects being linked to create a
  37336. -# shared library.
  37337. -predeps=$lt_predeps_F77
  37338. -
  37339. -# Dependencies to place after the objects being linked to create a
  37340. -# shared library.
  37341. -postdeps=$lt_postdeps_F77
  37342. -
  37343. -# The library search path used internally by the compiler when linking
  37344. -# a shared library.
  37345. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  37346. -
  37347. -# Method to check whether dependent libraries are shared objects.
  37348. -deplibs_check_method=$lt_deplibs_check_method
  37349. -
  37350. -# Command to use when deplibs_check_method == file_magic.
  37351. -file_magic_cmd=$lt_file_magic_cmd
  37352. -
  37353. -# Flag that allows shared libraries with undefined symbols to be built.
  37354. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  37355. -
  37356. -# Flag that forces no undefined symbols.
  37357. -no_undefined_flag=$lt_no_undefined_flag_F77
  37358. -
  37359. -# Commands used to finish a libtool library installation in a directory.
  37360. -finish_cmds=$lt_finish_cmds
  37361. -
  37362. -# Same as above, but a single script fragment to be evaled but not shown.
  37363. -finish_eval=$lt_finish_eval
  37364. -
  37365. -# Take the output of nm and produce a listing of raw symbols and C names.
  37366. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37367. -
  37368. -# Transform the output of nm in a proper C declaration
  37369. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37370. -
  37371. -# Transform the output of nm in a C name address pair
  37372. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37373. -
  37374. -# This is the shared library runtime path variable.
  37375. -runpath_var=$runpath_var
  37376. -
  37377. -# This is the shared library path variable.
  37378. -shlibpath_var=$shlibpath_var
  37379. -
  37380. -# Is shlibpath searched before the hard-coded library search path?
  37381. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37382. -
  37383. -# How to hardcode a shared library path into an executable.
  37384. -hardcode_action=$hardcode_action_F77
  37385. -
  37386. -# Whether we should hardcode library paths into libraries.
  37387. -hardcode_into_libs=$hardcode_into_libs
  37388. -
  37389. -# Flag to hardcode \$libdir into a binary during linking.
  37390. -# This must work even if \$libdir does not exist.
  37391. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  37392. -
  37393. -# If ld is used when linking, flag to hardcode \$libdir into
  37394. -# a binary during linking. This must work even if \$libdir does
  37395. -# not exist.
  37396. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  37397. -
  37398. -# Whether we need a single -rpath flag with a separated argument.
  37399. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  37400. -
  37401. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37402. -# resulting binary.
  37403. -hardcode_direct=$hardcode_direct_F77
  37404. -
  37405. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37406. -# resulting binary.
  37407. -hardcode_minus_L=$hardcode_minus_L_F77
  37408. -
  37409. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37410. -# the resulting binary.
  37411. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  37412. -
  37413. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37414. -# and all subsequent libraries and executables linked against it.
  37415. -hardcode_automatic=$hardcode_automatic_F77
  37416. -
  37417. -# Variables whose values should be saved in libtool wrapper scripts and
  37418. -# restored at relink time.
  37419. -variables_saved_for_relink="$variables_saved_for_relink"
  37420. -
  37421. -# Whether libtool must link a program against all its dependency libraries.
  37422. -link_all_deplibs=$link_all_deplibs_F77
  37423. -
  37424. -# Compile-time system search path for libraries
  37425. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37426. -
  37427. -# Run-time system search path for libraries
  37428. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37429. -
  37430. -# Fix the shell variable \$srcfile for the compiler.
  37431. -fix_srcfile_path="$fix_srcfile_path_F77"
  37432. -
  37433. -# Set to yes if exported symbols are required.
  37434. -always_export_symbols=$always_export_symbols_F77
  37435. -
  37436. -# The commands to list exported symbols.
  37437. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  37438. -
  37439. -# The commands to extract the exported symbol list from a shared archive.
  37440. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37441. -
  37442. -# Symbols that should not be listed in the preloaded symbols.
  37443. -exclude_expsyms=$lt_exclude_expsyms_F77
  37444. -
  37445. -# Symbols that must always be exported.
  37446. -include_expsyms=$lt_include_expsyms_F77
  37447. -
  37448. -# ### END LIBTOOL TAG CONFIG: $tagname
  37449. -
  37450. -__EOF__
  37451. -
  37452. -
  37453. -else
  37454. - # If there is no Makefile yet, we rely on a make rule to execute
  37455. - # `config.status --recheck' to rerun these tests and create the
  37456. - # libtool script then.
  37457. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37458. - if test -f "$ltmain_in"; then
  37459. - test -f Makefile && make "$ltmain"
  37460. - fi
  37461. -fi
  37462. -
  37463. -
  37464. -ac_ext=c
  37465. -ac_cpp='$CPP $CPPFLAGS'
  37466. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37467. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37468. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37469. -
  37470. -CC="$lt_save_CC"
  37471. -
  37472. - else
  37473. - tagname=""
  37474. - fi
  37475. - ;;
  37476. -
  37477. - GCJ)
  37478. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  37479. -
  37480. -
  37481. -
  37482. -# Source file extension for Java test sources.
  37483. -ac_ext=java
  37484. -
  37485. -# Object file extension for compiled Java test sources.
  37486. -objext=o
  37487. -objext_GCJ=$objext
  37488. -
  37489. -# Code to be used in simple compile tests
  37490. -lt_simple_compile_test_code="class foo {}\n"
  37491. -
  37492. -# Code to be used in simple link tests
  37493. -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  37494. -
  37495. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37496. -
  37497. -# If no C compiler was specified, use CC.
  37498. -LTCC=${LTCC-"$CC"}
  37499. -
  37500. -# Allow CC to be a program name with arguments.
  37501. -compiler=$CC
  37502. -
  37503. -
  37504. -# Allow CC to be a program name with arguments.
  37505. -lt_save_CC="$CC"
  37506. -CC=${GCJ-"gcj"}
  37507. -compiler=$CC
  37508. -compiler_GCJ=$CC
  37509. -
  37510. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  37511. -archive_cmds_need_lc_GCJ=no
  37512. -
  37513. -
  37514. -lt_prog_compiler_no_builtin_flag_GCJ=
  37515. -
  37516. -if test "$GCC" = yes; then
  37517. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  37518. -
  37519. -
  37520. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  37521. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  37522. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  37523. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37524. -else
  37525. - lt_cv_prog_compiler_rtti_exceptions=no
  37526. - ac_outfile=conftest.$ac_objext
  37527. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37528. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  37529. - # Insert the option either (1) after the last *FLAGS variable, or
  37530. - # (2) before a word containing "conftest.", or (3) at the end.
  37531. - # Note that $ac_compile itself does not contain backslashes and begins
  37532. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37533. - # The option is referenced via a variable to avoid confusing sed.
  37534. - lt_compile=`echo "$ac_compile" | $SED \
  37535. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  37536. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37537. - -e 's:$: $lt_compiler_flag:'`
  37538. - (eval echo "\"\$as_me:15446: $lt_compile\"" >&5)
  37539. - (eval "$lt_compile" 2>conftest.err)
  37540. - ac_status=$?
  37541. - cat conftest.err >&5
  37542. - echo "$as_me:15450: \$? = $ac_status" >&5
  37543. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37544. - # The compiler can only warn and ignore the option if not recognized
  37545. - # So say no if there are warnings
  37546. - if test ! -s conftest.err; then
  37547. - lt_cv_prog_compiler_rtti_exceptions=yes
  37548. - fi
  37549. - fi
  37550. - $rm conftest*
  37551. -
  37552. -fi
  37553. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  37554. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  37555. -
  37556. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  37557. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  37558. -else
  37559. - :
  37560. -fi
  37561. -
  37562. -fi
  37563. -
  37564. -lt_prog_compiler_wl_GCJ=
  37565. -lt_prog_compiler_pic_GCJ=
  37566. -lt_prog_compiler_static_GCJ=
  37567. -
  37568. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  37569. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  37570. -
  37571. - if test "$GCC" = yes; then
  37572. - lt_prog_compiler_wl_GCJ='-Wl,'
  37573. - lt_prog_compiler_static_GCJ='-static'
  37574. -
  37575. - case $host_os in
  37576. - aix*)
  37577. - # All AIX code is PIC.
  37578. - if test "$host_cpu" = ia64; then
  37579. - # AIX 5 now supports IA64 processor
  37580. - lt_prog_compiler_static_GCJ='-Bstatic'
  37581. - fi
  37582. - ;;
  37583. -
  37584. - amigaos*)
  37585. - # FIXME: we need at least 68020 code to build shared libraries, but
  37586. - # adding the `-m68020' flag to GCC prevents building anything better,
  37587. - # like `-m68040'.
  37588. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  37589. - ;;
  37590. -
  37591. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  37592. - # PIC is the default for these OSes.
  37593. - ;;
  37594. -
  37595. - mingw* | pw32* | os2*)
  37596. - # This hack is so that the source file can tell whether it is being
  37597. - # built for inclusion in a dll (and should export symbols for example).
  37598. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  37599. - ;;
  37600. -
  37601. - darwin* | rhapsody*)
  37602. - # PIC is the default on this platform
  37603. - # Common symbols not allowed in MH_DYLIB files
  37604. - lt_prog_compiler_pic_GCJ='-fno-common'
  37605. - ;;
  37606. -
  37607. - msdosdjgpp*)
  37608. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  37609. - # on systems that don't support them.
  37610. - lt_prog_compiler_can_build_shared_GCJ=no
  37611. - enable_shared=no
  37612. - ;;
  37613. -
  37614. - sysv4*MP*)
  37615. - if test -d /usr/nec; then
  37616. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  37617. - fi
  37618. - ;;
  37619. -
  37620. - hpux*)
  37621. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37622. - # not for PA HP-UX.
  37623. - case "$host_cpu" in
  37624. - hppa*64*|ia64*)
  37625. - # +Z the default
  37626. - ;;
  37627. - *)
  37628. - lt_prog_compiler_pic_GCJ='-fPIC'
  37629. - ;;
  37630. - esac
  37631. - ;;
  37632. -
  37633. - *)
  37634. - lt_prog_compiler_pic_GCJ='-fPIC'
  37635. - ;;
  37636. - esac
  37637. - else
  37638. - # PORTME Check for flag to pass linker flags through the system compiler.
  37639. - case $host_os in
  37640. - aix*)
  37641. - lt_prog_compiler_wl_GCJ='-Wl,'
  37642. - if test "$host_cpu" = ia64; then
  37643. - # AIX 5 now supports IA64 processor
  37644. - lt_prog_compiler_static_GCJ='-Bstatic'
  37645. - else
  37646. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  37647. - fi
  37648. - ;;
  37649. -
  37650. - mingw* | pw32* | os2*)
  37651. - # This hack is so that the source file can tell whether it is being
  37652. - # built for inclusion in a dll (and should export symbols for example).
  37653. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  37654. - ;;
  37655. -
  37656. - hpux9* | hpux10* | hpux11*)
  37657. - lt_prog_compiler_wl_GCJ='-Wl,'
  37658. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  37659. - # not for PA HP-UX.
  37660. - case "$host_cpu" in
  37661. - hppa*64*|ia64*)
  37662. - # +Z the default
  37663. - ;;
  37664. - *)
  37665. - lt_prog_compiler_pic_GCJ='+Z'
  37666. - ;;
  37667. - esac
  37668. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  37669. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  37670. - ;;
  37671. -
  37672. - irix5* | irix6* | nonstopux*)
  37673. - lt_prog_compiler_wl_GCJ='-Wl,'
  37674. - # PIC (with -KPIC) is the default.
  37675. - lt_prog_compiler_static_GCJ='-non_shared'
  37676. - ;;
  37677. -
  37678. - newsos6)
  37679. - lt_prog_compiler_pic_GCJ='-KPIC'
  37680. - lt_prog_compiler_static_GCJ='-Bstatic'
  37681. - ;;
  37682. -
  37683. - linux*)
  37684. - case $CC in
  37685. - icc* | ecc*)
  37686. - lt_prog_compiler_wl_GCJ='-Wl,'
  37687. - lt_prog_compiler_pic_GCJ='-KPIC'
  37688. - lt_prog_compiler_static_GCJ='-static'
  37689. - ;;
  37690. - ccc*)
  37691. - lt_prog_compiler_wl_GCJ='-Wl,'
  37692. - # All Alpha code is PIC.
  37693. - lt_prog_compiler_static_GCJ='-non_shared'
  37694. - ;;
  37695. - esac
  37696. - ;;
  37697. -
  37698. - osf3* | osf4* | osf5*)
  37699. - lt_prog_compiler_wl_GCJ='-Wl,'
  37700. - # All OSF/1 code is PIC.
  37701. - lt_prog_compiler_static_GCJ='-non_shared'
  37702. - ;;
  37703. -
  37704. - sco3.2v5*)
  37705. - lt_prog_compiler_pic_GCJ='-Kpic'
  37706. - lt_prog_compiler_static_GCJ='-dn'
  37707. - ;;
  37708. -
  37709. - solaris*)
  37710. - lt_prog_compiler_wl_GCJ='-Wl,'
  37711. - lt_prog_compiler_pic_GCJ='-KPIC'
  37712. - lt_prog_compiler_static_GCJ='-Bstatic'
  37713. - ;;
  37714. -
  37715. - sunos4*)
  37716. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  37717. - lt_prog_compiler_pic_GCJ='-PIC'
  37718. - lt_prog_compiler_static_GCJ='-Bstatic'
  37719. - ;;
  37720. -
  37721. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  37722. - lt_prog_compiler_wl_GCJ='-Wl,'
  37723. - lt_prog_compiler_pic_GCJ='-KPIC'
  37724. - lt_prog_compiler_static_GCJ='-Bstatic'
  37725. - ;;
  37726. -
  37727. - sysv4*MP*)
  37728. - if test -d /usr/nec ;then
  37729. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  37730. - lt_prog_compiler_static_GCJ='-Bstatic'
  37731. - fi
  37732. - ;;
  37733. -
  37734. - uts4*)
  37735. - lt_prog_compiler_pic_GCJ='-pic'
  37736. - lt_prog_compiler_static_GCJ='-Bstatic'
  37737. - ;;
  37738. -
  37739. - *)
  37740. - lt_prog_compiler_can_build_shared_GCJ=no
  37741. - ;;
  37742. - esac
  37743. - fi
  37744. -
  37745. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  37746. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  37747. -
  37748. -#
  37749. -# Check to make sure the PIC flag actually works.
  37750. -#
  37751. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  37752. -
  37753. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  37754. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  37755. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  37756. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37757. -else
  37758. - lt_prog_compiler_pic_works_GCJ=no
  37759. - ac_outfile=conftest.$ac_objext
  37760. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37761. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  37762. - # Insert the option either (1) after the last *FLAGS variable, or
  37763. - # (2) before a word containing "conftest.", or (3) at the end.
  37764. - # Note that $ac_compile itself does not contain backslashes and begins
  37765. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37766. - # The option is referenced via a variable to avoid confusing sed.
  37767. - lt_compile=`echo "$ac_compile" | $SED \
  37768. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  37769. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37770. - -e 's:$: $lt_compiler_flag:'`
  37771. - (eval echo "\"\$as_me:15679: $lt_compile\"" >&5)
  37772. - (eval "$lt_compile" 2>conftest.err)
  37773. - ac_status=$?
  37774. - cat conftest.err >&5
  37775. - echo "$as_me:15683: \$? = $ac_status" >&5
  37776. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37777. - # The compiler can only warn and ignore the option if not recognized
  37778. - # So say no if there are warnings
  37779. - if test ! -s conftest.err; then
  37780. - lt_prog_compiler_pic_works_GCJ=yes
  37781. - fi
  37782. - fi
  37783. - $rm conftest*
  37784. -
  37785. -fi
  37786. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  37787. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  37788. -
  37789. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  37790. - case $lt_prog_compiler_pic_GCJ in
  37791. - "" | " "*) ;;
  37792. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  37793. - esac
  37794. -else
  37795. - lt_prog_compiler_pic_GCJ=
  37796. - lt_prog_compiler_can_build_shared_GCJ=no
  37797. -fi
  37798. -
  37799. -fi
  37800. -case "$host_os" in
  37801. - # For platforms which do not support PIC, -DPIC is meaningless:
  37802. - *djgpp*)
  37803. - lt_prog_compiler_pic_GCJ=
  37804. - ;;
  37805. - *)
  37806. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  37807. - ;;
  37808. -esac
  37809. -
  37810. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  37811. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  37812. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  37813. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37814. -else
  37815. - lt_cv_prog_compiler_c_o_GCJ=no
  37816. - $rm -r conftest 2>/dev/null
  37817. - mkdir conftest
  37818. - cd conftest
  37819. - mkdir out
  37820. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37821. -
  37822. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  37823. - # Insert the option either (1) after the last *FLAGS variable, or
  37824. - # (2) before a word containing "conftest.", or (3) at the end.
  37825. - # Note that $ac_compile itself does not contain backslashes and begins
  37826. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37827. - lt_compile=`echo "$ac_compile" | $SED \
  37828. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  37829. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37830. - -e 's:$: $lt_compiler_flag:'`
  37831. - (eval echo "\"\$as_me:15739: $lt_compile\"" >&5)
  37832. - (eval "$lt_compile" 2>out/conftest.err)
  37833. - ac_status=$?
  37834. - cat out/conftest.err >&5
  37835. - echo "$as_me:15743: \$? = $ac_status" >&5
  37836. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  37837. - then
  37838. - # The compiler can only warn and ignore the option if not recognized
  37839. - # So say no if there are warnings
  37840. - if test ! -s out/conftest.err; then
  37841. - lt_cv_prog_compiler_c_o_GCJ=yes
  37842. - fi
  37843. - fi
  37844. - chmod u+w .
  37845. - $rm conftest*
  37846. - # SGI C++ compiler will create directory out/ii_files/ for
  37847. - # template instantiation
  37848. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  37849. - $rm out/* && rmdir out
  37850. - cd ..
  37851. - rmdir conftest
  37852. - $rm conftest*
  37853. -
  37854. -fi
  37855. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  37856. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  37857. -
  37858. -
  37859. -hard_links="nottested"
  37860. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  37861. - # do not overwrite the value of need_locks provided by the user
  37862. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  37863. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  37864. - hard_links=yes
  37865. - $rm conftest*
  37866. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37867. - touch conftest.a
  37868. - ln conftest.a conftest.b 2>&5 || hard_links=no
  37869. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37870. - echo "$as_me:$LINENO: result: $hard_links" >&5
  37871. -echo "${ECHO_T}$hard_links" >&6
  37872. - if test "$hard_links" = no; then
  37873. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  37874. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  37875. - need_locks=warn
  37876. - fi
  37877. -else
  37878. - need_locks=no
  37879. -fi
  37880. -
  37881. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  37882. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  37883. -
  37884. - runpath_var=
  37885. - allow_undefined_flag_GCJ=
  37886. - enable_shared_with_static_runtimes_GCJ=no
  37887. - archive_cmds_GCJ=
  37888. - archive_expsym_cmds_GCJ=
  37889. - old_archive_From_new_cmds_GCJ=
  37890. - old_archive_from_expsyms_cmds_GCJ=
  37891. - export_dynamic_flag_spec_GCJ=
  37892. - whole_archive_flag_spec_GCJ=
  37893. - thread_safe_flag_spec_GCJ=
  37894. - hardcode_libdir_flag_spec_GCJ=
  37895. - hardcode_libdir_flag_spec_ld_GCJ=
  37896. - hardcode_libdir_separator_GCJ=
  37897. - hardcode_direct_GCJ=no
  37898. - hardcode_minus_L_GCJ=no
  37899. - hardcode_shlibpath_var_GCJ=unsupported
  37900. - link_all_deplibs_GCJ=unknown
  37901. - hardcode_automatic_GCJ=no
  37902. - module_cmds_GCJ=
  37903. - module_expsym_cmds_GCJ=
  37904. - always_export_symbols_GCJ=no
  37905. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37906. - # include_expsyms should be a list of space-separated symbols to be *always*
  37907. - # included in the symbol list
  37908. - include_expsyms_GCJ=
  37909. - # exclude_expsyms can be an extended regexp of symbols to exclude
  37910. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  37911. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  37912. - # as well as any symbol that contains `d'.
  37913. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  37914. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  37915. - # platforms (ab)use it in PIC code, but their linkers get confused if
  37916. - # the symbol is explicitly referenced. Since portable code cannot
  37917. - # rely on this symbol name, it's probably fine to never include it in
  37918. - # preloaded symbol tables.
  37919. - extract_expsyms_cmds=
  37920. -
  37921. - case $host_os in
  37922. - cygwin* | mingw* | pw32*)
  37923. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  37924. - # When not using gcc, we currently assume that we are using
  37925. - # Microsoft Visual C++.
  37926. - if test "$GCC" != yes; then
  37927. - with_gnu_ld=no
  37928. - fi
  37929. - ;;
  37930. - openbsd*)
  37931. - with_gnu_ld=no
  37932. - ;;
  37933. - esac
  37934. -
  37935. - ld_shlibs_GCJ=yes
  37936. - if test "$with_gnu_ld" = yes; then
  37937. - # If archive_cmds runs LD, not CC, wlarc should be empty
  37938. - wlarc='${wl}'
  37939. -
  37940. - # See if GNU ld supports shared libraries.
  37941. - case $host_os in
  37942. - aix3* | aix4* | aix5*)
  37943. - # On AIX/PPC, the GNU linker is very broken
  37944. - if test "$host_cpu" != ia64; then
  37945. - ld_shlibs_GCJ=no
  37946. - cat <<EOF 1>&2
  37947. -
  37948. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  37949. -*** to be unable to reliably create shared libraries on AIX.
  37950. -*** Therefore, libtool is disabling shared libraries support. If you
  37951. -*** really care for shared libraries, you may want to modify your PATH
  37952. -*** so that a non-GNU linker is found, and then restart.
  37953. -
  37954. -EOF
  37955. - fi
  37956. - ;;
  37957. -
  37958. - amigaos*)
  37959. - archive_cmds_GCJ='$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)'
  37960. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37961. - hardcode_minus_L_GCJ=yes
  37962. -
  37963. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  37964. - # that the semantics of dynamic libraries on AmigaOS, at least up
  37965. - # to version 4, is to share data among multiple programs linked
  37966. - # with the same dynamic library. Since this doesn't match the
  37967. - # behavior of shared libraries on other platforms, we can't use
  37968. - # them.
  37969. - ld_shlibs_GCJ=no
  37970. - ;;
  37971. -
  37972. - beos*)
  37973. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37974. - allow_undefined_flag_GCJ=unsupported
  37975. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  37976. - # support --undefined. This deserves some investigation. FIXME
  37977. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37978. - else
  37979. - ld_shlibs_GCJ=no
  37980. - fi
  37981. - ;;
  37982. -
  37983. - cygwin* | mingw* | pw32*)
  37984. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  37985. - # as there is no search path for DLLs.
  37986. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37987. - allow_undefined_flag_GCJ=unsupported
  37988. - always_export_symbols_GCJ=no
  37989. - enable_shared_with_static_runtimes_GCJ=yes
  37990. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  37991. -
  37992. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  37993. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  37994. - # If the export-symbols file already is a .def file (1st line
  37995. - # is EXPORTS), use it as is; otherwise, prepend...
  37996. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  37997. - cp $export_symbols $output_objdir/$soname.def;
  37998. - else
  37999. - echo EXPORTS > $output_objdir/$soname.def;
  38000. - cat $export_symbols >> $output_objdir/$soname.def;
  38001. - fi~
  38002. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  38003. - else
  38004. - ld_shlibs=no
  38005. - fi
  38006. - ;;
  38007. -
  38008. - netbsd* | knetbsd*-gnu)
  38009. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38010. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  38011. - wlarc=
  38012. - else
  38013. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38014. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38015. - fi
  38016. - ;;
  38017. -
  38018. - solaris* | sysv5*)
  38019. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  38020. - ld_shlibs_GCJ=no
  38021. - cat <<EOF 1>&2
  38022. -
  38023. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  38024. -*** create shared libraries on Solaris systems. Therefore, libtool
  38025. -*** is disabling shared libraries support. We urge you to upgrade GNU
  38026. -*** binutils to release 2.9.1 or newer. Another option is to modify
  38027. -*** your PATH or compiler configuration so that the native linker is
  38028. -*** used, and then restart.
  38029. -
  38030. -EOF
  38031. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38032. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38033. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38034. - else
  38035. - ld_shlibs_GCJ=no
  38036. - fi
  38037. - ;;
  38038. -
  38039. - sunos4*)
  38040. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38041. - wlarc=
  38042. - hardcode_direct_GCJ=yes
  38043. - hardcode_shlibpath_var_GCJ=no
  38044. - ;;
  38045. -
  38046. - linux*)
  38047. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  38048. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38049. - archive_cmds_GCJ="$tmp_archive_cmds"
  38050. - supports_anon_versioning=no
  38051. - case `$LD -v 2>/dev/null` in
  38052. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  38053. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  38054. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  38055. - *\ 2.11.*) ;; # other 2.11 versions
  38056. - *) supports_anon_versioning=yes ;;
  38057. - esac
  38058. - if test $supports_anon_versioning = yes; then
  38059. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  38060. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  38061. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  38062. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  38063. - else
  38064. - archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  38065. - fi
  38066. - else
  38067. - ld_shlibs_GCJ=no
  38068. - fi
  38069. - ;;
  38070. -
  38071. - *)
  38072. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  38073. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  38074. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  38075. - else
  38076. - ld_shlibs_GCJ=no
  38077. - fi
  38078. - ;;
  38079. - esac
  38080. -
  38081. - if test "$ld_shlibs_GCJ" = yes; then
  38082. - runpath_var=LD_RUN_PATH
  38083. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  38084. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  38085. - # ancient GNU ld didn't support --whole-archive et. al.
  38086. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  38087. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  38088. - else
  38089. - whole_archive_flag_spec_GCJ=
  38090. - fi
  38091. - fi
  38092. - else
  38093. - # PORTME fill in a description of your system's linker (not GNU ld)
  38094. - case $host_os in
  38095. - aix3*)
  38096. - allow_undefined_flag_GCJ=unsupported
  38097. - always_export_symbols_GCJ=yes
  38098. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  38099. - # Note: this linker hardcodes the directories in LIBPATH if there
  38100. - # are no directories specified by -L.
  38101. - hardcode_minus_L_GCJ=yes
  38102. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  38103. - # Neither direct hardcoding nor static linking is supported with a
  38104. - # broken collect2.
  38105. - hardcode_direct_GCJ=unsupported
  38106. - fi
  38107. - ;;
  38108. -
  38109. - aix4* | aix5*)
  38110. - if test "$host_cpu" = ia64; then
  38111. - # On IA64, the linker does run time linking by default, so we don't
  38112. - # have to do anything special.
  38113. - aix_use_runtimelinking=no
  38114. - exp_sym_flag='-Bexport'
  38115. - no_entry_flag=""
  38116. - else
  38117. - # If we're using GNU nm, then we don't want the "-C" option.
  38118. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  38119. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  38120. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  38121. - else
  38122. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  38123. - fi
  38124. - aix_use_runtimelinking=no
  38125. -
  38126. - # Test if we are trying to use run time linking or normal
  38127. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  38128. - # need to do runtime linking.
  38129. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  38130. - for ld_flag in $LDFLAGS; do
  38131. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  38132. - aix_use_runtimelinking=yes
  38133. - break
  38134. - fi
  38135. - done
  38136. - esac
  38137. -
  38138. - exp_sym_flag='-bexport'
  38139. - no_entry_flag='-bnoentry'
  38140. - fi
  38141. -
  38142. - # When large executables or shared objects are built, AIX ld can
  38143. - # have problems creating the table of contents. If linking a library
  38144. - # or program results in "error TOC overflow" add -mminimal-toc to
  38145. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  38146. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  38147. -
  38148. - archive_cmds_GCJ=''
  38149. - hardcode_direct_GCJ=yes
  38150. - hardcode_libdir_separator_GCJ=':'
  38151. - link_all_deplibs_GCJ=yes
  38152. -
  38153. - if test "$GCC" = yes; then
  38154. - case $host_os in aix4.012|aix4.012.*)
  38155. - # We only want to do this on AIX 4.2 and lower, the check
  38156. - # below for broken collect2 doesn't work under 4.3+
  38157. - collect2name=`${CC} -print-prog-name=collect2`
  38158. - if test -f "$collect2name" && \
  38159. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  38160. - then
  38161. - # We have reworked collect2
  38162. - hardcode_direct_GCJ=yes
  38163. - else
  38164. - # We have old collect2
  38165. - hardcode_direct_GCJ=unsupported
  38166. - # It fails to find uninstalled libraries when the uninstalled
  38167. - # path is not listed in the libpath. Setting hardcode_minus_L
  38168. - # to unsupported forces relinking
  38169. - hardcode_minus_L_GCJ=yes
  38170. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38171. - hardcode_libdir_separator_GCJ=
  38172. - fi
  38173. - esac
  38174. - shared_flag='-shared'
  38175. - else
  38176. - # not using gcc
  38177. - if test "$host_cpu" = ia64; then
  38178. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  38179. - # chokes on -Wl,-G. The following line is correct:
  38180. - shared_flag='-G'
  38181. - else
  38182. - if test "$aix_use_runtimelinking" = yes; then
  38183. - shared_flag='${wl}-G'
  38184. - else
  38185. - shared_flag='${wl}-bM:SRE'
  38186. - fi
  38187. - fi
  38188. - fi
  38189. -
  38190. - # It seems that -bexpall does not export symbols beginning with
  38191. - # underscore (_), so it is better to generate a list of symbols to export.
  38192. - always_export_symbols_GCJ=yes
  38193. - if test "$aix_use_runtimelinking" = yes; then
  38194. - # Warning - without using the other runtime loading flags (-brtl),
  38195. - # -berok will link without error, but may produce a broken library.
  38196. - allow_undefined_flag_GCJ='-berok'
  38197. - # Determine the default libpath from the value encoded in an empty executable.
  38198. - cat >conftest.$ac_ext <<_ACEOF
  38199. -/* confdefs.h. */
  38200. -_ACEOF
  38201. -cat confdefs.h >>conftest.$ac_ext
  38202. -cat >>conftest.$ac_ext <<_ACEOF
  38203. -/* end confdefs.h. */
  38204. -
  38205. -int
  38206. -main ()
  38207. -{
  38208. -
  38209. - ;
  38210. - return 0;
  38211. -}
  38212. -_ACEOF
  38213. -rm -f conftest.$ac_objext conftest$ac_exeext
  38214. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38215. - (eval $ac_link) 2>conftest.er1
  38216. - ac_status=$?
  38217. - grep -v '^ *+' conftest.er1 >conftest.err
  38218. - rm -f conftest.er1
  38219. - cat conftest.err >&5
  38220. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38221. - (exit $ac_status); } &&
  38222. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38223. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38224. - (eval $ac_try) 2>&5
  38225. - ac_status=$?
  38226. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38227. - (exit $ac_status); }; } &&
  38228. - { ac_try='test -s conftest$ac_exeext'
  38229. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38230. - (eval $ac_try) 2>&5
  38231. - ac_status=$?
  38232. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38233. - (exit $ac_status); }; }; then
  38234. -
  38235. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  38236. -}'`
  38237. -# Check for a 64-bit object if we didn't find anything.
  38238. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  38239. -}'`; fi
  38240. -else
  38241. - echo "$as_me: failed program was:" >&5
  38242. -sed 's/^/| /' conftest.$ac_ext >&5
  38243. -
  38244. -fi
  38245. -rm -f conftest.err conftest.$ac_objext \
  38246. - conftest$ac_exeext conftest.$ac_ext
  38247. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  38248. -
  38249. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  38250. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  38251. - else
  38252. - if test "$host_cpu" = ia64; then
  38253. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  38254. - allow_undefined_flag_GCJ="-z nodefs"
  38255. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  38256. - else
  38257. - # Determine the default libpath from the value encoded in an empty executable.
  38258. - cat >conftest.$ac_ext <<_ACEOF
  38259. -/* confdefs.h. */
  38260. -_ACEOF
  38261. -cat confdefs.h >>conftest.$ac_ext
  38262. -cat >>conftest.$ac_ext <<_ACEOF
  38263. -/* end confdefs.h. */
  38264. -
  38265. -int
  38266. -main ()
  38267. -{
  38268. -
  38269. - ;
  38270. - return 0;
  38271. -}
  38272. -_ACEOF
  38273. -rm -f conftest.$ac_objext conftest$ac_exeext
  38274. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38275. - (eval $ac_link) 2>conftest.er1
  38276. - ac_status=$?
  38277. - grep -v '^ *+' conftest.er1 >conftest.err
  38278. - rm -f conftest.er1
  38279. - cat conftest.err >&5
  38280. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38281. - (exit $ac_status); } &&
  38282. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38283. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38284. - (eval $ac_try) 2>&5
  38285. - ac_status=$?
  38286. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38287. - (exit $ac_status); }; } &&
  38288. - { ac_try='test -s conftest$ac_exeext'
  38289. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38290. - (eval $ac_try) 2>&5
  38291. - ac_status=$?
  38292. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38293. - (exit $ac_status); }; }; then
  38294. -
  38295. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  38296. -}'`
  38297. -# Check for a 64-bit object if we didn't find anything.
  38298. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  38299. -}'`; fi
  38300. -else
  38301. - echo "$as_me: failed program was:" >&5
  38302. -sed 's/^/| /' conftest.$ac_ext >&5
  38303. -
  38304. -fi
  38305. -rm -f conftest.err conftest.$ac_objext \
  38306. - conftest$ac_exeext conftest.$ac_ext
  38307. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  38308. -
  38309. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  38310. - # Warning - without using the other run time loading flags,
  38311. - # -berok will link without error, but may produce a broken library.
  38312. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  38313. - allow_undefined_flag_GCJ=' ${wl}-berok'
  38314. - # -bexpall does not export symbols beginning with underscore (_)
  38315. - always_export_symbols_GCJ=yes
  38316. - # Exported symbols can be pulled into shared objects from archives
  38317. - whole_archive_flag_spec_GCJ=' '
  38318. - archive_cmds_need_lc_GCJ=yes
  38319. - # This is similar to how AIX traditionally builds it's shared libraries.
  38320. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  38321. - fi
  38322. - fi
  38323. - ;;
  38324. -
  38325. - amigaos*)
  38326. - archive_cmds_GCJ='$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)'
  38327. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38328. - hardcode_minus_L_GCJ=yes
  38329. - # see comment about different semantics on the GNU ld section
  38330. - ld_shlibs_GCJ=no
  38331. - ;;
  38332. -
  38333. - bsdi4*)
  38334. - export_dynamic_flag_spec_GCJ=-rdynamic
  38335. - ;;
  38336. -
  38337. - cygwin* | mingw* | pw32*)
  38338. - # When not using gcc, we currently assume that we are using
  38339. - # Microsoft Visual C++.
  38340. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  38341. - # no search path for DLLs.
  38342. - hardcode_libdir_flag_spec_GCJ=' '
  38343. - allow_undefined_flag_GCJ=unsupported
  38344. - # Tell ltmain to make .lib files, not .a files.
  38345. - libext=lib
  38346. - # Tell ltmain to make .dll files, not .so files.
  38347. - shrext=".dll"
  38348. - # FIXME: Setting linknames here is a bad hack.
  38349. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  38350. - # The linker will automatically build a .lib file if we build a DLL.
  38351. - old_archive_From_new_cmds_GCJ='true'
  38352. - # FIXME: Should let the user specify the lib program.
  38353. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  38354. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  38355. - enable_shared_with_static_runtimes_GCJ=yes
  38356. - ;;
  38357. -
  38358. - darwin* | rhapsody*)
  38359. - if test "$GXX" = yes ; then
  38360. - archive_cmds_need_lc_GCJ=no
  38361. - case "$host_os" in
  38362. - rhapsody* | darwin1.[012])
  38363. - allow_undefined_flag_GCJ='-undefined suppress'
  38364. - ;;
  38365. - *) # Darwin 1.3 on
  38366. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  38367. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  38368. - else
  38369. - case ${MACOSX_DEPLOYMENT_TARGET} in
  38370. - 10.[012])
  38371. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  38372. - ;;
  38373. - 10.*)
  38374. - allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  38375. - ;;
  38376. - esac
  38377. - fi
  38378. - ;;
  38379. - esac
  38380. - lt_int_apple_cc_single_mod=no
  38381. - output_verbose_link_cmd='echo'
  38382. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  38383. - lt_int_apple_cc_single_mod=yes
  38384. - fi
  38385. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  38386. - archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  38387. - else
  38388. - archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
  38389. - fi
  38390. - module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  38391. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  38392. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  38393. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  38394. - else
  38395. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  38396. - fi
  38397. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  38398. - hardcode_direct_GCJ=no
  38399. - hardcode_automatic_GCJ=yes
  38400. - hardcode_shlibpath_var_GCJ=unsupported
  38401. - whole_archive_flag_spec_GCJ='-all_load $convenience'
  38402. - link_all_deplibs_GCJ=yes
  38403. - else
  38404. - ld_shlibs_GCJ=no
  38405. - fi
  38406. - ;;
  38407. -
  38408. - dgux*)
  38409. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38410. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38411. - hardcode_shlibpath_var_GCJ=no
  38412. - ;;
  38413. -
  38414. - freebsd1*)
  38415. - ld_shlibs_GCJ=no
  38416. - ;;
  38417. -
  38418. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  38419. - # support. Future versions do this automatically, but an explicit c++rt0.o
  38420. - # does not break anything, and helps significantly (at the cost of a little
  38421. - # extra space).
  38422. - freebsd2.2*)
  38423. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  38424. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38425. - hardcode_direct_GCJ=yes
  38426. - hardcode_shlibpath_var_GCJ=no
  38427. - ;;
  38428. -
  38429. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  38430. - freebsd2*)
  38431. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38432. - hardcode_direct_GCJ=yes
  38433. - hardcode_minus_L_GCJ=yes
  38434. - hardcode_shlibpath_var_GCJ=no
  38435. - ;;
  38436. -
  38437. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  38438. - freebsd* | kfreebsd*-gnu)
  38439. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  38440. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38441. - hardcode_direct_GCJ=yes
  38442. - hardcode_shlibpath_var_GCJ=no
  38443. - ;;
  38444. -
  38445. - hpux9*)
  38446. - if test "$GCC" = yes; then
  38447. - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  38448. - else
  38449. - archive_cmds_GCJ='$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'
  38450. - fi
  38451. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  38452. - hardcode_libdir_separator_GCJ=:
  38453. - hardcode_direct_GCJ=yes
  38454. -
  38455. - # hardcode_minus_L: Not really in the search PATH,
  38456. - # but as the default location of the library.
  38457. - hardcode_minus_L_GCJ=yes
  38458. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38459. - ;;
  38460. -
  38461. - hpux10* | hpux11*)
  38462. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  38463. - case "$host_cpu" in
  38464. - hppa*64*|ia64*)
  38465. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38466. - ;;
  38467. - *)
  38468. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  38469. - ;;
  38470. - esac
  38471. - else
  38472. - case "$host_cpu" in
  38473. - hppa*64*|ia64*)
  38474. - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  38475. - ;;
  38476. - *)
  38477. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  38478. - ;;
  38479. - esac
  38480. - fi
  38481. - if test "$with_gnu_ld" = no; then
  38482. - case "$host_cpu" in
  38483. - hppa*64*)
  38484. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  38485. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  38486. - hardcode_libdir_separator_GCJ=:
  38487. - hardcode_direct_GCJ=no
  38488. - hardcode_shlibpath_var_GCJ=no
  38489. - ;;
  38490. - ia64*)
  38491. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38492. - hardcode_direct_GCJ=no
  38493. - hardcode_shlibpath_var_GCJ=no
  38494. -
  38495. - # hardcode_minus_L: Not really in the search PATH,
  38496. - # but as the default location of the library.
  38497. - hardcode_minus_L_GCJ=yes
  38498. - ;;
  38499. - *)
  38500. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  38501. - hardcode_libdir_separator_GCJ=:
  38502. - hardcode_direct_GCJ=yes
  38503. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38504. -
  38505. - # hardcode_minus_L: Not really in the search PATH,
  38506. - # but as the default location of the library.
  38507. - hardcode_minus_L_GCJ=yes
  38508. - ;;
  38509. - esac
  38510. - fi
  38511. - ;;
  38512. -
  38513. - irix5* | irix6* | nonstopux*)
  38514. - if test "$GCC" = yes; then
  38515. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  38516. - else
  38517. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  38518. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  38519. - fi
  38520. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38521. - hardcode_libdir_separator_GCJ=:
  38522. - link_all_deplibs_GCJ=yes
  38523. - ;;
  38524. -
  38525. - netbsd* | knetbsd*-gnu)
  38526. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38527. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  38528. - else
  38529. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  38530. - fi
  38531. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38532. - hardcode_direct_GCJ=yes
  38533. - hardcode_shlibpath_var_GCJ=no
  38534. - ;;
  38535. -
  38536. - newsos6)
  38537. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38538. - hardcode_direct_GCJ=yes
  38539. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38540. - hardcode_libdir_separator_GCJ=:
  38541. - hardcode_shlibpath_var_GCJ=no
  38542. - ;;
  38543. -
  38544. - openbsd*)
  38545. - hardcode_direct_GCJ=yes
  38546. - hardcode_shlibpath_var_GCJ=no
  38547. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38548. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  38549. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  38550. - export_dynamic_flag_spec_GCJ='${wl}-E'
  38551. - else
  38552. - case $host_os in
  38553. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  38554. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  38555. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38556. - ;;
  38557. - *)
  38558. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  38559. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  38560. - ;;
  38561. - esac
  38562. - fi
  38563. - ;;
  38564. -
  38565. - os2*)
  38566. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38567. - hardcode_minus_L_GCJ=yes
  38568. - allow_undefined_flag_GCJ=unsupported
  38569. - archive_cmds_GCJ='$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'
  38570. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  38571. - ;;
  38572. -
  38573. - osf3*)
  38574. - if test "$GCC" = yes; then
  38575. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  38576. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  38577. - else
  38578. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  38579. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  38580. - fi
  38581. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38582. - hardcode_libdir_separator_GCJ=:
  38583. - ;;
  38584. -
  38585. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  38586. - if test "$GCC" = yes; then
  38587. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  38588. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  38589. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  38590. - else
  38591. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  38592. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  38593. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  38594. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  38595. -
  38596. - # Both c and cxx compiler support -rpath directly
  38597. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  38598. - fi
  38599. - hardcode_libdir_separator_GCJ=:
  38600. - ;;
  38601. -
  38602. - sco3.2v5*)
  38603. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38604. - hardcode_shlibpath_var_GCJ=no
  38605. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  38606. - runpath_var=LD_RUN_PATH
  38607. - hardcode_runpath_var=yes
  38608. - ;;
  38609. -
  38610. - solaris*)
  38611. - no_undefined_flag_GCJ=' -z text'
  38612. - if test "$GCC" = yes; then
  38613. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38614. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  38615. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  38616. - else
  38617. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38618. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  38619. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  38620. - fi
  38621. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  38622. - hardcode_shlibpath_var_GCJ=no
  38623. - case $host_os in
  38624. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  38625. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  38626. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  38627. - esac
  38628. - link_all_deplibs_GCJ=yes
  38629. - ;;
  38630. -
  38631. - sunos4*)
  38632. - if test "x$host_vendor" = xsequent; then
  38633. - # Use $CC to link under sequent, because it throws in some extra .o
  38634. - # files that make .init and .fini sections work.
  38635. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  38636. - else
  38637. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  38638. - fi
  38639. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38640. - hardcode_direct_GCJ=yes
  38641. - hardcode_minus_L_GCJ=yes
  38642. - hardcode_shlibpath_var_GCJ=no
  38643. - ;;
  38644. -
  38645. - sysv4)
  38646. - case $host_vendor in
  38647. - sni)
  38648. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38649. - hardcode_direct_GCJ=yes # is this really true???
  38650. - ;;
  38651. - siemens)
  38652. - ## LD is ld it makes a PLAMLIB
  38653. - ## CC just makes a GrossModule.
  38654. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  38655. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  38656. - hardcode_direct_GCJ=no
  38657. - ;;
  38658. - motorola)
  38659. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38660. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  38661. - ;;
  38662. - esac
  38663. - runpath_var='LD_RUN_PATH'
  38664. - hardcode_shlibpath_var_GCJ=no
  38665. - ;;
  38666. -
  38667. - sysv4.3*)
  38668. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38669. - hardcode_shlibpath_var_GCJ=no
  38670. - export_dynamic_flag_spec_GCJ='-Bexport'
  38671. - ;;
  38672. -
  38673. - sysv4*MP*)
  38674. - if test -d /usr/nec; then
  38675. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38676. - hardcode_shlibpath_var_GCJ=no
  38677. - runpath_var=LD_RUN_PATH
  38678. - hardcode_runpath_var=yes
  38679. - ld_shlibs_GCJ=yes
  38680. - fi
  38681. - ;;
  38682. -
  38683. - sysv4.2uw2*)
  38684. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  38685. - hardcode_direct_GCJ=yes
  38686. - hardcode_minus_L_GCJ=no
  38687. - hardcode_shlibpath_var_GCJ=no
  38688. - hardcode_runpath_var=yes
  38689. - runpath_var=LD_RUN_PATH
  38690. - ;;
  38691. -
  38692. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  38693. - no_undefined_flag_GCJ='${wl}-z ${wl}text'
  38694. - if test "$GCC" = yes; then
  38695. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38696. - else
  38697. - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  38698. - fi
  38699. - runpath_var='LD_RUN_PATH'
  38700. - hardcode_shlibpath_var_GCJ=no
  38701. - ;;
  38702. -
  38703. - sysv5*)
  38704. - no_undefined_flag_GCJ=' -z text'
  38705. - # $CC -shared without GNU ld will not create a library from C++
  38706. - # object files and a static libstdc++, better avoid it by now
  38707. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38708. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  38709. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  38710. - hardcode_libdir_flag_spec_GCJ=
  38711. - hardcode_shlibpath_var_GCJ=no
  38712. - runpath_var='LD_RUN_PATH'
  38713. - ;;
  38714. -
  38715. - uts4*)
  38716. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  38717. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  38718. - hardcode_shlibpath_var_GCJ=no
  38719. - ;;
  38720. -
  38721. - *)
  38722. - ld_shlibs_GCJ=no
  38723. - ;;
  38724. - esac
  38725. - fi
  38726. -
  38727. -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  38728. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  38729. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  38730. -
  38731. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  38732. -if test "$GCC" = yes; then
  38733. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  38734. -fi
  38735. -
  38736. -#
  38737. -# Do we need to explicitly link libc?
  38738. -#
  38739. -case "x$archive_cmds_need_lc_GCJ" in
  38740. -x|xyes)
  38741. - # Assume -lc should be added
  38742. - archive_cmds_need_lc_GCJ=yes
  38743. -
  38744. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  38745. - case $archive_cmds_GCJ in
  38746. - *'~'*)
  38747. - # FIXME: we may have to deal with multi-command sequences.
  38748. - ;;
  38749. - '$CC '*)
  38750. - # Test whether the compiler implicitly links with -lc since on some
  38751. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  38752. - # to ld, don't add -lc before -lgcc.
  38753. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  38754. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  38755. - $rm conftest*
  38756. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  38757. -
  38758. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38759. - (eval $ac_compile) 2>&5
  38760. - ac_status=$?
  38761. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38762. - (exit $ac_status); } 2>conftest.err; then
  38763. - soname=conftest
  38764. - lib=conftest
  38765. - libobjs=conftest.$ac_objext
  38766. - deplibs=
  38767. - wl=$lt_prog_compiler_wl_GCJ
  38768. - compiler_flags=-v
  38769. - linker_flags=-v
  38770. - verstring=
  38771. - output_objdir=.
  38772. - libname=conftest
  38773. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  38774. - allow_undefined_flag_GCJ=
  38775. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  38776. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  38777. - ac_status=$?
  38778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38779. - (exit $ac_status); }
  38780. - then
  38781. - archive_cmds_need_lc_GCJ=no
  38782. - else
  38783. - archive_cmds_need_lc_GCJ=yes
  38784. - fi
  38785. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  38786. - else
  38787. - cat conftest.err 1>&5
  38788. - fi
  38789. - $rm conftest*
  38790. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  38791. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  38792. - ;;
  38793. - esac
  38794. - fi
  38795. - ;;
  38796. -esac
  38797. -
  38798. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  38799. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  38800. -library_names_spec=
  38801. -libname_spec='lib$name'
  38802. -soname_spec=
  38803. -shrext=".so"
  38804. -postinstall_cmds=
  38805. -postuninstall_cmds=
  38806. -finish_cmds=
  38807. -finish_eval=
  38808. -shlibpath_var=
  38809. -shlibpath_overrides_runpath=unknown
  38810. -version_type=none
  38811. -dynamic_linker="$host_os ld.so"
  38812. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  38813. -if test "$GCC" = yes; then
  38814. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38815. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  38816. - # if the path contains ";" then we assume it to be the separator
  38817. - # otherwise default to the standard path separator (i.e. ":") - it is
  38818. - # assumed that no part of a normal pathname contains ";" but that should
  38819. - # okay in the real world where ";" in dirpaths is itself problematic.
  38820. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38821. - else
  38822. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38823. - fi
  38824. -else
  38825. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  38826. -fi
  38827. -need_lib_prefix=unknown
  38828. -hardcode_into_libs=no
  38829. -
  38830. -# when you set need_version to no, make sure it does not cause -set_version
  38831. -# flags to be left without arguments
  38832. -need_version=unknown
  38833. -
  38834. -case $host_os in
  38835. -aix3*)
  38836. - version_type=linux
  38837. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  38838. - shlibpath_var=LIBPATH
  38839. -
  38840. - # AIX 3 has no versioning support, so we append a major version to the name.
  38841. - soname_spec='${libname}${release}${shared_ext}$major'
  38842. - ;;
  38843. -
  38844. -aix4* | aix5*)
  38845. - version_type=linux
  38846. - need_lib_prefix=no
  38847. - need_version=no
  38848. - hardcode_into_libs=yes
  38849. - if test "$host_cpu" = ia64; then
  38850. - # AIX 5 supports IA64
  38851. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  38852. - shlibpath_var=LD_LIBRARY_PATH
  38853. - else
  38854. - # With GCC up to 2.95.x, collect2 would create an import file
  38855. - # for dependence libraries. The import file would start with
  38856. - # the line `#! .'. This would cause the generated library to
  38857. - # depend on `.', always an invalid library. This was fixed in
  38858. - # development snapshots of GCC prior to 3.0.
  38859. - case $host_os in
  38860. - aix4 | aix4.[01] | aix4.[01].*)
  38861. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  38862. - echo ' yes '
  38863. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  38864. - :
  38865. - else
  38866. - can_build_shared=no
  38867. - fi
  38868. - ;;
  38869. - esac
  38870. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  38871. - # soname into executable. Probably we can add versioning support to
  38872. - # collect2, so additional links can be useful in future.
  38873. - if test "$aix_use_runtimelinking" = yes; then
  38874. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  38875. - # instead of lib<name>.a to let people know that these are not
  38876. - # typical AIX shared libraries.
  38877. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38878. - else
  38879. - # We preserve .a as extension for shared libraries through AIX4.2
  38880. - # and later when we are not doing run time linking.
  38881. - library_names_spec='${libname}${release}.a $libname.a'
  38882. - soname_spec='${libname}${release}${shared_ext}$major'
  38883. - fi
  38884. - shlibpath_var=LIBPATH
  38885. - fi
  38886. - ;;
  38887. -
  38888. -amigaos*)
  38889. - library_names_spec='$libname.ixlibrary $libname.a'
  38890. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  38891. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  38892. - ;;
  38893. -
  38894. -beos*)
  38895. - library_names_spec='${libname}${shared_ext}'
  38896. - dynamic_linker="$host_os ld.so"
  38897. - shlibpath_var=LIBRARY_PATH
  38898. - ;;
  38899. -
  38900. -bsdi4*)
  38901. - version_type=linux
  38902. - need_version=no
  38903. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38904. - soname_spec='${libname}${release}${shared_ext}$major'
  38905. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  38906. - shlibpath_var=LD_LIBRARY_PATH
  38907. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  38908. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  38909. - # the default ld.so.conf also contains /usr/contrib/lib and
  38910. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  38911. - # libtool to hard-code these into programs
  38912. - ;;
  38913. -
  38914. -cygwin* | mingw* | pw32*)
  38915. - version_type=windows
  38916. - shrext=".dll"
  38917. - need_version=no
  38918. - need_lib_prefix=no
  38919. -
  38920. - case $GCC,$host_os in
  38921. - yes,cygwin* | yes,mingw* | yes,pw32*)
  38922. - library_names_spec='$libname.dll.a'
  38923. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  38924. - postinstall_cmds='base_file=`basename \${file}`~
  38925. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  38926. - dldir=$destdir/`dirname \$dlpath`~
  38927. - test -d \$dldir || mkdir -p \$dldir~
  38928. - $install_prog $dir/$dlname \$dldir/$dlname'
  38929. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  38930. - dlpath=$dir/\$dldll~
  38931. - $rm \$dlpath'
  38932. - shlibpath_overrides_runpath=yes
  38933. -
  38934. - case $host_os in
  38935. - cygwin*)
  38936. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  38937. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38938. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  38939. - ;;
  38940. - mingw*)
  38941. - # MinGW DLLs use traditional 'lib' prefix
  38942. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38943. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38944. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  38945. - # It is most probably a Windows format PATH printed by
  38946. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  38947. - # path with ; separators, and with drive letters. We can handle the
  38948. - # drive letters (cygwin fileutils understands them), so leave them,
  38949. - # especially as we might pass files found there to a mingw objdump,
  38950. - # which wouldn't understand a cygwinified path. Ahh.
  38951. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38952. - else
  38953. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38954. - fi
  38955. - ;;
  38956. - pw32*)
  38957. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  38958. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  38959. - ;;
  38960. - esac
  38961. - ;;
  38962. -
  38963. - *)
  38964. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  38965. - ;;
  38966. - esac
  38967. - dynamic_linker='Win32 ld.exe'
  38968. - # FIXME: first we should search . and the directory the executable is in
  38969. - shlibpath_var=PATH
  38970. - ;;
  38971. -
  38972. -darwin* | rhapsody*)
  38973. - dynamic_linker="$host_os dyld"
  38974. - version_type=darwin
  38975. - need_lib_prefix=no
  38976. - need_version=no
  38977. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  38978. - soname_spec='${libname}${release}${major}$shared_ext'
  38979. - shlibpath_overrides_runpath=yes
  38980. - shlibpath_var=DYLD_LIBRARY_PATH
  38981. - shrext='$(test .$module = .yes && echo .so || echo .dylib)'
  38982. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  38983. - if test "$GCC" = yes; then
  38984. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  38985. - else
  38986. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  38987. - fi
  38988. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  38989. - ;;
  38990. -
  38991. -dgux*)
  38992. - version_type=linux
  38993. - need_lib_prefix=no
  38994. - need_version=no
  38995. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  38996. - soname_spec='${libname}${release}${shared_ext}$major'
  38997. - shlibpath_var=LD_LIBRARY_PATH
  38998. - ;;
  38999. -
  39000. -freebsd1*)
  39001. - dynamic_linker=no
  39002. - ;;
  39003. -
  39004. -kfreebsd*-gnu)
  39005. - version_type=linux
  39006. - need_lib_prefix=no
  39007. - need_version=no
  39008. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39009. - soname_spec='${libname}${release}${shared_ext}$major'
  39010. - shlibpath_var=LD_LIBRARY_PATH
  39011. - shlibpath_overrides_runpath=no
  39012. - hardcode_into_libs=yes
  39013. - dynamic_linker='GNU ld.so'
  39014. - ;;
  39015. -
  39016. -freebsd*)
  39017. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  39018. - version_type=freebsd-$objformat
  39019. - case $version_type in
  39020. - freebsd-elf*)
  39021. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  39022. - need_version=no
  39023. - need_lib_prefix=no
  39024. - ;;
  39025. - freebsd-*)
  39026. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  39027. - need_version=yes
  39028. - ;;
  39029. - esac
  39030. - shlibpath_var=LD_LIBRARY_PATH
  39031. - case $host_os in
  39032. - freebsd2*)
  39033. - shlibpath_overrides_runpath=yes
  39034. - ;;
  39035. - freebsd3.01* | freebsdelf3.01*)
  39036. - shlibpath_overrides_runpath=yes
  39037. - hardcode_into_libs=yes
  39038. - ;;
  39039. - *) # from 3.2 on
  39040. - shlibpath_overrides_runpath=no
  39041. - hardcode_into_libs=yes
  39042. - ;;
  39043. - esac
  39044. - ;;
  39045. -
  39046. -gnu*)
  39047. - version_type=linux
  39048. - need_lib_prefix=no
  39049. - need_version=no
  39050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  39051. - soname_spec='${libname}${release}${shared_ext}$major'
  39052. - shlibpath_var=LD_LIBRARY_PATH
  39053. - hardcode_into_libs=yes
  39054. - ;;
  39055. -
  39056. -hpux9* | hpux10* | hpux11*)
  39057. - # Give a soname corresponding to the major version so that dld.sl refuses to
  39058. - # link against other versions.
  39059. - version_type=sunos
  39060. - need_lib_prefix=no
  39061. - need_version=no
  39062. - case "$host_cpu" in
  39063. - ia64*)
  39064. - shrext='.so'
  39065. - hardcode_into_libs=yes
  39066. - dynamic_linker="$host_os dld.so"
  39067. - shlibpath_var=LD_LIBRARY_PATH
  39068. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  39069. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39070. - soname_spec='${libname}${release}${shared_ext}$major'
  39071. - if test "X$HPUX_IA64_MODE" = X32; then
  39072. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  39073. - else
  39074. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  39075. - fi
  39076. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  39077. - ;;
  39078. - hppa*64*)
  39079. - shrext='.sl'
  39080. - hardcode_into_libs=yes
  39081. - dynamic_linker="$host_os dld.sl"
  39082. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  39083. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  39084. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39085. - soname_spec='${libname}${release}${shared_ext}$major'
  39086. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  39087. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  39088. - ;;
  39089. - *)
  39090. - shrext='.sl'
  39091. - dynamic_linker="$host_os dld.sl"
  39092. - shlibpath_var=SHLIB_PATH
  39093. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  39094. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39095. - soname_spec='${libname}${release}${shared_ext}$major'
  39096. - ;;
  39097. - esac
  39098. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  39099. - postinstall_cmds='chmod 555 $lib'
  39100. - ;;
  39101. -
  39102. -irix5* | irix6* | nonstopux*)
  39103. - case $host_os in
  39104. - nonstopux*) version_type=nonstopux ;;
  39105. - *)
  39106. - if test "$lt_cv_prog_gnu_ld" = yes; then
  39107. - version_type=linux
  39108. - else
  39109. - version_type=irix
  39110. - fi ;;
  39111. - esac
  39112. - need_lib_prefix=no
  39113. - need_version=no
  39114. - soname_spec='${libname}${release}${shared_ext}$major'
  39115. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  39116. - case $host_os in
  39117. - irix5* | nonstopux*)
  39118. - libsuff= shlibsuff=
  39119. - ;;
  39120. - *)
  39121. - case $LD in # libtool.m4 will add one of these switches to LD
  39122. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  39123. - libsuff= shlibsuff= libmagic=32-bit;;
  39124. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  39125. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  39126. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  39127. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  39128. - *) libsuff= shlibsuff= libmagic=never-match;;
  39129. - esac
  39130. - ;;
  39131. - esac
  39132. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  39133. - shlibpath_overrides_runpath=no
  39134. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  39135. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  39136. - hardcode_into_libs=yes
  39137. - ;;
  39138. -
  39139. -# No shared lib support for Linux oldld, aout, or coff.
  39140. -linux*oldld* | linux*aout* | linux*coff*)
  39141. - dynamic_linker=no
  39142. - ;;
  39143. -
  39144. -# This must be Linux ELF.
  39145. -linux*)
  39146. - version_type=linux
  39147. - need_lib_prefix=no
  39148. - need_version=no
  39149. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39150. - soname_spec='${libname}${release}${shared_ext}$major'
  39151. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  39152. - shlibpath_var=LD_LIBRARY_PATH
  39153. - shlibpath_overrides_runpath=no
  39154. - # This implies no fast_install, which is unacceptable.
  39155. - # Some rework will be needed to allow for fast_install
  39156. - # before this can be enabled.
  39157. - hardcode_into_libs=yes
  39158. -
  39159. - # Append ld.so.conf contents to the search path
  39160. - if test -f /etc/ld.so.conf; then
  39161. - ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
  39162. - sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
  39163. - fi
  39164. -
  39165. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  39166. - # powerpc, because MkLinux only supported shared libraries with the
  39167. - # GNU dynamic linker. Since this was broken with cross compilers,
  39168. - # most powerpc-linux boxes support dynamic linking these days and
  39169. - # people can always --disable-shared, the test was removed, and we
  39170. - # assume the GNU/Linux dynamic linker is in use.
  39171. - dynamic_linker='GNU/Linux ld.so'
  39172. - ;;
  39173. -
  39174. -knetbsd*-gnu)
  39175. - version_type=linux
  39176. - need_lib_prefix=no
  39177. - need_version=no
  39178. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39179. - soname_spec='${libname}${release}${shared_ext}$major'
  39180. - shlibpath_var=LD_LIBRARY_PATH
  39181. - shlibpath_overrides_runpath=no
  39182. - hardcode_into_libs=yes
  39183. - dynamic_linker='GNU ld.so'
  39184. - ;;
  39185. -
  39186. -netbsd*)
  39187. - version_type=sunos
  39188. - need_lib_prefix=no
  39189. - need_version=no
  39190. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  39191. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  39192. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  39193. - dynamic_linker='NetBSD (a.out) ld.so'
  39194. - else
  39195. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  39196. - soname_spec='${libname}${release}${shared_ext}$major'
  39197. - dynamic_linker='NetBSD ld.elf_so'
  39198. - fi
  39199. - shlibpath_var=LD_LIBRARY_PATH
  39200. - shlibpath_overrides_runpath=yes
  39201. - hardcode_into_libs=yes
  39202. - ;;
  39203. -
  39204. -newsos6)
  39205. - version_type=linux
  39206. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39207. - shlibpath_var=LD_LIBRARY_PATH
  39208. - shlibpath_overrides_runpath=yes
  39209. - ;;
  39210. -
  39211. -nto-qnx*)
  39212. - version_type=linux
  39213. - need_lib_prefix=no
  39214. - need_version=no
  39215. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39216. - soname_spec='${libname}${release}${shared_ext}$major'
  39217. - shlibpath_var=LD_LIBRARY_PATH
  39218. - shlibpath_overrides_runpath=yes
  39219. - ;;
  39220. -
  39221. -openbsd*)
  39222. - version_type=sunos
  39223. - need_lib_prefix=no
  39224. - need_version=yes
  39225. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  39226. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  39227. - shlibpath_var=LD_LIBRARY_PATH
  39228. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  39229. - case $host_os in
  39230. - openbsd2.[89] | openbsd2.[89].*)
  39231. - shlibpath_overrides_runpath=no
  39232. - ;;
  39233. - *)
  39234. - shlibpath_overrides_runpath=yes
  39235. - ;;
  39236. - esac
  39237. - else
  39238. - shlibpath_overrides_runpath=yes
  39239. - fi
  39240. - ;;
  39241. -
  39242. -os2*)
  39243. - libname_spec='$name'
  39244. - shrext=".dll"
  39245. - need_lib_prefix=no
  39246. - library_names_spec='$libname${shared_ext} $libname.a'
  39247. - dynamic_linker='OS/2 ld.exe'
  39248. - shlibpath_var=LIBPATH
  39249. - ;;
  39250. -
  39251. -osf3* | osf4* | osf5*)
  39252. - version_type=osf
  39253. - need_lib_prefix=no
  39254. - need_version=no
  39255. - soname_spec='${libname}${release}${shared_ext}$major'
  39256. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39257. - shlibpath_var=LD_LIBRARY_PATH
  39258. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  39259. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  39260. - ;;
  39261. -
  39262. -sco3.2v5*)
  39263. - version_type=osf
  39264. - soname_spec='${libname}${release}${shared_ext}$major'
  39265. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39266. - shlibpath_var=LD_LIBRARY_PATH
  39267. - ;;
  39268. -
  39269. -solaris*)
  39270. - version_type=linux
  39271. - need_lib_prefix=no
  39272. - need_version=no
  39273. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39274. - soname_spec='${libname}${release}${shared_ext}$major'
  39275. - shlibpath_var=LD_LIBRARY_PATH
  39276. - shlibpath_overrides_runpath=yes
  39277. - hardcode_into_libs=yes
  39278. - # ldd complains unless libraries are executable
  39279. - postinstall_cmds='chmod +x $lib'
  39280. - ;;
  39281. -
  39282. -sunos4*)
  39283. - version_type=sunos
  39284. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  39285. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  39286. - shlibpath_var=LD_LIBRARY_PATH
  39287. - shlibpath_overrides_runpath=yes
  39288. - if test "$with_gnu_ld" = yes; then
  39289. - need_lib_prefix=no
  39290. - fi
  39291. - need_version=yes
  39292. - ;;
  39293. -
  39294. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  39295. - version_type=linux
  39296. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39297. - soname_spec='${libname}${release}${shared_ext}$major'
  39298. - shlibpath_var=LD_LIBRARY_PATH
  39299. - case $host_vendor in
  39300. - sni)
  39301. - shlibpath_overrides_runpath=no
  39302. - need_lib_prefix=no
  39303. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  39304. - runpath_var=LD_RUN_PATH
  39305. - ;;
  39306. - siemens)
  39307. - need_lib_prefix=no
  39308. - ;;
  39309. - motorola)
  39310. - need_lib_prefix=no
  39311. - need_version=no
  39312. - shlibpath_overrides_runpath=no
  39313. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  39314. - ;;
  39315. - esac
  39316. - ;;
  39317. -
  39318. -sysv4*MP*)
  39319. - if test -d /usr/nec ;then
  39320. - version_type=linux
  39321. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  39322. - soname_spec='$libname${shared_ext}.$major'
  39323. - shlibpath_var=LD_LIBRARY_PATH
  39324. - fi
  39325. - ;;
  39326. -
  39327. -uts4*)
  39328. - version_type=linux
  39329. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  39330. - soname_spec='${libname}${release}${shared_ext}$major'
  39331. - shlibpath_var=LD_LIBRARY_PATH
  39332. - ;;
  39333. -
  39334. -*)
  39335. - dynamic_linker=no
  39336. - ;;
  39337. -esac
  39338. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  39339. -echo "${ECHO_T}$dynamic_linker" >&6
  39340. -test "$dynamic_linker" = no && can_build_shared=no
  39341. -
  39342. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  39343. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  39344. -hardcode_action_GCJ=
  39345. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  39346. - test -n "$runpath_var GCJ" || \
  39347. - test "X$hardcode_automatic_GCJ"="Xyes" ; then
  39348. -
  39349. - # We can hardcode non-existant directories.
  39350. - if test "$hardcode_direct_GCJ" != no &&
  39351. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  39352. - # have to relink, otherwise we might link with an installed library
  39353. - # when we should be linking with a yet-to-be-installed one
  39354. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  39355. - test "$hardcode_minus_L_GCJ" != no; then
  39356. - # Linking always hardcodes the temporary library directory.
  39357. - hardcode_action_GCJ=relink
  39358. - else
  39359. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  39360. - hardcode_action_GCJ=immediate
  39361. - fi
  39362. -else
  39363. - # We cannot hardcode anything, or else we can only hardcode existing
  39364. - # directories.
  39365. - hardcode_action_GCJ=unsupported
  39366. -fi
  39367. -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  39368. -echo "${ECHO_T}$hardcode_action_GCJ" >&6
  39369. -
  39370. -if test "$hardcode_action_GCJ" = relink; then
  39371. - # Fast installation is not supported
  39372. - enable_fast_install=no
  39373. -elif test "$shlibpath_overrides_runpath" = yes ||
  39374. - test "$enable_shared" = no; then
  39375. - # Fast installation is not necessary
  39376. - enable_fast_install=needless
  39377. -fi
  39378. -
  39379. -striplib=
  39380. -old_striplib=
  39381. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  39382. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  39383. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  39384. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  39385. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  39386. - echo "$as_me:$LINENO: result: yes" >&5
  39387. -echo "${ECHO_T}yes" >&6
  39388. -else
  39389. -# FIXME - insert some real tests, host_os isn't really good enough
  39390. - case $host_os in
  39391. - darwin*)
  39392. - if test -n "$STRIP" ; then
  39393. - striplib="$STRIP -x"
  39394. - echo "$as_me:$LINENO: result: yes" >&5
  39395. -echo "${ECHO_T}yes" >&6
  39396. - else
  39397. - echo "$as_me:$LINENO: result: no" >&5
  39398. -echo "${ECHO_T}no" >&6
  39399. -fi
  39400. - ;;
  39401. - *)
  39402. - echo "$as_me:$LINENO: result: no" >&5
  39403. -echo "${ECHO_T}no" >&6
  39404. - ;;
  39405. - esac
  39406. -fi
  39407. -
  39408. -if test "x$enable_dlopen" != xyes; then
  39409. - enable_dlopen=unknown
  39410. - enable_dlopen_self=unknown
  39411. - enable_dlopen_self_static=unknown
  39412. -else
  39413. - lt_cv_dlopen=no
  39414. - lt_cv_dlopen_libs=
  39415. -
  39416. - case $host_os in
  39417. - beos*)
  39418. - lt_cv_dlopen="load_add_on"
  39419. - lt_cv_dlopen_libs=
  39420. - lt_cv_dlopen_self=yes
  39421. - ;;
  39422. -
  39423. - mingw* | pw32*)
  39424. - lt_cv_dlopen="LoadLibrary"
  39425. - lt_cv_dlopen_libs=
  39426. - ;;
  39427. -
  39428. - cygwin*)
  39429. - lt_cv_dlopen="dlopen"
  39430. - lt_cv_dlopen_libs=
  39431. - ;;
  39432. -
  39433. - darwin*)
  39434. - # if libdl is installed we need to link against it
  39435. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  39436. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  39437. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  39438. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39439. -else
  39440. - ac_check_lib_save_LIBS=$LIBS
  39441. -LIBS="-ldl $LIBS"
  39442. -cat >conftest.$ac_ext <<_ACEOF
  39443. -/* confdefs.h. */
  39444. -_ACEOF
  39445. -cat confdefs.h >>conftest.$ac_ext
  39446. -cat >>conftest.$ac_ext <<_ACEOF
  39447. -/* end confdefs.h. */
  39448. -
  39449. -/* Override any gcc2 internal prototype to avoid an error. */
  39450. -#ifdef __cplusplus
  39451. -extern "C"
  39452. -#endif
  39453. -/* We use char because int might match the return type of a gcc2
  39454. - builtin and then its argument prototype would still apply. */
  39455. -char dlopen ();
  39456. -int
  39457. -main ()
  39458. -{
  39459. -dlopen ();
  39460. - ;
  39461. - return 0;
  39462. -}
  39463. -_ACEOF
  39464. -rm -f conftest.$ac_objext conftest$ac_exeext
  39465. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39466. - (eval $ac_link) 2>conftest.er1
  39467. - ac_status=$?
  39468. - grep -v '^ *+' conftest.er1 >conftest.err
  39469. - rm -f conftest.er1
  39470. - cat conftest.err >&5
  39471. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39472. - (exit $ac_status); } &&
  39473. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39474. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39475. - (eval $ac_try) 2>&5
  39476. - ac_status=$?
  39477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39478. - (exit $ac_status); }; } &&
  39479. - { ac_try='test -s conftest$ac_exeext'
  39480. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39481. - (eval $ac_try) 2>&5
  39482. - ac_status=$?
  39483. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39484. - (exit $ac_status); }; }; then
  39485. - ac_cv_lib_dl_dlopen=yes
  39486. -else
  39487. - echo "$as_me: failed program was:" >&5
  39488. -sed 's/^/| /' conftest.$ac_ext >&5
  39489. -
  39490. -ac_cv_lib_dl_dlopen=no
  39491. -fi
  39492. -rm -f conftest.err conftest.$ac_objext \
  39493. - conftest$ac_exeext conftest.$ac_ext
  39494. -LIBS=$ac_check_lib_save_LIBS
  39495. -fi
  39496. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  39497. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  39498. -if test $ac_cv_lib_dl_dlopen = yes; then
  39499. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  39500. -else
  39501. -
  39502. - lt_cv_dlopen="dyld"
  39503. - lt_cv_dlopen_libs=
  39504. - lt_cv_dlopen_self=yes
  39505. -
  39506. -fi
  39507. -
  39508. - ;;
  39509. -
  39510. - *)
  39511. - echo "$as_me:$LINENO: checking for shl_load" >&5
  39512. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  39513. -if test "${ac_cv_func_shl_load+set}" = set; then
  39514. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39515. -else
  39516. - cat >conftest.$ac_ext <<_ACEOF
  39517. -/* confdefs.h. */
  39518. -_ACEOF
  39519. -cat confdefs.h >>conftest.$ac_ext
  39520. -cat >>conftest.$ac_ext <<_ACEOF
  39521. -/* end confdefs.h. */
  39522. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  39523. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39524. -#define shl_load innocuous_shl_load
  39525. -
  39526. -/* System header to define __stub macros and hopefully few prototypes,
  39527. - which can conflict with char shl_load (); below.
  39528. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39529. - <limits.h> exists even on freestanding compilers. */
  39530. -
  39531. -#ifdef __STDC__
  39532. -# include <limits.h>
  39533. -#else
  39534. -# include <assert.h>
  39535. -#endif
  39536. -
  39537. -#undef shl_load
  39538. -
  39539. -/* Override any gcc2 internal prototype to avoid an error. */
  39540. -#ifdef __cplusplus
  39541. -extern "C"
  39542. -{
  39543. -#endif
  39544. -/* We use char because int might match the return type of a gcc2
  39545. - builtin and then its argument prototype would still apply. */
  39546. -char shl_load ();
  39547. -/* The GNU C library defines this for functions which it implements
  39548. - to always fail with ENOSYS. Some functions are actually named
  39549. - something starting with __ and the normal name is an alias. */
  39550. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  39551. -choke me
  39552. -#else
  39553. -char (*f) () = shl_load;
  39554. -#endif
  39555. -#ifdef __cplusplus
  39556. -}
  39557. -#endif
  39558. -
  39559. -int
  39560. -main ()
  39561. -{
  39562. -return f != shl_load;
  39563. - ;
  39564. - return 0;
  39565. -}
  39566. -_ACEOF
  39567. -rm -f conftest.$ac_objext conftest$ac_exeext
  39568. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39569. - (eval $ac_link) 2>conftest.er1
  39570. - ac_status=$?
  39571. - grep -v '^ *+' conftest.er1 >conftest.err
  39572. - rm -f conftest.er1
  39573. - cat conftest.err >&5
  39574. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39575. - (exit $ac_status); } &&
  39576. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39577. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39578. - (eval $ac_try) 2>&5
  39579. - ac_status=$?
  39580. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39581. - (exit $ac_status); }; } &&
  39582. - { ac_try='test -s conftest$ac_exeext'
  39583. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39584. - (eval $ac_try) 2>&5
  39585. - ac_status=$?
  39586. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39587. - (exit $ac_status); }; }; then
  39588. - ac_cv_func_shl_load=yes
  39589. -else
  39590. - echo "$as_me: failed program was:" >&5
  39591. -sed 's/^/| /' conftest.$ac_ext >&5
  39592. -
  39593. -ac_cv_func_shl_load=no
  39594. -fi
  39595. -rm -f conftest.err conftest.$ac_objext \
  39596. - conftest$ac_exeext conftest.$ac_ext
  39597. -fi
  39598. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  39599. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  39600. -if test $ac_cv_func_shl_load = yes; then
  39601. - lt_cv_dlopen="shl_load"
  39602. -else
  39603. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  39604. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  39605. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  39606. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39607. -else
  39608. - ac_check_lib_save_LIBS=$LIBS
  39609. -LIBS="-ldld $LIBS"
  39610. -cat >conftest.$ac_ext <<_ACEOF
  39611. -/* confdefs.h. */
  39612. -_ACEOF
  39613. -cat confdefs.h >>conftest.$ac_ext
  39614. -cat >>conftest.$ac_ext <<_ACEOF
  39615. -/* end confdefs.h. */
  39616. -
  39617. -/* Override any gcc2 internal prototype to avoid an error. */
  39618. -#ifdef __cplusplus
  39619. -extern "C"
  39620. -#endif
  39621. -/* We use char because int might match the return type of a gcc2
  39622. - builtin and then its argument prototype would still apply. */
  39623. -char shl_load ();
  39624. -int
  39625. -main ()
  39626. -{
  39627. -shl_load ();
  39628. - ;
  39629. - return 0;
  39630. -}
  39631. -_ACEOF
  39632. -rm -f conftest.$ac_objext conftest$ac_exeext
  39633. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39634. - (eval $ac_link) 2>conftest.er1
  39635. - ac_status=$?
  39636. - grep -v '^ *+' conftest.er1 >conftest.err
  39637. - rm -f conftest.er1
  39638. - cat conftest.err >&5
  39639. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39640. - (exit $ac_status); } &&
  39641. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39642. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39643. - (eval $ac_try) 2>&5
  39644. - ac_status=$?
  39645. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39646. - (exit $ac_status); }; } &&
  39647. - { ac_try='test -s conftest$ac_exeext'
  39648. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39649. - (eval $ac_try) 2>&5
  39650. - ac_status=$?
  39651. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39652. - (exit $ac_status); }; }; then
  39653. - ac_cv_lib_dld_shl_load=yes
  39654. -else
  39655. - echo "$as_me: failed program was:" >&5
  39656. -sed 's/^/| /' conftest.$ac_ext >&5
  39657. -
  39658. -ac_cv_lib_dld_shl_load=no
  39659. -fi
  39660. -rm -f conftest.err conftest.$ac_objext \
  39661. - conftest$ac_exeext conftest.$ac_ext
  39662. -LIBS=$ac_check_lib_save_LIBS
  39663. -fi
  39664. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  39665. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  39666. -if test $ac_cv_lib_dld_shl_load = yes; then
  39667. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  39668. -else
  39669. - echo "$as_me:$LINENO: checking for dlopen" >&5
  39670. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  39671. -if test "${ac_cv_func_dlopen+set}" = set; then
  39672. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39673. -else
  39674. - cat >conftest.$ac_ext <<_ACEOF
  39675. -/* confdefs.h. */
  39676. -_ACEOF
  39677. -cat confdefs.h >>conftest.$ac_ext
  39678. -cat >>conftest.$ac_ext <<_ACEOF
  39679. -/* end confdefs.h. */
  39680. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  39681. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  39682. -#define dlopen innocuous_dlopen
  39683. -
  39684. -/* System header to define __stub macros and hopefully few prototypes,
  39685. - which can conflict with char dlopen (); below.
  39686. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  39687. - <limits.h> exists even on freestanding compilers. */
  39688. -
  39689. -#ifdef __STDC__
  39690. -# include <limits.h>
  39691. -#else
  39692. -# include <assert.h>
  39693. -#endif
  39694. -
  39695. -#undef dlopen
  39696. -
  39697. -/* Override any gcc2 internal prototype to avoid an error. */
  39698. -#ifdef __cplusplus
  39699. -extern "C"
  39700. -{
  39701. -#endif
  39702. -/* We use char because int might match the return type of a gcc2
  39703. - builtin and then its argument prototype would still apply. */
  39704. -char dlopen ();
  39705. -/* The GNU C library defines this for functions which it implements
  39706. - to always fail with ENOSYS. Some functions are actually named
  39707. - something starting with __ and the normal name is an alias. */
  39708. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  39709. -choke me
  39710. -#else
  39711. -char (*f) () = dlopen;
  39712. -#endif
  39713. -#ifdef __cplusplus
  39714. -}
  39715. -#endif
  39716. -
  39717. -int
  39718. -main ()
  39719. -{
  39720. -return f != dlopen;
  39721. - ;
  39722. - return 0;
  39723. -}
  39724. -_ACEOF
  39725. -rm -f conftest.$ac_objext conftest$ac_exeext
  39726. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39727. - (eval $ac_link) 2>conftest.er1
  39728. - ac_status=$?
  39729. - grep -v '^ *+' conftest.er1 >conftest.err
  39730. - rm -f conftest.er1
  39731. - cat conftest.err >&5
  39732. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39733. - (exit $ac_status); } &&
  39734. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39735. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39736. - (eval $ac_try) 2>&5
  39737. - ac_status=$?
  39738. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39739. - (exit $ac_status); }; } &&
  39740. - { ac_try='test -s conftest$ac_exeext'
  39741. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39742. - (eval $ac_try) 2>&5
  39743. - ac_status=$?
  39744. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39745. - (exit $ac_status); }; }; then
  39746. - ac_cv_func_dlopen=yes
  39747. -else
  39748. - echo "$as_me: failed program was:" >&5
  39749. -sed 's/^/| /' conftest.$ac_ext >&5
  39750. -
  39751. -ac_cv_func_dlopen=no
  39752. -fi
  39753. -rm -f conftest.err conftest.$ac_objext \
  39754. - conftest$ac_exeext conftest.$ac_ext
  39755. -fi
  39756. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  39757. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  39758. -if test $ac_cv_func_dlopen = yes; then
  39759. - lt_cv_dlopen="dlopen"
  39760. -else
  39761. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  39762. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  39763. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  39764. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39765. -else
  39766. - ac_check_lib_save_LIBS=$LIBS
  39767. -LIBS="-ldl $LIBS"
  39768. -cat >conftest.$ac_ext <<_ACEOF
  39769. -/* confdefs.h. */
  39770. -_ACEOF
  39771. -cat confdefs.h >>conftest.$ac_ext
  39772. -cat >>conftest.$ac_ext <<_ACEOF
  39773. -/* end confdefs.h. */
  39774. -
  39775. -/* Override any gcc2 internal prototype to avoid an error. */
  39776. -#ifdef __cplusplus
  39777. -extern "C"
  39778. -#endif
  39779. -/* We use char because int might match the return type of a gcc2
  39780. - builtin and then its argument prototype would still apply. */
  39781. -char dlopen ();
  39782. -int
  39783. -main ()
  39784. -{
  39785. -dlopen ();
  39786. - ;
  39787. - return 0;
  39788. -}
  39789. -_ACEOF
  39790. -rm -f conftest.$ac_objext conftest$ac_exeext
  39791. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39792. - (eval $ac_link) 2>conftest.er1
  39793. - ac_status=$?
  39794. - grep -v '^ *+' conftest.er1 >conftest.err
  39795. - rm -f conftest.er1
  39796. - cat conftest.err >&5
  39797. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39798. - (exit $ac_status); } &&
  39799. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39800. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39801. - (eval $ac_try) 2>&5
  39802. - ac_status=$?
  39803. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39804. - (exit $ac_status); }; } &&
  39805. - { ac_try='test -s conftest$ac_exeext'
  39806. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39807. - (eval $ac_try) 2>&5
  39808. - ac_status=$?
  39809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39810. - (exit $ac_status); }; }; then
  39811. - ac_cv_lib_dl_dlopen=yes
  39812. -else
  39813. - echo "$as_me: failed program was:" >&5
  39814. -sed 's/^/| /' conftest.$ac_ext >&5
  39815. -
  39816. -ac_cv_lib_dl_dlopen=no
  39817. -fi
  39818. -rm -f conftest.err conftest.$ac_objext \
  39819. - conftest$ac_exeext conftest.$ac_ext
  39820. -LIBS=$ac_check_lib_save_LIBS
  39821. -fi
  39822. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  39823. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  39824. -if test $ac_cv_lib_dl_dlopen = yes; then
  39825. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  39826. -else
  39827. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  39828. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  39829. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  39830. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39831. -else
  39832. - ac_check_lib_save_LIBS=$LIBS
  39833. -LIBS="-lsvld $LIBS"
  39834. -cat >conftest.$ac_ext <<_ACEOF
  39835. -/* confdefs.h. */
  39836. -_ACEOF
  39837. -cat confdefs.h >>conftest.$ac_ext
  39838. -cat >>conftest.$ac_ext <<_ACEOF
  39839. -/* end confdefs.h. */
  39840. -
  39841. -/* Override any gcc2 internal prototype to avoid an error. */
  39842. -#ifdef __cplusplus
  39843. -extern "C"
  39844. -#endif
  39845. -/* We use char because int might match the return type of a gcc2
  39846. - builtin and then its argument prototype would still apply. */
  39847. -char dlopen ();
  39848. -int
  39849. -main ()
  39850. -{
  39851. -dlopen ();
  39852. - ;
  39853. - return 0;
  39854. -}
  39855. -_ACEOF
  39856. -rm -f conftest.$ac_objext conftest$ac_exeext
  39857. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39858. - (eval $ac_link) 2>conftest.er1
  39859. - ac_status=$?
  39860. - grep -v '^ *+' conftest.er1 >conftest.err
  39861. - rm -f conftest.er1
  39862. - cat conftest.err >&5
  39863. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39864. - (exit $ac_status); } &&
  39865. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39866. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39867. - (eval $ac_try) 2>&5
  39868. - ac_status=$?
  39869. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39870. - (exit $ac_status); }; } &&
  39871. - { ac_try='test -s conftest$ac_exeext'
  39872. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39873. - (eval $ac_try) 2>&5
  39874. - ac_status=$?
  39875. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39876. - (exit $ac_status); }; }; then
  39877. - ac_cv_lib_svld_dlopen=yes
  39878. -else
  39879. - echo "$as_me: failed program was:" >&5
  39880. -sed 's/^/| /' conftest.$ac_ext >&5
  39881. -
  39882. -ac_cv_lib_svld_dlopen=no
  39883. -fi
  39884. -rm -f conftest.err conftest.$ac_objext \
  39885. - conftest$ac_exeext conftest.$ac_ext
  39886. -LIBS=$ac_check_lib_save_LIBS
  39887. -fi
  39888. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  39889. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  39890. -if test $ac_cv_lib_svld_dlopen = yes; then
  39891. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  39892. -else
  39893. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  39894. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  39895. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  39896. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39897. -else
  39898. - ac_check_lib_save_LIBS=$LIBS
  39899. -LIBS="-ldld $LIBS"
  39900. -cat >conftest.$ac_ext <<_ACEOF
  39901. -/* confdefs.h. */
  39902. -_ACEOF
  39903. -cat confdefs.h >>conftest.$ac_ext
  39904. -cat >>conftest.$ac_ext <<_ACEOF
  39905. -/* end confdefs.h. */
  39906. -
  39907. -/* Override any gcc2 internal prototype to avoid an error. */
  39908. -#ifdef __cplusplus
  39909. -extern "C"
  39910. -#endif
  39911. -/* We use char because int might match the return type of a gcc2
  39912. - builtin and then its argument prototype would still apply. */
  39913. -char dld_link ();
  39914. -int
  39915. -main ()
  39916. -{
  39917. -dld_link ();
  39918. - ;
  39919. - return 0;
  39920. -}
  39921. -_ACEOF
  39922. -rm -f conftest.$ac_objext conftest$ac_exeext
  39923. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39924. - (eval $ac_link) 2>conftest.er1
  39925. - ac_status=$?
  39926. - grep -v '^ *+' conftest.er1 >conftest.err
  39927. - rm -f conftest.er1
  39928. - cat conftest.err >&5
  39929. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39930. - (exit $ac_status); } &&
  39931. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39932. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39933. - (eval $ac_try) 2>&5
  39934. - ac_status=$?
  39935. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39936. - (exit $ac_status); }; } &&
  39937. - { ac_try='test -s conftest$ac_exeext'
  39938. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39939. - (eval $ac_try) 2>&5
  39940. - ac_status=$?
  39941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39942. - (exit $ac_status); }; }; then
  39943. - ac_cv_lib_dld_dld_link=yes
  39944. -else
  39945. - echo "$as_me: failed program was:" >&5
  39946. -sed 's/^/| /' conftest.$ac_ext >&5
  39947. -
  39948. -ac_cv_lib_dld_dld_link=no
  39949. -fi
  39950. -rm -f conftest.err conftest.$ac_objext \
  39951. - conftest$ac_exeext conftest.$ac_ext
  39952. -LIBS=$ac_check_lib_save_LIBS
  39953. -fi
  39954. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  39955. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  39956. -if test $ac_cv_lib_dld_dld_link = yes; then
  39957. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  39958. -fi
  39959. -
  39960. -
  39961. -fi
  39962. -
  39963. -
  39964. -fi
  39965. -
  39966. -
  39967. -fi
  39968. -
  39969. -
  39970. -fi
  39971. -
  39972. -
  39973. -fi
  39974. -
  39975. - ;;
  39976. - esac
  39977. -
  39978. - if test "x$lt_cv_dlopen" != xno; then
  39979. - enable_dlopen=yes
  39980. - else
  39981. - enable_dlopen=no
  39982. - fi
  39983. -
  39984. - case $lt_cv_dlopen in
  39985. - dlopen)
  39986. - save_CPPFLAGS="$CPPFLAGS"
  39987. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  39988. -
  39989. - save_LDFLAGS="$LDFLAGS"
  39990. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  39991. -
  39992. - save_LIBS="$LIBS"
  39993. - LIBS="$lt_cv_dlopen_libs $LIBS"
  39994. -
  39995. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  39996. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  39997. -if test "${lt_cv_dlopen_self+set}" = set; then
  39998. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39999. -else
  40000. - if test "$cross_compiling" = yes; then :
  40001. - lt_cv_dlopen_self=cross
  40002. -else
  40003. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  40004. - lt_status=$lt_dlunknown
  40005. - cat > conftest.$ac_ext <<EOF
  40006. -#line 17914 "configure"
  40007. -#include "confdefs.h"
  40008. -
  40009. -#if HAVE_DLFCN_H
  40010. -#include <dlfcn.h>
  40011. -#endif
  40012. -
  40013. -#include <stdio.h>
  40014. -
  40015. -#ifdef RTLD_GLOBAL
  40016. -# define LT_DLGLOBAL RTLD_GLOBAL
  40017. -#else
  40018. -# ifdef DL_GLOBAL
  40019. -# define LT_DLGLOBAL DL_GLOBAL
  40020. -# else
  40021. -# define LT_DLGLOBAL 0
  40022. -# endif
  40023. -#endif
  40024. -
  40025. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  40026. - find out it does not work in some platform. */
  40027. -#ifndef LT_DLLAZY_OR_NOW
  40028. -# ifdef RTLD_LAZY
  40029. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  40030. -# else
  40031. -# ifdef DL_LAZY
  40032. -# define LT_DLLAZY_OR_NOW DL_LAZY
  40033. -# else
  40034. -# ifdef RTLD_NOW
  40035. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  40036. -# else
  40037. -# ifdef DL_NOW
  40038. -# define LT_DLLAZY_OR_NOW DL_NOW
  40039. -# else
  40040. -# define LT_DLLAZY_OR_NOW 0
  40041. -# endif
  40042. -# endif
  40043. -# endif
  40044. -# endif
  40045. -#endif
  40046. -
  40047. -#ifdef __cplusplus
  40048. -extern "C" void exit (int);
  40049. -#endif
  40050. -
  40051. -void fnord() { int i=42;}
  40052. -int main ()
  40053. -{
  40054. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  40055. - int status = $lt_dlunknown;
  40056. -
  40057. - if (self)
  40058. - {
  40059. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  40060. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  40061. - /* dlclose (self); */
  40062. - }
  40063. -
  40064. - exit (status);
  40065. -}
  40066. -EOF
  40067. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  40068. - (eval $ac_link) 2>&5
  40069. - ac_status=$?
  40070. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40071. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  40072. - (./conftest; exit; ) 2>/dev/null
  40073. - lt_status=$?
  40074. - case x$lt_status in
  40075. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  40076. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  40077. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  40078. - esac
  40079. - else :
  40080. - # compilation failed
  40081. - lt_cv_dlopen_self=no
  40082. - fi
  40083. -fi
  40084. -rm -fr conftest*
  40085. -
  40086. -
  40087. -fi
  40088. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  40089. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  40090. -
  40091. - if test "x$lt_cv_dlopen_self" = xyes; then
  40092. - LDFLAGS="$LDFLAGS $link_static_flag"
  40093. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  40094. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  40095. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  40096. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40097. -else
  40098. - if test "$cross_compiling" = yes; then :
  40099. - lt_cv_dlopen_self_static=cross
  40100. -else
  40101. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  40102. - lt_status=$lt_dlunknown
  40103. - cat > conftest.$ac_ext <<EOF
  40104. -#line 18012 "configure"
  40105. -#include "confdefs.h"
  40106. -
  40107. -#if HAVE_DLFCN_H
  40108. -#include <dlfcn.h>
  40109. -#endif
  40110. -
  40111. -#include <stdio.h>
  40112. -
  40113. -#ifdef RTLD_GLOBAL
  40114. -# define LT_DLGLOBAL RTLD_GLOBAL
  40115. -#else
  40116. -# ifdef DL_GLOBAL
  40117. -# define LT_DLGLOBAL DL_GLOBAL
  40118. -# else
  40119. -# define LT_DLGLOBAL 0
  40120. -# endif
  40121. -#endif
  40122. -
  40123. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  40124. - find out it does not work in some platform. */
  40125. -#ifndef LT_DLLAZY_OR_NOW
  40126. -# ifdef RTLD_LAZY
  40127. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  40128. -# else
  40129. -# ifdef DL_LAZY
  40130. -# define LT_DLLAZY_OR_NOW DL_LAZY
  40131. -# else
  40132. -# ifdef RTLD_NOW
  40133. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  40134. -# else
  40135. -# ifdef DL_NOW
  40136. -# define LT_DLLAZY_OR_NOW DL_NOW
  40137. -# else
  40138. -# define LT_DLLAZY_OR_NOW 0
  40139. -# endif
  40140. -# endif
  40141. -# endif
  40142. -# endif
  40143. -#endif
  40144. -
  40145. -#ifdef __cplusplus
  40146. -extern "C" void exit (int);
  40147. -#endif
  40148. -
  40149. -void fnord() { int i=42;}
  40150. -int main ()
  40151. -{
  40152. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  40153. - int status = $lt_dlunknown;
  40154. -
  40155. - if (self)
  40156. - {
  40157. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  40158. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  40159. - /* dlclose (self); */
  40160. - }
  40161. -
  40162. - exit (status);
  40163. -}
  40164. -EOF
  40165. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  40166. - (eval $ac_link) 2>&5
  40167. - ac_status=$?
  40168. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40169. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  40170. - (./conftest; exit; ) 2>/dev/null
  40171. - lt_status=$?
  40172. - case x$lt_status in
  40173. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  40174. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  40175. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  40176. - esac
  40177. - else :
  40178. - # compilation failed
  40179. - lt_cv_dlopen_self_static=no
  40180. - fi
  40181. -fi
  40182. -rm -fr conftest*
  40183. -
  40184. -
  40185. -fi
  40186. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  40187. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  40188. - fi
  40189. -
  40190. - CPPFLAGS="$save_CPPFLAGS"
  40191. - LDFLAGS="$save_LDFLAGS"
  40192. - LIBS="$save_LIBS"
  40193. - ;;
  40194. - esac
  40195. -
  40196. - case $lt_cv_dlopen_self in
  40197. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  40198. - *) enable_dlopen_self=unknown ;;
  40199. - esac
  40200. -
  40201. - case $lt_cv_dlopen_self_static in
  40202. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  40203. - *) enable_dlopen_self_static=unknown ;;
  40204. - esac
  40205. -fi
  40206. -
  40207. -
  40208. -# The else clause should only fire when bootstrapping the
  40209. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  40210. -# with your package, and you will get complaints that there are
  40211. -# no rules to generate ltmain.sh.
  40212. -if test -f "$ltmain"; then
  40213. - # See if we are running on zsh, and set the options which allow our commands through
  40214. - # without removal of \ escapes.
  40215. - if test -n "${ZSH_VERSION+set}" ; then
  40216. - setopt NO_GLOB_SUBST
  40217. - fi
  40218. - # Now quote all the things that may contain metacharacters while being
  40219. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  40220. - # variables and quote the copies for generation of the libtool script.
  40221. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  40222. - SED SHELL STRIP \
  40223. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  40224. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  40225. - deplibs_check_method reload_flag reload_cmds need_locks \
  40226. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  40227. - lt_cv_sys_global_symbol_to_c_name_address \
  40228. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  40229. - old_postinstall_cmds old_postuninstall_cmds \
  40230. - compiler_GCJ \
  40231. - CC_GCJ \
  40232. - LD_GCJ \
  40233. - lt_prog_compiler_wl_GCJ \
  40234. - lt_prog_compiler_pic_GCJ \
  40235. - lt_prog_compiler_static_GCJ \
  40236. - lt_prog_compiler_no_builtin_flag_GCJ \
  40237. - export_dynamic_flag_spec_GCJ \
  40238. - thread_safe_flag_spec_GCJ \
  40239. - whole_archive_flag_spec_GCJ \
  40240. - enable_shared_with_static_runtimes_GCJ \
  40241. - old_archive_cmds_GCJ \
  40242. - old_archive_from_new_cmds_GCJ \
  40243. - predep_objects_GCJ \
  40244. - postdep_objects_GCJ \
  40245. - predeps_GCJ \
  40246. - postdeps_GCJ \
  40247. - compiler_lib_search_path_GCJ \
  40248. - archive_cmds_GCJ \
  40249. - archive_expsym_cmds_GCJ \
  40250. - postinstall_cmds_GCJ \
  40251. - postuninstall_cmds_GCJ \
  40252. - old_archive_from_expsyms_cmds_GCJ \
  40253. - allow_undefined_flag_GCJ \
  40254. - no_undefined_flag_GCJ \
  40255. - export_symbols_cmds_GCJ \
  40256. - hardcode_libdir_flag_spec_GCJ \
  40257. - hardcode_libdir_flag_spec_ld_GCJ \
  40258. - hardcode_libdir_separator_GCJ \
  40259. - hardcode_automatic_GCJ \
  40260. - module_cmds_GCJ \
  40261. - module_expsym_cmds_GCJ \
  40262. - lt_cv_prog_compiler_c_o_GCJ \
  40263. - exclude_expsyms_GCJ \
  40264. - include_expsyms_GCJ; do
  40265. -
  40266. - case $var in
  40267. - old_archive_cmds_GCJ | \
  40268. - old_archive_from_new_cmds_GCJ | \
  40269. - archive_cmds_GCJ | \
  40270. - archive_expsym_cmds_GCJ | \
  40271. - module_cmds_GCJ | \
  40272. - module_expsym_cmds_GCJ | \
  40273. - old_archive_from_expsyms_cmds_GCJ | \
  40274. - export_symbols_cmds_GCJ | \
  40275. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  40276. - postinstall_cmds | postuninstall_cmds | \
  40277. - old_postinstall_cmds | old_postuninstall_cmds | \
  40278. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  40279. - # Double-quote double-evaled strings.
  40280. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  40281. - ;;
  40282. - *)
  40283. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  40284. - ;;
  40285. - esac
  40286. - done
  40287. -
  40288. - case $lt_echo in
  40289. - *'\$0 --fallback-echo"')
  40290. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  40291. - ;;
  40292. - esac
  40293. -
  40294. -cfgfile="$ofile"
  40295. -
  40296. - cat <<__EOF__ >> "$cfgfile"
  40297. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  40298. -
  40299. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40300. -
  40301. -# Shell to use when invoking shell scripts.
  40302. -SHELL=$lt_SHELL
  40303. -
  40304. -# Whether or not to build shared libraries.
  40305. -build_libtool_libs=$enable_shared
  40306. -
  40307. -# Whether or not to build static libraries.
  40308. -build_old_libs=$enable_static
  40309. -
  40310. -# Whether or not to add -lc for building shared libraries.
  40311. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  40312. -
  40313. -# Whether or not to disallow shared libs when runtime libs are static
  40314. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  40315. -
  40316. -# Whether or not to optimize for fast installation.
  40317. -fast_install=$enable_fast_install
  40318. -
  40319. -# The host system.
  40320. -host_alias=$host_alias
  40321. -host=$host
  40322. -
  40323. -# An echo program that does not interpret backslashes.
  40324. -echo=$lt_echo
  40325. -
  40326. -# The archiver.
  40327. -AR=$lt_AR
  40328. -AR_FLAGS=$lt_AR_FLAGS
  40329. -
  40330. -# A C compiler.
  40331. -LTCC=$lt_LTCC
  40332. -
  40333. -# A language-specific compiler.
  40334. -CC=$lt_compiler_GCJ
  40335. -
  40336. -# Is the compiler the GNU C compiler?
  40337. -with_gcc=$GCC_GCJ
  40338. -
  40339. -# An ERE matcher.
  40340. -EGREP=$lt_EGREP
  40341. -
  40342. -# The linker used to build libraries.
  40343. -LD=$lt_LD_GCJ
  40344. -
  40345. -# Whether we need hard or soft links.
  40346. -LN_S=$lt_LN_S
  40347. -
  40348. -# A BSD-compatible nm program.
  40349. -NM=$lt_NM
  40350. -
  40351. -# A symbol stripping program
  40352. -STRIP=$lt_STRIP
  40353. -
  40354. -# Used to examine libraries when file_magic_cmd begins "file"
  40355. -MAGIC_CMD=$MAGIC_CMD
  40356. -
  40357. -# Used on cygwin: DLL creation program.
  40358. -DLLTOOL="$DLLTOOL"
  40359. -
  40360. -# Used on cygwin: object dumper.
  40361. -OBJDUMP="$OBJDUMP"
  40362. -
  40363. -# Used on cygwin: assembler.
  40364. -AS="$AS"
  40365. -
  40366. -# The name of the directory that contains temporary libtool files.
  40367. -objdir=$objdir
  40368. -
  40369. -# How to create reloadable object files.
  40370. -reload_flag=$lt_reload_flag
  40371. -reload_cmds=$lt_reload_cmds
  40372. -
  40373. -# How to pass a linker flag through the compiler.
  40374. -wl=$lt_lt_prog_compiler_wl_GCJ
  40375. -
  40376. -# Object file suffix (normally "o").
  40377. -objext="$ac_objext"
  40378. -
  40379. -# Old archive suffix (normally "a").
  40380. -libext="$libext"
  40381. -
  40382. -# Shared library suffix (normally ".so").
  40383. -shrext='$shrext'
  40384. -
  40385. -# Executable file suffix (normally "").
  40386. -exeext="$exeext"
  40387. -
  40388. -# Additional compiler flags for building library objects.
  40389. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  40390. -pic_mode=$pic_mode
  40391. -
  40392. -# What is the maximum length of a command?
  40393. -max_cmd_len=$lt_cv_sys_max_cmd_len
  40394. -
  40395. -# Does compiler simultaneously support -c and -o options?
  40396. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  40397. -
  40398. -# Must we lock files when doing compilation ?
  40399. -need_locks=$lt_need_locks
  40400. -
  40401. -# Do we need the lib prefix for modules?
  40402. -need_lib_prefix=$need_lib_prefix
  40403. -
  40404. -# Do we need a version for libraries?
  40405. -need_version=$need_version
  40406. -
  40407. -# Whether dlopen is supported.
  40408. -dlopen_support=$enable_dlopen
  40409. -
  40410. -# Whether dlopen of programs is supported.
  40411. -dlopen_self=$enable_dlopen_self
  40412. -
  40413. -# Whether dlopen of statically linked programs is supported.
  40414. -dlopen_self_static=$enable_dlopen_self_static
  40415. -
  40416. -# Compiler flag to prevent dynamic linking.
  40417. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  40418. -
  40419. -# Compiler flag to turn off builtin functions.
  40420. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  40421. -
  40422. -# Compiler flag to allow reflexive dlopens.
  40423. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  40424. -
  40425. -# Compiler flag to generate shared objects directly from archives.
  40426. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  40427. -
  40428. -# Compiler flag to generate thread-safe objects.
  40429. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  40430. -
  40431. -# Library versioning type.
  40432. -version_type=$version_type
  40433. -
  40434. -# Format of library name prefix.
  40435. -libname_spec=$lt_libname_spec
  40436. -
  40437. -# List of archive names. First name is the real one, the rest are links.
  40438. -# The last name is the one that the linker finds with -lNAME.
  40439. -library_names_spec=$lt_library_names_spec
  40440. -
  40441. -# The coded name of the library, if different from the real name.
  40442. -soname_spec=$lt_soname_spec
  40443. -
  40444. -# Commands used to build and install an old-style archive.
  40445. -RANLIB=$lt_RANLIB
  40446. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  40447. -old_postinstall_cmds=$lt_old_postinstall_cmds
  40448. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40449. -
  40450. -# Create an old-style archive from a shared archive.
  40451. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  40452. -
  40453. -# Create a temporary old-style archive to link instead of a shared archive.
  40454. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  40455. -
  40456. -# Commands used to build and install a shared archive.
  40457. -archive_cmds=$lt_archive_cmds_GCJ
  40458. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  40459. -postinstall_cmds=$lt_postinstall_cmds
  40460. -postuninstall_cmds=$lt_postuninstall_cmds
  40461. -
  40462. -# Commands used to build a loadable module (assumed same as above if empty)
  40463. -module_cmds=$lt_module_cmds_GCJ
  40464. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  40465. -
  40466. -# Commands to strip libraries.
  40467. -old_striplib=$lt_old_striplib
  40468. -striplib=$lt_striplib
  40469. -
  40470. -# Dependencies to place before the objects being linked to create a
  40471. -# shared library.
  40472. -predep_objects=$lt_predep_objects_GCJ
  40473. -
  40474. -# Dependencies to place after the objects being linked to create a
  40475. -# shared library.
  40476. -postdep_objects=$lt_postdep_objects_GCJ
  40477. -
  40478. -# Dependencies to place before the objects being linked to create a
  40479. -# shared library.
  40480. -predeps=$lt_predeps_GCJ
  40481. -
  40482. -# Dependencies to place after the objects being linked to create a
  40483. -# shared library.
  40484. -postdeps=$lt_postdeps_GCJ
  40485. -
  40486. -# The library search path used internally by the compiler when linking
  40487. -# a shared library.
  40488. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  40489. -
  40490. -# Method to check whether dependent libraries are shared objects.
  40491. -deplibs_check_method=$lt_deplibs_check_method
  40492. -
  40493. -# Command to use when deplibs_check_method == file_magic.
  40494. -file_magic_cmd=$lt_file_magic_cmd
  40495. -
  40496. -# Flag that allows shared libraries with undefined symbols to be built.
  40497. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  40498. -
  40499. -# Flag that forces no undefined symbols.
  40500. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  40501. -
  40502. -# Commands used to finish a libtool library installation in a directory.
  40503. -finish_cmds=$lt_finish_cmds
  40504. -
  40505. -# Same as above, but a single script fragment to be evaled but not shown.
  40506. -finish_eval=$lt_finish_eval
  40507. -
  40508. -# Take the output of nm and produce a listing of raw symbols and C names.
  40509. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40510. -
  40511. -# Transform the output of nm in a proper C declaration
  40512. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40513. -
  40514. -# Transform the output of nm in a C name address pair
  40515. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40516. -
  40517. -# This is the shared library runtime path variable.
  40518. -runpath_var=$runpath_var
  40519. -
  40520. -# This is the shared library path variable.
  40521. -shlibpath_var=$shlibpath_var
  40522. -
  40523. -# Is shlibpath searched before the hard-coded library search path?
  40524. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40525. -
  40526. -# How to hardcode a shared library path into an executable.
  40527. -hardcode_action=$hardcode_action_GCJ
  40528. -
  40529. -# Whether we should hardcode library paths into libraries.
  40530. -hardcode_into_libs=$hardcode_into_libs
  40531. -
  40532. -# Flag to hardcode \$libdir into a binary during linking.
  40533. -# This must work even if \$libdir does not exist.
  40534. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  40535. -
  40536. -# If ld is used when linking, flag to hardcode \$libdir into
  40537. -# a binary during linking. This must work even if \$libdir does
  40538. -# not exist.
  40539. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  40540. -
  40541. -# Whether we need a single -rpath flag with a separated argument.
  40542. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  40543. -
  40544. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  40545. -# resulting binary.
  40546. -hardcode_direct=$hardcode_direct_GCJ
  40547. -
  40548. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  40549. -# resulting binary.
  40550. -hardcode_minus_L=$hardcode_minus_L_GCJ
  40551. -
  40552. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  40553. -# the resulting binary.
  40554. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  40555. -
  40556. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  40557. -# and all subsequent libraries and executables linked against it.
  40558. -hardcode_automatic=$hardcode_automatic_GCJ
  40559. -
  40560. -# Variables whose values should be saved in libtool wrapper scripts and
  40561. -# restored at relink time.
  40562. -variables_saved_for_relink="$variables_saved_for_relink"
  40563. -
  40564. -# Whether libtool must link a program against all its dependency libraries.
  40565. -link_all_deplibs=$link_all_deplibs_GCJ
  40566. -
  40567. -# Compile-time system search path for libraries
  40568. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  40569. -
  40570. -# Run-time system search path for libraries
  40571. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  40572. -
  40573. -# Fix the shell variable \$srcfile for the compiler.
  40574. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  40575. -
  40576. -# Set to yes if exported symbols are required.
  40577. -always_export_symbols=$always_export_symbols_GCJ
  40578. -
  40579. -# The commands to list exported symbols.
  40580. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  40581. -
  40582. -# The commands to extract the exported symbol list from a shared archive.
  40583. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  40584. -
  40585. -# Symbols that should not be listed in the preloaded symbols.
  40586. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  40587. -
  40588. -# Symbols that must always be exported.
  40589. -include_expsyms=$lt_include_expsyms_GCJ
  40590. -
  40591. -# ### END LIBTOOL TAG CONFIG: $tagname
  40592. -
  40593. -__EOF__
  40594. -
  40595. -
  40596. -else
  40597. - # If there is no Makefile yet, we rely on a make rule to execute
  40598. - # `config.status --recheck' to rerun these tests and create the
  40599. - # libtool script then.
  40600. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  40601. - if test -f "$ltmain_in"; then
  40602. - test -f Makefile && make "$ltmain"
  40603. - fi
  40604. -fi
  40605. -
  40606. -
  40607. -ac_ext=c
  40608. -ac_cpp='$CPP $CPPFLAGS'
  40609. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40610. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40611. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40612. -
  40613. -CC="$lt_save_CC"
  40614. -
  40615. - else
  40616. - tagname=""
  40617. - fi
  40618. - ;;
  40619. -
  40620. - RC)
  40621. -
  40622. -
  40623. -
  40624. -# Source file extension for RC test sources.
  40625. -ac_ext=rc
  40626. -
  40627. -# Object file extension for compiled RC test sources.
  40628. -objext=o
  40629. -objext_RC=$objext
  40630. -
  40631. -# Code to be used in simple compile tests
  40632. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  40633. -
  40634. -# Code to be used in simple link tests
  40635. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  40636. -
  40637. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40638. -
  40639. -# If no C compiler was specified, use CC.
  40640. -LTCC=${LTCC-"$CC"}
  40641. -
  40642. -# Allow CC to be a program name with arguments.
  40643. -compiler=$CC
  40644. -
  40645. -
  40646. -# Allow CC to be a program name with arguments.
  40647. -lt_save_CC="$CC"
  40648. -CC=${RC-"windres"}
  40649. -compiler=$CC
  40650. -compiler_RC=$CC
  40651. -lt_cv_prog_compiler_c_o_RC=yes
  40652. -
  40653. -# The else clause should only fire when bootstrapping the
  40654. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  40655. -# with your package, and you will get complaints that there are
  40656. -# no rules to generate ltmain.sh.
  40657. -if test -f "$ltmain"; then
  40658. - # See if we are running on zsh, and set the options which allow our commands through
  40659. - # without removal of \ escapes.
  40660. - if test -n "${ZSH_VERSION+set}" ; then
  40661. - setopt NO_GLOB_SUBST
  40662. - fi
  40663. - # Now quote all the things that may contain metacharacters while being
  40664. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  40665. - # variables and quote the copies for generation of the libtool script.
  40666. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  40667. - SED SHELL STRIP \
  40668. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  40669. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  40670. - deplibs_check_method reload_flag reload_cmds need_locks \
  40671. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  40672. - lt_cv_sys_global_symbol_to_c_name_address \
  40673. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  40674. - old_postinstall_cmds old_postuninstall_cmds \
  40675. - compiler_RC \
  40676. - CC_RC \
  40677. - LD_RC \
  40678. - lt_prog_compiler_wl_RC \
  40679. - lt_prog_compiler_pic_RC \
  40680. - lt_prog_compiler_static_RC \
  40681. - lt_prog_compiler_no_builtin_flag_RC \
  40682. - export_dynamic_flag_spec_RC \
  40683. - thread_safe_flag_spec_RC \
  40684. - whole_archive_flag_spec_RC \
  40685. - enable_shared_with_static_runtimes_RC \
  40686. - old_archive_cmds_RC \
  40687. - old_archive_from_new_cmds_RC \
  40688. - predep_objects_RC \
  40689. - postdep_objects_RC \
  40690. - predeps_RC \
  40691. - postdeps_RC \
  40692. - compiler_lib_search_path_RC \
  40693. - archive_cmds_RC \
  40694. - archive_expsym_cmds_RC \
  40695. - postinstall_cmds_RC \
  40696. - postuninstall_cmds_RC \
  40697. - old_archive_from_expsyms_cmds_RC \
  40698. - allow_undefined_flag_RC \
  40699. - no_undefined_flag_RC \
  40700. - export_symbols_cmds_RC \
  40701. - hardcode_libdir_flag_spec_RC \
  40702. - hardcode_libdir_flag_spec_ld_RC \
  40703. - hardcode_libdir_separator_RC \
  40704. - hardcode_automatic_RC \
  40705. - module_cmds_RC \
  40706. - module_expsym_cmds_RC \
  40707. - lt_cv_prog_compiler_c_o_RC \
  40708. - exclude_expsyms_RC \
  40709. - include_expsyms_RC; do
  40710. -
  40711. - case $var in
  40712. - old_archive_cmds_RC | \
  40713. - old_archive_from_new_cmds_RC | \
  40714. - archive_cmds_RC | \
  40715. - archive_expsym_cmds_RC | \
  40716. - module_cmds_RC | \
  40717. - module_expsym_cmds_RC | \
  40718. - old_archive_from_expsyms_cmds_RC | \
  40719. - export_symbols_cmds_RC | \
  40720. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  40721. - postinstall_cmds | postuninstall_cmds | \
  40722. - old_postinstall_cmds | old_postuninstall_cmds | \
  40723. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  40724. - # Double-quote double-evaled strings.
  40725. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  40726. - ;;
  40727. - *)
  40728. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  40729. - ;;
  40730. - esac
  40731. - done
  40732. -
  40733. - case $lt_echo in
  40734. - *'\$0 --fallback-echo"')
  40735. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  40736. - ;;
  40737. - esac
  40738. -
  40739. -cfgfile="$ofile"
  40740. -
  40741. - cat <<__EOF__ >> "$cfgfile"
  40742. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  40743. -
  40744. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40745. -
  40746. -# Shell to use when invoking shell scripts.
  40747. -SHELL=$lt_SHELL
  40748. -
  40749. -# Whether or not to build shared libraries.
  40750. -build_libtool_libs=$enable_shared
  40751. -
  40752. -# Whether or not to build static libraries.
  40753. -build_old_libs=$enable_static
  40754. -
  40755. -# Whether or not to add -lc for building shared libraries.
  40756. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  40757. -
  40758. -# Whether or not to disallow shared libs when runtime libs are static
  40759. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  40760. -
  40761. -# Whether or not to optimize for fast installation.
  40762. -fast_install=$enable_fast_install
  40763. -
  40764. -# The host system.
  40765. -host_alias=$host_alias
  40766. -host=$host
  40767. -
  40768. -# An echo program that does not interpret backslashes.
  40769. -echo=$lt_echo
  40770. -
  40771. -# The archiver.
  40772. -AR=$lt_AR
  40773. -AR_FLAGS=$lt_AR_FLAGS
  40774. -
  40775. -# A C compiler.
  40776. -LTCC=$lt_LTCC
  40777. -
  40778. -# A language-specific compiler.
  40779. -CC=$lt_compiler_RC
  40780. -
  40781. -# Is the compiler the GNU C compiler?
  40782. -with_gcc=$GCC_RC
  40783. -
  40784. -# An ERE matcher.
  40785. -EGREP=$lt_EGREP
  40786. -
  40787. -# The linker used to build libraries.
  40788. -LD=$lt_LD_RC
  40789. -
  40790. -# Whether we need hard or soft links.
  40791. -LN_S=$lt_LN_S
  40792. -
  40793. -# A BSD-compatible nm program.
  40794. -NM=$lt_NM
  40795. -
  40796. -# A symbol stripping program
  40797. -STRIP=$lt_STRIP
  40798. -
  40799. -# Used to examine libraries when file_magic_cmd begins "file"
  40800. -MAGIC_CMD=$MAGIC_CMD
  40801. -
  40802. -# Used on cygwin: DLL creation program.
  40803. -DLLTOOL="$DLLTOOL"
  40804. -
  40805. -# Used on cygwin: object dumper.
  40806. -OBJDUMP="$OBJDUMP"
  40807. -
  40808. -# Used on cygwin: assembler.
  40809. -AS="$AS"
  40810. -
  40811. -# The name of the directory that contains temporary libtool files.
  40812. -objdir=$objdir
  40813. -
  40814. -# How to create reloadable object files.
  40815. -reload_flag=$lt_reload_flag
  40816. -reload_cmds=$lt_reload_cmds
  40817. -
  40818. -# How to pass a linker flag through the compiler.
  40819. -wl=$lt_lt_prog_compiler_wl_RC
  40820. -
  40821. -# Object file suffix (normally "o").
  40822. -objext="$ac_objext"
  40823. -
  40824. -# Old archive suffix (normally "a").
  40825. -libext="$libext"
  40826. -
  40827. -# Shared library suffix (normally ".so").
  40828. -shrext='$shrext'
  40829. -
  40830. -# Executable file suffix (normally "").
  40831. -exeext="$exeext"
  40832. -
  40833. -# Additional compiler flags for building library objects.
  40834. -pic_flag=$lt_lt_prog_compiler_pic_RC
  40835. -pic_mode=$pic_mode
  40836. -
  40837. -# What is the maximum length of a command?
  40838. -max_cmd_len=$lt_cv_sys_max_cmd_len
  40839. -
  40840. -# Does compiler simultaneously support -c and -o options?
  40841. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  40842. -
  40843. -# Must we lock files when doing compilation ?
  40844. -need_locks=$lt_need_locks
  40845. -
  40846. -# Do we need the lib prefix for modules?
  40847. -need_lib_prefix=$need_lib_prefix
  40848. -
  40849. -# Do we need a version for libraries?
  40850. -need_version=$need_version
  40851. -
  40852. -# Whether dlopen is supported.
  40853. -dlopen_support=$enable_dlopen
  40854. -
  40855. -# Whether dlopen of programs is supported.
  40856. -dlopen_self=$enable_dlopen_self
  40857. -
  40858. -# Whether dlopen of statically linked programs is supported.
  40859. -dlopen_self_static=$enable_dlopen_self_static
  40860. -
  40861. -# Compiler flag to prevent dynamic linking.
  40862. -link_static_flag=$lt_lt_prog_compiler_static_RC
  40863. -
  40864. -# Compiler flag to turn off builtin functions.
  40865. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  40866. -
  40867. -# Compiler flag to allow reflexive dlopens.
  40868. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  40869. -
  40870. -# Compiler flag to generate shared objects directly from archives.
  40871. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  40872. -
  40873. -# Compiler flag to generate thread-safe objects.
  40874. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  40875. -
  40876. -# Library versioning type.
  40877. -version_type=$version_type
  40878. -
  40879. -# Format of library name prefix.
  40880. -libname_spec=$lt_libname_spec
  40881. -
  40882. -# List of archive names. First name is the real one, the rest are links.
  40883. -# The last name is the one that the linker finds with -lNAME.
  40884. -library_names_spec=$lt_library_names_spec
  40885. -
  40886. -# The coded name of the library, if different from the real name.
  40887. -soname_spec=$lt_soname_spec
  40888. -
  40889. -# Commands used to build and install an old-style archive.
  40890. -RANLIB=$lt_RANLIB
  40891. -old_archive_cmds=$lt_old_archive_cmds_RC
  40892. -old_postinstall_cmds=$lt_old_postinstall_cmds
  40893. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40894. -
  40895. -# Create an old-style archive from a shared archive.
  40896. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  40897. -
  40898. -# Create a temporary old-style archive to link instead of a shared archive.
  40899. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  40900. -
  40901. -# Commands used to build and install a shared archive.
  40902. -archive_cmds=$lt_archive_cmds_RC
  40903. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  40904. -postinstall_cmds=$lt_postinstall_cmds
  40905. -postuninstall_cmds=$lt_postuninstall_cmds
  40906. -
  40907. -# Commands used to build a loadable module (assumed same as above if empty)
  40908. -module_cmds=$lt_module_cmds_RC
  40909. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  40910. -
  40911. -# Commands to strip libraries.
  40912. -old_striplib=$lt_old_striplib
  40913. -striplib=$lt_striplib
  40914. -
  40915. -# Dependencies to place before the objects being linked to create a
  40916. -# shared library.
  40917. -predep_objects=$lt_predep_objects_RC
  40918. -
  40919. -# Dependencies to place after the objects being linked to create a
  40920. -# shared library.
  40921. -postdep_objects=$lt_postdep_objects_RC
  40922. -
  40923. -# Dependencies to place before the objects being linked to create a
  40924. -# shared library.
  40925. -predeps=$lt_predeps_RC
  40926. -
  40927. -# Dependencies to place after the objects being linked to create a
  40928. -# shared library.
  40929. -postdeps=$lt_postdeps_RC
  40930. -
  40931. -# The library search path used internally by the compiler when linking
  40932. -# a shared library.
  40933. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  40934. -
  40935. -# Method to check whether dependent libraries are shared objects.
  40936. -deplibs_check_method=$lt_deplibs_check_method
  40937. -
  40938. -# Command to use when deplibs_check_method == file_magic.
  40939. -file_magic_cmd=$lt_file_magic_cmd
  40940. -
  40941. -# Flag that allows shared libraries with undefined symbols to be built.
  40942. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  40943. -
  40944. -# Flag that forces no undefined symbols.
  40945. -no_undefined_flag=$lt_no_undefined_flag_RC
  40946. -
  40947. -# Commands used to finish a libtool library installation in a directory.
  40948. -finish_cmds=$lt_finish_cmds
  40949. -
  40950. -# Same as above, but a single script fragment to be evaled but not shown.
  40951. -finish_eval=$lt_finish_eval
  40952. -
  40953. -# Take the output of nm and produce a listing of raw symbols and C names.
  40954. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40955. -
  40956. -# Transform the output of nm in a proper C declaration
  40957. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40958. -
  40959. -# Transform the output of nm in a C name address pair
  40960. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40961. -
  40962. -# This is the shared library runtime path variable.
  40963. -runpath_var=$runpath_var
  40964. -
  40965. -# This is the shared library path variable.
  40966. -shlibpath_var=$shlibpath_var
  40967. -
  40968. -# Is shlibpath searched before the hard-coded library search path?
  40969. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40970. -
  40971. -# How to hardcode a shared library path into an executable.
  40972. -hardcode_action=$hardcode_action_RC
  40973. -
  40974. -# Whether we should hardcode library paths into libraries.
  40975. -hardcode_into_libs=$hardcode_into_libs
  40976. -
  40977. -# Flag to hardcode \$libdir into a binary during linking.
  40978. -# This must work even if \$libdir does not exist.
  40979. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  40980. -
  40981. -# If ld is used when linking, flag to hardcode \$libdir into
  40982. -# a binary during linking. This must work even if \$libdir does
  40983. -# not exist.
  40984. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  40985. -
  40986. -# Whether we need a single -rpath flag with a separated argument.
  40987. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  40988. -
  40989. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  40990. -# resulting binary.
  40991. -hardcode_direct=$hardcode_direct_RC
  40992. -
  40993. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  40994. -# resulting binary.
  40995. -hardcode_minus_L=$hardcode_minus_L_RC
  40996. -
  40997. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  40998. -# the resulting binary.
  40999. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  41000. -
  41001. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  41002. -# and all subsequent libraries and executables linked against it.
  41003. -hardcode_automatic=$hardcode_automatic_RC
  41004. -
  41005. -# Variables whose values should be saved in libtool wrapper scripts and
  41006. -# restored at relink time.
  41007. -variables_saved_for_relink="$variables_saved_for_relink"
  41008. -
  41009. -# Whether libtool must link a program against all its dependency libraries.
  41010. -link_all_deplibs=$link_all_deplibs_RC
  41011. -
  41012. -# Compile-time system search path for libraries
  41013. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  41014. -
  41015. -# Run-time system search path for libraries
  41016. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  41017. -
  41018. -# Fix the shell variable \$srcfile for the compiler.
  41019. -fix_srcfile_path="$fix_srcfile_path_RC"
  41020. -
  41021. -# Set to yes if exported symbols are required.
  41022. -always_export_symbols=$always_export_symbols_RC
  41023. -
  41024. -# The commands to list exported symbols.
  41025. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  41026. -
  41027. -# The commands to extract the exported symbol list from a shared archive.
  41028. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  41029. -
  41030. -# Symbols that should not be listed in the preloaded symbols.
  41031. -exclude_expsyms=$lt_exclude_expsyms_RC
  41032. -
  41033. -# Symbols that must always be exported.
  41034. -include_expsyms=$lt_include_expsyms_RC
  41035. -
  41036. -# ### END LIBTOOL TAG CONFIG: $tagname
  41037. -
  41038. -__EOF__
  41039. -
  41040. -
  41041. -else
  41042. - # If there is no Makefile yet, we rely on a make rule to execute
  41043. - # `config.status --recheck' to rerun these tests and create the
  41044. - # libtool script then.
  41045. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  41046. - if test -f "$ltmain_in"; then
  41047. - test -f Makefile && make "$ltmain"
  41048. - fi
  41049. -fi
  41050. -
  41051. -
  41052. -ac_ext=c
  41053. -ac_cpp='$CPP $CPPFLAGS'
  41054. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  41055. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  41056. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  41057. -
  41058. -CC="$lt_save_CC"
  41059. -
  41060. - ;;
  41061. -
  41062. - *)
  41063. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  41064. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  41065. - { (exit 1); exit 1; }; }
  41066. - ;;
  41067. - esac
  41068. -
  41069. - # Append the new tag name to the list of available tags.
  41070. - if test -n "$tagname" ; then
  41071. - available_tags="$available_tags $tagname"
  41072. - fi
  41073. - fi
  41074. - done
  41075. - IFS="$lt_save_ifs"
  41076. -
  41077. - # Now substitute the updated list of available tags.
  41078. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  41079. - mv "${ofile}T" "$ofile"
  41080. - chmod +x "$ofile"
  41081. - else
  41082. - rm -f "${ofile}T"
  41083. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  41084. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  41085. - { (exit 1); exit 1; }; }
  41086. - fi
  41087. -fi
  41088. -
  41089. -
  41090. -
  41091. -# This can be used to rebuild libtool when needed
  41092. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  41093. -
  41094. -# Always use our own libtool.
  41095. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  41096. -
  41097. -# Prevent multiple expansion
  41098. -
  41099. -
  41100. -
  41101. -
  41102. -
  41103. -
  41104. -
  41105. -
  41106. -
  41107. -
  41108. -
  41109. -
  41110. -
  41111. -
  41112. -
  41113. -
  41114. -
  41115. -
  41116. -
  41117. -
  41118. -
  41119. -
  41120. -
  41121. -
  41122. -arch=""
  41123. -debug=""
  41124. -optimize=""
  41125. -profile=""
  41126. -
  41127. -set -- $CFLAGS
  41128. -CFLAGS=""
  41129. -
  41130. -if test "$GCC" = yes
  41131. -then
  41132. - CFLAGS="-Wall"
  41133. -fi
  41134. -
  41135. -while test $# -gt 0
  41136. -do
  41137. - case "$1" in
  41138. - -Wall)
  41139. - if test "$GCC" = yes
  41140. - then
  41141. - :
  41142. - else
  41143. - CFLAGS="$CFLAGS $1"
  41144. - fi
  41145. - shift
  41146. - ;;
  41147. - -g)
  41148. - debug="-g"
  41149. - shift
  41150. - ;;
  41151. - -mno-cygwin)
  41152. - shift
  41153. - ;;
  41154. - -m*)
  41155. - arch="$arch $1"
  41156. - shift
  41157. - ;;
  41158. - -O2)
  41159. - optimize="-O"
  41160. - shift
  41161. - ;;
  41162. - -fomit-frame-pointer)
  41163. - shift
  41164. - ;;
  41165. - -O*|-f*)
  41166. - optimize="$optimize $1"
  41167. - shift
  41168. - ;;
  41169. - *)
  41170. - CFLAGS="$CFLAGS $1"
  41171. - shift
  41172. - ;;
  41173. - esac
  41174. -done
  41175. -
  41176. -if test "$GCC" = yes
  41177. -then
  41178. - if test -z "$arch"
  41179. - then
  41180. - case "$host" in
  41181. - i386-*) ;;
  41182. - i?86-*) arch="-march=i486" ;;
  41183. - arm*-empeg-*) arch="-march=armv4 -mtune=strongarm1100" ;;
  41184. - armv4*-*) arch="-march=armv4 -mtune=strongarm" ;;
  41185. - powerpc-*) ;;
  41186. - mips*-agenda-*) arch="-mcpu=vr4100" ;;
  41187. - mips*-luxsonor-*) arch="-mips1 -mcpu=r3000 -Wa,-m4010" ;;
  41188. - esac
  41189. - fi
  41190. -
  41191. - case "$optimize" in
  41192. - -O|"-O "*)
  41193. - optimize="-O"
  41194. - optimize="$optimize -fforce-mem"
  41195. - optimize="$optimize -fforce-addr"
  41196. - : #x optimize="$optimize -finline-functions"
  41197. - : #- optimize="$optimize -fstrength-reduce"
  41198. - optimize="$optimize -fthread-jumps"
  41199. - optimize="$optimize -fcse-follow-jumps"
  41200. - optimize="$optimize -fcse-skip-blocks"
  41201. - : #x optimize="$optimize -frerun-cse-after-loop"
  41202. - : #x optimize="$optimize -frerun-loop-opt"
  41203. - : #x optimize="$optimize -fgcse"
  41204. - optimize="$optimize -fexpensive-optimizations"
  41205. - optimize="$optimize -fregmove"
  41206. - : #* optimize="$optimize -fdelayed-branch"
  41207. - : #x optimize="$optimize -fschedule-insns"
  41208. - optimize="$optimize -fschedule-insns2"
  41209. - : #? optimize="$optimize -ffunction-sections"
  41210. - : #? optimize="$optimize -fcaller-saves"
  41211. - : #> optimize="$optimize -funroll-loops"
  41212. - : #> optimize="$optimize -funroll-all-loops"
  41213. - : #x optimize="$optimize -fmove-all-movables"
  41214. - : #x optimize="$optimize -freduce-all-givs"
  41215. - : #? optimize="$optimize -fstrict-aliasing"
  41216. - : #* optimize="$optimize -fstructure-noalias"
  41217. -
  41218. - case "$host" in
  41219. - arm*-*)
  41220. - optimize="$optimize -fstrength-reduce"
  41221. - ;;
  41222. - mips*-*)
  41223. - optimize="$optimize -fstrength-reduce"
  41224. - optimize="$optimize -finline-functions"
  41225. - ;;
  41226. - i?86-*)
  41227. - optimize="$optimize -fstrength-reduce"
  41228. - ;;
  41229. - powerpc-apple-*)
  41230. - # this triggers an internal compiler error with gcc2
  41231. - : #optimize="$optimize -fstrength-reduce"
  41232. -
  41233. - # this is really only beneficial with gcc3
  41234. - : #optimize="$optimize -finline-functions"
  41235. - ;;
  41236. - *)
  41237. - # this sometimes provokes bugs in gcc 2.95.2
  41238. - : #optimize="$optimize -fstrength-reduce"
  41239. - ;;
  41240. - esac
  41241. - ;;
  41242. - esac
  41243. -fi
  41244. -
  41245. -case "$host" in
  41246. - mips*-agenda-*)
  41247. -
  41248. -cat >>confdefs.h <<\_ACEOF
  41249. -#define HAVE_MADD16_ASM 1
  41250. -_ACEOF
  41251. -
  41252. - ;;
  41253. - mips*-luxsonor-*)
  41254. -
  41255. -cat >>confdefs.h <<\_ACEOF
  41256. -#define HAVE_MADD_ASM 1
  41257. -_ACEOF
  41258. -
  41259. - ;;
  41260. -esac
  41261. -
  41262. -
  41263. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  41264. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  41265. -if test "${ac_cv_header_stdc+set}" = set; then
  41266. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41267. -else
  41268. - cat >conftest.$ac_ext <<_ACEOF
  41269. -/* confdefs.h. */
  41270. -_ACEOF
  41271. -cat confdefs.h >>conftest.$ac_ext
  41272. -cat >>conftest.$ac_ext <<_ACEOF
  41273. -/* end confdefs.h. */
  41274. -#include <stdlib.h>
  41275. -#include <stdarg.h>
  41276. -#include <string.h>
  41277. -#include <float.h>
  41278. -
  41279. -int
  41280. -main ()
  41281. -{
  41282. -
  41283. - ;
  41284. - return 0;
  41285. -}
  41286. -_ACEOF
  41287. -rm -f conftest.$ac_objext
  41288. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41289. - (eval $ac_compile) 2>conftest.er1
  41290. - ac_status=$?
  41291. - grep -v '^ *+' conftest.er1 >conftest.err
  41292. - rm -f conftest.er1
  41293. - cat conftest.err >&5
  41294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41295. - (exit $ac_status); } &&
  41296. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41297. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41298. - (eval $ac_try) 2>&5
  41299. - ac_status=$?
  41300. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41301. - (exit $ac_status); }; } &&
  41302. - { ac_try='test -s conftest.$ac_objext'
  41303. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41304. - (eval $ac_try) 2>&5
  41305. - ac_status=$?
  41306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41307. - (exit $ac_status); }; }; then
  41308. - ac_cv_header_stdc=yes
  41309. -else
  41310. - echo "$as_me: failed program was:" >&5
  41311. -sed 's/^/| /' conftest.$ac_ext >&5
  41312. -
  41313. -ac_cv_header_stdc=no
  41314. -fi
  41315. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41316. -
  41317. -if test $ac_cv_header_stdc = yes; then
  41318. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  41319. - cat >conftest.$ac_ext <<_ACEOF
  41320. -/* confdefs.h. */
  41321. -_ACEOF
  41322. -cat confdefs.h >>conftest.$ac_ext
  41323. -cat >>conftest.$ac_ext <<_ACEOF
  41324. -/* end confdefs.h. */
  41325. -#include <string.h>
  41326. -
  41327. -_ACEOF
  41328. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  41329. - $EGREP "memchr" >/dev/null 2>&1; then
  41330. - :
  41331. -else
  41332. - ac_cv_header_stdc=no
  41333. -fi
  41334. -rm -f conftest*
  41335. -
  41336. -fi
  41337. -
  41338. -if test $ac_cv_header_stdc = yes; then
  41339. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  41340. - cat >conftest.$ac_ext <<_ACEOF
  41341. -/* confdefs.h. */
  41342. -_ACEOF
  41343. -cat confdefs.h >>conftest.$ac_ext
  41344. -cat >>conftest.$ac_ext <<_ACEOF
  41345. -/* end confdefs.h. */
  41346. -#include <stdlib.h>
  41347. -
  41348. -_ACEOF
  41349. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  41350. - $EGREP "free" >/dev/null 2>&1; then
  41351. - :
  41352. -else
  41353. - ac_cv_header_stdc=no
  41354. -fi
  41355. -rm -f conftest*
  41356. -
  41357. -fi
  41358. -
  41359. -if test $ac_cv_header_stdc = yes; then
  41360. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  41361. - if test "$cross_compiling" = yes; then
  41362. - :
  41363. -else
  41364. - cat >conftest.$ac_ext <<_ACEOF
  41365. -/* confdefs.h. */
  41366. -_ACEOF
  41367. -cat confdefs.h >>conftest.$ac_ext
  41368. -cat >>conftest.$ac_ext <<_ACEOF
  41369. -/* end confdefs.h. */
  41370. -#include <ctype.h>
  41371. -#if ((' ' & 0x0FF) == 0x020)
  41372. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  41373. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  41374. -#else
  41375. -# define ISLOWER(c) \
  41376. - (('a' <= (c) && (c) <= 'i') \
  41377. - || ('j' <= (c) && (c) <= 'r') \
  41378. - || ('s' <= (c) && (c) <= 'z'))
  41379. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  41380. -#endif
  41381. -
  41382. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  41383. -int
  41384. -main ()
  41385. -{
  41386. - int i;
  41387. - for (i = 0; i < 256; i++)
  41388. - if (XOR (islower (i), ISLOWER (i))
  41389. - || toupper (i) != TOUPPER (i))
  41390. - exit(2);
  41391. - exit (0);
  41392. -}
  41393. -_ACEOF
  41394. -rm -f conftest$ac_exeext
  41395. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  41396. - (eval $ac_link) 2>&5
  41397. - ac_status=$?
  41398. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41399. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41400. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41401. - (eval $ac_try) 2>&5
  41402. - ac_status=$?
  41403. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41404. - (exit $ac_status); }; }; then
  41405. - :
  41406. -else
  41407. - echo "$as_me: program exited with status $ac_status" >&5
  41408. -echo "$as_me: failed program was:" >&5
  41409. -sed 's/^/| /' conftest.$ac_ext >&5
  41410. -
  41411. -( exit $ac_status )
  41412. -ac_cv_header_stdc=no
  41413. -fi
  41414. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41415. -fi
  41416. -fi
  41417. -fi
  41418. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  41419. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  41420. -if test $ac_cv_header_stdc = yes; then
  41421. -
  41422. -cat >>confdefs.h <<\_ACEOF
  41423. -#define STDC_HEADERS 1
  41424. -_ACEOF
  41425. -
  41426. -fi
  41427. -
  41428. -echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  41429. -echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  41430. -if test "${ac_cv_header_sys_wait_h+set}" = set; then
  41431. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41432. -else
  41433. - cat >conftest.$ac_ext <<_ACEOF
  41434. -/* confdefs.h. */
  41435. -_ACEOF
  41436. -cat confdefs.h >>conftest.$ac_ext
  41437. -cat >>conftest.$ac_ext <<_ACEOF
  41438. -/* end confdefs.h. */
  41439. -#include <sys/types.h>
  41440. -#include <sys/wait.h>
  41441. -#ifndef WEXITSTATUS
  41442. -# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  41443. -#endif
  41444. -#ifndef WIFEXITED
  41445. -# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  41446. -#endif
  41447. -
  41448. -int
  41449. -main ()
  41450. -{
  41451. - int s;
  41452. - wait (&s);
  41453. - s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  41454. - ;
  41455. - return 0;
  41456. -}
  41457. -_ACEOF
  41458. -rm -f conftest.$ac_objext
  41459. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41460. - (eval $ac_compile) 2>conftest.er1
  41461. - ac_status=$?
  41462. - grep -v '^ *+' conftest.er1 >conftest.err
  41463. - rm -f conftest.er1
  41464. - cat conftest.err >&5
  41465. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41466. - (exit $ac_status); } &&
  41467. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41468. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41469. - (eval $ac_try) 2>&5
  41470. - ac_status=$?
  41471. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41472. - (exit $ac_status); }; } &&
  41473. - { ac_try='test -s conftest.$ac_objext'
  41474. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41475. - (eval $ac_try) 2>&5
  41476. - ac_status=$?
  41477. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41478. - (exit $ac_status); }; }; then
  41479. - ac_cv_header_sys_wait_h=yes
  41480. -else
  41481. - echo "$as_me: failed program was:" >&5
  41482. -sed 's/^/| /' conftest.$ac_ext >&5
  41483. -
  41484. -ac_cv_header_sys_wait_h=no
  41485. -fi
  41486. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41487. -fi
  41488. -echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  41489. -echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  41490. -if test $ac_cv_header_sys_wait_h = yes; then
  41491. -
  41492. -cat >>confdefs.h <<\_ACEOF
  41493. -#define HAVE_SYS_WAIT_H 1
  41494. -_ACEOF
  41495. -
  41496. -fi
  41497. -
  41498. -
  41499. -
  41500. -
  41501. -
  41502. -
  41503. -
  41504. -for ac_header in assert.h limits.h unistd.h sys/types.h fcntl.h errno.h
  41505. -do
  41506. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  41507. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  41508. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  41509. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  41510. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  41511. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41512. -fi
  41513. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  41514. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  41515. -else
  41516. - # Is the header compilable?
  41517. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  41518. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  41519. -cat >conftest.$ac_ext <<_ACEOF
  41520. -/* confdefs.h. */
  41521. -_ACEOF
  41522. -cat confdefs.h >>conftest.$ac_ext
  41523. -cat >>conftest.$ac_ext <<_ACEOF
  41524. -/* end confdefs.h. */
  41525. -$ac_includes_default
  41526. -#include <$ac_header>
  41527. -_ACEOF
  41528. -rm -f conftest.$ac_objext
  41529. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41530. - (eval $ac_compile) 2>conftest.er1
  41531. - ac_status=$?
  41532. - grep -v '^ *+' conftest.er1 >conftest.err
  41533. - rm -f conftest.er1
  41534. - cat conftest.err >&5
  41535. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41536. - (exit $ac_status); } &&
  41537. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41538. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41539. - (eval $ac_try) 2>&5
  41540. - ac_status=$?
  41541. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41542. - (exit $ac_status); }; } &&
  41543. - { ac_try='test -s conftest.$ac_objext'
  41544. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41545. - (eval $ac_try) 2>&5
  41546. - ac_status=$?
  41547. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41548. - (exit $ac_status); }; }; then
  41549. - ac_header_compiler=yes
  41550. -else
  41551. - echo "$as_me: failed program was:" >&5
  41552. -sed 's/^/| /' conftest.$ac_ext >&5
  41553. -
  41554. -ac_header_compiler=no
  41555. -fi
  41556. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41557. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41558. -echo "${ECHO_T}$ac_header_compiler" >&6
  41559. -
  41560. -# Is the header present?
  41561. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  41562. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  41563. -cat >conftest.$ac_ext <<_ACEOF
  41564. -/* confdefs.h. */
  41565. -_ACEOF
  41566. -cat confdefs.h >>conftest.$ac_ext
  41567. -cat >>conftest.$ac_ext <<_ACEOF
  41568. -/* end confdefs.h. */
  41569. -#include <$ac_header>
  41570. -_ACEOF
  41571. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  41572. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  41573. - ac_status=$?
  41574. - grep -v '^ *+' conftest.er1 >conftest.err
  41575. - rm -f conftest.er1
  41576. - cat conftest.err >&5
  41577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41578. - (exit $ac_status); } >/dev/null; then
  41579. - if test -s conftest.err; then
  41580. - ac_cpp_err=$ac_c_preproc_warn_flag
  41581. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  41582. - else
  41583. - ac_cpp_err=
  41584. - fi
  41585. -else
  41586. - ac_cpp_err=yes
  41587. -fi
  41588. -if test -z "$ac_cpp_err"; then
  41589. - ac_header_preproc=yes
  41590. -else
  41591. - echo "$as_me: failed program was:" >&5
  41592. -sed 's/^/| /' conftest.$ac_ext >&5
  41593. -
  41594. - ac_header_preproc=no
  41595. -fi
  41596. -rm -f conftest.err conftest.$ac_ext
  41597. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41598. -echo "${ECHO_T}$ac_header_preproc" >&6
  41599. -
  41600. -# So? What about this header?
  41601. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  41602. - yes:no: )
  41603. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  41604. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41605. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  41606. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  41607. - ac_header_preproc=yes
  41608. - ;;
  41609. - no:yes:* )
  41610. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  41611. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  41612. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  41613. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  41614. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  41615. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  41616. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  41617. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  41618. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  41619. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  41620. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  41621. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  41622. - (
  41623. - cat <<\_ASBOX
  41624. -## ----------------------------------- ##
  41625. -## Report this to support@underbit.com ##
  41626. -## ----------------------------------- ##
  41627. -_ASBOX
  41628. - ) |
  41629. - sed "s/^/$as_me: WARNING: /" >&2
  41630. - ;;
  41631. -esac
  41632. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  41633. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  41634. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  41635. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41636. -else
  41637. - eval "$as_ac_Header=\$ac_header_preproc"
  41638. -fi
  41639. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  41640. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  41641. -
  41642. -fi
  41643. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  41644. - cat >>confdefs.h <<_ACEOF
  41645. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  41646. -_ACEOF
  41647. -
  41648. -fi
  41649. -
  41650. -done
  41651. -
  41652. -
  41653. -
  41654. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  41655. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  41656. -if test "${ac_cv_c_const+set}" = set; then
  41657. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41658. -else
  41659. - cat >conftest.$ac_ext <<_ACEOF
  41660. -/* confdefs.h. */
  41661. -_ACEOF
  41662. -cat confdefs.h >>conftest.$ac_ext
  41663. -cat >>conftest.$ac_ext <<_ACEOF
  41664. -/* end confdefs.h. */
  41665. -
  41666. -int
  41667. -main ()
  41668. -{
  41669. -/* FIXME: Include the comments suggested by Paul. */
  41670. -#ifndef __cplusplus
  41671. - /* Ultrix mips cc rejects this. */
  41672. - typedef int charset[2];
  41673. - const charset x;
  41674. - /* SunOS 4.1.1 cc rejects this. */
  41675. - char const *const *ccp;
  41676. - char **p;
  41677. - /* NEC SVR4.0.2 mips cc rejects this. */
  41678. - struct point {int x, y;};
  41679. - static struct point const zero = {0,0};
  41680. - /* AIX XL C 1.02.0.0 rejects this.
  41681. - It does not let you subtract one const X* pointer from another in
  41682. - an arm of an if-expression whose if-part is not a constant
  41683. - expression */
  41684. - const char *g = "string";
  41685. - ccp = &g + (g ? g-g : 0);
  41686. - /* HPUX 7.0 cc rejects these. */
  41687. - ++ccp;
  41688. - p = (char**) ccp;
  41689. - ccp = (char const *const *) p;
  41690. - { /* SCO 3.2v4 cc rejects this. */
  41691. - char *t;
  41692. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  41693. -
  41694. - *t++ = 0;
  41695. - }
  41696. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  41697. - int x[] = {25, 17};
  41698. - const int *foo = &x[0];
  41699. - ++foo;
  41700. - }
  41701. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  41702. - typedef const int *iptr;
  41703. - iptr p = 0;
  41704. - ++p;
  41705. - }
  41706. - { /* AIX XL C 1.02.0.0 rejects this saying
  41707. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  41708. - struct s { int j; const int *ap[3]; };
  41709. - struct s *b; b->j = 5;
  41710. - }
  41711. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  41712. - const int foo = 10;
  41713. - }
  41714. -#endif
  41715. -
  41716. - ;
  41717. - return 0;
  41718. -}
  41719. -_ACEOF
  41720. -rm -f conftest.$ac_objext
  41721. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41722. - (eval $ac_compile) 2>conftest.er1
  41723. - ac_status=$?
  41724. - grep -v '^ *+' conftest.er1 >conftest.err
  41725. - rm -f conftest.er1
  41726. - cat conftest.err >&5
  41727. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41728. - (exit $ac_status); } &&
  41729. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41730. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41731. - (eval $ac_try) 2>&5
  41732. - ac_status=$?
  41733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41734. - (exit $ac_status); }; } &&
  41735. - { ac_try='test -s conftest.$ac_objext'
  41736. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41737. - (eval $ac_try) 2>&5
  41738. - ac_status=$?
  41739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41740. - (exit $ac_status); }; }; then
  41741. - ac_cv_c_const=yes
  41742. -else
  41743. - echo "$as_me: failed program was:" >&5
  41744. -sed 's/^/| /' conftest.$ac_ext >&5
  41745. -
  41746. -ac_cv_c_const=no
  41747. -fi
  41748. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41749. -fi
  41750. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  41751. -echo "${ECHO_T}$ac_cv_c_const" >&6
  41752. -if test $ac_cv_c_const = no; then
  41753. -
  41754. -cat >>confdefs.h <<\_ACEOF
  41755. -#define const
  41756. -_ACEOF
  41757. -
  41758. -fi
  41759. -
  41760. -echo "$as_me:$LINENO: checking for inline" >&5
  41761. -echo $ECHO_N "checking for inline... $ECHO_C" >&6
  41762. -if test "${ac_cv_c_inline+set}" = set; then
  41763. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41764. -else
  41765. - ac_cv_c_inline=no
  41766. -for ac_kw in inline __inline__ __inline; do
  41767. - cat >conftest.$ac_ext <<_ACEOF
  41768. -/* confdefs.h. */
  41769. -_ACEOF
  41770. -cat confdefs.h >>conftest.$ac_ext
  41771. -cat >>conftest.$ac_ext <<_ACEOF
  41772. -/* end confdefs.h. */
  41773. -#ifndef __cplusplus
  41774. -typedef int foo_t;
  41775. -static $ac_kw foo_t static_foo () {return 0; }
  41776. -$ac_kw foo_t foo () {return 0; }
  41777. -#endif
  41778. -
  41779. -_ACEOF
  41780. -rm -f conftest.$ac_objext
  41781. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41782. - (eval $ac_compile) 2>conftest.er1
  41783. - ac_status=$?
  41784. - grep -v '^ *+' conftest.er1 >conftest.err
  41785. - rm -f conftest.er1
  41786. - cat conftest.err >&5
  41787. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41788. - (exit $ac_status); } &&
  41789. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41790. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41791. - (eval $ac_try) 2>&5
  41792. - ac_status=$?
  41793. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41794. - (exit $ac_status); }; } &&
  41795. - { ac_try='test -s conftest.$ac_objext'
  41796. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41797. - (eval $ac_try) 2>&5
  41798. - ac_status=$?
  41799. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41800. - (exit $ac_status); }; }; then
  41801. - ac_cv_c_inline=$ac_kw; break
  41802. -else
  41803. - echo "$as_me: failed program was:" >&5
  41804. -sed 's/^/| /' conftest.$ac_ext >&5
  41805. -
  41806. -fi
  41807. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41808. -done
  41809. -
  41810. -fi
  41811. -echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  41812. -echo "${ECHO_T}$ac_cv_c_inline" >&6
  41813. -
  41814. -
  41815. -case $ac_cv_c_inline in
  41816. - inline | yes) ;;
  41817. - *)
  41818. - case $ac_cv_c_inline in
  41819. - no) ac_val=;;
  41820. - *) ac_val=$ac_cv_c_inline;;
  41821. - esac
  41822. - cat >>confdefs.h <<_ACEOF
  41823. -#ifndef __cplusplus
  41824. -#define inline $ac_val
  41825. -#endif
  41826. -_ACEOF
  41827. - ;;
  41828. -esac
  41829. -
  41830. -echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  41831. -echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  41832. -if test "${ac_cv_c_bigendian+set}" = set; then
  41833. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41834. -else
  41835. - # See if sys/param.h defines the BYTE_ORDER macro.
  41836. -cat >conftest.$ac_ext <<_ACEOF
  41837. -/* confdefs.h. */
  41838. -_ACEOF
  41839. -cat confdefs.h >>conftest.$ac_ext
  41840. -cat >>conftest.$ac_ext <<_ACEOF
  41841. -/* end confdefs.h. */
  41842. -#include <sys/types.h>
  41843. -#include <sys/param.h>
  41844. -
  41845. -int
  41846. -main ()
  41847. -{
  41848. -#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  41849. - bogus endian macros
  41850. -#endif
  41851. -
  41852. - ;
  41853. - return 0;
  41854. -}
  41855. -_ACEOF
  41856. -rm -f conftest.$ac_objext
  41857. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41858. - (eval $ac_compile) 2>conftest.er1
  41859. - ac_status=$?
  41860. - grep -v '^ *+' conftest.er1 >conftest.err
  41861. - rm -f conftest.er1
  41862. - cat conftest.err >&5
  41863. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41864. - (exit $ac_status); } &&
  41865. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41866. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41867. - (eval $ac_try) 2>&5
  41868. - ac_status=$?
  41869. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41870. - (exit $ac_status); }; } &&
  41871. - { ac_try='test -s conftest.$ac_objext'
  41872. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41873. - (eval $ac_try) 2>&5
  41874. - ac_status=$?
  41875. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41876. - (exit $ac_status); }; }; then
  41877. - # It does; now see whether it defined to BIG_ENDIAN or not.
  41878. -cat >conftest.$ac_ext <<_ACEOF
  41879. -/* confdefs.h. */
  41880. -_ACEOF
  41881. -cat confdefs.h >>conftest.$ac_ext
  41882. -cat >>conftest.$ac_ext <<_ACEOF
  41883. -/* end confdefs.h. */
  41884. -#include <sys/types.h>
  41885. -#include <sys/param.h>
  41886. -
  41887. -int
  41888. -main ()
  41889. -{
  41890. -#if BYTE_ORDER != BIG_ENDIAN
  41891. - not big endian
  41892. -#endif
  41893. -
  41894. - ;
  41895. - return 0;
  41896. -}
  41897. -_ACEOF
  41898. -rm -f conftest.$ac_objext
  41899. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41900. - (eval $ac_compile) 2>conftest.er1
  41901. - ac_status=$?
  41902. - grep -v '^ *+' conftest.er1 >conftest.err
  41903. - rm -f conftest.er1
  41904. - cat conftest.err >&5
  41905. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41906. - (exit $ac_status); } &&
  41907. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41908. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41909. - (eval $ac_try) 2>&5
  41910. - ac_status=$?
  41911. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41912. - (exit $ac_status); }; } &&
  41913. - { ac_try='test -s conftest.$ac_objext'
  41914. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41915. - (eval $ac_try) 2>&5
  41916. - ac_status=$?
  41917. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41918. - (exit $ac_status); }; }; then
  41919. - ac_cv_c_bigendian=yes
  41920. -else
  41921. - echo "$as_me: failed program was:" >&5
  41922. -sed 's/^/| /' conftest.$ac_ext >&5
  41923. -
  41924. -ac_cv_c_bigendian=no
  41925. -fi
  41926. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41927. -else
  41928. - echo "$as_me: failed program was:" >&5
  41929. -sed 's/^/| /' conftest.$ac_ext >&5
  41930. -
  41931. -# It does not; compile a test program.
  41932. -if test "$cross_compiling" = yes; then
  41933. - # try to guess the endianness by grepping values into an object file
  41934. - ac_cv_c_bigendian=unknown
  41935. - cat >conftest.$ac_ext <<_ACEOF
  41936. -/* confdefs.h. */
  41937. -_ACEOF
  41938. -cat confdefs.h >>conftest.$ac_ext
  41939. -cat >>conftest.$ac_ext <<_ACEOF
  41940. -/* end confdefs.h. */
  41941. -short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  41942. -short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  41943. -void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  41944. -short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  41945. -short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  41946. -void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  41947. -int
  41948. -main ()
  41949. -{
  41950. - _ascii (); _ebcdic ();
  41951. - ;
  41952. - return 0;
  41953. -}
  41954. -_ACEOF
  41955. -rm -f conftest.$ac_objext
  41956. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41957. - (eval $ac_compile) 2>conftest.er1
  41958. - ac_status=$?
  41959. - grep -v '^ *+' conftest.er1 >conftest.err
  41960. - rm -f conftest.er1
  41961. - cat conftest.err >&5
  41962. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41963. - (exit $ac_status); } &&
  41964. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41965. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41966. - (eval $ac_try) 2>&5
  41967. - ac_status=$?
  41968. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41969. - (exit $ac_status); }; } &&
  41970. - { ac_try='test -s conftest.$ac_objext'
  41971. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41972. - (eval $ac_try) 2>&5
  41973. - ac_status=$?
  41974. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41975. - (exit $ac_status); }; }; then
  41976. - if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  41977. - ac_cv_c_bigendian=yes
  41978. -fi
  41979. -if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  41980. - if test "$ac_cv_c_bigendian" = unknown; then
  41981. - ac_cv_c_bigendian=no
  41982. - else
  41983. - # finding both strings is unlikely to happen, but who knows?
  41984. - ac_cv_c_bigendian=unknown
  41985. - fi
  41986. -fi
  41987. -else
  41988. - echo "$as_me: failed program was:" >&5
  41989. -sed 's/^/| /' conftest.$ac_ext >&5
  41990. -
  41991. -fi
  41992. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41993. -else
  41994. - cat >conftest.$ac_ext <<_ACEOF
  41995. -/* confdefs.h. */
  41996. -_ACEOF
  41997. -cat confdefs.h >>conftest.$ac_ext
  41998. -cat >>conftest.$ac_ext <<_ACEOF
  41999. -/* end confdefs.h. */
  42000. -int
  42001. -main ()
  42002. -{
  42003. - /* Are we little or big endian? From Harbison&Steele. */
  42004. - union
  42005. - {
  42006. - long l;
  42007. - char c[sizeof (long)];
  42008. - } u;
  42009. - u.l = 1;
  42010. - exit (u.c[sizeof (long) - 1] == 1);
  42011. -}
  42012. -_ACEOF
  42013. -rm -f conftest$ac_exeext
  42014. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42015. - (eval $ac_link) 2>&5
  42016. - ac_status=$?
  42017. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42018. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42019. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42020. - (eval $ac_try) 2>&5
  42021. - ac_status=$?
  42022. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42023. - (exit $ac_status); }; }; then
  42024. - ac_cv_c_bigendian=no
  42025. -else
  42026. - echo "$as_me: program exited with status $ac_status" >&5
  42027. -echo "$as_me: failed program was:" >&5
  42028. -sed 's/^/| /' conftest.$ac_ext >&5
  42029. -
  42030. -( exit $ac_status )
  42031. -ac_cv_c_bigendian=yes
  42032. -fi
  42033. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42034. -fi
  42035. -fi
  42036. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42037. -fi
  42038. -echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  42039. -echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  42040. -case $ac_cv_c_bigendian in
  42041. - yes)
  42042. -
  42043. -cat >>confdefs.h <<\_ACEOF
  42044. -#define WORDS_BIGENDIAN 1
  42045. -_ACEOF
  42046. - ;;
  42047. - no)
  42048. - ;;
  42049. - *)
  42050. - { { echo "$as_me:$LINENO: error: unknown endianness
  42051. -presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  42052. -echo "$as_me: error: unknown endianness
  42053. -presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  42054. - { (exit 1); exit 1; }; } ;;
  42055. -esac
  42056. -
  42057. -echo "$as_me:$LINENO: checking for pid_t" >&5
  42058. -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  42059. -if test "${ac_cv_type_pid_t+set}" = set; then
  42060. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42061. -else
  42062. - cat >conftest.$ac_ext <<_ACEOF
  42063. -/* confdefs.h. */
  42064. -_ACEOF
  42065. -cat confdefs.h >>conftest.$ac_ext
  42066. -cat >>conftest.$ac_ext <<_ACEOF
  42067. -/* end confdefs.h. */
  42068. -$ac_includes_default
  42069. -int
  42070. -main ()
  42071. -{
  42072. -if ((pid_t *) 0)
  42073. - return 0;
  42074. -if (sizeof (pid_t))
  42075. - return 0;
  42076. - ;
  42077. - return 0;
  42078. -}
  42079. -_ACEOF
  42080. -rm -f conftest.$ac_objext
  42081. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42082. - (eval $ac_compile) 2>conftest.er1
  42083. - ac_status=$?
  42084. - grep -v '^ *+' conftest.er1 >conftest.err
  42085. - rm -f conftest.er1
  42086. - cat conftest.err >&5
  42087. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42088. - (exit $ac_status); } &&
  42089. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42090. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42091. - (eval $ac_try) 2>&5
  42092. - ac_status=$?
  42093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42094. - (exit $ac_status); }; } &&
  42095. - { ac_try='test -s conftest.$ac_objext'
  42096. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42097. - (eval $ac_try) 2>&5
  42098. - ac_status=$?
  42099. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42100. - (exit $ac_status); }; }; then
  42101. - ac_cv_type_pid_t=yes
  42102. -else
  42103. - echo "$as_me: failed program was:" >&5
  42104. -sed 's/^/| /' conftest.$ac_ext >&5
  42105. -
  42106. -ac_cv_type_pid_t=no
  42107. -fi
  42108. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42109. -fi
  42110. -echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  42111. -echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  42112. -if test $ac_cv_type_pid_t = yes; then
  42113. - :
  42114. -else
  42115. -
  42116. -cat >>confdefs.h <<_ACEOF
  42117. -#define pid_t int
  42118. -_ACEOF
  42119. -
  42120. -fi
  42121. -
  42122. -
  42123. -echo "$as_me:$LINENO: checking for int" >&5
  42124. -echo $ECHO_N "checking for int... $ECHO_C" >&6
  42125. -if test "${ac_cv_type_int+set}" = set; then
  42126. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42127. -else
  42128. - cat >conftest.$ac_ext <<_ACEOF
  42129. -/* confdefs.h. */
  42130. -_ACEOF
  42131. -cat confdefs.h >>conftest.$ac_ext
  42132. -cat >>conftest.$ac_ext <<_ACEOF
  42133. -/* end confdefs.h. */
  42134. -$ac_includes_default
  42135. -int
  42136. -main ()
  42137. -{
  42138. -if ((int *) 0)
  42139. - return 0;
  42140. -if (sizeof (int))
  42141. - return 0;
  42142. - ;
  42143. - return 0;
  42144. -}
  42145. -_ACEOF
  42146. -rm -f conftest.$ac_objext
  42147. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42148. - (eval $ac_compile) 2>conftest.er1
  42149. - ac_status=$?
  42150. - grep -v '^ *+' conftest.er1 >conftest.err
  42151. - rm -f conftest.er1
  42152. - cat conftest.err >&5
  42153. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42154. - (exit $ac_status); } &&
  42155. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42156. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42157. - (eval $ac_try) 2>&5
  42158. - ac_status=$?
  42159. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42160. - (exit $ac_status); }; } &&
  42161. - { ac_try='test -s conftest.$ac_objext'
  42162. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42163. - (eval $ac_try) 2>&5
  42164. - ac_status=$?
  42165. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42166. - (exit $ac_status); }; }; then
  42167. - ac_cv_type_int=yes
  42168. -else
  42169. - echo "$as_me: failed program was:" >&5
  42170. -sed 's/^/| /' conftest.$ac_ext >&5
  42171. -
  42172. -ac_cv_type_int=no
  42173. -fi
  42174. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42175. -fi
  42176. -echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  42177. -echo "${ECHO_T}$ac_cv_type_int" >&6
  42178. -
  42179. -echo "$as_me:$LINENO: checking size of int" >&5
  42180. -echo $ECHO_N "checking size of int... $ECHO_C" >&6
  42181. -if test "${ac_cv_sizeof_int+set}" = set; then
  42182. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42183. -else
  42184. - if test "$ac_cv_type_int" = yes; then
  42185. - # The cast to unsigned long works around a bug in the HP C Compiler
  42186. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  42187. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  42188. - # This bug is HP SR number 8606223364.
  42189. - if test "$cross_compiling" = yes; then
  42190. - # Depending upon the size, compute the lo and hi bounds.
  42191. -cat >conftest.$ac_ext <<_ACEOF
  42192. -/* confdefs.h. */
  42193. -_ACEOF
  42194. -cat confdefs.h >>conftest.$ac_ext
  42195. -cat >>conftest.$ac_ext <<_ACEOF
  42196. -/* end confdefs.h. */
  42197. -$ac_includes_default
  42198. -int
  42199. -main ()
  42200. -{
  42201. -static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  42202. -test_array [0] = 0
  42203. -
  42204. - ;
  42205. - return 0;
  42206. -}
  42207. -_ACEOF
  42208. -rm -f conftest.$ac_objext
  42209. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42210. - (eval $ac_compile) 2>conftest.er1
  42211. - ac_status=$?
  42212. - grep -v '^ *+' conftest.er1 >conftest.err
  42213. - rm -f conftest.er1
  42214. - cat conftest.err >&5
  42215. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42216. - (exit $ac_status); } &&
  42217. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42218. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42219. - (eval $ac_try) 2>&5
  42220. - ac_status=$?
  42221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42222. - (exit $ac_status); }; } &&
  42223. - { ac_try='test -s conftest.$ac_objext'
  42224. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42225. - (eval $ac_try) 2>&5
  42226. - ac_status=$?
  42227. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42228. - (exit $ac_status); }; }; then
  42229. - ac_lo=0 ac_mid=0
  42230. - while :; do
  42231. - cat >conftest.$ac_ext <<_ACEOF
  42232. -/* confdefs.h. */
  42233. -_ACEOF
  42234. -cat confdefs.h >>conftest.$ac_ext
  42235. -cat >>conftest.$ac_ext <<_ACEOF
  42236. -/* end confdefs.h. */
  42237. -$ac_includes_default
  42238. -int
  42239. -main ()
  42240. -{
  42241. -static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  42242. -test_array [0] = 0
  42243. -
  42244. - ;
  42245. - return 0;
  42246. -}
  42247. -_ACEOF
  42248. -rm -f conftest.$ac_objext
  42249. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42250. - (eval $ac_compile) 2>conftest.er1
  42251. - ac_status=$?
  42252. - grep -v '^ *+' conftest.er1 >conftest.err
  42253. - rm -f conftest.er1
  42254. - cat conftest.err >&5
  42255. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42256. - (exit $ac_status); } &&
  42257. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42258. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42259. - (eval $ac_try) 2>&5
  42260. - ac_status=$?
  42261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42262. - (exit $ac_status); }; } &&
  42263. - { ac_try='test -s conftest.$ac_objext'
  42264. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42265. - (eval $ac_try) 2>&5
  42266. - ac_status=$?
  42267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42268. - (exit $ac_status); }; }; then
  42269. - ac_hi=$ac_mid; break
  42270. -else
  42271. - echo "$as_me: failed program was:" >&5
  42272. -sed 's/^/| /' conftest.$ac_ext >&5
  42273. -
  42274. -ac_lo=`expr $ac_mid + 1`
  42275. - if test $ac_lo -le $ac_mid; then
  42276. - ac_lo= ac_hi=
  42277. - break
  42278. - fi
  42279. - ac_mid=`expr 2 '*' $ac_mid + 1`
  42280. -fi
  42281. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42282. - done
  42283. -else
  42284. - echo "$as_me: failed program was:" >&5
  42285. -sed 's/^/| /' conftest.$ac_ext >&5
  42286. -
  42287. -cat >conftest.$ac_ext <<_ACEOF
  42288. -/* confdefs.h. */
  42289. -_ACEOF
  42290. -cat confdefs.h >>conftest.$ac_ext
  42291. -cat >>conftest.$ac_ext <<_ACEOF
  42292. -/* end confdefs.h. */
  42293. -$ac_includes_default
  42294. -int
  42295. -main ()
  42296. -{
  42297. -static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  42298. -test_array [0] = 0
  42299. -
  42300. - ;
  42301. - return 0;
  42302. -}
  42303. -_ACEOF
  42304. -rm -f conftest.$ac_objext
  42305. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42306. - (eval $ac_compile) 2>conftest.er1
  42307. - ac_status=$?
  42308. - grep -v '^ *+' conftest.er1 >conftest.err
  42309. - rm -f conftest.er1
  42310. - cat conftest.err >&5
  42311. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42312. - (exit $ac_status); } &&
  42313. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42314. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42315. - (eval $ac_try) 2>&5
  42316. - ac_status=$?
  42317. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42318. - (exit $ac_status); }; } &&
  42319. - { ac_try='test -s conftest.$ac_objext'
  42320. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42321. - (eval $ac_try) 2>&5
  42322. - ac_status=$?
  42323. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42324. - (exit $ac_status); }; }; then
  42325. - ac_hi=-1 ac_mid=-1
  42326. - while :; do
  42327. - cat >conftest.$ac_ext <<_ACEOF
  42328. -/* confdefs.h. */
  42329. -_ACEOF
  42330. -cat confdefs.h >>conftest.$ac_ext
  42331. -cat >>conftest.$ac_ext <<_ACEOF
  42332. -/* end confdefs.h. */
  42333. -$ac_includes_default
  42334. -int
  42335. -main ()
  42336. -{
  42337. -static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  42338. -test_array [0] = 0
  42339. -
  42340. - ;
  42341. - return 0;
  42342. -}
  42343. -_ACEOF
  42344. -rm -f conftest.$ac_objext
  42345. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42346. - (eval $ac_compile) 2>conftest.er1
  42347. - ac_status=$?
  42348. - grep -v '^ *+' conftest.er1 >conftest.err
  42349. - rm -f conftest.er1
  42350. - cat conftest.err >&5
  42351. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42352. - (exit $ac_status); } &&
  42353. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42354. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42355. - (eval $ac_try) 2>&5
  42356. - ac_status=$?
  42357. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42358. - (exit $ac_status); }; } &&
  42359. - { ac_try='test -s conftest.$ac_objext'
  42360. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42361. - (eval $ac_try) 2>&5
  42362. - ac_status=$?
  42363. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42364. - (exit $ac_status); }; }; then
  42365. - ac_lo=$ac_mid; break
  42366. -else
  42367. - echo "$as_me: failed program was:" >&5
  42368. -sed 's/^/| /' conftest.$ac_ext >&5
  42369. -
  42370. -ac_hi=`expr '(' $ac_mid ')' - 1`
  42371. - if test $ac_mid -le $ac_hi; then
  42372. - ac_lo= ac_hi=
  42373. - break
  42374. - fi
  42375. - ac_mid=`expr 2 '*' $ac_mid`
  42376. -fi
  42377. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42378. - done
  42379. -else
  42380. - echo "$as_me: failed program was:" >&5
  42381. -sed 's/^/| /' conftest.$ac_ext >&5
  42382. -
  42383. -ac_lo= ac_hi=
  42384. -fi
  42385. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42386. -fi
  42387. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42388. -# Binary search between lo and hi bounds.
  42389. -while test "x$ac_lo" != "x$ac_hi"; do
  42390. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  42391. - cat >conftest.$ac_ext <<_ACEOF
  42392. -/* confdefs.h. */
  42393. -_ACEOF
  42394. -cat confdefs.h >>conftest.$ac_ext
  42395. -cat >>conftest.$ac_ext <<_ACEOF
  42396. -/* end confdefs.h. */
  42397. -$ac_includes_default
  42398. -int
  42399. -main ()
  42400. -{
  42401. -static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  42402. -test_array [0] = 0
  42403. -
  42404. - ;
  42405. - return 0;
  42406. -}
  42407. -_ACEOF
  42408. -rm -f conftest.$ac_objext
  42409. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42410. - (eval $ac_compile) 2>conftest.er1
  42411. - ac_status=$?
  42412. - grep -v '^ *+' conftest.er1 >conftest.err
  42413. - rm -f conftest.er1
  42414. - cat conftest.err >&5
  42415. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42416. - (exit $ac_status); } &&
  42417. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42418. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42419. - (eval $ac_try) 2>&5
  42420. - ac_status=$?
  42421. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42422. - (exit $ac_status); }; } &&
  42423. - { ac_try='test -s conftest.$ac_objext'
  42424. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42425. - (eval $ac_try) 2>&5
  42426. - ac_status=$?
  42427. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42428. - (exit $ac_status); }; }; then
  42429. - ac_hi=$ac_mid
  42430. -else
  42431. - echo "$as_me: failed program was:" >&5
  42432. -sed 's/^/| /' conftest.$ac_ext >&5
  42433. -
  42434. -ac_lo=`expr '(' $ac_mid ')' + 1`
  42435. -fi
  42436. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42437. -done
  42438. -case $ac_lo in
  42439. -?*) ac_cv_sizeof_int=$ac_lo;;
  42440. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  42441. -See \`config.log' for more details." >&5
  42442. -echo "$as_me: error: cannot compute sizeof (int), 77
  42443. -See \`config.log' for more details." >&2;}
  42444. - { (exit 1); exit 1; }; } ;;
  42445. -esac
  42446. -else
  42447. - if test "$cross_compiling" = yes; then
  42448. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  42449. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  42450. - { (exit 1); exit 1; }; }
  42451. -else
  42452. - cat >conftest.$ac_ext <<_ACEOF
  42453. -/* confdefs.h. */
  42454. -_ACEOF
  42455. -cat confdefs.h >>conftest.$ac_ext
  42456. -cat >>conftest.$ac_ext <<_ACEOF
  42457. -/* end confdefs.h. */
  42458. -$ac_includes_default
  42459. -long longval () { return (long) (sizeof (int)); }
  42460. -unsigned long ulongval () { return (long) (sizeof (int)); }
  42461. -#include <stdio.h>
  42462. -#include <stdlib.h>
  42463. -int
  42464. -main ()
  42465. -{
  42466. +LTLIBOBJS=$ac_ltlibobjs
  42467. - FILE *f = fopen ("conftest.val", "w");
  42468. - if (! f)
  42469. - exit (1);
  42470. - if (((long) (sizeof (int))) < 0)
  42471. - {
  42472. - long i = longval ();
  42473. - if (i != ((long) (sizeof (int))))
  42474. - exit (1);
  42475. - fprintf (f, "%ld\n", i);
  42476. - }
  42477. - else
  42478. - {
  42479. - unsigned long i = ulongval ();
  42480. - if (i != ((long) (sizeof (int))))
  42481. - exit (1);
  42482. - fprintf (f, "%lu\n", i);
  42483. - }
  42484. - exit (ferror (f) || fclose (f) != 0);
  42485. - ;
  42486. - return 0;
  42487. -}
  42488. -_ACEOF
  42489. -rm -f conftest$ac_exeext
  42490. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42491. - (eval $ac_link) 2>&5
  42492. - ac_status=$?
  42493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42494. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42495. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42496. - (eval $ac_try) 2>&5
  42497. - ac_status=$?
  42498. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42499. - (exit $ac_status); }; }; then
  42500. - ac_cv_sizeof_int=`cat conftest.val`
  42501. + if test -n "$EXEEXT"; then
  42502. + am__EXEEXT_TRUE=
  42503. + am__EXEEXT_FALSE='#'
  42504. else
  42505. - echo "$as_me: program exited with status $ac_status" >&5
  42506. -echo "$as_me: failed program was:" >&5
  42507. -sed 's/^/| /' conftest.$ac_ext >&5
  42508. -
  42509. -( exit $ac_status )
  42510. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  42511. -See \`config.log' for more details." >&5
  42512. -echo "$as_me: error: cannot compute sizeof (int), 77
  42513. -See \`config.log' for more details." >&2;}
  42514. - { (exit 1); exit 1; }; }
  42515. -fi
  42516. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42517. + am__EXEEXT_TRUE='#'
  42518. + am__EXEEXT_FALSE=
  42519. fi
  42520. +
  42521. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  42522. + as_fn_error "conditional \"AMDEP\" was never defined.
  42523. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  42524. fi
  42525. -rm -f conftest.val
  42526. -else
  42527. - ac_cv_sizeof_int=0
  42528. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  42529. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  42530. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  42531. fi
  42532. +if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
  42533. + as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
  42534. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  42535. fi
  42536. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  42537. -echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  42538. -cat >>confdefs.h <<_ACEOF
  42539. -#define SIZEOF_INT $ac_cv_sizeof_int
  42540. -_ACEOF
  42541. -echo "$as_me:$LINENO: checking for long" >&5
  42542. -echo $ECHO_N "checking for long... $ECHO_C" >&6
  42543. -if test "${ac_cv_type_long+set}" = set; then
  42544. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42545. -else
  42546. - cat >conftest.$ac_ext <<_ACEOF
  42547. -/* confdefs.h. */
  42548. -_ACEOF
  42549. -cat confdefs.h >>conftest.$ac_ext
  42550. -cat >>conftest.$ac_ext <<_ACEOF
  42551. -/* end confdefs.h. */
  42552. -$ac_includes_default
  42553. -int
  42554. -main ()
  42555. -{
  42556. -if ((long *) 0)
  42557. - return 0;
  42558. -if (sizeof (long))
  42559. - return 0;
  42560. - ;
  42561. - return 0;
  42562. -}
  42563. -_ACEOF
  42564. -rm -f conftest.$ac_objext
  42565. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42566. - (eval $ac_compile) 2>conftest.er1
  42567. - ac_status=$?
  42568. - grep -v '^ *+' conftest.er1 >conftest.err
  42569. - rm -f conftest.er1
  42570. - cat conftest.err >&5
  42571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42572. - (exit $ac_status); } &&
  42573. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42574. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42575. - (eval $ac_try) 2>&5
  42576. - ac_status=$?
  42577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42578. - (exit $ac_status); }; } &&
  42579. - { ac_try='test -s conftest.$ac_objext'
  42580. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42581. - (eval $ac_try) 2>&5
  42582. - ac_status=$?
  42583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42584. - (exit $ac_status); }; }; then
  42585. - ac_cv_type_long=yes
  42586. -else
  42587. - echo "$as_me: failed program was:" >&5
  42588. -sed 's/^/| /' conftest.$ac_ext >&5
  42589. -
  42590. -ac_cv_type_long=no
  42591. -fi
  42592. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42593. -fi
  42594. -echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  42595. -echo "${ECHO_T}$ac_cv_type_long" >&6
  42596. +: ${CONFIG_STATUS=./config.status}
  42597. +ac_write_fail=0
  42598. +ac_clean_files_save=$ac_clean_files
  42599. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  42600. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  42601. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  42602. +as_write_fail=0
  42603. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  42604. +#! $SHELL
  42605. +# Generated by $as_me.
  42606. +# Run this file to recreate the current configuration.
  42607. +# Compiler output produced by configure, useful for debugging
  42608. +# configure, is in config.log if it exists.
  42609. -echo "$as_me:$LINENO: checking size of long" >&5
  42610. -echo $ECHO_N "checking size of long... $ECHO_C" >&6
  42611. -if test "${ac_cv_sizeof_long+set}" = set; then
  42612. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42613. -else
  42614. - if test "$ac_cv_type_long" = yes; then
  42615. - # The cast to unsigned long works around a bug in the HP C Compiler
  42616. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  42617. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  42618. - # This bug is HP SR number 8606223364.
  42619. - if test "$cross_compiling" = yes; then
  42620. - # Depending upon the size, compute the lo and hi bounds.
  42621. -cat >conftest.$ac_ext <<_ACEOF
  42622. -/* confdefs.h. */
  42623. -_ACEOF
  42624. -cat confdefs.h >>conftest.$ac_ext
  42625. -cat >>conftest.$ac_ext <<_ACEOF
  42626. -/* end confdefs.h. */
  42627. -$ac_includes_default
  42628. -int
  42629. -main ()
  42630. -{
  42631. -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  42632. -test_array [0] = 0
  42633. +debug=false
  42634. +ac_cs_recheck=false
  42635. +ac_cs_silent=false
  42636. - ;
  42637. - return 0;
  42638. -}
  42639. -_ACEOF
  42640. -rm -f conftest.$ac_objext
  42641. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42642. - (eval $ac_compile) 2>conftest.er1
  42643. - ac_status=$?
  42644. - grep -v '^ *+' conftest.er1 >conftest.err
  42645. - rm -f conftest.er1
  42646. - cat conftest.err >&5
  42647. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42648. - (exit $ac_status); } &&
  42649. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42650. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42651. - (eval $ac_try) 2>&5
  42652. - ac_status=$?
  42653. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42654. - (exit $ac_status); }; } &&
  42655. - { ac_try='test -s conftest.$ac_objext'
  42656. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42657. - (eval $ac_try) 2>&5
  42658. - ac_status=$?
  42659. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42660. - (exit $ac_status); }; }; then
  42661. - ac_lo=0 ac_mid=0
  42662. - while :; do
  42663. - cat >conftest.$ac_ext <<_ACEOF
  42664. -/* confdefs.h. */
  42665. -_ACEOF
  42666. -cat confdefs.h >>conftest.$ac_ext
  42667. -cat >>conftest.$ac_ext <<_ACEOF
  42668. -/* end confdefs.h. */
  42669. -$ac_includes_default
  42670. -int
  42671. -main ()
  42672. -{
  42673. -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  42674. -test_array [0] = 0
  42675. +SHELL=\${CONFIG_SHELL-$SHELL}
  42676. +export SHELL
  42677. +_ASEOF
  42678. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  42679. +## -------------------- ##
  42680. +## M4sh Initialization. ##
  42681. +## -------------------- ##
  42682. - ;
  42683. - return 0;
  42684. -}
  42685. -_ACEOF
  42686. -rm -f conftest.$ac_objext
  42687. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42688. - (eval $ac_compile) 2>conftest.er1
  42689. - ac_status=$?
  42690. - grep -v '^ *+' conftest.er1 >conftest.err
  42691. - rm -f conftest.er1
  42692. - cat conftest.err >&5
  42693. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42694. - (exit $ac_status); } &&
  42695. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42696. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42697. - (eval $ac_try) 2>&5
  42698. - ac_status=$?
  42699. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42700. - (exit $ac_status); }; } &&
  42701. - { ac_try='test -s conftest.$ac_objext'
  42702. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42703. - (eval $ac_try) 2>&5
  42704. - ac_status=$?
  42705. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42706. - (exit $ac_status); }; }; then
  42707. - ac_hi=$ac_mid; break
  42708. +# Be more Bourne compatible
  42709. +DUALCASE=1; export DUALCASE # for MKS sh
  42710. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  42711. + emulate sh
  42712. + NULLCMD=:
  42713. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  42714. + # is contrary to our usage. Disable this feature.
  42715. + alias -g '${1+"$@"}'='"$@"'
  42716. + setopt NO_GLOB_SUBST
  42717. else
  42718. - echo "$as_me: failed program was:" >&5
  42719. -sed 's/^/| /' conftest.$ac_ext >&5
  42720. -
  42721. -ac_lo=`expr $ac_mid + 1`
  42722. - if test $ac_lo -le $ac_mid; then
  42723. - ac_lo= ac_hi=
  42724. - break
  42725. - fi
  42726. - ac_mid=`expr 2 '*' $ac_mid + 1`
  42727. + case `(set -o) 2>/dev/null` in #(
  42728. + *posix*) :
  42729. + set -o posix ;; #(
  42730. + *) :
  42731. + ;;
  42732. +esac
  42733. fi
  42734. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42735. - done
  42736. -else
  42737. - echo "$as_me: failed program was:" >&5
  42738. -sed 's/^/| /' conftest.$ac_ext >&5
  42739. -
  42740. -cat >conftest.$ac_ext <<_ACEOF
  42741. -/* confdefs.h. */
  42742. -_ACEOF
  42743. -cat confdefs.h >>conftest.$ac_ext
  42744. -cat >>conftest.$ac_ext <<_ACEOF
  42745. -/* end confdefs.h. */
  42746. -$ac_includes_default
  42747. -int
  42748. -main ()
  42749. -{
  42750. -static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  42751. -test_array [0] = 0
  42752. -
  42753. - ;
  42754. - return 0;
  42755. -}
  42756. -_ACEOF
  42757. -rm -f conftest.$ac_objext
  42758. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42759. - (eval $ac_compile) 2>conftest.er1
  42760. - ac_status=$?
  42761. - grep -v '^ *+' conftest.er1 >conftest.err
  42762. - rm -f conftest.er1
  42763. - cat conftest.err >&5
  42764. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42765. - (exit $ac_status); } &&
  42766. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42767. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42768. - (eval $ac_try) 2>&5
  42769. - ac_status=$?
  42770. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42771. - (exit $ac_status); }; } &&
  42772. - { ac_try='test -s conftest.$ac_objext'
  42773. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42774. - (eval $ac_try) 2>&5
  42775. - ac_status=$?
  42776. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42777. - (exit $ac_status); }; }; then
  42778. - ac_hi=-1 ac_mid=-1
  42779. - while :; do
  42780. - cat >conftest.$ac_ext <<_ACEOF
  42781. -/* confdefs.h. */
  42782. -_ACEOF
  42783. -cat confdefs.h >>conftest.$ac_ext
  42784. -cat >>conftest.$ac_ext <<_ACEOF
  42785. -/* end confdefs.h. */
  42786. -$ac_includes_default
  42787. -int
  42788. -main ()
  42789. -{
  42790. -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  42791. -test_array [0] = 0
  42792. - ;
  42793. - return 0;
  42794. -}
  42795. -_ACEOF
  42796. -rm -f conftest.$ac_objext
  42797. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42798. - (eval $ac_compile) 2>conftest.er1
  42799. - ac_status=$?
  42800. - grep -v '^ *+' conftest.er1 >conftest.err
  42801. - rm -f conftest.er1
  42802. - cat conftest.err >&5
  42803. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42804. - (exit $ac_status); } &&
  42805. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42806. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42807. - (eval $ac_try) 2>&5
  42808. - ac_status=$?
  42809. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42810. - (exit $ac_status); }; } &&
  42811. - { ac_try='test -s conftest.$ac_objext'
  42812. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42813. - (eval $ac_try) 2>&5
  42814. - ac_status=$?
  42815. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42816. - (exit $ac_status); }; }; then
  42817. - ac_lo=$ac_mid; break
  42818. -else
  42819. - echo "$as_me: failed program was:" >&5
  42820. -sed 's/^/| /' conftest.$ac_ext >&5
  42821. -ac_hi=`expr '(' $ac_mid ')' - 1`
  42822. - if test $ac_mid -le $ac_hi; then
  42823. - ac_lo= ac_hi=
  42824. - break
  42825. - fi
  42826. - ac_mid=`expr 2 '*' $ac_mid`
  42827. +as_nl='
  42828. +'
  42829. +export as_nl
  42830. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  42831. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  42832. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  42833. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42834. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  42835. +# but without wasting forks for bash or zsh.
  42836. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  42837. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42838. + as_echo='print -r --'
  42839. + as_echo_n='print -rn --'
  42840. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  42841. + as_echo='printf %s\n'
  42842. + as_echo_n='printf %s'
  42843. +else
  42844. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  42845. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  42846. + as_echo_n='/usr/ucb/echo -n'
  42847. + else
  42848. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  42849. + as_echo_n_body='eval
  42850. + arg=$1;
  42851. + case $arg in #(
  42852. + *"$as_nl"*)
  42853. + expr "X$arg" : "X\\(.*\\)$as_nl";
  42854. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  42855. + esac;
  42856. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  42857. + '
  42858. + export as_echo_n_body
  42859. + as_echo_n='sh -c $as_echo_n_body as_echo'
  42860. + fi
  42861. + export as_echo_body
  42862. + as_echo='sh -c $as_echo_body as_echo'
  42863. fi
  42864. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42865. - done
  42866. -else
  42867. - echo "$as_me: failed program was:" >&5
  42868. -sed 's/^/| /' conftest.$ac_ext >&5
  42869. -ac_lo= ac_hi=
  42870. -fi
  42871. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42872. +# The user is always right.
  42873. +if test "${PATH_SEPARATOR+set}" != set; then
  42874. + PATH_SEPARATOR=:
  42875. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  42876. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  42877. + PATH_SEPARATOR=';'
  42878. + }
  42879. fi
  42880. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42881. -# Binary search between lo and hi bounds.
  42882. -while test "x$ac_lo" != "x$ac_hi"; do
  42883. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  42884. - cat >conftest.$ac_ext <<_ACEOF
  42885. -/* confdefs.h. */
  42886. -_ACEOF
  42887. -cat confdefs.h >>conftest.$ac_ext
  42888. -cat >>conftest.$ac_ext <<_ACEOF
  42889. -/* end confdefs.h. */
  42890. -$ac_includes_default
  42891. -int
  42892. -main ()
  42893. -{
  42894. -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  42895. -test_array [0] = 0
  42896. - ;
  42897. - return 0;
  42898. -}
  42899. -_ACEOF
  42900. -rm -f conftest.$ac_objext
  42901. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42902. - (eval $ac_compile) 2>conftest.er1
  42903. - ac_status=$?
  42904. - grep -v '^ *+' conftest.er1 >conftest.err
  42905. - rm -f conftest.er1
  42906. - cat conftest.err >&5
  42907. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42908. - (exit $ac_status); } &&
  42909. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42910. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42911. - (eval $ac_try) 2>&5
  42912. - ac_status=$?
  42913. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42914. - (exit $ac_status); }; } &&
  42915. - { ac_try='test -s conftest.$ac_objext'
  42916. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42917. - (eval $ac_try) 2>&5
  42918. - ac_status=$?
  42919. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42920. - (exit $ac_status); }; }; then
  42921. - ac_hi=$ac_mid
  42922. -else
  42923. - echo "$as_me: failed program was:" >&5
  42924. -sed 's/^/| /' conftest.$ac_ext >&5
  42925. -ac_lo=`expr '(' $ac_mid ')' + 1`
  42926. -fi
  42927. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42928. -done
  42929. -case $ac_lo in
  42930. -?*) ac_cv_sizeof_long=$ac_lo;;
  42931. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  42932. -See \`config.log' for more details." >&5
  42933. -echo "$as_me: error: cannot compute sizeof (long), 77
  42934. -See \`config.log' for more details." >&2;}
  42935. - { (exit 1); exit 1; }; } ;;
  42936. +# IFS
  42937. +# We need space, tab and new line, in precisely that order. Quoting is
  42938. +# there to prevent editors from complaining about space-tab.
  42939. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  42940. +# splitting by setting IFS to empty value.)
  42941. +IFS=" "" $as_nl"
  42942. +
  42943. +# Find who we are. Look in the path if we contain no directory separator.
  42944. +case $0 in #((
  42945. + *[\\/]* ) as_myself=$0 ;;
  42946. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  42947. +for as_dir in $PATH
  42948. +do
  42949. + IFS=$as_save_IFS
  42950. + test -z "$as_dir" && as_dir=.
  42951. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  42952. + done
  42953. +IFS=$as_save_IFS
  42954. +
  42955. + ;;
  42956. esac
  42957. -else
  42958. - if test "$cross_compiling" = yes; then
  42959. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  42960. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  42961. - { (exit 1); exit 1; }; }
  42962. -else
  42963. - cat >conftest.$ac_ext <<_ACEOF
  42964. -/* confdefs.h. */
  42965. -_ACEOF
  42966. -cat confdefs.h >>conftest.$ac_ext
  42967. -cat >>conftest.$ac_ext <<_ACEOF
  42968. -/* end confdefs.h. */
  42969. -$ac_includes_default
  42970. -long longval () { return (long) (sizeof (long)); }
  42971. -unsigned long ulongval () { return (long) (sizeof (long)); }
  42972. -#include <stdio.h>
  42973. -#include <stdlib.h>
  42974. -int
  42975. -main ()
  42976. -{
  42977. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  42978. +# in which case we are not to be found in the path.
  42979. +if test "x$as_myself" = x; then
  42980. + as_myself=$0
  42981. +fi
  42982. +if test ! -f "$as_myself"; then
  42983. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  42984. + exit 1
  42985. +fi
  42986. +
  42987. +# Unset variables that we do not need and which cause bugs (e.g. in
  42988. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  42989. +# suppresses any "Segmentation fault" message there. '((' could
  42990. +# trigger a bug in pdksh 5.2.14.
  42991. +for as_var in BASH_ENV ENV MAIL MAILPATH
  42992. +do eval test x\${$as_var+set} = xset \
  42993. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  42994. +done
  42995. +PS1='$ '
  42996. +PS2='> '
  42997. +PS4='+ '
  42998. - FILE *f = fopen ("conftest.val", "w");
  42999. - if (! f)
  43000. - exit (1);
  43001. - if (((long) (sizeof (long))) < 0)
  43002. - {
  43003. - long i = longval ();
  43004. - if (i != ((long) (sizeof (long))))
  43005. - exit (1);
  43006. - fprintf (f, "%ld\n", i);
  43007. - }
  43008. - else
  43009. - {
  43010. - unsigned long i = ulongval ();
  43011. - if (i != ((long) (sizeof (long))))
  43012. - exit (1);
  43013. - fprintf (f, "%lu\n", i);
  43014. - }
  43015. - exit (ferror (f) || fclose (f) != 0);
  43016. +# NLS nuisances.
  43017. +LC_ALL=C
  43018. +export LC_ALL
  43019. +LANGUAGE=C
  43020. +export LANGUAGE
  43021. - ;
  43022. - return 0;
  43023. -}
  43024. -_ACEOF
  43025. -rm -f conftest$ac_exeext
  43026. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43027. - (eval $ac_link) 2>&5
  43028. - ac_status=$?
  43029. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43030. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  43031. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43032. - (eval $ac_try) 2>&5
  43033. - ac_status=$?
  43034. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43035. - (exit $ac_status); }; }; then
  43036. - ac_cv_sizeof_long=`cat conftest.val`
  43037. +# CDPATH.
  43038. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  43039. +
  43040. +
  43041. +# as_fn_error ERROR [LINENO LOG_FD]
  43042. +# ---------------------------------
  43043. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  43044. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  43045. +# script with status $?, using 1 if that was 0.
  43046. +as_fn_error ()
  43047. +{
  43048. + as_status=$?; test $as_status -eq 0 && as_status=1
  43049. + if test "$3"; then
  43050. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  43051. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  43052. + fi
  43053. + $as_echo "$as_me: error: $1" >&2
  43054. + as_fn_exit $as_status
  43055. +} # as_fn_error
  43056. +
  43057. +
  43058. +# as_fn_set_status STATUS
  43059. +# -----------------------
  43060. +# Set $? to STATUS, without forking.
  43061. +as_fn_set_status ()
  43062. +{
  43063. + return $1
  43064. +} # as_fn_set_status
  43065. +
  43066. +# as_fn_exit STATUS
  43067. +# -----------------
  43068. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  43069. +as_fn_exit ()
  43070. +{
  43071. + set +e
  43072. + as_fn_set_status $1
  43073. + exit $1
  43074. +} # as_fn_exit
  43075. +
  43076. +# as_fn_unset VAR
  43077. +# ---------------
  43078. +# Portably unset VAR.
  43079. +as_fn_unset ()
  43080. +{
  43081. + { eval $1=; unset $1;}
  43082. +}
  43083. +as_unset=as_fn_unset
  43084. +# as_fn_append VAR VALUE
  43085. +# ----------------------
  43086. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  43087. +# advantage of any shell optimizations that allow amortized linear growth over
  43088. +# repeated appends, instead of the typical quadratic growth present in naive
  43089. +# implementations.
  43090. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  43091. + eval 'as_fn_append ()
  43092. + {
  43093. + eval $1+=\$2
  43094. + }'
  43095. +else
  43096. + as_fn_append ()
  43097. + {
  43098. + eval $1=\$$1\$2
  43099. + }
  43100. +fi # as_fn_append
  43101. +
  43102. +# as_fn_arith ARG...
  43103. +# ------------------
  43104. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  43105. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  43106. +# must be portable across $(()) and expr.
  43107. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  43108. + eval 'as_fn_arith ()
  43109. + {
  43110. + as_val=$(( $* ))
  43111. + }'
  43112. else
  43113. - echo "$as_me: program exited with status $ac_status" >&5
  43114. -echo "$as_me: failed program was:" >&5
  43115. -sed 's/^/| /' conftest.$ac_ext >&5
  43116. + as_fn_arith ()
  43117. + {
  43118. + as_val=`expr "$@" || test $? -eq 1`
  43119. + }
  43120. +fi # as_fn_arith
  43121. -( exit $ac_status )
  43122. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  43123. -See \`config.log' for more details." >&5
  43124. -echo "$as_me: error: cannot compute sizeof (long), 77
  43125. -See \`config.log' for more details." >&2;}
  43126. - { (exit 1); exit 1; }; }
  43127. -fi
  43128. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  43129. -fi
  43130. +
  43131. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  43132. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  43133. + as_expr=expr
  43134. +else
  43135. + as_expr=false
  43136. fi
  43137. -rm -f conftest.val
  43138. +
  43139. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  43140. + as_basename=basename
  43141. else
  43142. - ac_cv_sizeof_long=0
  43143. + as_basename=false
  43144. fi
  43145. +
  43146. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  43147. + as_dirname=dirname
  43148. +else
  43149. + as_dirname=false
  43150. fi
  43151. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  43152. -echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  43153. -cat >>confdefs.h <<_ACEOF
  43154. -#define SIZEOF_LONG $ac_cv_sizeof_long
  43155. -_ACEOF
  43156. +as_me=`$as_basename -- "$0" ||
  43157. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  43158. + X"$0" : 'X\(//\)$' \| \
  43159. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  43160. +$as_echo X/"$0" |
  43161. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  43162. + s//\1/
  43163. + q
  43164. + }
  43165. + /^X\/\(\/\/\)$/{
  43166. + s//\1/
  43167. + q
  43168. + }
  43169. + /^X\/\(\/\).*/{
  43170. + s//\1/
  43171. + q
  43172. + }
  43173. + s/.*/./; q'`
  43174. -echo "$as_me:$LINENO: checking for long long" >&5
  43175. -echo $ECHO_N "checking for long long... $ECHO_C" >&6
  43176. -if test "${ac_cv_type_long_long+set}" = set; then
  43177. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43178. -else
  43179. - cat >conftest.$ac_ext <<_ACEOF
  43180. -/* confdefs.h. */
  43181. -_ACEOF
  43182. -cat confdefs.h >>conftest.$ac_ext
  43183. -cat >>conftest.$ac_ext <<_ACEOF
  43184. -/* end confdefs.h. */
  43185. -$ac_includes_default
  43186. -int
  43187. -main ()
  43188. -{
  43189. -if ((long long *) 0)
  43190. - return 0;
  43191. -if (sizeof (long long))
  43192. - return 0;
  43193. - ;
  43194. - return 0;
  43195. -}
  43196. -_ACEOF
  43197. -rm -f conftest.$ac_objext
  43198. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43199. - (eval $ac_compile) 2>conftest.er1
  43200. - ac_status=$?
  43201. - grep -v '^ *+' conftest.er1 >conftest.err
  43202. - rm -f conftest.er1
  43203. - cat conftest.err >&5
  43204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43205. - (exit $ac_status); } &&
  43206. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43207. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43208. - (eval $ac_try) 2>&5
  43209. - ac_status=$?
  43210. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43211. - (exit $ac_status); }; } &&
  43212. - { ac_try='test -s conftest.$ac_objext'
  43213. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43214. - (eval $ac_try) 2>&5
  43215. - ac_status=$?
  43216. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43217. - (exit $ac_status); }; }; then
  43218. - ac_cv_type_long_long=yes
  43219. -else
  43220. - echo "$as_me: failed program was:" >&5
  43221. -sed 's/^/| /' conftest.$ac_ext >&5
  43222. +# Avoid depending upon Character Ranges.
  43223. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43224. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43225. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  43226. +as_cr_digits='0123456789'
  43227. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  43228. +
  43229. +ECHO_C= ECHO_N= ECHO_T=
  43230. +case `echo -n x` in #(((((
  43231. +-n*)
  43232. + case `echo 'xy\c'` in
  43233. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  43234. + xy) ECHO_C='\c';;
  43235. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  43236. + ECHO_T=' ';;
  43237. + esac;;
  43238. +*)
  43239. + ECHO_N='-n';;
  43240. +esac
  43241. -ac_cv_type_long_long=no
  43242. +rm -f conf$$ conf$$.exe conf$$.file
  43243. +if test -d conf$$.dir; then
  43244. + rm -f conf$$.dir/conf$$.file
  43245. +else
  43246. + rm -f conf$$.dir
  43247. + mkdir conf$$.dir 2>/dev/null
  43248. fi
  43249. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43250. +if (echo >conf$$.file) 2>/dev/null; then
  43251. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  43252. + as_ln_s='ln -s'
  43253. + # ... but there are two gotchas:
  43254. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  43255. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  43256. + # In both cases, we have to default to `cp -p'.
  43257. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  43258. + as_ln_s='cp -p'
  43259. + elif ln conf$$.file conf$$ 2>/dev/null; then
  43260. + as_ln_s=ln
  43261. + else
  43262. + as_ln_s='cp -p'
  43263. + fi
  43264. +else
  43265. + as_ln_s='cp -p'
  43266. fi
  43267. -echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  43268. -echo "${ECHO_T}$ac_cv_type_long_long" >&6
  43269. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  43270. +rmdir conf$$.dir 2>/dev/null
  43271. -echo "$as_me:$LINENO: checking size of long long" >&5
  43272. -echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  43273. -if test "${ac_cv_sizeof_long_long+set}" = set; then
  43274. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43275. -else
  43276. - if test "$ac_cv_type_long_long" = yes; then
  43277. - # The cast to unsigned long works around a bug in the HP C Compiler
  43278. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  43279. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  43280. - # This bug is HP SR number 8606223364.
  43281. - if test "$cross_compiling" = yes; then
  43282. - # Depending upon the size, compute the lo and hi bounds.
  43283. -cat >conftest.$ac_ext <<_ACEOF
  43284. -/* confdefs.h. */
  43285. -_ACEOF
  43286. -cat confdefs.h >>conftest.$ac_ext
  43287. -cat >>conftest.$ac_ext <<_ACEOF
  43288. -/* end confdefs.h. */
  43289. -$ac_includes_default
  43290. -int
  43291. -main ()
  43292. -{
  43293. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  43294. -test_array [0] = 0
  43295. - ;
  43296. - return 0;
  43297. -}
  43298. -_ACEOF
  43299. -rm -f conftest.$ac_objext
  43300. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43301. - (eval $ac_compile) 2>conftest.er1
  43302. - ac_status=$?
  43303. - grep -v '^ *+' conftest.er1 >conftest.err
  43304. - rm -f conftest.er1
  43305. - cat conftest.err >&5
  43306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43307. - (exit $ac_status); } &&
  43308. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43309. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43310. - (eval $ac_try) 2>&5
  43311. - ac_status=$?
  43312. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43313. - (exit $ac_status); }; } &&
  43314. - { ac_try='test -s conftest.$ac_objext'
  43315. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43316. - (eval $ac_try) 2>&5
  43317. - ac_status=$?
  43318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43319. - (exit $ac_status); }; }; then
  43320. - ac_lo=0 ac_mid=0
  43321. - while :; do
  43322. - cat >conftest.$ac_ext <<_ACEOF
  43323. -/* confdefs.h. */
  43324. -_ACEOF
  43325. -cat confdefs.h >>conftest.$ac_ext
  43326. -cat >>conftest.$ac_ext <<_ACEOF
  43327. -/* end confdefs.h. */
  43328. -$ac_includes_default
  43329. -int
  43330. -main ()
  43331. +# as_fn_mkdir_p
  43332. +# -------------
  43333. +# Create "$as_dir" as a directory, including parents if necessary.
  43334. +as_fn_mkdir_p ()
  43335. {
  43336. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  43337. -test_array [0] = 0
  43338. - ;
  43339. - return 0;
  43340. -}
  43341. -_ACEOF
  43342. -rm -f conftest.$ac_objext
  43343. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43344. - (eval $ac_compile) 2>conftest.er1
  43345. - ac_status=$?
  43346. - grep -v '^ *+' conftest.er1 >conftest.err
  43347. - rm -f conftest.er1
  43348. - cat conftest.err >&5
  43349. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43350. - (exit $ac_status); } &&
  43351. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43352. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43353. - (eval $ac_try) 2>&5
  43354. - ac_status=$?
  43355. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43356. - (exit $ac_status); }; } &&
  43357. - { ac_try='test -s conftest.$ac_objext'
  43358. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43359. - (eval $ac_try) 2>&5
  43360. - ac_status=$?
  43361. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43362. - (exit $ac_status); }; }; then
  43363. - ac_hi=$ac_mid; break
  43364. -else
  43365. - echo "$as_me: failed program was:" >&5
  43366. -sed 's/^/| /' conftest.$ac_ext >&5
  43367. + case $as_dir in #(
  43368. + -*) as_dir=./$as_dir;;
  43369. + esac
  43370. + test -d "$as_dir" || eval $as_mkdir_p || {
  43371. + as_dirs=
  43372. + while :; do
  43373. + case $as_dir in #(
  43374. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  43375. + *) as_qdir=$as_dir;;
  43376. + esac
  43377. + as_dirs="'$as_qdir' $as_dirs"
  43378. + as_dir=`$as_dirname -- "$as_dir" ||
  43379. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43380. + X"$as_dir" : 'X\(//\)[^/]' \| \
  43381. + X"$as_dir" : 'X\(//\)$' \| \
  43382. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  43383. +$as_echo X"$as_dir" |
  43384. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43385. + s//\1/
  43386. + q
  43387. + }
  43388. + /^X\(\/\/\)[^/].*/{
  43389. + s//\1/
  43390. + q
  43391. + }
  43392. + /^X\(\/\/\)$/{
  43393. + s//\1/
  43394. + q
  43395. + }
  43396. + /^X\(\/\).*/{
  43397. + s//\1/
  43398. + q
  43399. + }
  43400. + s/.*/./; q'`
  43401. + test -d "$as_dir" && break
  43402. + done
  43403. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  43404. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  43405. +
  43406. -ac_lo=`expr $ac_mid + 1`
  43407. - if test $ac_lo -le $ac_mid; then
  43408. - ac_lo= ac_hi=
  43409. - break
  43410. - fi
  43411. - ac_mid=`expr 2 '*' $ac_mid + 1`
  43412. +} # as_fn_mkdir_p
  43413. +if mkdir -p . 2>/dev/null; then
  43414. + as_mkdir_p='mkdir -p "$as_dir"'
  43415. +else
  43416. + test -d ./-p && rmdir ./-p
  43417. + as_mkdir_p=false
  43418. fi
  43419. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43420. - done
  43421. +
  43422. +if test -x / >/dev/null 2>&1; then
  43423. + as_test_x='test -x'
  43424. else
  43425. - echo "$as_me: failed program was:" >&5
  43426. -sed 's/^/| /' conftest.$ac_ext >&5
  43427. + if ls -dL / >/dev/null 2>&1; then
  43428. + as_ls_L_option=L
  43429. + else
  43430. + as_ls_L_option=
  43431. + fi
  43432. + as_test_x='
  43433. + eval sh -c '\''
  43434. + if test -d "$1"; then
  43435. + test -d "$1/.";
  43436. + else
  43437. + case $1 in #(
  43438. + -*)set "./$1";;
  43439. + esac;
  43440. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  43441. + ???[sx]*):;;*)false;;esac;fi
  43442. + '\'' sh
  43443. + '
  43444. +fi
  43445. +as_executable_p=$as_test_x
  43446. +
  43447. +# Sed expression to map a string onto a valid CPP name.
  43448. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43449. +
  43450. +# Sed expression to map a string onto a valid variable name.
  43451. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43452. +
  43453. +
  43454. +exec 6>&1
  43455. +## ----------------------------------- ##
  43456. +## Main body of $CONFIG_STATUS script. ##
  43457. +## ----------------------------------- ##
  43458. +_ASEOF
  43459. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  43460. +
  43461. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43462. +# Save the log message, to keep $0 and so on meaningful, and to
  43463. +# report actual input values of CONFIG_FILES etc. instead of their
  43464. +# values after options handling.
  43465. +ac_log="
  43466. +This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
  43467. +generated by GNU Autoconf 2.65. Invocation command line was
  43468. +
  43469. + CONFIG_FILES = $CONFIG_FILES
  43470. + CONFIG_HEADERS = $CONFIG_HEADERS
  43471. + CONFIG_LINKS = $CONFIG_LINKS
  43472. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  43473. + $ $0 $@
  43474. +
  43475. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  43476. +"
  43477. -cat >conftest.$ac_ext <<_ACEOF
  43478. -/* confdefs.h. */
  43479. _ACEOF
  43480. -cat confdefs.h >>conftest.$ac_ext
  43481. -cat >>conftest.$ac_ext <<_ACEOF
  43482. -/* end confdefs.h. */
  43483. -$ac_includes_default
  43484. -int
  43485. -main ()
  43486. -{
  43487. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  43488. -test_array [0] = 0
  43489. - ;
  43490. - return 0;
  43491. -}
  43492. +case $ac_config_files in *"
  43493. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  43494. +esac
  43495. +
  43496. +case $ac_config_headers in *"
  43497. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  43498. +esac
  43499. +
  43500. +
  43501. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43502. +# Files that config.status was made for.
  43503. +config_files="$ac_config_files"
  43504. +config_headers="$ac_config_headers"
  43505. +config_commands="$ac_config_commands"
  43506. +
  43507. _ACEOF
  43508. -rm -f conftest.$ac_objext
  43509. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43510. - (eval $ac_compile) 2>conftest.er1
  43511. - ac_status=$?
  43512. - grep -v '^ *+' conftest.er1 >conftest.err
  43513. - rm -f conftest.er1
  43514. - cat conftest.err >&5
  43515. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43516. - (exit $ac_status); } &&
  43517. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43518. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43519. - (eval $ac_try) 2>&5
  43520. - ac_status=$?
  43521. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43522. - (exit $ac_status); }; } &&
  43523. - { ac_try='test -s conftest.$ac_objext'
  43524. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43525. - (eval $ac_try) 2>&5
  43526. - ac_status=$?
  43527. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43528. - (exit $ac_status); }; }; then
  43529. - ac_hi=-1 ac_mid=-1
  43530. - while :; do
  43531. - cat >conftest.$ac_ext <<_ACEOF
  43532. -/* confdefs.h. */
  43533. +
  43534. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43535. +ac_cs_usage="\
  43536. +\`$as_me' instantiates files and other configuration actions
  43537. +from templates according to the current configuration. Unless the files
  43538. +and actions are specified as TAGs, all are instantiated by default.
  43539. +
  43540. +Usage: $0 [OPTION]... [TAG]...
  43541. +
  43542. + -h, --help print this help, then exit
  43543. + -V, --version print version number and configuration settings, then exit
  43544. + --config print configuration, then exit
  43545. + -q, --quiet, --silent
  43546. + do not print progress messages
  43547. + -d, --debug don't remove temporary files
  43548. + --recheck update $as_me by reconfiguring in the same conditions
  43549. + --file=FILE[:TEMPLATE]
  43550. + instantiate the configuration file FILE
  43551. + --header=FILE[:TEMPLATE]
  43552. + instantiate the configuration header FILE
  43553. +
  43554. +Configuration files:
  43555. +$config_files
  43556. +
  43557. +Configuration headers:
  43558. +$config_headers
  43559. +
  43560. +Configuration commands:
  43561. +$config_commands
  43562. +
  43563. +Report bugs to <support@underbit.com>."
  43564. +
  43565. _ACEOF
  43566. -cat confdefs.h >>conftest.$ac_ext
  43567. -cat >>conftest.$ac_ext <<_ACEOF
  43568. -/* end confdefs.h. */
  43569. -$ac_includes_default
  43570. -int
  43571. -main ()
  43572. -{
  43573. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  43574. -test_array [0] = 0
  43575. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43576. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  43577. +ac_cs_version="\\
  43578. +MPEG Audio Decoder config.status 0.15.1b
  43579. +configured by $0, generated by GNU Autoconf 2.65,
  43580. + with options \\"\$ac_cs_config\\"
  43581. - ;
  43582. - return 0;
  43583. -}
  43584. +Copyright (C) 2009 Free Software Foundation, Inc.
  43585. +This config.status script is free software; the Free Software Foundation
  43586. +gives unlimited permission to copy, distribute and modify it."
  43587. +
  43588. +ac_pwd='$ac_pwd'
  43589. +srcdir='$srcdir'
  43590. +INSTALL='$INSTALL'
  43591. +MKDIR_P='$MKDIR_P'
  43592. +AWK='$AWK'
  43593. +test -n "\$AWK" || AWK=awk
  43594. _ACEOF
  43595. -rm -f conftest.$ac_objext
  43596. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43597. - (eval $ac_compile) 2>conftest.er1
  43598. - ac_status=$?
  43599. - grep -v '^ *+' conftest.er1 >conftest.err
  43600. - rm -f conftest.er1
  43601. - cat conftest.err >&5
  43602. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43603. - (exit $ac_status); } &&
  43604. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43605. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43606. - (eval $ac_try) 2>&5
  43607. - ac_status=$?
  43608. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43609. - (exit $ac_status); }; } &&
  43610. - { ac_try='test -s conftest.$ac_objext'
  43611. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43612. - (eval $ac_try) 2>&5
  43613. - ac_status=$?
  43614. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43615. - (exit $ac_status); }; }; then
  43616. - ac_lo=$ac_mid; break
  43617. -else
  43618. - echo "$as_me: failed program was:" >&5
  43619. -sed 's/^/| /' conftest.$ac_ext >&5
  43620. -ac_hi=`expr '(' $ac_mid ')' - 1`
  43621. - if test $ac_mid -le $ac_hi; then
  43622. - ac_lo= ac_hi=
  43623. - break
  43624. - fi
  43625. - ac_mid=`expr 2 '*' $ac_mid`
  43626. -fi
  43627. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43628. - done
  43629. -else
  43630. - echo "$as_me: failed program was:" >&5
  43631. -sed 's/^/| /' conftest.$ac_ext >&5
  43632. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43633. +# The default lists apply if the user does not specify any file.
  43634. +ac_need_defaults=:
  43635. +while test $# != 0
  43636. +do
  43637. + case $1 in
  43638. + --*=*)
  43639. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  43640. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  43641. + ac_shift=:
  43642. + ;;
  43643. + *)
  43644. + ac_option=$1
  43645. + ac_optarg=$2
  43646. + ac_shift=shift
  43647. + ;;
  43648. + esac
  43649. -ac_lo= ac_hi=
  43650. -fi
  43651. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43652. + case $ac_option in
  43653. + # Handling of the options.
  43654. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43655. + ac_cs_recheck=: ;;
  43656. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  43657. + $as_echo "$ac_cs_version"; exit ;;
  43658. + --config | --confi | --conf | --con | --co | --c )
  43659. + $as_echo "$ac_cs_config"; exit ;;
  43660. + --debug | --debu | --deb | --de | --d | -d )
  43661. + debug=: ;;
  43662. + --file | --fil | --fi | --f )
  43663. + $ac_shift
  43664. + case $ac_optarg in
  43665. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  43666. + esac
  43667. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  43668. + ac_need_defaults=false;;
  43669. + --header | --heade | --head | --hea )
  43670. + $ac_shift
  43671. + case $ac_optarg in
  43672. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  43673. + esac
  43674. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  43675. + ac_need_defaults=false;;
  43676. + --he | --h)
  43677. + # Conflict between --help and --header
  43678. + as_fn_error "ambiguous option: \`$1'
  43679. +Try \`$0 --help' for more information.";;
  43680. + --help | --hel | -h )
  43681. + $as_echo "$ac_cs_usage"; exit ;;
  43682. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43683. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43684. + ac_cs_silent=: ;;
  43685. +
  43686. + # This is an error.
  43687. + -*) as_fn_error "unrecognized option: \`$1'
  43688. +Try \`$0 --help' for more information." ;;
  43689. +
  43690. + *) as_fn_append ac_config_targets " $1"
  43691. + ac_need_defaults=false ;;
  43692. +
  43693. + esac
  43694. + shift
  43695. +done
  43696. +
  43697. +ac_configure_extra_args=
  43698. +
  43699. +if $ac_cs_silent; then
  43700. + exec 6>/dev/null
  43701. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  43702. fi
  43703. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43704. -# Binary search between lo and hi bounds.
  43705. -while test "x$ac_lo" != "x$ac_hi"; do
  43706. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  43707. - cat >conftest.$ac_ext <<_ACEOF
  43708. -/* confdefs.h. */
  43709. +
  43710. _ACEOF
  43711. -cat confdefs.h >>conftest.$ac_ext
  43712. -cat >>conftest.$ac_ext <<_ACEOF
  43713. -/* end confdefs.h. */
  43714. -$ac_includes_default
  43715. -int
  43716. -main ()
  43717. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43718. +if \$ac_cs_recheck; then
  43719. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43720. + shift
  43721. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  43722. + CONFIG_SHELL='$SHELL'
  43723. + export CONFIG_SHELL
  43724. + exec "\$@"
  43725. +fi
  43726. +
  43727. +_ACEOF
  43728. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43729. +exec 5>>config.log
  43730. {
  43731. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  43732. -test_array [0] = 0
  43733. + echo
  43734. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43735. +## Running $as_me. ##
  43736. +_ASBOX
  43737. + $as_echo "$ac_log"
  43738. +} >&5
  43739. - ;
  43740. - return 0;
  43741. -}
  43742. _ACEOF
  43743. -rm -f conftest.$ac_objext
  43744. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43745. - (eval $ac_compile) 2>conftest.er1
  43746. - ac_status=$?
  43747. - grep -v '^ *+' conftest.er1 >conftest.err
  43748. - rm -f conftest.er1
  43749. - cat conftest.err >&5
  43750. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43751. - (exit $ac_status); } &&
  43752. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  43753. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43754. - (eval $ac_try) 2>&5
  43755. - ac_status=$?
  43756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43757. - (exit $ac_status); }; } &&
  43758. - { ac_try='test -s conftest.$ac_objext'
  43759. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43760. - (eval $ac_try) 2>&5
  43761. - ac_status=$?
  43762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43763. - (exit $ac_status); }; }; then
  43764. - ac_hi=$ac_mid
  43765. -else
  43766. - echo "$as_me: failed program was:" >&5
  43767. -sed 's/^/| /' conftest.$ac_ext >&5
  43768. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43769. +#
  43770. +# INIT-COMMANDS
  43771. +#
  43772. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  43773. -ac_lo=`expr '(' $ac_mid ')' + 1`
  43774. -fi
  43775. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43776. +
  43777. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  43778. +# if CDPATH is set.
  43779. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  43780. +
  43781. +sed_quote_subst='$sed_quote_subst'
  43782. +double_quote_subst='$double_quote_subst'
  43783. +delay_variable_subst='$delay_variable_subst'
  43784. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  43785. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  43786. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  43787. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  43788. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  43789. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  43790. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  43791. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  43792. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  43793. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  43794. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  43795. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  43796. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  43797. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  43798. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  43799. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  43800. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  43801. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  43802. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  43803. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  43804. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  43805. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  43806. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  43807. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  43808. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  43809. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  43810. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  43811. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43812. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  43813. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  43814. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  43815. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  43816. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  43817. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  43818. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  43819. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43820. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43821. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43822. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  43823. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  43824. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  43825. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  43826. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  43827. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  43828. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  43829. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  43830. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  43831. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  43832. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  43833. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  43834. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  43835. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  43836. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  43837. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  43838. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  43839. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  43840. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  43841. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  43842. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  43843. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  43844. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  43845. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  43846. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43847. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43848. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  43849. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  43850. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43851. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43852. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  43853. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43854. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43855. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43856. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43857. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43858. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43859. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  43860. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  43861. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  43862. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43863. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  43864. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  43865. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  43866. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  43867. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  43868. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  43869. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  43870. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  43871. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  43872. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  43873. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  43874. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43875. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  43876. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  43877. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43878. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43879. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  43880. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  43881. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  43882. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  43883. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  43884. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  43885. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  43886. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43887. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43888. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43889. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43890. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43891. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  43892. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  43893. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  43894. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43895. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  43896. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  43897. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  43898. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  43899. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  43900. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  43901. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  43902. +
  43903. +LTCC='$LTCC'
  43904. +LTCFLAGS='$LTCFLAGS'
  43905. +compiler='$compiler_DEFAULT'
  43906. +
  43907. +# Quote evaled strings.
  43908. +for var in SED \
  43909. +GREP \
  43910. +EGREP \
  43911. +FGREP \
  43912. +LD \
  43913. +NM \
  43914. +LN_S \
  43915. +lt_SP2NL \
  43916. +lt_NL2SP \
  43917. +reload_flag \
  43918. +OBJDUMP \
  43919. +deplibs_check_method \
  43920. +file_magic_cmd \
  43921. +AR \
  43922. +AR_FLAGS \
  43923. +STRIP \
  43924. +RANLIB \
  43925. +CC \
  43926. +CFLAGS \
  43927. +compiler \
  43928. +lt_cv_sys_global_symbol_pipe \
  43929. +lt_cv_sys_global_symbol_to_cdecl \
  43930. +lt_cv_sys_global_symbol_to_c_name_address \
  43931. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  43932. +SHELL \
  43933. +ECHO \
  43934. +lt_prog_compiler_no_builtin_flag \
  43935. +lt_prog_compiler_wl \
  43936. +lt_prog_compiler_pic \
  43937. +lt_prog_compiler_static \
  43938. +lt_cv_prog_compiler_c_o \
  43939. +need_locks \
  43940. +DSYMUTIL \
  43941. +NMEDIT \
  43942. +LIPO \
  43943. +OTOOL \
  43944. +OTOOL64 \
  43945. +shrext_cmds \
  43946. +export_dynamic_flag_spec \
  43947. +whole_archive_flag_spec \
  43948. +compiler_needs_object \
  43949. +with_gnu_ld \
  43950. +allow_undefined_flag \
  43951. +no_undefined_flag \
  43952. +hardcode_libdir_flag_spec \
  43953. +hardcode_libdir_flag_spec_ld \
  43954. +hardcode_libdir_separator \
  43955. +fix_srcfile_path \
  43956. +exclude_expsyms \
  43957. +include_expsyms \
  43958. +file_list_spec \
  43959. +variables_saved_for_relink \
  43960. +libname_spec \
  43961. +library_names_spec \
  43962. +soname_spec \
  43963. +finish_eval \
  43964. +old_striplib \
  43965. +striplib; do
  43966. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  43967. + *[\\\\\\\`\\"\\\$]*)
  43968. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  43969. + ;;
  43970. + *)
  43971. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  43972. + ;;
  43973. + esac
  43974. done
  43975. -case $ac_lo in
  43976. -?*) ac_cv_sizeof_long_long=$ac_lo;;
  43977. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  43978. -See \`config.log' for more details." >&5
  43979. -echo "$as_me: error: cannot compute sizeof (long long), 77
  43980. -See \`config.log' for more details." >&2;}
  43981. - { (exit 1); exit 1; }; } ;;
  43982. -esac
  43983. -else
  43984. - if test "$cross_compiling" = yes; then
  43985. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  43986. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  43987. - { (exit 1); exit 1; }; }
  43988. -else
  43989. - cat >conftest.$ac_ext <<_ACEOF
  43990. -/* confdefs.h. */
  43991. -_ACEOF
  43992. -cat confdefs.h >>conftest.$ac_ext
  43993. -cat >>conftest.$ac_ext <<_ACEOF
  43994. -/* end confdefs.h. */
  43995. -$ac_includes_default
  43996. -long longval () { return (long) (sizeof (long long)); }
  43997. -unsigned long ulongval () { return (long) (sizeof (long long)); }
  43998. -#include <stdio.h>
  43999. -#include <stdlib.h>
  44000. -int
  44001. -main ()
  44002. -{
  44003. - FILE *f = fopen ("conftest.val", "w");
  44004. - if (! f)
  44005. - exit (1);
  44006. - if (((long) (sizeof (long long))) < 0)
  44007. - {
  44008. - long i = longval ();
  44009. - if (i != ((long) (sizeof (long long))))
  44010. - exit (1);
  44011. - fprintf (f, "%ld\n", i);
  44012. - }
  44013. - else
  44014. - {
  44015. - unsigned long i = ulongval ();
  44016. - if (i != ((long) (sizeof (long long))))
  44017. - exit (1);
  44018. - fprintf (f, "%lu\n", i);
  44019. - }
  44020. - exit (ferror (f) || fclose (f) != 0);
  44021. +# Double-quote double-evaled strings.
  44022. +for var in reload_cmds \
  44023. +old_postinstall_cmds \
  44024. +old_postuninstall_cmds \
  44025. +old_archive_cmds \
  44026. +extract_expsyms_cmds \
  44027. +old_archive_from_new_cmds \
  44028. +old_archive_from_expsyms_cmds \
  44029. +archive_cmds \
  44030. +archive_expsym_cmds \
  44031. +module_cmds \
  44032. +module_expsym_cmds \
  44033. +export_symbols_cmds \
  44034. +prelink_cmds \
  44035. +postinstall_cmds \
  44036. +postuninstall_cmds \
  44037. +finish_cmds \
  44038. +sys_lib_search_path_spec \
  44039. +sys_lib_dlsearch_path_spec; do
  44040. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  44041. + *[\\\\\\\`\\"\\\$]*)
  44042. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  44043. + ;;
  44044. + *)
  44045. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  44046. + ;;
  44047. + esac
  44048. +done
  44049. - ;
  44050. - return 0;
  44051. -}
  44052. -_ACEOF
  44053. -rm -f conftest$ac_exeext
  44054. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  44055. - (eval $ac_link) 2>&5
  44056. - ac_status=$?
  44057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44058. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  44059. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44060. - (eval $ac_try) 2>&5
  44061. - ac_status=$?
  44062. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44063. - (exit $ac_status); }; }; then
  44064. - ac_cv_sizeof_long_long=`cat conftest.val`
  44065. -else
  44066. - echo "$as_me: program exited with status $ac_status" >&5
  44067. -echo "$as_me: failed program was:" >&5
  44068. -sed 's/^/| /' conftest.$ac_ext >&5
  44069. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  44070. +case \$lt_ECHO in
  44071. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  44072. + ;;
  44073. +esac
  44074. -( exit $ac_status )
  44075. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  44076. -See \`config.log' for more details." >&5
  44077. -echo "$as_me: error: cannot compute sizeof (long long), 77
  44078. -See \`config.log' for more details." >&2;}
  44079. - { (exit 1); exit 1; }; }
  44080. -fi
  44081. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  44082. -fi
  44083. -fi
  44084. -rm -f conftest.val
  44085. -else
  44086. - ac_cv_sizeof_long_long=0
  44087. -fi
  44088. +ac_aux_dir='$ac_aux_dir'
  44089. +xsi_shell='$xsi_shell'
  44090. +lt_shell_append='$lt_shell_append'
  44091. +
  44092. +# See if we are running on zsh, and set the options which allow our
  44093. +# commands through without removal of \ escapes INIT.
  44094. +if test -n "\${ZSH_VERSION+set}" ; then
  44095. + setopt NO_GLOB_SUBST
  44096. fi
  44097. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  44098. -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  44099. -cat >>confdefs.h <<_ACEOF
  44100. -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  44101. -_ACEOF
  44102. + PACKAGE='$PACKAGE'
  44103. + VERSION='$VERSION'
  44104. + TIMESTAMP='$TIMESTAMP'
  44105. + RM='$RM'
  44106. + ofile='$ofile'
  44107. +_ACEOF
  44108. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44109. -for ac_func in waitpid fcntl pipe fork
  44110. +# Handling of arguments.
  44111. +for ac_config_target in $ac_config_targets
  44112. do
  44113. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44114. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  44115. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  44116. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  44117. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44118. -else
  44119. - cat >conftest.$ac_ext <<_ACEOF
  44120. -/* confdefs.h. */
  44121. -_ACEOF
  44122. -cat confdefs.h >>conftest.$ac_ext
  44123. -cat >>conftest.$ac_ext <<_ACEOF
  44124. -/* end confdefs.h. */
  44125. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  44126. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  44127. -#define $ac_func innocuous_$ac_func
  44128. + case $ac_config_target in
  44129. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  44130. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  44131. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  44132. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  44133. + "msvc++/Makefile") CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
  44134. + "libmad.list") CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
  44135. -/* System header to define __stub macros and hopefully few prototypes,
  44136. - which can conflict with char $ac_func (); below.
  44137. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  44138. - <limits.h> exists even on freestanding compilers. */
  44139. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  44140. + esac
  44141. +done
  44142. -#ifdef __STDC__
  44143. -# include <limits.h>
  44144. -#else
  44145. -# include <assert.h>
  44146. -#endif
  44147. -#undef $ac_func
  44148. +# If the user did not use the arguments to specify the items to instantiate,
  44149. +# then the envvar interface is used. Set only those that are not.
  44150. +# We use the long form for the default assignment because of an extremely
  44151. +# bizarre bug on SunOS 4.1.3.
  44152. +if $ac_need_defaults; then
  44153. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  44154. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  44155. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  44156. +fi
  44157. -/* Override any gcc2 internal prototype to avoid an error. */
  44158. -#ifdef __cplusplus
  44159. -extern "C"
  44160. +# Have a temporary directory for convenience. Make it in the build tree
  44161. +# simply because there is no reason against having it here, and in addition,
  44162. +# creating and moving files from /tmp can sometimes cause problems.
  44163. +# Hook for its removal unless debugging.
  44164. +# Note that there is a small window in which the directory will not be cleaned:
  44165. +# after its creation but before its name has been assigned to `$tmp'.
  44166. +$debug ||
  44167. {
  44168. -#endif
  44169. -/* We use char because int might match the return type of a gcc2
  44170. - builtin and then its argument prototype would still apply. */
  44171. -char $ac_func ();
  44172. -/* The GNU C library defines this for functions which it implements
  44173. - to always fail with ENOSYS. Some functions are actually named
  44174. - something starting with __ and the normal name is an alias. */
  44175. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  44176. -choke me
  44177. -#else
  44178. -char (*f) () = $ac_func;
  44179. -#endif
  44180. -#ifdef __cplusplus
  44181. + tmp=
  44182. + trap 'exit_status=$?
  44183. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  44184. +' 0
  44185. + trap 'as_fn_exit 1' 1 2 13 15
  44186. }
  44187. -#endif
  44188. +# Create a (secure) tmp directory for tmp files.
  44189. -int
  44190. -main ()
  44191. {
  44192. -return f != $ac_func;
  44193. - ;
  44194. - return 0;
  44195. -}
  44196. -_ACEOF
  44197. -rm -f conftest.$ac_objext conftest$ac_exeext
  44198. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  44199. - (eval $ac_link) 2>conftest.er1
  44200. - ac_status=$?
  44201. - grep -v '^ *+' conftest.er1 >conftest.err
  44202. - rm -f conftest.er1
  44203. - cat conftest.err >&5
  44204. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44205. - (exit $ac_status); } &&
  44206. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  44207. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44208. - (eval $ac_try) 2>&5
  44209. - ac_status=$?
  44210. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44211. - (exit $ac_status); }; } &&
  44212. - { ac_try='test -s conftest$ac_exeext'
  44213. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44214. - (eval $ac_try) 2>&5
  44215. - ac_status=$?
  44216. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44217. - (exit $ac_status); }; }; then
  44218. - eval "$as_ac_var=yes"
  44219. -else
  44220. - echo "$as_me: failed program was:" >&5
  44221. -sed 's/^/| /' conftest.$ac_ext >&5
  44222. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  44223. + test -n "$tmp" && test -d "$tmp"
  44224. +} ||
  44225. +{
  44226. + tmp=./conf$$-$RANDOM
  44227. + (umask 077 && mkdir "$tmp")
  44228. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  44229. +
  44230. +# Set up the scripts for CONFIG_FILES section.
  44231. +# No need to generate them if there are no CONFIG_FILES.
  44232. +# This happens for instance with `./config.status config.h'.
  44233. +if test -n "$CONFIG_FILES"; then
  44234. -eval "$as_ac_var=no"
  44235. +
  44236. +ac_cr=`echo X | tr X '\015'`
  44237. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  44238. +# But we know of no other shell where ac_cr would be empty at this
  44239. +# point, so we can use a bashism as a fallback.
  44240. +if test "x$ac_cr" = x; then
  44241. + eval ac_cr=\$\'\\r\'
  44242. fi
  44243. -rm -f conftest.err conftest.$ac_objext \
  44244. - conftest$ac_exeext conftest.$ac_ext
  44245. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  44246. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  44247. + ac_cs_awk_cr='\r'
  44248. +else
  44249. + ac_cs_awk_cr=$ac_cr
  44250. fi
  44251. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  44252. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  44253. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  44254. - cat >>confdefs.h <<_ACEOF
  44255. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44256. +
  44257. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  44258. _ACEOF
  44259. -fi
  44260. -done
  44261. +{
  44262. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  44263. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  44264. + echo "_ACEOF"
  44265. +} >conf$$subs.sh ||
  44266. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  44267. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  44268. +ac_delim='%!_!# '
  44269. +for ac_last_try in false false false false false :; do
  44270. + . ./conf$$subs.sh ||
  44271. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  44272. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  44273. + if test $ac_delim_n = $ac_delim_num; then
  44274. + break
  44275. + elif $ac_last_try; then
  44276. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  44277. + else
  44278. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44279. + fi
  44280. +done
  44281. +rm -f conf$$subs.sh
  44282. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44283. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  44284. +_ACEOF
  44285. +sed -n '
  44286. +h
  44287. +s/^/S["/; s/!.*/"]=/
  44288. +p
  44289. +g
  44290. +s/^[^!]*!//
  44291. +:repl
  44292. +t repl
  44293. +s/'"$ac_delim"'$//
  44294. +t delim
  44295. +:nl
  44296. +h
  44297. +s/\(.\{148\}\)..*/\1/
  44298. +t more1
  44299. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  44300. +p
  44301. +n
  44302. +b repl
  44303. +:more1
  44304. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  44305. +p
  44306. +g
  44307. +s/.\{148\}//
  44308. +t nl
  44309. +:delim
  44310. +h
  44311. +s/\(.\{148\}\)..*/\1/
  44312. +t more2
  44313. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  44314. +p
  44315. +b
  44316. +:more2
  44317. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  44318. +p
  44319. +g
  44320. +s/.\{148\}//
  44321. +t delim
  44322. +' <conf$$subs.awk | sed '
  44323. +/^[^""]/{
  44324. + N
  44325. + s/\n//
  44326. +}
  44327. +' >>$CONFIG_STATUS || ac_write_fail=1
  44328. +rm -f conf$$subs.awk
  44329. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44330. +_ACAWK
  44331. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  44332. + for (key in S) S_is_set[key] = 1
  44333. + FS = ""
  44334. +
  44335. +}
  44336. +{
  44337. + line = $ 0
  44338. + nfields = split(line, field, "@")
  44339. + substed = 0
  44340. + len = length(field[1])
  44341. + for (i = 2; i < nfields; i++) {
  44342. + key = field[i]
  44343. + keylen = length(key)
  44344. + if (S_is_set[key]) {
  44345. + value = S[key]
  44346. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  44347. + len += length(value) + length(field[++i])
  44348. + substed = 1
  44349. + } else
  44350. + len += 1 + keylen
  44351. + }
  44352. + print line
  44353. +}
  44354. +_ACAWK
  44355. +_ACEOF
  44356. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44357. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  44358. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  44359. +else
  44360. + cat
  44361. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  44362. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  44363. +_ACEOF
  44364. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  44365. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  44366. +# trailing colons and then remove the whole line if VPATH becomes empty
  44367. +# (actually we leave an empty line to preserve line numbers).
  44368. +if test "x$srcdir" = x.; then
  44369. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  44370. +s/:*\$(srcdir):*/:/
  44371. +s/:*\${srcdir}:*/:/
  44372. +s/:*@srcdir@:*/:/
  44373. +s/^\([^=]*=[ ]*\):*/\1/
  44374. +s/:*$//
  44375. +s/^[^=]*=[ ]*$//
  44376. +}'
  44377. +fi
  44378. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44379. +fi # test -n "$CONFIG_FILES"
  44380. -cat >confcache <<\_ACEOF
  44381. -# This file is a shell script that caches the results of configure
  44382. -# tests run on this system so they can be shared between configure
  44383. -# scripts and configure runs, see configure's option --config-cache.
  44384. -# It is not useful on other systems. If it contains results you don't
  44385. -# want to keep, you may remove or edit it.
  44386. -#
  44387. -# config.status only pays attention to the cache file if you give it
  44388. -# the --recheck option to rerun configure.
  44389. -#
  44390. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  44391. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  44392. -# following values.
  44393. +# Set up the scripts for CONFIG_HEADERS section.
  44394. +# No need to generate them if there are no CONFIG_HEADERS.
  44395. +# This happens for instance with `./config.status Makefile'.
  44396. +if test -n "$CONFIG_HEADERS"; then
  44397. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  44398. +BEGIN {
  44399. +_ACEOF
  44400. +
  44401. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  44402. +# here-document in config.status, that substitutes the proper values into
  44403. +# config.h.in to produce config.h.
  44404. +
  44405. +# Create a delimiter string that does not exist in confdefs.h, to ease
  44406. +# handling of long lines.
  44407. +ac_delim='%!_!# '
  44408. +for ac_last_try in false false :; do
  44409. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  44410. + if test -z "$ac_t"; then
  44411. + break
  44412. + elif $ac_last_try; then
  44413. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  44414. + else
  44415. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  44416. + fi
  44417. +done
  44418. +# For the awk script, D is an array of macro values keyed by name,
  44419. +# likewise P contains macro parameters if any. Preserve backslash
  44420. +# newline sequences.
  44421. +
  44422. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  44423. +sed -n '
  44424. +s/.\{148\}/&'"$ac_delim"'/g
  44425. +t rset
  44426. +:rset
  44427. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  44428. +t def
  44429. +d
  44430. +:def
  44431. +s/\\$//
  44432. +t bsnl
  44433. +s/["\\]/\\&/g
  44434. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  44435. +D["\1"]=" \3"/p
  44436. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  44437. +d
  44438. +:bsnl
  44439. +s/["\\]/\\&/g
  44440. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  44441. +D["\1"]=" \3\\\\\\n"\\/p
  44442. +t cont
  44443. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  44444. +t cont
  44445. +d
  44446. +:cont
  44447. +n
  44448. +s/.\{148\}/&'"$ac_delim"'/g
  44449. +t clear
  44450. +:clear
  44451. +s/\\$//
  44452. +t bsnlc
  44453. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  44454. +d
  44455. +:bsnlc
  44456. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  44457. +b cont
  44458. +' <confdefs.h | sed '
  44459. +s/'"$ac_delim"'/"\\\
  44460. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  44461. +
  44462. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44463. + for (key in D) D_is_set[key] = 1
  44464. + FS = ""
  44465. +}
  44466. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  44467. + line = \$ 0
  44468. + split(line, arg, " ")
  44469. + if (arg[1] == "#") {
  44470. + defundef = arg[2]
  44471. + mac1 = arg[3]
  44472. + } else {
  44473. + defundef = substr(arg[1], 2)
  44474. + mac1 = arg[2]
  44475. + }
  44476. + split(mac1, mac2, "(") #)
  44477. + macro = mac2[1]
  44478. + prefix = substr(line, 1, index(line, defundef) - 1)
  44479. + if (D_is_set[macro]) {
  44480. + # Preserve the white space surrounding the "#".
  44481. + print prefix "define", macro P[macro] D[macro]
  44482. + next
  44483. + } else {
  44484. + # Replace #undef with comments. This is necessary, for example,
  44485. + # in the case of _POSIX_SOURCE, which is predefined and required
  44486. + # on some systems where configure will not decide to define it.
  44487. + if (defundef == "undef") {
  44488. + print "/*", prefix defundef, macro, "*/"
  44489. + next
  44490. + }
  44491. + }
  44492. +}
  44493. +{ print }
  44494. +_ACAWK
  44495. _ACEOF
  44496. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44497. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  44498. +fi # test -n "$CONFIG_HEADERS"
  44499. +
  44500. +
  44501. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  44502. +shift
  44503. +for ac_tag
  44504. +do
  44505. + case $ac_tag in
  44506. + :[FHLC]) ac_mode=$ac_tag; continue;;
  44507. + esac
  44508. + case $ac_mode$ac_tag in
  44509. + :[FHL]*:*);;
  44510. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  44511. + :[FH]-) ac_tag=-:-;;
  44512. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  44513. + esac
  44514. + ac_save_IFS=$IFS
  44515. + IFS=:
  44516. + set x $ac_tag
  44517. + IFS=$ac_save_IFS
  44518. + shift
  44519. + ac_file=$1
  44520. + shift
  44521. -# The following way of writing the cache mishandles newlines in values,
  44522. -# but we know of no workaround that is simple, portable, and efficient.
  44523. -# So, don't put newlines in cache variables' values.
  44524. -# Ultrix sh set writes to stderr and can't be redirected directly,
  44525. -# and sets the high bit in the cache file unless we assign to the vars.
  44526. -{
  44527. - (set) 2>&1 |
  44528. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  44529. - *ac_space=\ *)
  44530. - # `set' does not quote correctly, so add quotes (double-quote
  44531. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  44532. - sed -n \
  44533. - "s/'/'\\\\''/g;
  44534. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  44535. - ;;
  44536. - *)
  44537. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  44538. - sed -n \
  44539. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  44540. - ;;
  44541. - esac;
  44542. -} |
  44543. - sed '
  44544. - t clear
  44545. - : clear
  44546. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  44547. - t end
  44548. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  44549. - : end' >>confcache
  44550. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  44551. - if test -w $cache_file; then
  44552. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  44553. - cat confcache >$cache_file
  44554. - else
  44555. - echo "not updating unwritable cache $cache_file"
  44556. - fi
  44557. -fi
  44558. -rm -f confcache
  44559. + case $ac_mode in
  44560. + :L) ac_source=$1;;
  44561. + :[FH])
  44562. + ac_file_inputs=
  44563. + for ac_f
  44564. + do
  44565. + case $ac_f in
  44566. + -) ac_f="$tmp/stdin";;
  44567. + *) # Look for the file first in the build tree, then in the source tree
  44568. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  44569. + # because $ac_f cannot contain `:'.
  44570. + test -f "$ac_f" ||
  44571. + case $ac_f in
  44572. + [\\/$]*) false;;
  44573. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  44574. + esac ||
  44575. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  44576. + esac
  44577. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  44578. + as_fn_append ac_file_inputs " '$ac_f'"
  44579. + done
  44580. -echo "$as_me:$LINENO: checking whether to optimize for speed or for accuracy" >&5
  44581. -echo $ECHO_N "checking whether to optimize for speed or for accuracy... $ECHO_C" >&6
  44582. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  44583. + # use $as_me), people would be surprised to read:
  44584. + # /* config.h. Generated by config.status. */
  44585. + configure_input='Generated from '`
  44586. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  44587. + `' by configure.'
  44588. + if test x"$ac_file" != x-; then
  44589. + configure_input="$ac_file. $configure_input"
  44590. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  44591. +$as_echo "$as_me: creating $ac_file" >&6;}
  44592. + fi
  44593. + # Neutralize special characters interpreted by sed in replacement strings.
  44594. + case $configure_input in #(
  44595. + *\&* | *\|* | *\\* )
  44596. + ac_sed_conf_input=`$as_echo "$configure_input" |
  44597. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  44598. + *) ac_sed_conf_input=$configure_input;;
  44599. + esac
  44600. -# Check whether --enable-speed or --disable-speed was given.
  44601. -if test "${enable_speed+set}" = set; then
  44602. - enableval="$enable_speed"
  44603. + case $ac_tag in
  44604. + *:-:* | *:-) cat >"$tmp/stdin" \
  44605. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  44606. + esac
  44607. + ;;
  44608. + esac
  44609. - case "$enableval" in
  44610. - yes)
  44611. - optimize_for="speed"
  44612. + ac_dir=`$as_dirname -- "$ac_file" ||
  44613. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44614. + X"$ac_file" : 'X\(//\)[^/]' \| \
  44615. + X"$ac_file" : 'X\(//\)$' \| \
  44616. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  44617. +$as_echo X"$ac_file" |
  44618. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44619. + s//\1/
  44620. + q
  44621. + }
  44622. + /^X\(\/\/\)[^/].*/{
  44623. + s//\1/
  44624. + q
  44625. + }
  44626. + /^X\(\/\/\)$/{
  44627. + s//\1/
  44628. + q
  44629. + }
  44630. + /^X\(\/\).*/{
  44631. + s//\1/
  44632. + q
  44633. + }
  44634. + s/.*/./; q'`
  44635. + as_dir="$ac_dir"; as_fn_mkdir_p
  44636. + ac_builddir=.
  44637. -cat >>confdefs.h <<\_ACEOF
  44638. -#define OPT_SPEED 1
  44639. -_ACEOF
  44640. +case "$ac_dir" in
  44641. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44642. +*)
  44643. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  44644. + # A ".." for each directory in $ac_dir_suffix.
  44645. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  44646. + case $ac_top_builddir_sub in
  44647. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  44648. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  44649. + esac ;;
  44650. +esac
  44651. +ac_abs_top_builddir=$ac_pwd
  44652. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  44653. +# for backward compatibility:
  44654. +ac_top_builddir=$ac_top_build_prefix
  44655. - ;;
  44656. - esac
  44657. +case $srcdir in
  44658. + .) # We are building in place.
  44659. + ac_srcdir=.
  44660. + ac_top_srcdir=$ac_top_builddir_sub
  44661. + ac_abs_top_srcdir=$ac_pwd ;;
  44662. + [\\/]* | ?:[\\/]* ) # Absolute name.
  44663. + ac_srcdir=$srcdir$ac_dir_suffix;
  44664. + ac_top_srcdir=$srcdir
  44665. + ac_abs_top_srcdir=$srcdir ;;
  44666. + *) # Relative name.
  44667. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  44668. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  44669. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  44670. +esac
  44671. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  44672. -fi;
  44673. -# Check whether --enable-accuracy or --disable-accuracy was given.
  44674. -if test "${enable_accuracy+set}" = set; then
  44675. - enableval="$enable_accuracy"
  44676. + case $ac_mode in
  44677. + :F)
  44678. + #
  44679. + # CONFIG_FILE
  44680. + #
  44681. - case "$enableval" in
  44682. - yes)
  44683. - if test "$optimize_for" = "speed"
  44684. - then
  44685. - optimize_for="both"
  44686. - else
  44687. - optimize_for="accuracy"
  44688. - fi
  44689. + case $INSTALL in
  44690. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  44691. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  44692. + esac
  44693. + ac_MKDIR_P=$MKDIR_P
  44694. + case $MKDIR_P in
  44695. + [\\/$]* | ?:[\\/]* ) ;;
  44696. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  44697. + esac
  44698. +_ACEOF
  44699. +
  44700. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44701. +# If the template does not know about datarootdir, expand it.
  44702. +# FIXME: This hack should be removed a few years after 2.60.
  44703. +ac_datarootdir_hack=; ac_datarootdir_seen=
  44704. +ac_sed_dataroot='
  44705. +/datarootdir/ {
  44706. + p
  44707. + q
  44708. +}
  44709. +/@datadir@/p
  44710. +/@docdir@/p
  44711. +/@infodir@/p
  44712. +/@localedir@/p
  44713. +/@mandir@/p'
  44714. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  44715. +*datarootdir*) ac_datarootdir_seen=yes;;
  44716. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  44717. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  44718. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  44719. +_ACEOF
  44720. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44721. + ac_datarootdir_hack='
  44722. + s&@datadir@&$datadir&g
  44723. + s&@docdir@&$docdir&g
  44724. + s&@infodir@&$infodir&g
  44725. + s&@localedir@&$localedir&g
  44726. + s&@mandir@&$mandir&g
  44727. + s&\\\${datarootdir}&$datarootdir&g' ;;
  44728. +esac
  44729. +_ACEOF
  44730. +
  44731. +# Neutralize VPATH when `$srcdir' = `.'.
  44732. +# Shell code in configure.ac might set extrasub.
  44733. +# FIXME: do we really want to maintain this feature?
  44734. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  44735. +ac_sed_extra="$ac_vpsub
  44736. +$extrasub
  44737. +_ACEOF
  44738. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  44739. +:t
  44740. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44741. +s|@configure_input@|$ac_sed_conf_input|;t t
  44742. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  44743. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  44744. +s&@srcdir@&$ac_srcdir&;t t
  44745. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  44746. +s&@top_srcdir@&$ac_top_srcdir&;t t
  44747. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  44748. +s&@builddir@&$ac_builddir&;t t
  44749. +s&@abs_builddir@&$ac_abs_builddir&;t t
  44750. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  44751. +s&@INSTALL@&$ac_INSTALL&;t t
  44752. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  44753. +$ac_datarootdir_hack
  44754. +"
  44755. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  44756. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  44757. +
  44758. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  44759. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  44760. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  44761. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44762. +which seems to be undefined. Please make sure it is defined." >&5
  44763. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  44764. +which seems to be undefined. Please make sure it is defined." >&2;}
  44765. +
  44766. + rm -f "$tmp/stdin"
  44767. + case $ac_file in
  44768. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  44769. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  44770. + esac \
  44771. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  44772. + ;;
  44773. + :H)
  44774. + #
  44775. + # CONFIG_HEADER
  44776. + #
  44777. + if test x"$ac_file" != x-; then
  44778. + {
  44779. + $as_echo "/* $configure_input */" \
  44780. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  44781. + } >"$tmp/config.h" \
  44782. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  44783. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  44784. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  44785. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  44786. + else
  44787. + rm -f "$ac_file"
  44788. + mv "$tmp/config.h" "$ac_file" \
  44789. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  44790. + fi
  44791. + else
  44792. + $as_echo "/* $configure_input */" \
  44793. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  44794. + || as_fn_error "could not create -" "$LINENO" 5
  44795. + fi
  44796. +# Compute "$ac_file"'s index in $config_headers.
  44797. +_am_arg="$ac_file"
  44798. +_am_stamp_count=1
  44799. +for _am_header in $config_headers :; do
  44800. + case $_am_header in
  44801. + $_am_arg | $_am_arg:* )
  44802. + break ;;
  44803. + * )
  44804. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44805. + esac
  44806. +done
  44807. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  44808. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44809. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  44810. + X"$_am_arg" : 'X\(//\)$' \| \
  44811. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  44812. +$as_echo X"$_am_arg" |
  44813. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44814. + s//\1/
  44815. + q
  44816. + }
  44817. + /^X\(\/\/\)[^/].*/{
  44818. + s//\1/
  44819. + q
  44820. + }
  44821. + /^X\(\/\/\)$/{
  44822. + s//\1/
  44823. + q
  44824. + }
  44825. + /^X\(\/\).*/{
  44826. + s//\1/
  44827. + q
  44828. + }
  44829. + s/.*/./; q'`/stamp-h$_am_stamp_count
  44830. + ;;
  44831. -cat >>confdefs.h <<\_ACEOF
  44832. -#define OPT_ACCURACY 1
  44833. -_ACEOF
  44834. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  44835. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  44836. + ;;
  44837. + esac
  44838. - ;;
  44839. - esac
  44840. -fi;
  44841. + case $ac_file$ac_mode in
  44842. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  44843. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  44844. + # are listed without --file. Let's play safe and only enable the eval
  44845. + # if we detect the quoting.
  44846. + case $CONFIG_FILES in
  44847. + *\'*) eval set x "$CONFIG_FILES" ;;
  44848. + *) set x $CONFIG_FILES ;;
  44849. + esac
  44850. + shift
  44851. + for mf
  44852. + do
  44853. + # Strip MF so we end up with the name of the file.
  44854. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  44855. + # Check whether this is an Automake generated Makefile or not.
  44856. + # We used to match only the files named `Makefile.in', but
  44857. + # some people rename them; so instead we look at the file content.
  44858. + # Grep'ing the first line is not enough: some people post-process
  44859. + # each Makefile.in and add a new line on top of each file to say so.
  44860. + # Grep'ing the whole file is not good either: AIX grep has a line
  44861. + # limit of 2048, but all sed's we know have understand at least 4000.
  44862. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  44863. + dirpart=`$as_dirname -- "$mf" ||
  44864. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44865. + X"$mf" : 'X\(//\)[^/]' \| \
  44866. + X"$mf" : 'X\(//\)$' \| \
  44867. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  44868. +$as_echo X"$mf" |
  44869. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44870. + s//\1/
  44871. + q
  44872. + }
  44873. + /^X\(\/\/\)[^/].*/{
  44874. + s//\1/
  44875. + q
  44876. + }
  44877. + /^X\(\/\/\)$/{
  44878. + s//\1/
  44879. + q
  44880. + }
  44881. + /^X\(\/\).*/{
  44882. + s//\1/
  44883. + q
  44884. + }
  44885. + s/.*/./; q'`
  44886. + else
  44887. + continue
  44888. + fi
  44889. + # Extract the definition of DEPDIR, am__include, and am__quote
  44890. + # from the Makefile without running `make'.
  44891. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44892. + test -z "$DEPDIR" && continue
  44893. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44894. + test -z "am__include" && continue
  44895. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44896. + # When using ansi2knr, U may be empty or an underscore; expand it
  44897. + U=`sed -n 's/^U = //p' < "$mf"`
  44898. + # Find all dependency output files, they are included files with
  44899. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  44900. + # simplest approach to changing $(DEPDIR) to its actual value in the
  44901. + # expansion.
  44902. + for file in `sed -n "
  44903. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44904. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44905. + # Make sure the directory exists.
  44906. + test -f "$dirpart/$file" && continue
  44907. + fdir=`$as_dirname -- "$file" ||
  44908. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44909. + X"$file" : 'X\(//\)[^/]' \| \
  44910. + X"$file" : 'X\(//\)$' \| \
  44911. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  44912. +$as_echo X"$file" |
  44913. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  44914. + s//\1/
  44915. + q
  44916. + }
  44917. + /^X\(\/\/\)[^/].*/{
  44918. + s//\1/
  44919. + q
  44920. + }
  44921. + /^X\(\/\/\)$/{
  44922. + s//\1/
  44923. + q
  44924. + }
  44925. + /^X\(\/\).*/{
  44926. + s//\1/
  44927. + q
  44928. + }
  44929. + s/.*/./; q'`
  44930. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  44931. + # echo "creating $dirpart/$file"
  44932. + echo '# dummy' > "$dirpart/$file"
  44933. + done
  44934. + done
  44935. +}
  44936. + ;;
  44937. + "libtool":C)
  44938. -echo "$as_me:$LINENO: result: ${optimize_for-default}" >&5
  44939. -echo "${ECHO_T}${optimize_for-default}" >&6
  44940. + # See if we are running on zsh, and set the options which allow our
  44941. + # commands through without removal of \ escapes.
  44942. + if test -n "${ZSH_VERSION+set}" ; then
  44943. + setopt NO_GLOB_SUBST
  44944. + fi
  44945. -if test "$optimize_for" = "both"
  44946. -then
  44947. - { { echo "$as_me:$LINENO: error: cannot optimize for both speed and accuracy" >&5
  44948. -echo "$as_me: error: cannot optimize for both speed and accuracy" >&2;}
  44949. - { (exit 1); exit 1; }; }
  44950. -fi
  44951. + cfgfile="${ofile}T"
  44952. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  44953. + $RM "$cfgfile"
  44954. -echo "$as_me:$LINENO: checking for architecture-specific fixed-point math routines" >&5
  44955. -echo $ECHO_N "checking for architecture-specific fixed-point math routines... $ECHO_C" >&6
  44956. -# Check whether --enable-fpm or --disable-fpm was given.
  44957. -if test "${enable_fpm+set}" = set; then
  44958. - enableval="$enable_fpm"
  44959. + cat <<_LT_EOF >> "$cfgfile"
  44960. +#! $SHELL
  44961. - case "$enableval" in
  44962. - yes) ;;
  44963. - no|default|approx) FPM="DEFAULT" ;;
  44964. - intel|i?86) FPM="INTEL" ;;
  44965. - arm) FPM="ARM" ;;
  44966. - mips) FPM="MIPS" ;;
  44967. - sparc) FPM="SPARC" ;;
  44968. - ppc|powerpc) FPM="PPC" ;;
  44969. - 64bit) FPM="64BIT" ;;
  44970. - float) FPM="FLOAT" ;;
  44971. - *)
  44972. - echo "$as_me:$LINENO: result: failed" >&5
  44973. -echo "${ECHO_T}failed" >&6
  44974. - { { echo "$as_me:$LINENO: error: bad --enable-fpm option" >&5
  44975. -echo "$as_me: error: bad --enable-fpm option" >&2;}
  44976. - { (exit 1); exit 1; }; }
  44977. - ;;
  44978. - esac
  44979. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  44980. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  44981. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  44982. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  44983. +#
  44984. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  44985. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  44986. +# Written by Gordon Matzigkeit, 1996
  44987. +#
  44988. +# This file is part of GNU Libtool.
  44989. +#
  44990. +# GNU Libtool is free software; you can redistribute it and/or
  44991. +# modify it under the terms of the GNU General Public License as
  44992. +# published by the Free Software Foundation; either version 2 of
  44993. +# the License, or (at your option) any later version.
  44994. +#
  44995. +# As a special exception to the GNU General Public License,
  44996. +# if you distribute this file as part of a program or library that
  44997. +# is built using GNU Libtool, you may include this file under the
  44998. +# same distribution terms that you use for the rest of that program.
  44999. +#
  45000. +# GNU Libtool is distributed in the hope that it will be useful,
  45001. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  45002. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  45003. +# GNU General Public License for more details.
  45004. +#
  45005. +# You should have received a copy of the GNU General Public License
  45006. +# along with GNU Libtool; see the file COPYING. If not, a copy
  45007. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  45008. +# obtained by writing to the Free Software Foundation, Inc.,
  45009. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  45010. -fi;
  45011. -if test -z "$FPM" && test "$GCC" = yes
  45012. -then
  45013. - case "$host" in
  45014. - i?86-*) FPM="INTEL" ;;
  45015. - arm*-*) FPM="ARM" ;;
  45016. - mips*-*) FPM="MIPS" ;;
  45017. - sparc*-*) FPM="SPARC" ;;
  45018. - powerpc*-*) FPM="PPC" ;;
  45019. - # FIXME: need to test for 64-bit long long...
  45020. - esac
  45021. -fi
  45022. +# The names of the tagged configurations supported by this script.
  45023. +available_tags=""
  45024. -echo "$as_me:$LINENO: result: ${FPM=DEFAULT}" >&5
  45025. -echo "${ECHO_T}${FPM=DEFAULT}" >&6
  45026. +# ### BEGIN LIBTOOL CONFIG
  45027. -if test "$FPM" = "DEFAULT"
  45028. -then
  45029. - { echo "$as_me:$LINENO: WARNING: default fixed-point math will yield limited accuracy" >&5
  45030. -echo "$as_me: WARNING: default fixed-point math will yield limited accuracy" >&2;}
  45031. -fi
  45032. +# Which release of libtool.m4 was used?
  45033. +macro_version=$macro_version
  45034. +macro_revision=$macro_revision
  45035. -FPM="-DFPM_$FPM"
  45036. +# Whether or not to build shared libraries.
  45037. +build_libtool_libs=$enable_shared
  45038. -# Check whether --enable-sso or --disable-sso was given.
  45039. -if test "${enable_sso+set}" = set; then
  45040. - enableval="$enable_sso"
  45041. +# Whether or not to build static libraries.
  45042. +build_old_libs=$enable_static
  45043. - case "$enableval" in
  45044. - yes)
  45045. +# What type of objects to build.
  45046. +pic_mode=$pic_mode
  45047. -cat >>confdefs.h <<\_ACEOF
  45048. -#define OPT_SSO 1
  45049. -_ACEOF
  45050. +# Whether or not to optimize for fast installation.
  45051. +fast_install=$enable_fast_install
  45052. - ;;
  45053. - esac
  45054. +# The host system.
  45055. +host_alias=$host_alias
  45056. +host=$host
  45057. +host_os=$host_os
  45058. -fi;
  45059. +# The build system.
  45060. +build_alias=$build_alias
  45061. +build=$build
  45062. +build_os=$build_os
  45063. -# Check whether --enable-aso or --disable-aso was given.
  45064. -if test "${enable_aso+set}" = set; then
  45065. - enableval="$enable_aso"
  45066. +# A sed program that does not truncate output.
  45067. +SED=$lt_SED
  45068. -else
  45069. - enable_aso=yes
  45070. -fi;
  45071. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  45072. +Xsed="\$SED -e 1s/^X//"
  45073. -if test "$enable_aso" = yes
  45074. -then
  45075. - case "$host" in
  45076. - i?86-*)
  45077. - : #ASO="$ASO -DASO_INTERLEAVE1"
  45078. - ASO="$ASO -DASO_ZEROCHECK"
  45079. - : #not yet #ASO="$ASO -DASO_SYNTH"
  45080. - : #not yet #ASO_OBJS="synth_mmx.lo"
  45081. - ;;
  45082. - arm*-*)
  45083. - ASO="$ASO -DASO_INTERLEAVE1"
  45084. - ASO="$ASO -DASO_IMDCT"
  45085. - ASO_OBJS="imdct_l_arm.lo"
  45086. - ;;
  45087. - mips*-*)
  45088. - ASO="$ASO -DASO_INTERLEAVE2"
  45089. - ASO="$ASO -DASO_ZEROCHECK"
  45090. - ;;
  45091. - esac
  45092. -fi
  45093. +# A grep program that handles long lines.
  45094. +GREP=$lt_GREP
  45095. -echo "$as_me:$LINENO: checking for ISO/IEC interpretation" >&5
  45096. -echo $ECHO_N "checking for ISO/IEC interpretation... $ECHO_C" >&6
  45097. -# Check whether --enable-strict-iso or --disable-strict-iso was given.
  45098. -if test "${enable_strict_iso+set}" = set; then
  45099. - enableval="$enable_strict_iso"
  45100. +# An ERE matcher.
  45101. +EGREP=$lt_EGREP
  45102. - case "$enableval" in
  45103. - yes)
  45104. +# A literal string matcher.
  45105. +FGREP=$lt_FGREP
  45106. -cat >>confdefs.h <<\_ACEOF
  45107. -#define OPT_STRICT 1
  45108. -_ACEOF
  45109. +# A BSD- or MS-compatible name lister.
  45110. +NM=$lt_NM
  45111. - interpretation="strict"
  45112. - ;;
  45113. - esac
  45114. +# Whether we need soft or hard links.
  45115. +LN_S=$lt_LN_S
  45116. -fi;
  45117. -echo "$as_me:$LINENO: result: ${interpretation-best accepted practices}" >&5
  45118. -echo "${ECHO_T}${interpretation-best accepted practices}" >&6
  45119. -
  45120. -echo "$as_me:$LINENO: checking whether to enable profiling" >&5
  45121. -echo $ECHO_N "checking whether to enable profiling... $ECHO_C" >&6
  45122. -# Check whether --enable-profiling or --disable-profiling was given.
  45123. -if test "${enable_profiling+set}" = set; then
  45124. - enableval="$enable_profiling"
  45125. +# What is the maximum length of a command?
  45126. +max_cmd_len=$max_cmd_len
  45127. - case "$enableval" in
  45128. - yes) profile="-pg" ;;
  45129. - esac
  45130. +# Object file suffix (normally "o").
  45131. +objext=$ac_objext
  45132. -fi;
  45133. -echo "$as_me:$LINENO: result: ${enable_profiling-no}" >&5
  45134. -echo "${ECHO_T}${enable_profiling-no}" >&6
  45135. -
  45136. -echo "$as_me:$LINENO: checking whether to enable debugging" >&5
  45137. -echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
  45138. -# Check whether --enable-debugging or --disable-debugging was given.
  45139. -if test "${enable_debugging+set}" = set; then
  45140. - enableval="$enable_debugging"
  45141. +# Executable file suffix (normally "").
  45142. +exeext=$exeext
  45143. - case "$enableval" in
  45144. - yes)
  45145. +# whether the shell understands "unset".
  45146. +lt_unset=$lt_unset
  45147. -cat >>confdefs.h <<\_ACEOF
  45148. -#define DEBUG 1
  45149. -_ACEOF
  45150. +# turn spaces into newlines.
  45151. +SP2NL=$lt_lt_SP2NL
  45152. - optimize=""
  45153. - ;;
  45154. - no)
  45155. - if test -n "$profile"
  45156. - then
  45157. - { { echo "$as_me:$LINENO: error: --enable-profiling and --disable-debugging are incompatible" >&5
  45158. -echo "$as_me: error: --enable-profiling and --disable-debugging are incompatible" >&2;}
  45159. - { (exit 1); exit 1; }; }
  45160. - fi
  45161. +# turn newlines into spaces.
  45162. +NL2SP=$lt_lt_NL2SP
  45163. +# How to create reloadable object files.
  45164. +reload_flag=$lt_reload_flag
  45165. +reload_cmds=$lt_reload_cmds
  45166. -cat >>confdefs.h <<\_ACEOF
  45167. -#define NDEBUG 1
  45168. -_ACEOF
  45169. +# An object symbol dumper.
  45170. +OBJDUMP=$lt_OBJDUMP
  45171. - debug=""
  45172. - if test "$GCC" = yes
  45173. - then
  45174. - optimize="$optimize -fomit-frame-pointer"
  45175. - fi
  45176. - ;;
  45177. - esac
  45178. +# Method to check whether dependent libraries are shared objects.
  45179. +deplibs_check_method=$lt_deplibs_check_method
  45180. -fi;
  45181. -echo "$as_me:$LINENO: result: ${enable_debugging-default}" >&5
  45182. -echo "${ECHO_T}${enable_debugging-default}" >&6
  45183. -
  45184. -echo "$as_me:$LINENO: checking whether to enable experimental code" >&5
  45185. -echo $ECHO_N "checking whether to enable experimental code... $ECHO_C" >&6
  45186. -# Check whether --enable-experimental or --disable-experimental was given.
  45187. -if test "${enable_experimental+set}" = set; then
  45188. - enableval="$enable_experimental"
  45189. +# Command to use when deplibs_check_method == "file_magic".
  45190. +file_magic_cmd=$lt_file_magic_cmd
  45191. - case "$enableval" in
  45192. - yes)
  45193. +# The archiver.
  45194. +AR=$lt_AR
  45195. +AR_FLAGS=$lt_AR_FLAGS
  45196. -cat >>confdefs.h <<\_ACEOF
  45197. -#define EXPERIMENTAL 1
  45198. -_ACEOF
  45199. +# A symbol stripping program.
  45200. +STRIP=$lt_STRIP
  45201. - ;;
  45202. - esac
  45203. +# Commands used to install an old-style archive.
  45204. +RANLIB=$lt_RANLIB
  45205. +old_postinstall_cmds=$lt_old_postinstall_cmds
  45206. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  45207. -fi;
  45208. -echo "$as_me:$LINENO: result: ${enable_experimental-no}" >&5
  45209. -echo "${ECHO_T}${enable_experimental-no}" >&6
  45210. +# A C compiler.
  45211. +LTCC=$lt_CC
  45212. +# LTCC compiler flags.
  45213. +LTCFLAGS=$lt_CFLAGS
  45214. -test -n "$arch" && CFLAGS="$CFLAGS $arch"
  45215. -test -n "$debug" && CFLAGS="$CFLAGS $debug"
  45216. -test -n "$optimize" && CFLAGS="$CFLAGS $optimize"
  45217. -test -n "$profile" && CFLAGS="$CFLAGS $profile" LDFLAGS="$LDFLAGS $profile"
  45218. +# Take the output of nm and produce a listing of raw symbols and C names.
  45219. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  45220. +# Transform the output of nm in a proper C declaration.
  45221. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  45222. - ac_config_files="$ac_config_files Makefile msvc++/Makefile libmad.list"
  45223. +# Transform the output of nm in a C name address pair.
  45224. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  45225. -cat >confcache <<\_ACEOF
  45226. -# This file is a shell script that caches the results of configure
  45227. -# tests run on this system so they can be shared between configure
  45228. -# scripts and configure runs, see configure's option --config-cache.
  45229. -# It is not useful on other systems. If it contains results you don't
  45230. -# want to keep, you may remove or edit it.
  45231. -#
  45232. -# config.status only pays attention to the cache file if you give it
  45233. -# the --recheck option to rerun configure.
  45234. -#
  45235. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  45236. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  45237. -# following values.
  45238. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  45239. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  45240. -_ACEOF
  45241. +# The name of the directory that contains temporary libtool files.
  45242. +objdir=$objdir
  45243. -# The following way of writing the cache mishandles newlines in values,
  45244. -# but we know of no workaround that is simple, portable, and efficient.
  45245. -# So, don't put newlines in cache variables' values.
  45246. -# Ultrix sh set writes to stderr and can't be redirected directly,
  45247. -# and sets the high bit in the cache file unless we assign to the vars.
  45248. -{
  45249. - (set) 2>&1 |
  45250. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  45251. - *ac_space=\ *)
  45252. - # `set' does not quote correctly, so add quotes (double-quote
  45253. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  45254. - sed -n \
  45255. - "s/'/'\\\\''/g;
  45256. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  45257. - ;;
  45258. - *)
  45259. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  45260. - sed -n \
  45261. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  45262. - ;;
  45263. - esac;
  45264. -} |
  45265. - sed '
  45266. - t clear
  45267. - : clear
  45268. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  45269. - t end
  45270. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  45271. - : end' >>confcache
  45272. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  45273. - if test -w $cache_file; then
  45274. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  45275. - cat confcache >$cache_file
  45276. - else
  45277. - echo "not updating unwritable cache $cache_file"
  45278. - fi
  45279. -fi
  45280. -rm -f confcache
  45281. +# Shell to use when invoking shell scripts.
  45282. +SHELL=$lt_SHELL
  45283. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  45284. -# Let make expand exec_prefix.
  45285. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  45286. +# An echo program that does not interpret backslashes.
  45287. +ECHO=$lt_ECHO
  45288. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  45289. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  45290. -# trailing colons and then remove the whole line if VPATH becomes empty
  45291. -# (actually we leave an empty line to preserve line numbers).
  45292. -if test "x$srcdir" = x.; then
  45293. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  45294. -s/:*\$(srcdir):*/:/;
  45295. -s/:*\${srcdir}:*/:/;
  45296. -s/:*@srcdir@:*/:/;
  45297. -s/^\([^=]*=[ ]*\):*/\1/;
  45298. -s/:*$//;
  45299. -s/^[^=]*=[ ]*$//;
  45300. -}'
  45301. -fi
  45302. +# Used to examine libraries when file_magic_cmd begins with "file".
  45303. +MAGIC_CMD=$MAGIC_CMD
  45304. -DEFS=-DHAVE_CONFIG_H
  45305. +# Must we lock files when doing compilation?
  45306. +need_locks=$lt_need_locks
  45307. -ac_libobjs=
  45308. -ac_ltlibobjs=
  45309. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  45310. - # 1. Remove the extension, and $U if already installed.
  45311. - ac_i=`echo "$ac_i" |
  45312. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  45313. - # 2. Add them.
  45314. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  45315. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  45316. -done
  45317. -LIBOBJS=$ac_libobjs
  45318. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  45319. +DSYMUTIL=$lt_DSYMUTIL
  45320. -LTLIBOBJS=$ac_ltlibobjs
  45321. +# Tool to change global to local symbols on Mac OS X.
  45322. +NMEDIT=$lt_NMEDIT
  45323. +# Tool to manipulate fat objects and archives on Mac OS X.
  45324. +LIPO=$lt_LIPO
  45325. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  45326. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  45327. -Usually this means the macro was only invoked conditionally." >&5
  45328. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  45329. -Usually this means the macro was only invoked conditionally." >&2;}
  45330. - { (exit 1); exit 1; }; }
  45331. -fi
  45332. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  45333. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  45334. -Usually this means the macro was only invoked conditionally." >&5
  45335. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  45336. -Usually this means the macro was only invoked conditionally." >&2;}
  45337. - { (exit 1); exit 1; }; }
  45338. -fi
  45339. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  45340. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  45341. -Usually this means the macro was only invoked conditionally." >&5
  45342. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  45343. -Usually this means the macro was only invoked conditionally." >&2;}
  45344. - { (exit 1); exit 1; }; }
  45345. -fi
  45346. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  45347. +OTOOL=$lt_OTOOL
  45348. -: ${CONFIG_STATUS=./config.status}
  45349. -ac_clean_files_save=$ac_clean_files
  45350. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  45351. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  45352. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  45353. -cat >$CONFIG_STATUS <<_ACEOF
  45354. -#! $SHELL
  45355. -# Generated by $as_me.
  45356. -# Run this file to recreate the current configuration.
  45357. -# Compiler output produced by configure, useful for debugging
  45358. -# configure, is in config.log if it exists.
  45359. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  45360. +OTOOL64=$lt_OTOOL64
  45361. -debug=false
  45362. -ac_cs_recheck=false
  45363. -ac_cs_silent=false
  45364. -SHELL=\${CONFIG_SHELL-$SHELL}
  45365. -_ACEOF
  45366. +# Old archive suffix (normally "a").
  45367. +libext=$libext
  45368. -cat >>$CONFIG_STATUS <<\_ACEOF
  45369. -## --------------------- ##
  45370. -## M4sh Initialization. ##
  45371. -## --------------------- ##
  45372. +# Shared library suffix (normally ".so").
  45373. +shrext_cmds=$lt_shrext_cmds
  45374. -# Be Bourne compatible
  45375. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  45376. - emulate sh
  45377. - NULLCMD=:
  45378. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  45379. - # is contrary to our usage. Disable this feature.
  45380. - alias -g '${1+"$@"}'='"$@"'
  45381. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  45382. - set -o posix
  45383. -fi
  45384. -DUALCASE=1; export DUALCASE # for MKS sh
  45385. +# The commands to extract the exported symbol list from a shared archive.
  45386. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  45387. -# Support unset when possible.
  45388. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  45389. - as_unset=unset
  45390. -else
  45391. - as_unset=false
  45392. -fi
  45393. +# Variables whose values should be saved in libtool wrapper scripts and
  45394. +# restored at link time.
  45395. +variables_saved_for_relink=$lt_variables_saved_for_relink
  45396. +# Do we need the "lib" prefix for modules?
  45397. +need_lib_prefix=$need_lib_prefix
  45398. -# Work around bugs in pre-3.0 UWIN ksh.
  45399. -$as_unset ENV MAIL MAILPATH
  45400. -PS1='$ '
  45401. -PS2='> '
  45402. -PS4='+ '
  45403. +# Do we need a version for libraries?
  45404. +need_version=$need_version
  45405. -# NLS nuisances.
  45406. -for as_var in \
  45407. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  45408. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  45409. - LC_TELEPHONE LC_TIME
  45410. -do
  45411. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  45412. - eval $as_var=C; export $as_var
  45413. - else
  45414. - $as_unset $as_var
  45415. - fi
  45416. -done
  45417. +# Library versioning type.
  45418. +version_type=$version_type
  45419. -# Required to use basename.
  45420. -if expr a : '\(a\)' >/dev/null 2>&1; then
  45421. - as_expr=expr
  45422. -else
  45423. - as_expr=false
  45424. -fi
  45425. +# Shared library runtime path variable.
  45426. +runpath_var=$runpath_var
  45427. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  45428. - as_basename=basename
  45429. -else
  45430. - as_basename=false
  45431. -fi
  45432. +# Shared library path variable.
  45433. +shlibpath_var=$shlibpath_var
  45434. +# Is shlibpath searched before the hard-coded library search path?
  45435. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  45436. -# Name of the executable.
  45437. -as_me=`$as_basename "$0" ||
  45438. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  45439. - X"$0" : 'X\(//\)$' \| \
  45440. - X"$0" : 'X\(/\)$' \| \
  45441. - . : '\(.\)' 2>/dev/null ||
  45442. -echo X/"$0" |
  45443. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  45444. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  45445. - /^X\/\(\/\).*/{ s//\1/; q; }
  45446. - s/.*/./; q'`
  45447. +# Format of library name prefix.
  45448. +libname_spec=$lt_libname_spec
  45449. +# List of archive names. First name is the real one, the rest are links.
  45450. +# The last name is the one that the linker finds with -lNAME
  45451. +library_names_spec=$lt_library_names_spec
  45452. -# PATH needs CR, and LINENO needs CR and PATH.
  45453. -# Avoid depending upon Character Ranges.
  45454. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  45455. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  45456. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  45457. -as_cr_digits='0123456789'
  45458. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  45459. +# The coded name of the library, if different from the real name.
  45460. +soname_spec=$lt_soname_spec
  45461. -# The user is always right.
  45462. -if test "${PATH_SEPARATOR+set}" != set; then
  45463. - echo "#! /bin/sh" >conf$$.sh
  45464. - echo "exit 0" >>conf$$.sh
  45465. - chmod +x conf$$.sh
  45466. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  45467. - PATH_SEPARATOR=';'
  45468. - else
  45469. - PATH_SEPARATOR=:
  45470. - fi
  45471. - rm -f conf$$.sh
  45472. -fi
  45473. +# Command to use after installation of a shared archive.
  45474. +postinstall_cmds=$lt_postinstall_cmds
  45475. +# Command to use after uninstallation of a shared archive.
  45476. +postuninstall_cmds=$lt_postuninstall_cmds
  45477. - as_lineno_1=$LINENO
  45478. - as_lineno_2=$LINENO
  45479. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  45480. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  45481. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  45482. - # Find who we are. Look in the path if we contain no path at all
  45483. - # relative or not.
  45484. - case $0 in
  45485. - *[\\/]* ) as_myself=$0 ;;
  45486. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45487. -for as_dir in $PATH
  45488. -do
  45489. - IFS=$as_save_IFS
  45490. - test -z "$as_dir" && as_dir=.
  45491. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  45492. -done
  45493. +# Commands used to finish a libtool library installation in a directory.
  45494. +finish_cmds=$lt_finish_cmds
  45495. - ;;
  45496. - esac
  45497. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  45498. - # in which case we are not to be found in the path.
  45499. - if test "x$as_myself" = x; then
  45500. - as_myself=$0
  45501. - fi
  45502. - if test ! -f "$as_myself"; then
  45503. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  45504. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  45505. - { (exit 1); exit 1; }; }
  45506. - fi
  45507. - case $CONFIG_SHELL in
  45508. - '')
  45509. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  45510. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  45511. -do
  45512. - IFS=$as_save_IFS
  45513. - test -z "$as_dir" && as_dir=.
  45514. - for as_base in sh bash ksh sh5; do
  45515. - case $as_dir in
  45516. - /*)
  45517. - if ("$as_dir/$as_base" -c '
  45518. - as_lineno_1=$LINENO
  45519. - as_lineno_2=$LINENO
  45520. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  45521. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  45522. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  45523. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  45524. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  45525. - CONFIG_SHELL=$as_dir/$as_base
  45526. - export CONFIG_SHELL
  45527. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  45528. - fi;;
  45529. - esac
  45530. - done
  45531. -done
  45532. -;;
  45533. - esac
  45534. +# As "finish_cmds", except a single script fragment to be evaled but
  45535. +# not shown.
  45536. +finish_eval=$lt_finish_eval
  45537. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  45538. - # uniformly replaced by the line number. The first 'sed' inserts a
  45539. - # line-number line before each line; the second 'sed' does the real
  45540. - # work. The second script uses 'N' to pair each line-number line
  45541. - # with the numbered line, and appends trailing '-' during
  45542. - # substitution so that $LINENO is not a special case at line end.
  45543. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  45544. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  45545. - sed '=' <$as_myself |
  45546. - sed '
  45547. - N
  45548. - s,$,-,
  45549. - : loop
  45550. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  45551. - t loop
  45552. - s,-$,,
  45553. - s,^['$as_cr_digits']*\n,,
  45554. - ' >$as_me.lineno &&
  45555. - chmod +x $as_me.lineno ||
  45556. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  45557. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  45558. - { (exit 1); exit 1; }; }
  45559. +# Whether we should hardcode library paths into libraries.
  45560. +hardcode_into_libs=$hardcode_into_libs
  45561. - # Don't try to exec as it changes $[0], causing all sort of problems
  45562. - # (the dirname of $[0] is not the place where we might find the
  45563. - # original and so on. Autoconf is especially sensible to this).
  45564. - . ./$as_me.lineno
  45565. - # Exit status is that of the last command.
  45566. - exit
  45567. -}
  45568. +# Compile-time system search path for libraries.
  45569. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  45570. +# Run-time system search path for libraries.
  45571. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  45572. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  45573. - *c*,-n*) ECHO_N= ECHO_C='
  45574. -' ECHO_T=' ' ;;
  45575. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  45576. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  45577. -esac
  45578. +# Whether dlopen is supported.
  45579. +dlopen_support=$enable_dlopen
  45580. -if expr a : '\(a\)' >/dev/null 2>&1; then
  45581. - as_expr=expr
  45582. -else
  45583. - as_expr=false
  45584. -fi
  45585. +# Whether dlopen of programs is supported.
  45586. +dlopen_self=$enable_dlopen_self
  45587. -rm -f conf$$ conf$$.exe conf$$.file
  45588. -echo >conf$$.file
  45589. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  45590. - # We could just check for DJGPP; but this test a) works b) is more generic
  45591. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  45592. - if test -f conf$$.exe; then
  45593. - # Don't use ln at all; we don't have any links
  45594. - as_ln_s='cp -p'
  45595. - else
  45596. - as_ln_s='ln -s'
  45597. - fi
  45598. -elif ln conf$$.file conf$$ 2>/dev/null; then
  45599. - as_ln_s=ln
  45600. -else
  45601. - as_ln_s='cp -p'
  45602. -fi
  45603. -rm -f conf$$ conf$$.exe conf$$.file
  45604. +# Whether dlopen of statically linked programs is supported.
  45605. +dlopen_self_static=$enable_dlopen_self_static
  45606. -if mkdir -p . 2>/dev/null; then
  45607. - as_mkdir_p=:
  45608. -else
  45609. - test -d ./-p && rmdir ./-p
  45610. - as_mkdir_p=false
  45611. -fi
  45612. +# Commands to strip libraries.
  45613. +old_striplib=$lt_old_striplib
  45614. +striplib=$lt_striplib
  45615. -as_executable_p="test -f"
  45616. -# Sed expression to map a string onto a valid CPP name.
  45617. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  45618. +# The linker used to build libraries.
  45619. +LD=$lt_LD
  45620. -# Sed expression to map a string onto a valid variable name.
  45621. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  45622. +# Commands used to build an old-style archive.
  45623. +old_archive_cmds=$lt_old_archive_cmds
  45624. +
  45625. +# A language specific compiler.
  45626. +CC=$lt_compiler
  45627. +# Is the compiler the GNU compiler?
  45628. +with_gcc=$GCC
  45629. -# IFS
  45630. -# We need space, tab and new line, in precisely that order.
  45631. -as_nl='
  45632. -'
  45633. -IFS=" $as_nl"
  45634. +# Compiler flag to turn off builtin functions.
  45635. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  45636. -# CDPATH.
  45637. -$as_unset CDPATH
  45638. +# How to pass a linker flag through the compiler.
  45639. +wl=$lt_lt_prog_compiler_wl
  45640. -exec 6>&1
  45641. +# Additional compiler flags for building library objects.
  45642. +pic_flag=$lt_lt_prog_compiler_pic
  45643. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  45644. -# report actual input values of CONFIG_FILES etc. instead of their
  45645. -# values after options handling. Logging --version etc. is OK.
  45646. -exec 5>>config.log
  45647. -{
  45648. - echo
  45649. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  45650. -## Running $as_me. ##
  45651. -_ASBOX
  45652. -} >&5
  45653. -cat >&5 <<_CSEOF
  45654. +# Compiler flag to prevent dynamic linking.
  45655. +link_static_flag=$lt_lt_prog_compiler_static
  45656. -This file was extended by MPEG Audio Decoder $as_me 0.15.1b, which was
  45657. -generated by GNU Autoconf 2.59. Invocation command line was
  45658. +# Does compiler simultaneously support -c and -o options?
  45659. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  45660. - CONFIG_FILES = $CONFIG_FILES
  45661. - CONFIG_HEADERS = $CONFIG_HEADERS
  45662. - CONFIG_LINKS = $CONFIG_LINKS
  45663. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  45664. - $ $0 $@
  45665. +# Whether or not to add -lc for building shared libraries.
  45666. +build_libtool_need_lc=$archive_cmds_need_lc
  45667. -_CSEOF
  45668. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  45669. -echo >&5
  45670. -_ACEOF
  45671. +# Whether or not to disallow shared libs when runtime libs are static.
  45672. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  45673. -# Files that config.status was made for.
  45674. -if test -n "$ac_config_files"; then
  45675. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  45676. -fi
  45677. +# Compiler flag to allow reflexive dlopens.
  45678. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  45679. -if test -n "$ac_config_headers"; then
  45680. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  45681. -fi
  45682. +# Compiler flag to generate shared objects directly from archives.
  45683. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  45684. -if test -n "$ac_config_links"; then
  45685. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  45686. -fi
  45687. +# Whether the compiler copes with passing no objects directly.
  45688. +compiler_needs_object=$lt_compiler_needs_object
  45689. -if test -n "$ac_config_commands"; then
  45690. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  45691. -fi
  45692. +# Create an old-style archive from a shared archive.
  45693. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  45694. -cat >>$CONFIG_STATUS <<\_ACEOF
  45695. +# Create a temporary old-style archive to link instead of a shared archive.
  45696. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  45697. -ac_cs_usage="\
  45698. -\`$as_me' instantiates files from templates according to the
  45699. -current configuration.
  45700. +# Commands used to build a shared archive.
  45701. +archive_cmds=$lt_archive_cmds
  45702. +archive_expsym_cmds=$lt_archive_expsym_cmds
  45703. -Usage: $0 [OPTIONS] [FILE]...
  45704. +# Commands used to build a loadable module if different from building
  45705. +# a shared archive.
  45706. +module_cmds=$lt_module_cmds
  45707. +module_expsym_cmds=$lt_module_expsym_cmds
  45708. - -h, --help print this help, then exit
  45709. - -V, --version print version number, then exit
  45710. - -q, --quiet do not print progress messages
  45711. - -d, --debug don't remove temporary files
  45712. - --recheck update $as_me by reconfiguring in the same conditions
  45713. - --file=FILE[:TEMPLATE]
  45714. - instantiate the configuration file FILE
  45715. - --header=FILE[:TEMPLATE]
  45716. - instantiate the configuration header FILE
  45717. +# Whether we are building with GNU ld or not.
  45718. +with_gnu_ld=$lt_with_gnu_ld
  45719. -Configuration files:
  45720. -$config_files
  45721. +# Flag that allows shared libraries with undefined symbols to be built.
  45722. +allow_undefined_flag=$lt_allow_undefined_flag
  45723. -Configuration headers:
  45724. -$config_headers
  45725. +# Flag that enforces no undefined symbols.
  45726. +no_undefined_flag=$lt_no_undefined_flag
  45727. -Configuration commands:
  45728. -$config_commands
  45729. +# Flag to hardcode \$libdir into a binary during linking.
  45730. +# This must work even if \$libdir does not exist
  45731. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  45732. -Report bugs to <bug-autoconf@gnu.org>."
  45733. -_ACEOF
  45734. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  45735. +# during linking. This must work even if \$libdir does not exist.
  45736. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  45737. -cat >>$CONFIG_STATUS <<_ACEOF
  45738. -ac_cs_version="\\
  45739. -MPEG Audio Decoder config.status 0.15.1b
  45740. -configured by $0, generated by GNU Autoconf 2.59,
  45741. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  45742. +# Whether we need a single "-rpath" flag with a separated argument.
  45743. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  45744. -Copyright (C) 2003 Free Software Foundation, Inc.
  45745. -This config.status script is free software; the Free Software Foundation
  45746. -gives unlimited permission to copy, distribute and modify it."
  45747. -srcdir=$srcdir
  45748. -INSTALL="$INSTALL"
  45749. -_ACEOF
  45750. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  45751. +# DIR into the resulting binary.
  45752. +hardcode_direct=$hardcode_direct
  45753. -cat >>$CONFIG_STATUS <<\_ACEOF
  45754. -# If no file are specified by the user, then we need to provide default
  45755. -# value. By we need to know if files were specified by the user.
  45756. -ac_need_defaults=:
  45757. -while test $# != 0
  45758. -do
  45759. - case $1 in
  45760. - --*=*)
  45761. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  45762. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  45763. - ac_shift=:
  45764. - ;;
  45765. - -*)
  45766. - ac_option=$1
  45767. - ac_optarg=$2
  45768. - ac_shift=shift
  45769. - ;;
  45770. - *) # This is not an option, so the user has probably given explicit
  45771. - # arguments.
  45772. - ac_option=$1
  45773. - ac_need_defaults=false;;
  45774. - esac
  45775. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  45776. +# DIR into the resulting binary and the resulting library dependency is
  45777. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  45778. +# library is relocated.
  45779. +hardcode_direct_absolute=$hardcode_direct_absolute
  45780. - case $ac_option in
  45781. - # Handling of the options.
  45782. -_ACEOF
  45783. -cat >>$CONFIG_STATUS <<\_ACEOF
  45784. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  45785. - ac_cs_recheck=: ;;
  45786. - --version | --vers* | -V )
  45787. - echo "$ac_cs_version"; exit 0 ;;
  45788. - --he | --h)
  45789. - # Conflict between --help and --header
  45790. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  45791. -Try \`$0 --help' for more information." >&5
  45792. -echo "$as_me: error: ambiguous option: $1
  45793. -Try \`$0 --help' for more information." >&2;}
  45794. - { (exit 1); exit 1; }; };;
  45795. - --help | --hel | -h )
  45796. - echo "$ac_cs_usage"; exit 0 ;;
  45797. - --debug | --d* | -d )
  45798. - debug=: ;;
  45799. - --file | --fil | --fi | --f )
  45800. - $ac_shift
  45801. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  45802. - ac_need_defaults=false;;
  45803. - --header | --heade | --head | --hea )
  45804. - $ac_shift
  45805. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  45806. - ac_need_defaults=false;;
  45807. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  45808. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  45809. - ac_cs_silent=: ;;
  45810. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  45811. +# into the resulting binary.
  45812. +hardcode_minus_L=$hardcode_minus_L
  45813. - # This is an error.
  45814. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  45815. -Try \`$0 --help' for more information." >&5
  45816. -echo "$as_me: error: unrecognized option: $1
  45817. -Try \`$0 --help' for more information." >&2;}
  45818. - { (exit 1); exit 1; }; } ;;
  45819. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  45820. +# into the resulting binary.
  45821. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  45822. - *) ac_config_targets="$ac_config_targets $1" ;;
  45823. +# Set to "yes" if building a shared library automatically hardcodes DIR
  45824. +# into the library and all subsequent libraries and executables linked
  45825. +# against it.
  45826. +hardcode_automatic=$hardcode_automatic
  45827. - esac
  45828. - shift
  45829. -done
  45830. +# Set to yes if linker adds runtime paths of dependent libraries
  45831. +# to runtime path list.
  45832. +inherit_rpath=$inherit_rpath
  45833. -ac_configure_extra_args=
  45834. +# Whether libtool must link a program against all its dependency libraries.
  45835. +link_all_deplibs=$link_all_deplibs
  45836. -if $ac_cs_silent; then
  45837. - exec 6>/dev/null
  45838. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  45839. -fi
  45840. +# Fix the shell variable \$srcfile for the compiler.
  45841. +fix_srcfile_path=$lt_fix_srcfile_path
  45842. -_ACEOF
  45843. -cat >>$CONFIG_STATUS <<_ACEOF
  45844. -if \$ac_cs_recheck; then
  45845. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  45846. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  45847. -fi
  45848. +# Set to "yes" if exported symbols are required.
  45849. +always_export_symbols=$always_export_symbols
  45850. +
  45851. +# The commands to list exported symbols.
  45852. +export_symbols_cmds=$lt_export_symbols_cmds
  45853. -_ACEOF
  45854. +# Symbols that should not be listed in the preloaded symbols.
  45855. +exclude_expsyms=$lt_exclude_expsyms
  45856. -cat >>$CONFIG_STATUS <<_ACEOF
  45857. -#
  45858. -# INIT-COMMANDS section.
  45859. -#
  45860. +# Symbols that must always be exported.
  45861. +include_expsyms=$lt_include_expsyms
  45862. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  45863. +# Commands necessary for linking programs (against libraries) with templates.
  45864. +prelink_cmds=$lt_prelink_cmds
  45865. -_ACEOF
  45866. +# Specify filename containing input files.
  45867. +file_list_spec=$lt_file_list_spec
  45868. +# How to hardcode a shared library path into an executable.
  45869. +hardcode_action=$hardcode_action
  45870. +# ### END LIBTOOL CONFIG
  45871. -cat >>$CONFIG_STATUS <<\_ACEOF
  45872. -for ac_config_target in $ac_config_targets
  45873. -do
  45874. - case "$ac_config_target" in
  45875. - # Handling of arguments.
  45876. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  45877. - "msvc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES msvc++/Makefile" ;;
  45878. - "libmad.list" ) CONFIG_FILES="$CONFIG_FILES libmad.list" ;;
  45879. - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  45880. - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  45881. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  45882. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  45883. - { (exit 1); exit 1; }; };;
  45884. - esac
  45885. -done
  45886. +_LT_EOF
  45887. -# If the user did not use the arguments to specify the items to instantiate,
  45888. -# then the envvar interface is used. Set only those that are not.
  45889. -# We use the long form for the default assignment because of an extremely
  45890. -# bizarre bug on SunOS 4.1.3.
  45891. -if $ac_need_defaults; then
  45892. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  45893. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  45894. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  45895. + case $host_os in
  45896. + aix3*)
  45897. + cat <<\_LT_EOF >> "$cfgfile"
  45898. +# AIX sometimes has problems with the GCC collect2 program. For some
  45899. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  45900. +# vanish in a puff of smoke.
  45901. +if test "X${COLLECT_NAMES+set}" != Xset; then
  45902. + COLLECT_NAMES=
  45903. + export COLLECT_NAMES
  45904. fi
  45905. +_LT_EOF
  45906. + ;;
  45907. + esac
  45908. -# Have a temporary directory for convenience. Make it in the build tree
  45909. -# simply because there is no reason to put it here, and in addition,
  45910. -# creating and moving files from /tmp can sometimes cause problems.
  45911. -# Create a temporary directory, and hook for its removal unless debugging.
  45912. -$debug ||
  45913. -{
  45914. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  45915. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  45916. -}
  45917. -
  45918. -# Create a (secure) tmp directory for tmp files.
  45919. -
  45920. -{
  45921. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  45922. - test -n "$tmp" && test -d "$tmp"
  45923. -} ||
  45924. -{
  45925. - tmp=./confstat$$-$RANDOM
  45926. - (umask 077 && mkdir $tmp)
  45927. -} ||
  45928. -{
  45929. - echo "$me: cannot create a temporary directory in ." >&2
  45930. - { (exit 1); exit 1; }
  45931. -}
  45932. -_ACEOF
  45933. +ltmain="$ac_aux_dir/ltmain.sh"
  45934. -cat >>$CONFIG_STATUS <<_ACEOF
  45935. -#
  45936. -# CONFIG_FILES section.
  45937. -#
  45938. + # We use sed instead of cat because bash on DJGPP gets confused if
  45939. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  45940. + # text mode, it properly converts lines to CR/LF. This bash problem
  45941. + # is reportedly fixed, but why not run on old versions too?
  45942. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  45943. + || (rm -f "$cfgfile"; exit 1)
  45944. -# No need to generate the scripts if there are no CONFIG_FILES.
  45945. -# This happens for instance when ./config.status config.h
  45946. -if test -n "\$CONFIG_FILES"; then
  45947. - # Protect against being on the right side of a sed subst in config.status.
  45948. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  45949. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  45950. -s,@SHELL@,$SHELL,;t t
  45951. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  45952. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  45953. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  45954. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  45955. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  45956. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  45957. -s,@exec_prefix@,$exec_prefix,;t t
  45958. -s,@prefix@,$prefix,;t t
  45959. -s,@program_transform_name@,$program_transform_name,;t t
  45960. -s,@bindir@,$bindir,;t t
  45961. -s,@sbindir@,$sbindir,;t t
  45962. -s,@libexecdir@,$libexecdir,;t t
  45963. -s,@datadir@,$datadir,;t t
  45964. -s,@sysconfdir@,$sysconfdir,;t t
  45965. -s,@sharedstatedir@,$sharedstatedir,;t t
  45966. -s,@localstatedir@,$localstatedir,;t t
  45967. -s,@libdir@,$libdir,;t t
  45968. -s,@includedir@,$includedir,;t t
  45969. -s,@oldincludedir@,$oldincludedir,;t t
  45970. -s,@infodir@,$infodir,;t t
  45971. -s,@mandir@,$mandir,;t t
  45972. -s,@build_alias@,$build_alias,;t t
  45973. -s,@host_alias@,$host_alias,;t t
  45974. -s,@target_alias@,$target_alias,;t t
  45975. -s,@DEFS@,$DEFS,;t t
  45976. -s,@ECHO_C@,$ECHO_C,;t t
  45977. -s,@ECHO_N@,$ECHO_N,;t t
  45978. -s,@ECHO_T@,$ECHO_T,;t t
  45979. -s,@LIBS@,$LIBS,;t t
  45980. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  45981. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  45982. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  45983. -s,@CYGPATH_W@,$CYGPATH_W,;t t
  45984. -s,@PACKAGE@,$PACKAGE,;t t
  45985. -s,@VERSION@,$VERSION,;t t
  45986. -s,@ACLOCAL@,$ACLOCAL,;t t
  45987. -s,@AUTOCONF@,$AUTOCONF,;t t
  45988. -s,@AUTOMAKE@,$AUTOMAKE,;t t
  45989. -s,@AUTOHEADER@,$AUTOHEADER,;t t
  45990. -s,@MAKEINFO@,$MAKEINFO,;t t
  45991. -s,@AMTAR@,$AMTAR,;t t
  45992. -s,@install_sh@,$install_sh,;t t
  45993. -s,@STRIP@,$STRIP,;t t
  45994. -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  45995. -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  45996. -s,@mkdir_p@,$mkdir_p,;t t
  45997. -s,@AWK@,$AWK,;t t
  45998. -s,@SET_MAKE@,$SET_MAKE,;t t
  45999. -s,@am__leading_dot@,$am__leading_dot,;t t
  46000. -s,@build@,$build,;t t
  46001. -s,@build_cpu@,$build_cpu,;t t
  46002. -s,@build_vendor@,$build_vendor,;t t
  46003. -s,@build_os@,$build_os,;t t
  46004. -s,@host@,$host,;t t
  46005. -s,@host_cpu@,$host_cpu,;t t
  46006. -s,@host_vendor@,$host_vendor,;t t
  46007. -s,@host_os@,$host_os,;t t
  46008. -s,@CC@,$CC,;t t
  46009. -s,@CFLAGS@,$CFLAGS,;t t
  46010. -s,@LDFLAGS@,$LDFLAGS,;t t
  46011. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  46012. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  46013. -s,@EXEEXT@,$EXEEXT,;t t
  46014. -s,@OBJEXT@,$OBJEXT,;t t
  46015. -s,@DEPDIR@,$DEPDIR,;t t
  46016. -s,@am__include@,$am__include,;t t
  46017. -s,@am__quote@,$am__quote,;t t
  46018. -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  46019. -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  46020. -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  46021. -s,@CCDEPMODE@,$CCDEPMODE,;t t
  46022. -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  46023. -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  46024. -s,@CCAS@,$CCAS,;t t
  46025. -s,@CCASFLAGS@,$CCASFLAGS,;t t
  46026. -s,@EGREP@,$EGREP,;t t
  46027. -s,@LN_S@,$LN_S,;t t
  46028. -s,@ECHO@,$ECHO,;t t
  46029. -s,@AR@,$AR,;t t
  46030. -s,@ac_ct_AR@,$ac_ct_AR,;t t
  46031. -s,@RANLIB@,$RANLIB,;t t
  46032. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  46033. -s,@CPP@,$CPP,;t t
  46034. -s,@CXX@,$CXX,;t t
  46035. -s,@CXXFLAGS@,$CXXFLAGS,;t t
  46036. -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  46037. -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  46038. -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  46039. -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  46040. -s,@CXXCPP@,$CXXCPP,;t t
  46041. -s,@F77@,$F77,;t t
  46042. -s,@FFLAGS@,$FFLAGS,;t t
  46043. -s,@ac_ct_F77@,$ac_ct_F77,;t t
  46044. -s,@LIBTOOL@,$LIBTOOL,;t t
  46045. -s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  46046. -s,@FPM@,$FPM,;t t
  46047. -s,@ASO@,$ASO,;t t
  46048. -s,@ASO_OBJS@,$ASO_OBJS,;t t
  46049. -s,@LIBOBJS@,$LIBOBJS,;t t
  46050. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  46051. -CEOF
  46052. -
  46053. -_ACEOF
  46054. -
  46055. - cat >>$CONFIG_STATUS <<\_ACEOF
  46056. - # Split the substitutions into bite-sized pieces for seds with
  46057. - # small command number limits, like on Digital OSF/1 and HP-UX.
  46058. - ac_max_sed_lines=48
  46059. - ac_sed_frag=1 # Number of current file.
  46060. - ac_beg=1 # First line for current file.
  46061. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  46062. - ac_more_lines=:
  46063. - ac_sed_cmds=
  46064. - while $ac_more_lines; do
  46065. - if test $ac_beg -gt 1; then
  46066. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  46067. - else
  46068. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  46069. - fi
  46070. - if test ! -s $tmp/subs.frag; then
  46071. - ac_more_lines=false
  46072. - else
  46073. - # The purpose of the label and of the branching condition is to
  46074. - # speed up the sed processing (if there are no `@' at all, there
  46075. - # is no need to browse any of the substitutions).
  46076. - # These are the two extra sed commands mentioned above.
  46077. - (echo ':t
  46078. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  46079. - if test -z "$ac_sed_cmds"; then
  46080. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  46081. - else
  46082. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  46083. - fi
  46084. - ac_sed_frag=`expr $ac_sed_frag + 1`
  46085. - ac_beg=$ac_end
  46086. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  46087. - fi
  46088. - done
  46089. - if test -z "$ac_sed_cmds"; then
  46090. - ac_sed_cmds=cat
  46091. - fi
  46092. -fi # test -n "$CONFIG_FILES"
  46093. + case $xsi_shell in
  46094. + yes)
  46095. + cat << \_LT_EOF >> "$cfgfile"
  46096. -_ACEOF
  46097. -cat >>$CONFIG_STATUS <<\_ACEOF
  46098. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  46099. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  46100. - case $ac_file in
  46101. - - | *:- | *:-:* ) # input from stdin
  46102. - cat >$tmp/stdin
  46103. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  46104. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  46105. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  46106. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  46107. - * ) ac_file_in=$ac_file.in ;;
  46108. +# func_dirname file append nondir_replacement
  46109. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  46110. +# otherwise set result to NONDIR_REPLACEMENT.
  46111. +func_dirname ()
  46112. +{
  46113. + case ${1} in
  46114. + */*) func_dirname_result="${1%/*}${2}" ;;
  46115. + * ) func_dirname_result="${3}" ;;
  46116. esac
  46117. +}
  46118. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  46119. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  46120. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46121. - X"$ac_file" : 'X\(//\)[^/]' \| \
  46122. - X"$ac_file" : 'X\(//\)$' \| \
  46123. - X"$ac_file" : 'X\(/\)' \| \
  46124. - . : '\(.\)' 2>/dev/null ||
  46125. -echo X"$ac_file" |
  46126. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46127. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46128. - /^X\(\/\/\)$/{ s//\1/; q; }
  46129. - /^X\(\/\).*/{ s//\1/; q; }
  46130. - s/.*/./; q'`
  46131. - { if $as_mkdir_p; then
  46132. - mkdir -p "$ac_dir"
  46133. - else
  46134. - as_dir="$ac_dir"
  46135. - as_dirs=
  46136. - while test ! -d "$as_dir"; do
  46137. - as_dirs="$as_dir $as_dirs"
  46138. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  46139. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46140. - X"$as_dir" : 'X\(//\)[^/]' \| \
  46141. - X"$as_dir" : 'X\(//\)$' \| \
  46142. - X"$as_dir" : 'X\(/\)' \| \
  46143. - . : '\(.\)' 2>/dev/null ||
  46144. -echo X"$as_dir" |
  46145. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46146. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46147. - /^X\(\/\/\)$/{ s//\1/; q; }
  46148. - /^X\(\/\).*/{ s//\1/; q; }
  46149. - s/.*/./; q'`
  46150. - done
  46151. - test ! -n "$as_dirs" || mkdir $as_dirs
  46152. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  46153. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  46154. - { (exit 1); exit 1; }; }; }
  46155. +# func_basename file
  46156. +func_basename ()
  46157. +{
  46158. + func_basename_result="${1##*/}"
  46159. +}
  46160. - ac_builddir=.
  46161. +# func_dirname_and_basename file append nondir_replacement
  46162. +# perform func_basename and func_dirname in a single function
  46163. +# call:
  46164. +# dirname: Compute the dirname of FILE. If nonempty,
  46165. +# add APPEND to the result, otherwise set result
  46166. +# to NONDIR_REPLACEMENT.
  46167. +# value returned in "$func_dirname_result"
  46168. +# basename: Compute filename of FILE.
  46169. +# value retuned in "$func_basename_result"
  46170. +# Implementation must be kept synchronized with func_dirname
  46171. +# and func_basename. For efficiency, we do not delegate to
  46172. +# those functions but instead duplicate the functionality here.
  46173. +func_dirname_and_basename ()
  46174. +{
  46175. + case ${1} in
  46176. + */*) func_dirname_result="${1%/*}${2}" ;;
  46177. + * ) func_dirname_result="${3}" ;;
  46178. + esac
  46179. + func_basename_result="${1##*/}"
  46180. +}
  46181. -if test "$ac_dir" != .; then
  46182. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  46183. - # A "../" for each directory in $ac_dir_suffix.
  46184. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  46185. -else
  46186. - ac_dir_suffix= ac_top_builddir=
  46187. -fi
  46188. +# func_stripname prefix suffix name
  46189. +# strip PREFIX and SUFFIX off of NAME.
  46190. +# PREFIX and SUFFIX must not contain globbing or regex special
  46191. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  46192. +# dot (in which case that matches only a dot).
  46193. +func_stripname ()
  46194. +{
  46195. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  46196. + # positional parameters, so assign one to ordinary parameter first.
  46197. + func_stripname_result=${3}
  46198. + func_stripname_result=${func_stripname_result#"${1}"}
  46199. + func_stripname_result=${func_stripname_result%"${2}"}
  46200. +}
  46201. -case $srcdir in
  46202. - .) # No --srcdir option. We are building in place.
  46203. - ac_srcdir=.
  46204. - if test -z "$ac_top_builddir"; then
  46205. - ac_top_srcdir=.
  46206. - else
  46207. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  46208. - fi ;;
  46209. - [\\/]* | ?:[\\/]* ) # Absolute path.
  46210. - ac_srcdir=$srcdir$ac_dir_suffix;
  46211. - ac_top_srcdir=$srcdir ;;
  46212. - *) # Relative path.
  46213. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  46214. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  46215. -esac
  46216. +# func_opt_split
  46217. +func_opt_split ()
  46218. +{
  46219. + func_opt_split_opt=${1%%=*}
  46220. + func_opt_split_arg=${1#*=}
  46221. +}
  46222. -# Do not use `cd foo && pwd` to compute absolute paths, because
  46223. -# the directories may not exist.
  46224. -case `pwd` in
  46225. -.) ac_abs_builddir="$ac_dir";;
  46226. -*)
  46227. - case "$ac_dir" in
  46228. - .) ac_abs_builddir=`pwd`;;
  46229. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  46230. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  46231. - esac;;
  46232. -esac
  46233. -case $ac_abs_builddir in
  46234. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  46235. -*)
  46236. - case ${ac_top_builddir}. in
  46237. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  46238. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  46239. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  46240. - esac;;
  46241. -esac
  46242. -case $ac_abs_builddir in
  46243. -.) ac_abs_srcdir=$ac_srcdir;;
  46244. -*)
  46245. - case $ac_srcdir in
  46246. - .) ac_abs_srcdir=$ac_abs_builddir;;
  46247. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  46248. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  46249. - esac;;
  46250. -esac
  46251. -case $ac_abs_builddir in
  46252. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  46253. -*)
  46254. - case $ac_top_srcdir in
  46255. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  46256. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  46257. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  46258. - esac;;
  46259. -esac
  46260. +# func_lo2o object
  46261. +func_lo2o ()
  46262. +{
  46263. + case ${1} in
  46264. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  46265. + *) func_lo2o_result=${1} ;;
  46266. + esac
  46267. +}
  46268. +# func_xform libobj-or-source
  46269. +func_xform ()
  46270. +{
  46271. + func_xform_result=${1%.*}.lo
  46272. +}
  46273. - case $INSTALL in
  46274. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  46275. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  46276. - esac
  46277. +# func_arith arithmetic-term...
  46278. +func_arith ()
  46279. +{
  46280. + func_arith_result=$(( $* ))
  46281. +}
  46282. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  46283. - # use $as_me), people would be surprised to read:
  46284. - # /* config.h. Generated by config.status. */
  46285. - if test x"$ac_file" = x-; then
  46286. - configure_input=
  46287. - else
  46288. - configure_input="$ac_file. "
  46289. - fi
  46290. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  46291. - sed 's,.*/,,'` by configure."
  46292. +# func_len string
  46293. +# STRING may not start with a hyphen.
  46294. +func_len ()
  46295. +{
  46296. + func_len_result=${#1}
  46297. +}
  46298. - # First look for the input files in the build tree, otherwise in the
  46299. - # src tree.
  46300. - ac_file_inputs=`IFS=:
  46301. - for f in $ac_file_in; do
  46302. - case $f in
  46303. - -) echo $tmp/stdin ;;
  46304. - [\\/$]*)
  46305. - # Absolute (can't be DOS-style, as IFS=:)
  46306. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  46307. -echo "$as_me: error: cannot find input file: $f" >&2;}
  46308. - { (exit 1); exit 1; }; }
  46309. - echo "$f";;
  46310. - *) # Relative
  46311. - if test -f "$f"; then
  46312. - # Build tree
  46313. - echo "$f"
  46314. - elif test -f "$srcdir/$f"; then
  46315. - # Source tree
  46316. - echo "$srcdir/$f"
  46317. - else
  46318. - # /dev/null tree
  46319. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  46320. -echo "$as_me: error: cannot find input file: $f" >&2;}
  46321. - { (exit 1); exit 1; }; }
  46322. - fi;;
  46323. - esac
  46324. - done` || { (exit 1); exit 1; }
  46325. +_LT_EOF
  46326. + ;;
  46327. + *) # Bourne compatible functions.
  46328. + cat << \_LT_EOF >> "$cfgfile"
  46329. - if test x"$ac_file" != x-; then
  46330. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  46331. -echo "$as_me: creating $ac_file" >&6;}
  46332. - rm -f "$ac_file"
  46333. - fi
  46334. -_ACEOF
  46335. -cat >>$CONFIG_STATUS <<_ACEOF
  46336. - sed "$ac_vpsub
  46337. -$extrasub
  46338. -_ACEOF
  46339. -cat >>$CONFIG_STATUS <<\_ACEOF
  46340. -:t
  46341. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  46342. -s,@configure_input@,$configure_input,;t t
  46343. -s,@srcdir@,$ac_srcdir,;t t
  46344. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  46345. -s,@top_srcdir@,$ac_top_srcdir,;t t
  46346. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  46347. -s,@builddir@,$ac_builddir,;t t
  46348. -s,@abs_builddir@,$ac_abs_builddir,;t t
  46349. -s,@top_builddir@,$ac_top_builddir,;t t
  46350. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  46351. -s,@INSTALL@,$ac_INSTALL,;t t
  46352. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  46353. - rm -f $tmp/stdin
  46354. - if test x"$ac_file" != x-; then
  46355. - mv $tmp/out $ac_file
  46356. +# func_dirname file append nondir_replacement
  46357. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  46358. +# otherwise set result to NONDIR_REPLACEMENT.
  46359. +func_dirname ()
  46360. +{
  46361. + # Extract subdirectory from the argument.
  46362. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  46363. + if test "X$func_dirname_result" = "X${1}"; then
  46364. + func_dirname_result="${3}"
  46365. else
  46366. - cat $tmp/out
  46367. - rm -f $tmp/out
  46368. + func_dirname_result="$func_dirname_result${2}"
  46369. fi
  46370. +}
  46371. -done
  46372. -_ACEOF
  46373. -cat >>$CONFIG_STATUS <<\_ACEOF
  46374. -
  46375. -#
  46376. -# CONFIG_HEADER section.
  46377. -#
  46378. +# func_basename file
  46379. +func_basename ()
  46380. +{
  46381. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  46382. +}
  46383. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  46384. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  46385. -#
  46386. -# ac_d sets the value in "#define NAME VALUE" lines.
  46387. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  46388. -ac_dB='[ ].*$,\1#\2'
  46389. -ac_dC=' '
  46390. -ac_dD=',;t'
  46391. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  46392. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  46393. -ac_uB='$,\1#\2define\3'
  46394. -ac_uC=' '
  46395. -ac_uD=',;t'
  46396. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  46397. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  46398. - case $ac_file in
  46399. - - | *:- | *:-:* ) # input from stdin
  46400. - cat >$tmp/stdin
  46401. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  46402. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  46403. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  46404. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  46405. - * ) ac_file_in=$ac_file.in ;;
  46406. +# func_stripname prefix suffix name
  46407. +# strip PREFIX and SUFFIX off of NAME.
  46408. +# PREFIX and SUFFIX must not contain globbing or regex special
  46409. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  46410. +# dot (in which case that matches only a dot).
  46411. +# func_strip_suffix prefix name
  46412. +func_stripname ()
  46413. +{
  46414. + case ${2} in
  46415. + .*) func_stripname_result=`$ECHO "X${3}" \
  46416. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  46417. + *) func_stripname_result=`$ECHO "X${3}" \
  46418. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  46419. esac
  46420. +}
  46421. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  46422. -echo "$as_me: creating $ac_file" >&6;}
  46423. +# sed scripts:
  46424. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  46425. +my_sed_long_arg='1s/^-[^=]*=//'
  46426. - # First look for the input files in the build tree, otherwise in the
  46427. - # src tree.
  46428. - ac_file_inputs=`IFS=:
  46429. - for f in $ac_file_in; do
  46430. - case $f in
  46431. - -) echo $tmp/stdin ;;
  46432. - [\\/$]*)
  46433. - # Absolute (can't be DOS-style, as IFS=:)
  46434. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  46435. -echo "$as_me: error: cannot find input file: $f" >&2;}
  46436. - { (exit 1); exit 1; }; }
  46437. - # Do quote $f, to prevent DOS paths from being IFS'd.
  46438. - echo "$f";;
  46439. - *) # Relative
  46440. - if test -f "$f"; then
  46441. - # Build tree
  46442. - echo "$f"
  46443. - elif test -f "$srcdir/$f"; then
  46444. - # Source tree
  46445. - echo "$srcdir/$f"
  46446. - else
  46447. - # /dev/null tree
  46448. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  46449. -echo "$as_me: error: cannot find input file: $f" >&2;}
  46450. - { (exit 1); exit 1; }; }
  46451. - fi;;
  46452. - esac
  46453. - done` || { (exit 1); exit 1; }
  46454. - # Remove the trailing spaces.
  46455. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  46456. +# func_opt_split
  46457. +func_opt_split ()
  46458. +{
  46459. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  46460. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  46461. +}
  46462. -_ACEOF
  46463. +# func_lo2o object
  46464. +func_lo2o ()
  46465. +{
  46466. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  46467. +}
  46468. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  46469. -# `conftest.undefs', that substitutes the proper values into
  46470. -# config.h.in to produce config.h. The first handles `#define'
  46471. -# templates, and the second `#undef' templates.
  46472. -# And first: Protect against being on the right side of a sed subst in
  46473. -# config.status. Protect against being in an unquoted here document
  46474. -# in config.status.
  46475. -rm -f conftest.defines conftest.undefs
  46476. -# Using a here document instead of a string reduces the quoting nightmare.
  46477. -# Putting comments in sed scripts is not portable.
  46478. -#
  46479. -# `end' is used to avoid that the second main sed command (meant for
  46480. -# 0-ary CPP macros) applies to n-ary macro definitions.
  46481. -# See the Autoconf documentation for `clear'.
  46482. -cat >confdef2sed.sed <<\_ACEOF
  46483. -s/[\\&,]/\\&/g
  46484. -s,[\\$`],\\&,g
  46485. -t clear
  46486. -: clear
  46487. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  46488. -t end
  46489. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  46490. -: end
  46491. -_ACEOF
  46492. -# If some macros were called several times there might be several times
  46493. -# the same #defines, which is useless. Nevertheless, we may not want to
  46494. -# sort them, since we want the *last* AC-DEFINE to be honored.
  46495. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  46496. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  46497. -rm -f confdef2sed.sed
  46498. -
  46499. -# This sed command replaces #undef with comments. This is necessary, for
  46500. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  46501. -# on some systems where configure will not decide to define it.
  46502. -cat >>conftest.undefs <<\_ACEOF
  46503. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  46504. -_ACEOF
  46505. -
  46506. -# Break up conftest.defines because some shells have a limit on the size
  46507. -# of here documents, and old seds have small limits too (100 cmds).
  46508. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  46509. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  46510. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  46511. -echo ' :' >>$CONFIG_STATUS
  46512. -rm -f conftest.tail
  46513. -while grep . conftest.defines >/dev/null
  46514. -do
  46515. - # Write a limited-size here document to $tmp/defines.sed.
  46516. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  46517. - # Speed up: don't consider the non `#define' lines.
  46518. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  46519. - # Work around the forget-to-reset-the-flag bug.
  46520. - echo 't clr' >>$CONFIG_STATUS
  46521. - echo ': clr' >>$CONFIG_STATUS
  46522. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  46523. - echo 'CEOF
  46524. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  46525. - rm -f $tmp/in
  46526. - mv $tmp/out $tmp/in
  46527. -' >>$CONFIG_STATUS
  46528. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  46529. - rm -f conftest.defines
  46530. - mv conftest.tail conftest.defines
  46531. -done
  46532. -rm -f conftest.defines
  46533. -echo ' fi # grep' >>$CONFIG_STATUS
  46534. -echo >>$CONFIG_STATUS
  46535. -
  46536. -# Break up conftest.undefs because some shells have a limit on the size
  46537. -# of here documents, and old seds have small limits too (100 cmds).
  46538. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  46539. -rm -f conftest.tail
  46540. -while grep . conftest.undefs >/dev/null
  46541. -do
  46542. - # Write a limited-size here document to $tmp/undefs.sed.
  46543. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  46544. - # Speed up: don't consider the non `#undef'
  46545. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  46546. - # Work around the forget-to-reset-the-flag bug.
  46547. - echo 't clr' >>$CONFIG_STATUS
  46548. - echo ': clr' >>$CONFIG_STATUS
  46549. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  46550. - echo 'CEOF
  46551. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  46552. - rm -f $tmp/in
  46553. - mv $tmp/out $tmp/in
  46554. -' >>$CONFIG_STATUS
  46555. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  46556. - rm -f conftest.undefs
  46557. - mv conftest.tail conftest.undefs
  46558. -done
  46559. -rm -f conftest.undefs
  46560. +# func_xform libobj-or-source
  46561. +func_xform ()
  46562. +{
  46563. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  46564. +}
  46565. -cat >>$CONFIG_STATUS <<\_ACEOF
  46566. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  46567. - # use $as_me), people would be surprised to read:
  46568. - # /* config.h. Generated by config.status. */
  46569. - if test x"$ac_file" = x-; then
  46570. - echo "/* Generated by configure. */" >$tmp/config.h
  46571. - else
  46572. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  46573. - fi
  46574. - cat $tmp/in >>$tmp/config.h
  46575. - rm -f $tmp/in
  46576. - if test x"$ac_file" != x-; then
  46577. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  46578. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  46579. -echo "$as_me: $ac_file is unchanged" >&6;}
  46580. - else
  46581. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  46582. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46583. - X"$ac_file" : 'X\(//\)[^/]' \| \
  46584. - X"$ac_file" : 'X\(//\)$' \| \
  46585. - X"$ac_file" : 'X\(/\)' \| \
  46586. - . : '\(.\)' 2>/dev/null ||
  46587. -echo X"$ac_file" |
  46588. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46589. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46590. - /^X\(\/\/\)$/{ s//\1/; q; }
  46591. - /^X\(\/\).*/{ s//\1/; q; }
  46592. - s/.*/./; q'`
  46593. - { if $as_mkdir_p; then
  46594. - mkdir -p "$ac_dir"
  46595. - else
  46596. - as_dir="$ac_dir"
  46597. - as_dirs=
  46598. - while test ! -d "$as_dir"; do
  46599. - as_dirs="$as_dir $as_dirs"
  46600. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  46601. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46602. - X"$as_dir" : 'X\(//\)[^/]' \| \
  46603. - X"$as_dir" : 'X\(//\)$' \| \
  46604. - X"$as_dir" : 'X\(/\)' \| \
  46605. - . : '\(.\)' 2>/dev/null ||
  46606. -echo X"$as_dir" |
  46607. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46608. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46609. - /^X\(\/\/\)$/{ s//\1/; q; }
  46610. - /^X\(\/\).*/{ s//\1/; q; }
  46611. - s/.*/./; q'`
  46612. - done
  46613. - test ! -n "$as_dirs" || mkdir $as_dirs
  46614. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  46615. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  46616. - { (exit 1); exit 1; }; }; }
  46617. +# func_arith arithmetic-term...
  46618. +func_arith ()
  46619. +{
  46620. + func_arith_result=`expr "$@"`
  46621. +}
  46622. - rm -f $ac_file
  46623. - mv $tmp/config.h $ac_file
  46624. - fi
  46625. - else
  46626. - cat $tmp/config.h
  46627. - rm -f $tmp/config.h
  46628. - fi
  46629. -# Compute $ac_file's index in $config_headers.
  46630. -_am_stamp_count=1
  46631. -for _am_header in $config_headers :; do
  46632. - case $_am_header in
  46633. - $ac_file | $ac_file:* )
  46634. - break ;;
  46635. - * )
  46636. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  46637. - esac
  46638. -done
  46639. -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  46640. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46641. - X$ac_file : 'X\(//\)[^/]' \| \
  46642. - X$ac_file : 'X\(//\)$' \| \
  46643. - X$ac_file : 'X\(/\)' \| \
  46644. - . : '\(.\)' 2>/dev/null ||
  46645. -echo X$ac_file |
  46646. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46647. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46648. - /^X\(\/\/\)$/{ s//\1/; q; }
  46649. - /^X\(\/\).*/{ s//\1/; q; }
  46650. - s/.*/./; q'`/stamp-h$_am_stamp_count
  46651. -done
  46652. -_ACEOF
  46653. -cat >>$CONFIG_STATUS <<\_ACEOF
  46654. +# func_len string
  46655. +# STRING may not start with a hyphen.
  46656. +func_len ()
  46657. +{
  46658. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  46659. +}
  46660. -#
  46661. -# CONFIG_COMMANDS section.
  46662. -#
  46663. -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  46664. - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  46665. - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  46666. - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  46667. -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46668. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  46669. - X"$ac_dest" : 'X\(//\)$' \| \
  46670. - X"$ac_dest" : 'X\(/\)' \| \
  46671. - . : '\(.\)' 2>/dev/null ||
  46672. -echo X"$ac_dest" |
  46673. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46674. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46675. - /^X\(\/\/\)$/{ s//\1/; q; }
  46676. - /^X\(\/\).*/{ s//\1/; q; }
  46677. - s/.*/./; q'`
  46678. - { if $as_mkdir_p; then
  46679. - mkdir -p "$ac_dir"
  46680. - else
  46681. - as_dir="$ac_dir"
  46682. - as_dirs=
  46683. - while test ! -d "$as_dir"; do
  46684. - as_dirs="$as_dir $as_dirs"
  46685. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  46686. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46687. - X"$as_dir" : 'X\(//\)[^/]' \| \
  46688. - X"$as_dir" : 'X\(//\)$' \| \
  46689. - X"$as_dir" : 'X\(/\)' \| \
  46690. - . : '\(.\)' 2>/dev/null ||
  46691. -echo X"$as_dir" |
  46692. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46693. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46694. - /^X\(\/\/\)$/{ s//\1/; q; }
  46695. - /^X\(\/\).*/{ s//\1/; q; }
  46696. - s/.*/./; q'`
  46697. - done
  46698. - test ! -n "$as_dirs" || mkdir $as_dirs
  46699. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  46700. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  46701. - { (exit 1); exit 1; }; }; }
  46702. +_LT_EOF
  46703. +esac
  46704. - ac_builddir=.
  46705. +case $lt_shell_append in
  46706. + yes)
  46707. + cat << \_LT_EOF >> "$cfgfile"
  46708. -if test "$ac_dir" != .; then
  46709. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  46710. - # A "../" for each directory in $ac_dir_suffix.
  46711. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  46712. -else
  46713. - ac_dir_suffix= ac_top_builddir=
  46714. -fi
  46715. +# func_append var value
  46716. +# Append VALUE to the end of shell variable VAR.
  46717. +func_append ()
  46718. +{
  46719. + eval "$1+=\$2"
  46720. +}
  46721. +_LT_EOF
  46722. + ;;
  46723. + *)
  46724. + cat << \_LT_EOF >> "$cfgfile"
  46725. -case $srcdir in
  46726. - .) # No --srcdir option. We are building in place.
  46727. - ac_srcdir=.
  46728. - if test -z "$ac_top_builddir"; then
  46729. - ac_top_srcdir=.
  46730. - else
  46731. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  46732. - fi ;;
  46733. - [\\/]* | ?:[\\/]* ) # Absolute path.
  46734. - ac_srcdir=$srcdir$ac_dir_suffix;
  46735. - ac_top_srcdir=$srcdir ;;
  46736. - *) # Relative path.
  46737. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  46738. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  46739. -esac
  46740. +# func_append var value
  46741. +# Append VALUE to the end of shell variable VAR.
  46742. +func_append ()
  46743. +{
  46744. + eval "$1=\$$1\$2"
  46745. +}
  46746. -# Do not use `cd foo && pwd` to compute absolute paths, because
  46747. -# the directories may not exist.
  46748. -case `pwd` in
  46749. -.) ac_abs_builddir="$ac_dir";;
  46750. -*)
  46751. - case "$ac_dir" in
  46752. - .) ac_abs_builddir=`pwd`;;
  46753. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  46754. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  46755. - esac;;
  46756. -esac
  46757. -case $ac_abs_builddir in
  46758. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  46759. -*)
  46760. - case ${ac_top_builddir}. in
  46761. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  46762. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  46763. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  46764. - esac;;
  46765. -esac
  46766. -case $ac_abs_builddir in
  46767. -.) ac_abs_srcdir=$ac_srcdir;;
  46768. -*)
  46769. - case $ac_srcdir in
  46770. - .) ac_abs_srcdir=$ac_abs_builddir;;
  46771. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  46772. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  46773. - esac;;
  46774. -esac
  46775. -case $ac_abs_builddir in
  46776. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  46777. -*)
  46778. - case $ac_top_srcdir in
  46779. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  46780. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  46781. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  46782. - esac;;
  46783. -esac
  46784. +_LT_EOF
  46785. + ;;
  46786. + esac
  46787. - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  46788. -echo "$as_me: executing $ac_dest commands" >&6;}
  46789. - case $ac_dest in
  46790. - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  46791. - # Strip MF so we end up with the name of the file.
  46792. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  46793. - # Check whether this is an Automake generated Makefile or not.
  46794. - # We used to match only the files named `Makefile.in', but
  46795. - # some people rename them; so instead we look at the file content.
  46796. - # Grep'ing the first line is not enough: some people post-process
  46797. - # each Makefile.in and add a new line on top of each file to say so.
  46798. - # So let's grep whole file.
  46799. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  46800. - dirpart=`(dirname "$mf") 2>/dev/null ||
  46801. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46802. - X"$mf" : 'X\(//\)[^/]' \| \
  46803. - X"$mf" : 'X\(//\)$' \| \
  46804. - X"$mf" : 'X\(/\)' \| \
  46805. - . : '\(.\)' 2>/dev/null ||
  46806. -echo X"$mf" |
  46807. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46808. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46809. - /^X\(\/\/\)$/{ s//\1/; q; }
  46810. - /^X\(\/\).*/{ s//\1/; q; }
  46811. - s/.*/./; q'`
  46812. - else
  46813. - continue
  46814. - fi
  46815. - grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  46816. - # Extract the definition of DEP_FILES from the Makefile without
  46817. - # running `make'.
  46818. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  46819. - test -z "$DEPDIR" && continue
  46820. - # When using ansi2knr, U may be empty or an underscore; expand it
  46821. - U=`sed -n -e '/^U = / s///p' < "$mf"`
  46822. - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  46823. - # We invoke sed twice because it is the simplest approach to
  46824. - # changing $(DEPDIR) to its actual value in the expansion.
  46825. - for file in `sed -n -e '
  46826. - /^DEP_FILES = .*\\\\$/ {
  46827. - s/^DEP_FILES = //
  46828. - :loop
  46829. - s/\\\\$//
  46830. - p
  46831. - n
  46832. - /\\\\$/ b loop
  46833. - p
  46834. - }
  46835. - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  46836. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  46837. - # Make sure the directory exists.
  46838. - test -f "$dirpart/$file" && continue
  46839. - fdir=`(dirname "$file") 2>/dev/null ||
  46840. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46841. - X"$file" : 'X\(//\)[^/]' \| \
  46842. - X"$file" : 'X\(//\)$' \| \
  46843. - X"$file" : 'X\(/\)' \| \
  46844. - . : '\(.\)' 2>/dev/null ||
  46845. -echo X"$file" |
  46846. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46847. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46848. - /^X\(\/\/\)$/{ s//\1/; q; }
  46849. - /^X\(\/\).*/{ s//\1/; q; }
  46850. - s/.*/./; q'`
  46851. - { if $as_mkdir_p; then
  46852. - mkdir -p $dirpart/$fdir
  46853. - else
  46854. - as_dir=$dirpart/$fdir
  46855. - as_dirs=
  46856. - while test ! -d "$as_dir"; do
  46857. - as_dirs="$as_dir $as_dirs"
  46858. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  46859. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46860. - X"$as_dir" : 'X\(//\)[^/]' \| \
  46861. - X"$as_dir" : 'X\(//\)$' \| \
  46862. - X"$as_dir" : 'X\(/\)' \| \
  46863. - . : '\(.\)' 2>/dev/null ||
  46864. -echo X"$as_dir" |
  46865. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46866. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46867. - /^X\(\/\/\)$/{ s//\1/; q; }
  46868. - /^X\(\/\).*/{ s//\1/; q; }
  46869. - s/.*/./; q'`
  46870. - done
  46871. - test ! -n "$as_dirs" || mkdir $as_dirs
  46872. - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  46873. -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  46874. - { (exit 1); exit 1; }; }; }
  46875. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  46876. + || (rm -f "$cfgfile"; exit 1)
  46877. +
  46878. + mv -f "$cfgfile" "$ofile" ||
  46879. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  46880. + chmod +x "$ofile"
  46881. - # echo "creating $dirpart/$file"
  46882. - echo '# dummy' > "$dirpart/$file"
  46883. - done
  46884. -done
  46885. ;;
  46886. +
  46887. esac
  46888. -done
  46889. -_ACEOF
  46890. +done # for ac_tag
  46891. -cat >>$CONFIG_STATUS <<\_ACEOF
  46892. -{ (exit 0); exit 0; }
  46893. +as_fn_exit 0
  46894. _ACEOF
  46895. -chmod +x $CONFIG_STATUS
  46896. ac_clean_files=$ac_clean_files_save
  46897. +test $ac_write_fail = 0 ||
  46898. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  46899. +
  46900. # configure is writing to config.log, and then calls config.status.
  46901. # config.status does its own redirection, appending to config.log.
  46902. @@ -23101,6 +14248,10 @@
  46903. exec 5>>config.log
  46904. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  46905. # would make configure fail if this is the last instruction.
  46906. - $ac_cs_success || { (exit 1); exit 1; }
  46907. + $ac_cs_success || as_fn_exit $?
  46908. +fi
  46909. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  46910. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  46911. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  46912. fi
  46913. diff -Nur libmad-0.15.1b.orig/configure.ac libmad-0.15.1b/configure.ac
  46914. --- libmad-0.15.1b.orig/configure.ac 2004-01-23 10:41:32.000000000 +0100
  46915. +++ libmad-0.15.1b/configure.ac 2011-02-17 17:21:40.823562079 +0100
  46916. @@ -140,7 +140,6 @@
  46917. case "$optimize" in
  46918. -O|"-O "*)
  46919. optimize="-O"
  46920. - optimize="$optimize -fforce-mem"
  46921. optimize="$optimize -fforce-addr"
  46922. : #x optimize="$optimize -finline-functions"
  46923. : #- optimize="$optimize -fstrength-reduce"
  46924. diff -Nur libmad-0.15.1b.orig/depcomp libmad-0.15.1b/depcomp
  46925. --- libmad-0.15.1b.orig/depcomp 2003-03-28 11:44:22.000000000 +0100
  46926. +++ libmad-0.15.1b/depcomp 2011-02-17 17:22:46.593563608 +0100
  46927. @@ -1,7 +1,10 @@
  46928. #! /bin/sh
  46929. -
  46930. # depcomp - compile a program generating dependencies as side-effects
  46931. -# Copyright 1999, 2000 Free Software Foundation, Inc.
  46932. +
  46933. +scriptversion=2009-04-28.21; # UTC
  46934. +
  46935. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  46936. +# Software Foundation, Inc.
  46937. # This program is free software; you can redistribute it and/or modify
  46938. # it under the terms of the GNU General Public License as published by
  46939. @@ -14,9 +17,7 @@
  46940. # GNU General Public License for more details.
  46941. # You should have received a copy of the GNU General Public License
  46942. -# along with this program; if not, write to the Free Software
  46943. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  46944. -# 02111-1307, USA.
  46945. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  46946. # As a special exception to the GNU General Public License, if you
  46947. # distribute this file as part of a program that contains a
  46948. @@ -25,22 +26,45 @@
  46949. # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
  46950. +case $1 in
  46951. + '')
  46952. + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  46953. + exit 1;
  46954. + ;;
  46955. + -h | --h*)
  46956. + cat <<\EOF
  46957. +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  46958. +
  46959. +Run PROGRAMS ARGS to compile a file, generating dependencies
  46960. +as side-effects.
  46961. +
  46962. +Environment variables:
  46963. + depmode Dependency tracking mode.
  46964. + source Source file read by `PROGRAMS ARGS'.
  46965. + object Object file output by `PROGRAMS ARGS'.
  46966. + DEPDIR directory where to store dependencies.
  46967. + depfile Dependency file to output.
  46968. + tmpdepfile Temporary file to use when outputing dependencies.
  46969. + libtool Whether libtool is used (yes/no).
  46970. +
  46971. +Report bugs to <bug-automake@gnu.org>.
  46972. +EOF
  46973. + exit $?
  46974. + ;;
  46975. + -v | --v*)
  46976. + echo "depcomp $scriptversion"
  46977. + exit $?
  46978. + ;;
  46979. +esac
  46980. +
  46981. if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  46982. echo "depcomp: Variables source, object and depmode must be set" 1>&2
  46983. exit 1
  46984. fi
  46985. -# `libtool' can also be set to `yes' or `no'.
  46986. -
  46987. -if test -z "$depfile"; then
  46988. - base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
  46989. - dir=`echo "$object" | sed 's,/.*$,/,'`
  46990. - if test "$dir" = "$object"; then
  46991. - dir=
  46992. - fi
  46993. - # FIXME: should be _deps on DOS.
  46994. - depfile="$dir.deps/$base"
  46995. -fi
  46996. +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  46997. +depfile=${depfile-`echo "$object" |
  46998. + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  46999. tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  47000. rm -f "$tmpdepfile"
  47001. @@ -61,12 +85,34 @@
  47002. depmode=dashmstdout
  47003. fi
  47004. +cygpath_u="cygpath -u -f -"
  47005. +if test "$depmode" = msvcmsys; then
  47006. + # This is just like msvisualcpp but w/o cygpath translation.
  47007. + # Just convert the backslash-escaped backslashes to single forward
  47008. + # slashes to satisfy depend.m4
  47009. + cygpath_u="sed s,\\\\\\\\,/,g"
  47010. + depmode=msvisualcpp
  47011. +fi
  47012. +
  47013. case "$depmode" in
  47014. gcc3)
  47015. ## gcc 3 implements dependency tracking that does exactly what
  47016. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  47017. ## it if -MD -MP comes after the -MF stuff. Hmm.
  47018. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  47019. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  47020. +## the command line argument order; so add the flags where they
  47021. +## appear in depend2.am. Note that the slowdown incurred here
  47022. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  47023. + for arg
  47024. + do
  47025. + case $arg in
  47026. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  47027. + *) set fnord "$@" "$arg" ;;
  47028. + esac
  47029. + shift # fnord
  47030. + shift # $arg
  47031. + done
  47032. + "$@"
  47033. stat=$?
  47034. if test $stat -eq 0; then :
  47035. else
  47036. @@ -153,14 +199,14 @@
  47037. ' < "$tmpdepfile" \
  47038. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  47039. tr '
  47040. -' ' ' >> $depfile
  47041. - echo >> $depfile
  47042. +' ' ' >> "$depfile"
  47043. + echo >> "$depfile"
  47044. # The second pass generates a dummy entry for each header file.
  47045. tr ' ' '
  47046. ' < "$tmpdepfile" \
  47047. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  47048. - >> $depfile
  47049. + >> "$depfile"
  47050. else
  47051. # The sourcefile does not contain any dependencies, so just
  47052. # store a dummy comment line, to avoid errors with the Makefile
  47053. @@ -172,31 +218,43 @@
  47054. aix)
  47055. # The C for AIX Compiler uses -M and outputs the dependencies
  47056. - # in a .u file. This file always lives in the current directory.
  47057. - # Also, the AIX compiler puts `$object:' at the start of each line;
  47058. - # $object doesn't have directory information.
  47059. - stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
  47060. - tmpdepfile="$stripped.u"
  47061. - outname="$stripped.o"
  47062. + # in a .u file. In older versions, this file always lives in the
  47063. + # current directory. Also, the AIX compiler puts `$object:' at the
  47064. + # start of each line; $object doesn't have directory information.
  47065. + # Version 6 uses the directory in both cases.
  47066. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  47067. + test "x$dir" = "x$object" && dir=
  47068. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  47069. if test "$libtool" = yes; then
  47070. + tmpdepfile1=$dir$base.u
  47071. + tmpdepfile2=$base.u
  47072. + tmpdepfile3=$dir.libs/$base.u
  47073. "$@" -Wc,-M
  47074. else
  47075. + tmpdepfile1=$dir$base.u
  47076. + tmpdepfile2=$dir$base.u
  47077. + tmpdepfile3=$dir$base.u
  47078. "$@" -M
  47079. fi
  47080. -
  47081. stat=$?
  47082. +
  47083. if test $stat -eq 0; then :
  47084. else
  47085. - rm -f "$tmpdepfile"
  47086. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  47087. exit $stat
  47088. fi
  47089. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  47090. + do
  47091. + test -f "$tmpdepfile" && break
  47092. + done
  47093. if test -f "$tmpdepfile"; then
  47094. # Each line is of the form `foo.o: dependent.h'.
  47095. # Do two passes, one to just change these to
  47096. # `$object: dependent.h' and one to simply `dependent.h:'.
  47097. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  47098. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  47099. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  47100. + # That's a tab and a space in the [].
  47101. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  47102. else
  47103. # The sourcefile does not contain any dependencies, so just
  47104. # store a dummy comment line, to avoid errors with the Makefile
  47105. @@ -207,11 +265,9 @@
  47106. ;;
  47107. icc)
  47108. - # Must come before tru64.
  47109. -
  47110. - # Intel's C compiler understands `-MD -MF file'. However
  47111. + # Intel's C compiler understands `-MD -MF file'. However on
  47112. # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  47113. - # will fill foo.d with something like
  47114. + # ICC 7.0 will fill foo.d with something like
  47115. # foo.o: sub/foo.c
  47116. # foo.o: sub/foo.h
  47117. # which is wrong. We want:
  47118. @@ -219,6 +275,12 @@
  47119. # sub/foo.o: sub/foo.h
  47120. # sub/foo.c:
  47121. # sub/foo.h:
  47122. + # ICC 7.1 will output
  47123. + # foo.o: sub/foo.c sub/foo.h
  47124. + # and will wrap long lines using \ :
  47125. + # foo.o: sub/foo.c ... \
  47126. + # sub/foo.h ... \
  47127. + # ...
  47128. "$@" -MD -MF "$tmpdepfile"
  47129. stat=$?
  47130. @@ -228,14 +290,63 @@
  47131. exit $stat
  47132. fi
  47133. rm -f "$depfile"
  47134. - # Each line is of the form `foo.o: dependent.h'.
  47135. + # Each line is of the form `foo.o: dependent.h',
  47136. + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  47137. # Do two passes, one to just change these to
  47138. # `$object: dependent.h' and one to simply `dependent.h:'.
  47139. - sed -e "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  47140. - sed -e "s,^[^:]*: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  47141. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  47142. + # Some versions of the HPUX 10.20 sed can't process this invocation
  47143. + # correctly. Breaking it into two sed invocations is a workaround.
  47144. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  47145. + sed -e 's/$/ :/' >> "$depfile"
  47146. rm -f "$tmpdepfile"
  47147. ;;
  47148. +hp2)
  47149. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  47150. + # compilers, which have integrated preprocessors. The correct option
  47151. + # to use with these is +Maked; it writes dependencies to a file named
  47152. + # 'foo.d', which lands next to the object file, wherever that
  47153. + # happens to be.
  47154. + # Much of this is similar to the tru64 case; see comments there.
  47155. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  47156. + test "x$dir" = "x$object" && dir=
  47157. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  47158. + if test "$libtool" = yes; then
  47159. + tmpdepfile1=$dir$base.d
  47160. + tmpdepfile2=$dir.libs/$base.d
  47161. + "$@" -Wc,+Maked
  47162. + else
  47163. + tmpdepfile1=$dir$base.d
  47164. + tmpdepfile2=$dir$base.d
  47165. + "$@" +Maked
  47166. + fi
  47167. + stat=$?
  47168. + if test $stat -eq 0; then :
  47169. + else
  47170. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  47171. + exit $stat
  47172. + fi
  47173. +
  47174. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  47175. + do
  47176. + test -f "$tmpdepfile" && break
  47177. + done
  47178. + if test -f "$tmpdepfile"; then
  47179. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  47180. + # Add `dependent.h:' lines.
  47181. + sed -ne '2,${
  47182. + s/^ *//
  47183. + s/ \\*$//
  47184. + s/$/:/
  47185. + p
  47186. + }' "$tmpdepfile" >> "$depfile"
  47187. + else
  47188. + echo "#dummy" > "$depfile"
  47189. + fi
  47190. + rm -f "$tmpdepfile" "$tmpdepfile2"
  47191. + ;;
  47192. +
  47193. tru64)
  47194. # The Tru64 compiler uses -MD to generate dependencies as a side
  47195. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  47196. @@ -247,31 +358,47 @@
  47197. base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  47198. if test "$libtool" = yes; then
  47199. - tmpdepfile1="$dir.libs/$base.lo.d"
  47200. - tmpdepfile2="$dir.libs/$base.d"
  47201. + # With Tru64 cc, shared objects can also be used to make a
  47202. + # static library. This mechanism is used in libtool 1.4 series to
  47203. + # handle both shared and static libraries in a single compilation.
  47204. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  47205. + #
  47206. + # With libtool 1.5 this exception was removed, and libtool now
  47207. + # generates 2 separate objects for the 2 libraries. These two
  47208. + # compilations output dependencies in $dir.libs/$base.o.d and
  47209. + # in $dir$base.o.d. We have to check for both files, because
  47210. + # one of the two compilations can be disabled. We should prefer
  47211. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  47212. + # automatically cleaned when .libs/ is deleted, while ignoring
  47213. + # the former would cause a distcleancheck panic.
  47214. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  47215. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  47216. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  47217. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  47218. "$@" -Wc,-MD
  47219. else
  47220. - tmpdepfile1="$dir$base.o.d"
  47221. - tmpdepfile2="$dir$base.d"
  47222. + tmpdepfile1=$dir$base.o.d
  47223. + tmpdepfile2=$dir$base.d
  47224. + tmpdepfile3=$dir$base.d
  47225. + tmpdepfile4=$dir$base.d
  47226. "$@" -MD
  47227. fi
  47228. stat=$?
  47229. if test $stat -eq 0; then :
  47230. else
  47231. - rm -f "$tmpdepfile1" "$tmpdepfile2"
  47232. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  47233. exit $stat
  47234. fi
  47235. - if test -f "$tmpdepfile1"; then
  47236. - tmpdepfile="$tmpdepfile1"
  47237. - else
  47238. - tmpdepfile="$tmpdepfile2"
  47239. - fi
  47240. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  47241. + do
  47242. + test -f "$tmpdepfile" && break
  47243. + done
  47244. if test -f "$tmpdepfile"; then
  47245. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  47246. - # That's a space and a tab in the [].
  47247. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  47248. + # That's a tab and a space in the [].
  47249. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  47250. else
  47251. echo "#dummy" > "$depfile"
  47252. fi
  47253. @@ -284,12 +411,12 @@
  47254. dashmstdout)
  47255. # Important note: in order to support this mode, a compiler *must*
  47256. - # always write the proprocessed file to stdout, regardless of -o.
  47257. + # always write the preprocessed file to stdout, regardless of -o.
  47258. "$@" || exit $?
  47259. # Remove the call to Libtool.
  47260. if test "$libtool" = yes; then
  47261. - while test $1 != '--mode=compile'; do
  47262. + while test "X$1" != 'X--mode=compile'; do
  47263. shift
  47264. done
  47265. shift
  47266. @@ -340,32 +467,39 @@
  47267. "$@" || exit $?
  47268. # Remove any Libtool call
  47269. if test "$libtool" = yes; then
  47270. - while test $1 != '--mode=compile'; do
  47271. + while test "X$1" != 'X--mode=compile'; do
  47272. shift
  47273. done
  47274. shift
  47275. fi
  47276. # X makedepend
  47277. shift
  47278. - cleared=no
  47279. - for arg in "$@"; do
  47280. + cleared=no eat=no
  47281. + for arg
  47282. + do
  47283. case $cleared in
  47284. no)
  47285. set ""; shift
  47286. cleared=yes ;;
  47287. esac
  47288. + if test $eat = yes; then
  47289. + eat=no
  47290. + continue
  47291. + fi
  47292. case "$arg" in
  47293. -D*|-I*)
  47294. set fnord "$@" "$arg"; shift ;;
  47295. # Strip any option that makedepend may not understand. Remove
  47296. # the object too, otherwise makedepend will parse it as a source file.
  47297. + -arch)
  47298. + eat=yes ;;
  47299. -*|$object)
  47300. ;;
  47301. *)
  47302. set fnord "$@" "$arg"; shift ;;
  47303. esac
  47304. done
  47305. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  47306. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  47307. touch "$tmpdepfile"
  47308. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  47309. rm -f "$depfile"
  47310. @@ -380,12 +514,12 @@
  47311. cpp)
  47312. # Important note: in order to support this mode, a compiler *must*
  47313. - # always write the proprocessed file to stdout.
  47314. + # always write the preprocessed file to stdout.
  47315. "$@" || exit $?
  47316. # Remove the call to Libtool.
  47317. if test "$libtool" = yes; then
  47318. - while test $1 != '--mode=compile'; do
  47319. + while test "X$1" != 'X--mode=compile'; do
  47320. shift
  47321. done
  47322. shift
  47323. @@ -411,7 +545,8 @@
  47324. done
  47325. "$@" -E |
  47326. - sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  47327. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  47328. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  47329. sed '$ s: \\$::' > "$tmpdepfile"
  47330. rm -f "$depfile"
  47331. echo "$object : \\" > "$depfile"
  47332. @@ -422,13 +557,27 @@
  47333. msvisualcpp)
  47334. # Important note: in order to support this mode, a compiler *must*
  47335. - # always write the proprocessed file to stdout, regardless of -o,
  47336. - # because we must use -o when running libtool.
  47337. + # always write the preprocessed file to stdout.
  47338. "$@" || exit $?
  47339. +
  47340. + # Remove the call to Libtool.
  47341. + if test "$libtool" = yes; then
  47342. + while test "X$1" != 'X--mode=compile'; do
  47343. + shift
  47344. + done
  47345. + shift
  47346. + fi
  47347. +
  47348. IFS=" "
  47349. for arg
  47350. do
  47351. case "$arg" in
  47352. + -o)
  47353. + shift
  47354. + ;;
  47355. + $object)
  47356. + shift
  47357. + ;;
  47358. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  47359. set fnord "$@"
  47360. shift
  47361. @@ -441,16 +590,23 @@
  47362. ;;
  47363. esac
  47364. done
  47365. - "$@" -E |
  47366. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  47367. + "$@" -E 2>/dev/null |
  47368. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  47369. rm -f "$depfile"
  47370. echo "$object : \\" > "$depfile"
  47371. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  47372. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  47373. echo " " >> "$depfile"
  47374. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  47375. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  47376. rm -f "$tmpdepfile"
  47377. ;;
  47378. +msvcmsys)
  47379. + # This case exists only to let depend.m4 do its work. It works by
  47380. + # looking at the text of this script. This case will never be run,
  47381. + # since it is checked for above.
  47382. + exit 1
  47383. + ;;
  47384. +
  47385. none)
  47386. exec "$@"
  47387. ;;
  47388. @@ -462,3 +618,13 @@
  47389. esac
  47390. exit 0
  47391. +
  47392. +# Local Variables:
  47393. +# mode: shell-script
  47394. +# sh-indentation: 2
  47395. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  47396. +# time-stamp-start: "scriptversion="
  47397. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  47398. +# time-stamp-time-zone: "UTC"
  47399. +# time-stamp-end: "; # UTC"
  47400. +# End:
  47401. diff -Nur libmad-0.15.1b.orig/INSTALL libmad-0.15.1b/INSTALL
  47402. --- libmad-0.15.1b.orig/INSTALL 2000-02-28 07:21:43.000000000 +0100
  47403. +++ libmad-0.15.1b/INSTALL 2011-02-17 17:22:46.563563049 +0100
  47404. @@ -1,48 +1,80 @@
  47405. +Installation Instructions
  47406. +*************************
  47407. +
  47408. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  47409. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  47410. +
  47411. + Copying and distribution of this file, with or without modification,
  47412. +are permitted in any medium without royalty provided the copyright
  47413. +notice and this notice are preserved. This file is offered as-is,
  47414. +without warranty of any kind.
  47415. +
  47416. Basic Installation
  47417. ==================
  47418. - These are generic installation instructions.
  47419. + Briefly, the shell commands `./configure; make; make install' should
  47420. +configure, build, and install this package. The following
  47421. +more-detailed instructions are generic; see the `README' file for
  47422. +instructions specific to this package. Some packages provide this
  47423. +`INSTALL' file but do not implement all of the features documented
  47424. +below. The lack of an optional feature in a given package is not
  47425. +necessarily a bug. More recommendations for GNU packages can be found
  47426. +in *note Makefile Conventions: (standards)Makefile Conventions.
  47427. The `configure' shell script attempts to guess correct values for
  47428. various system-dependent variables used during compilation. It uses
  47429. those values to create a `Makefile' in each directory of the package.
  47430. It may also create one or more `.h' files containing system-dependent
  47431. definitions. Finally, it creates a shell script `config.status' that
  47432. -you can run in the future to recreate the current configuration, a file
  47433. -`config.cache' that saves the results of its tests to speed up
  47434. -reconfiguring, and a file `config.log' containing compiler output
  47435. -(useful mainly for debugging `configure').
  47436. +you can run in the future to recreate the current configuration, and a
  47437. +file `config.log' containing compiler output (useful mainly for
  47438. +debugging `configure').
  47439. +
  47440. + It can also use an optional file (typically called `config.cache'
  47441. +and enabled with `--cache-file=config.cache' or simply `-C') that saves
  47442. +the results of its tests to speed up reconfiguring. Caching is
  47443. +disabled by default to prevent problems with accidental use of stale
  47444. +cache files.
  47445. If you need to do unusual things to compile the package, please try
  47446. to figure out how `configure' could check whether to do them, and mail
  47447. diffs or instructions to the address given in the `README' so they can
  47448. -be considered for the next release. If at some point `config.cache'
  47449. -contains results you don't want to keep, you may remove or edit it.
  47450. -
  47451. - The file `configure.in' is used to create `configure' by a program
  47452. -called `autoconf'. You only need `configure.in' if you want to change
  47453. -it or regenerate `configure' using a newer version of `autoconf'.
  47454. +be considered for the next release. If you are using the cache, and at
  47455. +some point `config.cache' contains results you don't want to keep, you
  47456. +may remove or edit it.
  47457. +
  47458. + The file `configure.ac' (or `configure.in') is used to create
  47459. +`configure' by a program called `autoconf'. You need `configure.ac' if
  47460. +you want to change it or regenerate `configure' using a newer version
  47461. +of `autoconf'.
  47462. -The simplest way to compile this package is:
  47463. + The simplest way to compile this package is:
  47464. 1. `cd' to the directory containing the package's source code and type
  47465. - `./configure' to configure the package for your system. If you're
  47466. - using `csh' on an old version of System V, you might need to type
  47467. - `sh ./configure' instead to prevent `csh' from trying to execute
  47468. - `configure' itself.
  47469. + `./configure' to configure the package for your system.
  47470. - Running `configure' takes awhile. While running, it prints some
  47471. - messages telling which features it is checking for.
  47472. + Running `configure' might take a while. While running, it prints
  47473. + some messages telling which features it is checking for.
  47474. 2. Type `make' to compile the package.
  47475. 3. Optionally, type `make check' to run any self-tests that come with
  47476. - the package.
  47477. + the package, generally using the just-built uninstalled binaries.
  47478. 4. Type `make install' to install the programs and any data files and
  47479. - documentation.
  47480. + documentation. When installing into a prefix owned by root, it is
  47481. + recommended that the package be configured and built as a regular
  47482. + user, and only the `make install' phase executed with root
  47483. + privileges.
  47484. +
  47485. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  47486. + this time using the binaries in their final installed location.
  47487. + This target does not install anything. Running this target as a
  47488. + regular user, particularly if the prior `make install' required
  47489. + root privileges, verifies that the installation completed
  47490. + correctly.
  47491. - 5. You can remove the program binaries and object files from the
  47492. + 6. You can remove the program binaries and object files from the
  47493. source code directory by typing `make clean'. To also remove the
  47494. files that `configure' created (so you can compile the package for
  47495. a different kind of computer), type `make distclean'. There is
  47496. @@ -51,62 +83,119 @@
  47497. all sorts of other programs in order to regenerate files that came
  47498. with the distribution.
  47499. + 7. Often, you can also type `make uninstall' to remove the installed
  47500. + files again. In practice, not all packages have tested that
  47501. + uninstallation works correctly, even though it is required by the
  47502. + GNU Coding Standards.
  47503. +
  47504. + 8. Some packages, particularly those that use Automake, provide `make
  47505. + distcheck', which can by used by developers to test that all other
  47506. + targets like `make install' and `make uninstall' work correctly.
  47507. + This target is generally not run by end users.
  47508. +
  47509. Compilers and Options
  47510. =====================
  47511. Some systems require unusual options for compilation or linking that
  47512. -the `configure' script does not know about. You can give `configure'
  47513. -initial values for variables by setting them in the environment. Using
  47514. -a Bourne-compatible shell, you can do that on the command line like
  47515. -this:
  47516. - CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
  47517. +the `configure' script does not know about. Run `./configure --help'
  47518. +for details on some of the pertinent environment variables.
  47519. +
  47520. + You can give `configure' initial values for configuration parameters
  47521. +by setting variables in the command line or in the environment. Here
  47522. +is an example:
  47523. -Or on systems that have the `env' program, you can do it like this:
  47524. - env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
  47525. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  47526. +
  47527. + *Note Defining Variables::, for more details.
  47528. Compiling For Multiple Architectures
  47529. ====================================
  47530. You can compile the package for more than one kind of computer at the
  47531. same time, by placing the object files for each architecture in their
  47532. -own directory. To do this, you must use a version of `make' that
  47533. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  47534. +own directory. To do this, you can use GNU `make'. `cd' to the
  47535. directory where you want the object files and executables to go and run
  47536. the `configure' script. `configure' automatically checks for the
  47537. -source code in the directory that `configure' is in and in `..'.
  47538. +source code in the directory that `configure' is in and in `..'. This
  47539. +is known as a "VPATH" build.
  47540. +
  47541. + With a non-GNU `make', it is safer to compile the package for one
  47542. +architecture at a time in the source code directory. After you have
  47543. +installed the package for one architecture, use `make distclean' before
  47544. +reconfiguring for another architecture.
  47545. +
  47546. + On MacOS X 10.5 and later systems, you can create libraries and
  47547. +executables that work on multiple system types--known as "fat" or
  47548. +"universal" binaries--by specifying multiple `-arch' options to the
  47549. +compiler but only a single `-arch' option to the preprocessor. Like
  47550. +this:
  47551. - If you have to use a `make' that does not supports the `VPATH'
  47552. -variable, you have to compile the package for one architecture at a time
  47553. -in the source code directory. After you have installed the package for
  47554. -one architecture, use `make distclean' before reconfiguring for another
  47555. -architecture.
  47556. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  47557. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  47558. + CPP="gcc -E" CXXCPP="g++ -E"
  47559. +
  47560. + This is not guaranteed to produce working output in all cases, you
  47561. +may have to build one architecture at a time and combine the results
  47562. +using the `lipo' tool if you have problems.
  47563. Installation Names
  47564. ==================
  47565. - By default, `make install' will install the package's files in
  47566. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  47567. -installation prefix other than `/usr/local' by giving `configure' the
  47568. -option `--prefix=PATH'.
  47569. + By default, `make install' installs the package's commands under
  47570. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  47571. +can specify an installation prefix other than `/usr/local' by giving
  47572. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  47573. +absolute file name.
  47574. You can specify separate installation prefixes for
  47575. architecture-specific files and architecture-independent files. If you
  47576. -give `configure' the option `--exec-prefix=PATH', the package will use
  47577. -PATH as the prefix for installing programs and libraries.
  47578. -Documentation and other data files will still use the regular prefix.
  47579. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  47580. +PREFIX as the prefix for installing programs and libraries.
  47581. +Documentation and other data files still use the regular prefix.
  47582. In addition, if you use an unusual directory layout you can give
  47583. -options like `--bindir=PATH' to specify different values for particular
  47584. +options like `--bindir=DIR' to specify different values for particular
  47585. kinds of files. Run `configure --help' for a list of the directories
  47586. -you can set and what kinds of files go in them.
  47587. +you can set and what kinds of files go in them. In general, the
  47588. +default for these options is expressed in terms of `${prefix}', so that
  47589. +specifying just `--prefix' will affect all of the other directory
  47590. +specifications that were not explicitly provided.
  47591. +
  47592. + The most portable way to affect installation locations is to pass the
  47593. +correct locations to `configure'; however, many packages provide one or
  47594. +both of the following shortcuts of passing variable assignments to the
  47595. +`make install' command line to change installation locations without
  47596. +having to reconfigure or recompile.
  47597. +
  47598. + The first method involves providing an override variable for each
  47599. +affected directory. For example, `make install
  47600. +prefix=/alternate/directory' will choose an alternate location for all
  47601. +directory configuration variables that were expressed in terms of
  47602. +`${prefix}'. Any directories that were specified during `configure',
  47603. +but not in terms of `${prefix}', must each be overridden at install
  47604. +time for the entire installation to be relocated. The approach of
  47605. +makefile variable overrides for each directory variable is required by
  47606. +the GNU Coding Standards, and ideally causes no recompilation.
  47607. +However, some platforms have known limitations with the semantics of
  47608. +shared libraries that end up requiring recompilation when using this
  47609. +method, particularly noticeable in packages that use GNU Libtool.
  47610. +
  47611. + The second method involves providing the `DESTDIR' variable. For
  47612. +example, `make install DESTDIR=/alternate/directory' will prepend
  47613. +`/alternate/directory' before all installation names. The approach of
  47614. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  47615. +does not work on platforms that have drive letters. On the other hand,
  47616. +it does better at avoiding recompilation issues, and works well even
  47617. +when some directory options were not specified in terms of `${prefix}'
  47618. +at `configure' time.
  47619. +
  47620. +Optional Features
  47621. +=================
  47622. If the package supports it, you can cause programs to be installed
  47623. with an extra prefix or suffix on their names by giving `configure' the
  47624. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  47625. -Optional Features
  47626. -=================
  47627. -
  47628. Some packages pay attention to `--enable-FEATURE' options to
  47629. `configure', where FEATURE indicates an optional part of the package.
  47630. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  47631. @@ -119,25 +208,75 @@
  47632. you can use the `configure' options `--x-includes=DIR' and
  47633. `--x-libraries=DIR' to specify their locations.
  47634. + Some packages offer the ability to configure how verbose the
  47635. +execution of `make' will be. For these packages, running `./configure
  47636. +--enable-silent-rules' sets the default to minimal output, which can be
  47637. +overridden with `make V=1'; while running `./configure
  47638. +--disable-silent-rules' sets the default to verbose, which can be
  47639. +overridden with `make V=0'.
  47640. +
  47641. +Particular systems
  47642. +==================
  47643. +
  47644. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  47645. +CC is not installed, it is recommended to use the following options in
  47646. +order to use an ANSI C compiler:
  47647. +
  47648. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  47649. +
  47650. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  47651. +
  47652. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  47653. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  47654. +a workaround. If GNU CC is not installed, it is therefore recommended
  47655. +to try
  47656. +
  47657. + ./configure CC="cc"
  47658. +
  47659. +and if that doesn't work, try
  47660. +
  47661. + ./configure CC="cc -nodtk"
  47662. +
  47663. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  47664. +directory contains several dysfunctional programs; working variants of
  47665. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  47666. +in your `PATH', put it _after_ `/usr/bin'.
  47667. +
  47668. + On Haiku, software installed for all users goes in `/boot/common',
  47669. +not `/usr/local'. It is recommended to use the following options:
  47670. +
  47671. + ./configure --prefix=/boot/common
  47672. +
  47673. Specifying the System Type
  47674. ==========================
  47675. - There may be some features `configure' can not figure out
  47676. -automatically, but needs to determine by the type of host the package
  47677. -will run on. Usually `configure' can figure that out, but if it prints
  47678. -a message saying it can not guess the host type, give it the
  47679. -`--host=TYPE' option. TYPE can either be a short name for the system
  47680. -type, such as `sun4', or a canonical name with three fields:
  47681. + There may be some features `configure' cannot figure out
  47682. +automatically, but needs to determine by the type of machine the package
  47683. +will run on. Usually, assuming the package is built to be run on the
  47684. +_same_ architectures, `configure' can figure that out, but if it prints
  47685. +a message saying it cannot guess the machine type, give it the
  47686. +`--build=TYPE' option. TYPE can either be a short name for the system
  47687. +type, such as `sun4', or a canonical name which has the form:
  47688. +
  47689. CPU-COMPANY-SYSTEM
  47690. -See the file `config.sub' for the possible values of each field. If
  47691. +where SYSTEM can have one of these forms:
  47692. +
  47693. + OS
  47694. + KERNEL-OS
  47695. +
  47696. + See the file `config.sub' for the possible values of each field. If
  47697. `config.sub' isn't included in this package, then this package doesn't
  47698. -need to know the host type.
  47699. +need to know the machine type.
  47700. - If you are building compiler tools for cross-compiling, you can also
  47701. -use the `--target=TYPE' option to select the type of system they will
  47702. -produce code for and the `--build=TYPE' option to select the type of
  47703. -system on which you are compiling the package.
  47704. + If you are _building_ compiler tools for cross-compiling, you should
  47705. +use the option `--target=TYPE' to select the type of system they will
  47706. +produce code for.
  47707. +
  47708. + If you want to _use_ a cross compiler, that generates code for a
  47709. +platform different from the build platform, you should specify the
  47710. +"host" platform (i.e., that on which the generated programs will
  47711. +eventually be run) with `--host=TYPE'.
  47712. Sharing Defaults
  47713. ================
  47714. @@ -150,19 +289,55 @@
  47715. `CONFIG_SITE' environment variable to the location of the site script.
  47716. A warning: not all `configure' scripts look for a site script.
  47717. -Operation Controls
  47718. +Defining Variables
  47719. ==================
  47720. + Variables not defined in a site shell script can be set in the
  47721. +environment passed to `configure'. However, some packages may run
  47722. +configure again during the build, and the customized values of these
  47723. +variables may be lost. In order to avoid this problem, you should set
  47724. +them in the `configure' command line, using `VAR=value'. For example:
  47725. +
  47726. + ./configure CC=/usr/local2/bin/gcc
  47727. +
  47728. +causes the specified `gcc' to be used as the C compiler (unless it is
  47729. +overridden in the site shell script).
  47730. +
  47731. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  47732. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  47733. +
  47734. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  47735. +
  47736. +`configure' Invocation
  47737. +======================
  47738. +
  47739. `configure' recognizes the following options to control how it
  47740. operates.
  47741. -`--cache-file=FILE'
  47742. - Use and save the results of the tests in FILE instead of
  47743. - `./config.cache'. Set FILE to `/dev/null' to disable caching, for
  47744. - debugging `configure'.
  47745. -
  47746. `--help'
  47747. - Print a summary of the options to `configure', and exit.
  47748. +`-h'
  47749. + Print a summary of all of the options to `configure', and exit.
  47750. +
  47751. +`--help=short'
  47752. +`--help=recursive'
  47753. + Print a summary of the options unique to this package's
  47754. + `configure', and exit. The `short' variant lists options used
  47755. + only in the top level, while the `recursive' variant lists options
  47756. + also present in any nested packages.
  47757. +
  47758. +`--version'
  47759. +`-V'
  47760. + Print the version of Autoconf used to generate the `configure'
  47761. + script, and exit.
  47762. +
  47763. +`--cache-file=FILE'
  47764. + Enable the cache: use and save the results of the tests in FILE,
  47765. + traditionally `config.cache'. FILE defaults to `/dev/null' to
  47766. + disable caching.
  47767. +
  47768. +`--config-cache'
  47769. +`-C'
  47770. + Alias for `--cache-file=config.cache'.
  47771. `--quiet'
  47772. `--silent'
  47773. @@ -175,9 +350,16 @@
  47774. Look for the package's source code in directory DIR. Usually
  47775. `configure' can determine that directory automatically.
  47776. -`--version'
  47777. - Print the version of Autoconf used to generate the `configure'
  47778. - script, and exit.
  47779. +`--prefix=DIR'
  47780. + Use DIR as the installation prefix. *note Installation Names::
  47781. + for more details, including other options available for fine-tuning
  47782. + the installation locations.
  47783. +
  47784. +`--no-create'
  47785. +`-n'
  47786. + Run the configure checks, but stop before creating any output
  47787. + files.
  47788. -`configure' also accepts some other, not widely useful, options.
  47789. +`configure' also accepts some other, not widely useful, options. Run
  47790. +`configure --help' for more details.
  47791. diff -Nur libmad-0.15.1b.orig/install-sh libmad-0.15.1b/install-sh
  47792. --- libmad-0.15.1b.orig/install-sh 2003-03-28 11:44:21.000000000 +0100
  47793. +++ libmad-0.15.1b/install-sh 2011-02-17 17:22:46.493559011 +0100
  47794. @@ -1,276 +1,520 @@
  47795. #!/bin/sh
  47796. -#
  47797. # install - install a program, script, or datafile
  47798. -# This comes from X11R5 (mit/util/scripts/install.sh).
  47799. +
  47800. +scriptversion=2009-04-28.21; # UTC
  47801. +
  47802. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  47803. +# later released in X11R6 (xc/config/util/install.sh) with the
  47804. +# following copyright and license.
  47805. +#
  47806. +# Copyright (C) 1994 X Consortium
  47807. +#
  47808. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  47809. +# of this software and associated documentation files (the "Software"), to
  47810. +# deal in the Software without restriction, including without limitation the
  47811. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  47812. +# sell copies of the Software, and to permit persons to whom the Software is
  47813. +# furnished to do so, subject to the following conditions:
  47814. +#
  47815. +# The above copyright notice and this permission notice shall be included in
  47816. +# all copies or substantial portions of the Software.
  47817. +#
  47818. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  47819. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  47820. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  47821. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  47822. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  47823. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47824. #
  47825. -# Copyright 1991 by the Massachusetts Institute of Technology
  47826. +# Except as contained in this notice, the name of the X Consortium shall not
  47827. +# be used in advertising or otherwise to promote the sale, use or other deal-
  47828. +# ings in this Software without prior written authorization from the X Consor-
  47829. +# tium.
  47830. #
  47831. -# Permission to use, copy, modify, distribute, and sell this software and its
  47832. -# documentation for any purpose is hereby granted without fee, provided that
  47833. -# the above copyright notice appear in all copies and that both that
  47834. -# copyright notice and this permission notice appear in supporting
  47835. -# documentation, and that the name of M.I.T. not be used in advertising or
  47836. -# publicity pertaining to distribution of the software without specific,
  47837. -# written prior permission. M.I.T. makes no representations about the
  47838. -# suitability of this software for any purpose. It is provided "as is"
  47839. -# without express or implied warranty.
  47840. +#
  47841. +# FSF changes to this file are in the public domain.
  47842. #
  47843. # Calling this script install-sh is preferred over install.sh, to prevent
  47844. # `make' implicit rules from creating a file called install from it
  47845. # when there is no Makefile.
  47846. #
  47847. # This script is compatible with the BSD install script, but was written
  47848. -# from scratch. It can only install one file at a time, a restriction
  47849. -# shared with many OS's install programs.
  47850. +# from scratch.
  47851. +nl='
  47852. +'
  47853. +IFS=" "" $nl"
  47854. # set DOITPROG to echo to test this script
  47855. # Don't use :- since 4.3BSD and earlier shells don't like it.
  47856. -doit="${DOITPROG-}"
  47857. -
  47858. +doit=${DOITPROG-}
  47859. +if test -z "$doit"; then
  47860. + doit_exec=exec
  47861. +else
  47862. + doit_exec=$doit
  47863. +fi
  47864. -# put in absolute paths if you don't have them in your path; or use env. vars.
  47865. +# Put in absolute file names if you don't have them in your path;
  47866. +# or use environment vars.
  47867. -mvprog="${MVPROG-mv}"
  47868. -cpprog="${CPPROG-cp}"
  47869. -chmodprog="${CHMODPROG-chmod}"
  47870. -chownprog="${CHOWNPROG-chown}"
  47871. -chgrpprog="${CHGRPPROG-chgrp}"
  47872. -stripprog="${STRIPPROG-strip}"
  47873. -rmprog="${RMPROG-rm}"
  47874. -mkdirprog="${MKDIRPROG-mkdir}"
  47875. -
  47876. -transformbasename=""
  47877. -transform_arg=""
  47878. -instcmd="$mvprog"
  47879. -chmodcmd="$chmodprog 0755"
  47880. -chowncmd=""
  47881. -chgrpcmd=""
  47882. -stripcmd=""
  47883. +chgrpprog=${CHGRPPROG-chgrp}
  47884. +chmodprog=${CHMODPROG-chmod}
  47885. +chownprog=${CHOWNPROG-chown}
  47886. +cmpprog=${CMPPROG-cmp}
  47887. +cpprog=${CPPROG-cp}
  47888. +mkdirprog=${MKDIRPROG-mkdir}
  47889. +mvprog=${MVPROG-mv}
  47890. +rmprog=${RMPROG-rm}
  47891. +stripprog=${STRIPPROG-strip}
  47892. +
  47893. +posix_glob='?'
  47894. +initialize_posix_glob='
  47895. + test "$posix_glob" != "?" || {
  47896. + if (set -f) 2>/dev/null; then
  47897. + posix_glob=
  47898. + else
  47899. + posix_glob=:
  47900. + fi
  47901. + }
  47902. +'
  47903. +
  47904. +posix_mkdir=
  47905. +
  47906. +# Desired mode of installed file.
  47907. +mode=0755
  47908. +
  47909. +chgrpcmd=
  47910. +chmodcmd=$chmodprog
  47911. +chowncmd=
  47912. +mvcmd=$mvprog
  47913. rmcmd="$rmprog -f"
  47914. -mvcmd="$mvprog"
  47915. -src=""
  47916. -dst=""
  47917. -dir_arg=""
  47918. -
  47919. -while [ x"$1" != x ]; do
  47920. - case $1 in
  47921. - -c) instcmd=$cpprog
  47922. - shift
  47923. - continue;;
  47924. -
  47925. - -d) dir_arg=true
  47926. - shift
  47927. - continue;;
  47928. -
  47929. - -m) chmodcmd="$chmodprog $2"
  47930. - shift
  47931. - shift
  47932. - continue;;
  47933. -
  47934. - -o) chowncmd="$chownprog $2"
  47935. - shift
  47936. - shift
  47937. - continue;;
  47938. -
  47939. - -g) chgrpcmd="$chgrpprog $2"
  47940. - shift
  47941. - shift
  47942. - continue;;
  47943. -
  47944. - -s) stripcmd=$stripprog
  47945. - shift
  47946. - continue;;
  47947. -
  47948. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  47949. - shift
  47950. - continue;;
  47951. -
  47952. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  47953. - shift
  47954. - continue;;
  47955. +stripcmd=
  47956. - *) if [ x"$src" = x ]
  47957. - then
  47958. - src=$1
  47959. - else
  47960. - # this colon is to work around a 386BSD /bin/sh bug
  47961. - :
  47962. - dst=$1
  47963. - fi
  47964. - shift
  47965. - continue;;
  47966. - esac
  47967. -done
  47968. +src=
  47969. +dst=
  47970. +dir_arg=
  47971. +dst_arg=
  47972. -if [ x"$src" = x ]
  47973. -then
  47974. - echo "$0: no input file specified" >&2
  47975. - exit 1
  47976. -else
  47977. - :
  47978. -fi
  47979. +copy_on_change=false
  47980. +no_target_directory=
  47981. -if [ x"$dir_arg" != x ]; then
  47982. - dst=$src
  47983. - src=""
  47984. -
  47985. - if [ -d "$dst" ]; then
  47986. - instcmd=:
  47987. - chmodcmd=""
  47988. - else
  47989. - instcmd=$mkdirprog
  47990. - fi
  47991. -else
  47992. +usage="\
  47993. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  47994. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  47995. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  47996. + or: $0 [OPTION]... -d DIRECTORIES...
  47997. -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  47998. -# might cause directories to be created, which would be especially bad
  47999. -# if $src (and thus $dsttmp) contains '*'.
  48000. -
  48001. - if [ -f "$src" ] || [ -d "$src" ]
  48002. - then
  48003. - :
  48004. - else
  48005. - echo "$0: $src does not exist" >&2
  48006. - exit 1
  48007. - fi
  48008. +In the 1st form, copy SRCFILE to DSTFILE.
  48009. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  48010. +In the 4th, create DIRECTORIES.
  48011. - if [ x"$dst" = x ]
  48012. - then
  48013. - echo "$0: no destination specified" >&2
  48014. - exit 1
  48015. - else
  48016. - :
  48017. - fi
  48018. +Options:
  48019. + --help display this help and exit.
  48020. + --version display version info and exit.
  48021. -# If destination is a directory, append the input filename; if your system
  48022. -# does not like double slashes in filenames, you may need to add some logic
  48023. + -c (ignored)
  48024. + -C install only if different (preserve the last data modification time)
  48025. + -d create directories instead of installing files.
  48026. + -g GROUP $chgrpprog installed files to GROUP.
  48027. + -m MODE $chmodprog installed files to MODE.
  48028. + -o USER $chownprog installed files to USER.
  48029. + -s $stripprog installed files.
  48030. + -t DIRECTORY install into DIRECTORY.
  48031. + -T report an error if DSTFILE is a directory.
  48032. - if [ -d "$dst" ]
  48033. - then
  48034. - dst=$dst/`basename "$src"`
  48035. - else
  48036. - :
  48037. - fi
  48038. -fi
  48039. +Environment variables override the default commands:
  48040. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  48041. + RMPROG STRIPPROG
  48042. +"
  48043. -## this sed command emulates the dirname command
  48044. -dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  48045. +while test $# -ne 0; do
  48046. + case $1 in
  48047. + -c) ;;
  48048. -# Make sure that the destination directory exists.
  48049. -# this part is taken from Noah Friedman's mkinstalldirs script
  48050. + -C) copy_on_change=true;;
  48051. -# Skip lots of stat calls in the usual case.
  48052. -if [ ! -d "$dstdir" ]; then
  48053. -defaultIFS='
  48054. - '
  48055. -IFS="${IFS-$defaultIFS}"
  48056. -
  48057. -oIFS=$IFS
  48058. -# Some sh's can't handle IFS=/ for some reason.
  48059. -IFS='%'
  48060. -set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  48061. -IFS=$oIFS
  48062. -
  48063. -pathcomp=''
  48064. -
  48065. -while [ $# -ne 0 ] ; do
  48066. - pathcomp=$pathcomp$1
  48067. - shift
  48068. -
  48069. - if [ ! -d "$pathcomp" ] ;
  48070. - then
  48071. - $mkdirprog "$pathcomp"
  48072. - else
  48073. - :
  48074. - fi
  48075. + -d) dir_arg=true;;
  48076. - pathcomp=$pathcomp/
  48077. -done
  48078. -fi
  48079. + -g) chgrpcmd="$chgrpprog $2"
  48080. + shift;;
  48081. -if [ x"$dir_arg" != x ]
  48082. -then
  48083. - $doit $instcmd "$dst" &&
  48084. -
  48085. - if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
  48086. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
  48087. - if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
  48088. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
  48089. -else
  48090. + --help) echo "$usage"; exit $?;;
  48091. -# If we're going to rename the final executable, determine the name now.
  48092. + -m) mode=$2
  48093. + case $mode in
  48094. + *' '* | *' '* | *'
  48095. +'* | *'*'* | *'?'* | *'['*)
  48096. + echo "$0: invalid mode: $mode" >&2
  48097. + exit 1;;
  48098. + esac
  48099. + shift;;
  48100. - if [ x"$transformarg" = x ]
  48101. - then
  48102. - dstfile=`basename "$dst"`
  48103. - else
  48104. - dstfile=`basename "$dst" $transformbasename |
  48105. - sed $transformarg`$transformbasename
  48106. - fi
  48107. + -o) chowncmd="$chownprog $2"
  48108. + shift;;
  48109. -# don't allow the sed command to completely eliminate the filename
  48110. + -s) stripcmd=$stripprog;;
  48111. - if [ x"$dstfile" = x ]
  48112. - then
  48113. - dstfile=`basename "$dst"`
  48114. - else
  48115. - :
  48116. - fi
  48117. + -t) dst_arg=$2
  48118. + shift;;
  48119. -# Make a couple of temp file names in the proper directory.
  48120. + -T) no_target_directory=true;;
  48121. - dsttmp=$dstdir/#inst.$$#
  48122. - rmtmp=$dstdir/#rm.$$#
  48123. + --version) echo "$0 $scriptversion"; exit $?;;
  48124. -# Trap to clean up temp files at exit.
  48125. + --) shift
  48126. + break;;
  48127. - trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
  48128. - trap '(exit $?); exit' 1 2 13 15
  48129. + -*) echo "$0: invalid option: $1" >&2
  48130. + exit 1;;
  48131. -# Move or copy the file name to the temp name
  48132. + *) break;;
  48133. + esac
  48134. + shift
  48135. +done
  48136. - $doit $instcmd "$src" "$dsttmp" &&
  48137. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  48138. + # When -d is used, all remaining arguments are directories to create.
  48139. + # When -t is used, the destination is already specified.
  48140. + # Otherwise, the last argument is the destination. Remove it from $@.
  48141. + for arg
  48142. + do
  48143. + if test -n "$dst_arg"; then
  48144. + # $@ is not empty: it contains at least $arg.
  48145. + set fnord "$@" "$dst_arg"
  48146. + shift # fnord
  48147. + fi
  48148. + shift # arg
  48149. + dst_arg=$arg
  48150. + done
  48151. +fi
  48152. -# and set any options; do chmod last to preserve setuid bits
  48153. +if test $# -eq 0; then
  48154. + if test -z "$dir_arg"; then
  48155. + echo "$0: no input file specified." >&2
  48156. + exit 1
  48157. + fi
  48158. + # It's OK to call `install-sh -d' without argument.
  48159. + # This can happen when creating conditional directories.
  48160. + exit 0
  48161. +fi
  48162. -# If any of these fail, we abort the whole thing. If we want to
  48163. -# ignore errors from any of these, just make sure not to ignore
  48164. -# errors from the above "$doit $instcmd $src $dsttmp" command.
  48165. +if test -z "$dir_arg"; then
  48166. + trap '(exit $?); exit' 1 2 13 15
  48167. - if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
  48168. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
  48169. - if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
  48170. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
  48171. + # Set umask so as not to create temps with too-generous modes.
  48172. + # However, 'strip' requires both read and write access to temps.
  48173. + case $mode in
  48174. + # Optimize common cases.
  48175. + *644) cp_umask=133;;
  48176. + *755) cp_umask=22;;
  48177. +
  48178. + *[0-7])
  48179. + if test -z "$stripcmd"; then
  48180. + u_plus_rw=
  48181. + else
  48182. + u_plus_rw='% 200'
  48183. + fi
  48184. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  48185. + *)
  48186. + if test -z "$stripcmd"; then
  48187. + u_plus_rw=
  48188. + else
  48189. + u_plus_rw=,u+rw
  48190. + fi
  48191. + cp_umask=$mode$u_plus_rw;;
  48192. + esac
  48193. +fi
  48194. -# Now remove or move aside any old file at destination location. We try this
  48195. -# two ways since rm can't unlink itself on some systems and the destination
  48196. -# file might be busy for other reasons. In this case, the final cleanup
  48197. -# might fail but the new file should still install successfully.
  48198. +for src
  48199. +do
  48200. + # Protect names starting with `-'.
  48201. + case $src in
  48202. + -*) src=./$src;;
  48203. + esac
  48204. +
  48205. + if test -n "$dir_arg"; then
  48206. + dst=$src
  48207. + dstdir=$dst
  48208. + test -d "$dstdir"
  48209. + dstdir_status=$?
  48210. + else
  48211. +
  48212. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  48213. + # might cause directories to be created, which would be especially bad
  48214. + # if $src (and thus $dsttmp) contains '*'.
  48215. + if test ! -f "$src" && test ! -d "$src"; then
  48216. + echo "$0: $src does not exist." >&2
  48217. + exit 1
  48218. + fi
  48219. +
  48220. + if test -z "$dst_arg"; then
  48221. + echo "$0: no destination specified." >&2
  48222. + exit 1
  48223. + fi
  48224. +
  48225. + dst=$dst_arg
  48226. + # Protect names starting with `-'.
  48227. + case $dst in
  48228. + -*) dst=./$dst;;
  48229. + esac
  48230. -{
  48231. - if [ -f "$dstdir/$dstfile" ]
  48232. - then
  48233. - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null ||
  48234. - $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null ||
  48235. - {
  48236. - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  48237. - (exit 1); exit
  48238. - }
  48239. + # If destination is a directory, append the input filename; won't work
  48240. + # if double slashes aren't ignored.
  48241. + if test -d "$dst"; then
  48242. + if test -n "$no_target_directory"; then
  48243. + echo "$0: $dst_arg: Is a directory" >&2
  48244. + exit 1
  48245. + fi
  48246. + dstdir=$dst
  48247. + dst=$dstdir/`basename "$src"`
  48248. + dstdir_status=0
  48249. + else
  48250. + # Prefer dirname, but fall back on a substitute if dirname fails.
  48251. + dstdir=`
  48252. + (dirname "$dst") 2>/dev/null ||
  48253. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  48254. + X"$dst" : 'X\(//\)[^/]' \| \
  48255. + X"$dst" : 'X\(//\)$' \| \
  48256. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  48257. + echo X"$dst" |
  48258. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  48259. + s//\1/
  48260. + q
  48261. + }
  48262. + /^X\(\/\/\)[^/].*/{
  48263. + s//\1/
  48264. + q
  48265. + }
  48266. + /^X\(\/\/\)$/{
  48267. + s//\1/
  48268. + q
  48269. + }
  48270. + /^X\(\/\).*/{
  48271. + s//\1/
  48272. + q
  48273. + }
  48274. + s/.*/./; q'
  48275. + `
  48276. +
  48277. + test -d "$dstdir"
  48278. + dstdir_status=$?
  48279. + fi
  48280. + fi
  48281. +
  48282. + obsolete_mkdir_used=false
  48283. +
  48284. + if test $dstdir_status != 0; then
  48285. + case $posix_mkdir in
  48286. + '')
  48287. + # Create intermediate dirs using mode 755 as modified by the umask.
  48288. + # This is like FreeBSD 'install' as of 1997-10-28.
  48289. + umask=`umask`
  48290. + case $stripcmd.$umask in
  48291. + # Optimize common cases.
  48292. + *[2367][2367]) mkdir_umask=$umask;;
  48293. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  48294. +
  48295. + *[0-7])
  48296. + mkdir_umask=`expr $umask + 22 \
  48297. + - $umask % 100 % 40 + $umask % 20 \
  48298. + - $umask % 10 % 4 + $umask % 2
  48299. + `;;
  48300. + *) mkdir_umask=$umask,go-w;;
  48301. + esac
  48302. +
  48303. + # With -d, create the new directory with the user-specified mode.
  48304. + # Otherwise, rely on $mkdir_umask.
  48305. + if test -n "$dir_arg"; then
  48306. + mkdir_mode=-m$mode
  48307. else
  48308. - :
  48309. + mkdir_mode=
  48310. fi
  48311. -} &&
  48312. -# Now rename the file to the real destination.
  48313. + posix_mkdir=false
  48314. + case $umask in
  48315. + *[123567][0-7][0-7])
  48316. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  48317. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  48318. + ;;
  48319. + *)
  48320. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  48321. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  48322. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  48323. + if (umask $mkdir_umask &&
  48324. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  48325. + then
  48326. + if test -z "$dir_arg" || {
  48327. + # Check for POSIX incompatibilities with -m.
  48328. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  48329. + # other-writeable bit of parent directory when it shouldn't.
  48330. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  48331. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  48332. + case $ls_ld_tmpdir in
  48333. + d????-?r-*) different_mode=700;;
  48334. + d????-?--*) different_mode=755;;
  48335. + *) false;;
  48336. + esac &&
  48337. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  48338. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  48339. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  48340. + }
  48341. + }
  48342. + then posix_mkdir=:
  48343. + fi
  48344. + rmdir "$tmpdir/d" "$tmpdir"
  48345. + else
  48346. + # Remove any dirs left behind by ancient mkdir implementations.
  48347. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  48348. + fi
  48349. + trap '' 0;;
  48350. + esac;;
  48351. + esac
  48352. +
  48353. + if
  48354. + $posix_mkdir && (
  48355. + umask $mkdir_umask &&
  48356. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  48357. + )
  48358. + then :
  48359. + else
  48360. +
  48361. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  48362. + # or it failed possibly due to a race condition. Create the
  48363. + # directory the slow way, step by step, checking for races as we go.
  48364. +
  48365. + case $dstdir in
  48366. + /*) prefix='/';;
  48367. + -*) prefix='./';;
  48368. + *) prefix='';;
  48369. + esac
  48370. +
  48371. + eval "$initialize_posix_glob"
  48372. +
  48373. + oIFS=$IFS
  48374. + IFS=/
  48375. + $posix_glob set -f
  48376. + set fnord $dstdir
  48377. + shift
  48378. + $posix_glob set +f
  48379. + IFS=$oIFS
  48380. +
  48381. + prefixes=
  48382. +
  48383. + for d
  48384. + do
  48385. + test -z "$d" && continue
  48386. +
  48387. + prefix=$prefix$d
  48388. + if test -d "$prefix"; then
  48389. + prefixes=
  48390. + else
  48391. + if $posix_mkdir; then
  48392. + (umask=$mkdir_umask &&
  48393. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  48394. + # Don't fail if two instances are running concurrently.
  48395. + test -d "$prefix" || exit 1
  48396. + else
  48397. + case $prefix in
  48398. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  48399. + *) qprefix=$prefix;;
  48400. + esac
  48401. + prefixes="$prefixes '$qprefix'"
  48402. + fi
  48403. + fi
  48404. + prefix=$prefix/
  48405. + done
  48406. -fi &&
  48407. + if test -n "$prefixes"; then
  48408. + # Don't fail if two instances are running concurrently.
  48409. + (umask $mkdir_umask &&
  48410. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  48411. + test -d "$dstdir" || exit 1
  48412. + obsolete_mkdir_used=true
  48413. + fi
  48414. + fi
  48415. + fi
  48416. +
  48417. + if test -n "$dir_arg"; then
  48418. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  48419. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  48420. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  48421. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  48422. + else
  48423. +
  48424. + # Make a couple of temp file names in the proper directory.
  48425. + dsttmp=$dstdir/_inst.$$_
  48426. + rmtmp=$dstdir/_rm.$$_
  48427. +
  48428. + # Trap to clean up those temp files at exit.
  48429. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  48430. +
  48431. + # Copy the file name to the temp name.
  48432. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  48433. +
  48434. + # and set any options; do chmod last to preserve setuid bits.
  48435. + #
  48436. + # If any of these fail, we abort the whole thing. If we want to
  48437. + # ignore errors from any of these, just make sure not to ignore
  48438. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  48439. + #
  48440. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  48441. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  48442. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  48443. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  48444. +
  48445. + # If -C, don't bother to copy if it wouldn't change the file.
  48446. + if $copy_on_change &&
  48447. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  48448. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  48449. +
  48450. + eval "$initialize_posix_glob" &&
  48451. + $posix_glob set -f &&
  48452. + set X $old && old=:$2:$4:$5:$6 &&
  48453. + set X $new && new=:$2:$4:$5:$6 &&
  48454. + $posix_glob set +f &&
  48455. +
  48456. + test "$old" = "$new" &&
  48457. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  48458. + then
  48459. + rm -f "$dsttmp"
  48460. + else
  48461. + # Rename the file to the real destination.
  48462. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  48463. +
  48464. + # The rename failed, perhaps because mv can't rename something else
  48465. + # to itself, or perhaps because mv is so ancient that it does not
  48466. + # support -f.
  48467. + {
  48468. + # Now remove or move aside any old file at destination location.
  48469. + # We try this two ways since rm can't unlink itself on some
  48470. + # systems and the destination file might be busy for other
  48471. + # reasons. In this case, the final cleanup might fail but the new
  48472. + # file should still install successfully.
  48473. + {
  48474. + test ! -f "$dst" ||
  48475. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  48476. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  48477. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  48478. + } ||
  48479. + { echo "$0: cannot unlink or rename $dst" >&2
  48480. + (exit 1); exit 1
  48481. + }
  48482. + } &&
  48483. +
  48484. + # Now rename the file to the real destination.
  48485. + $doit $mvcmd "$dsttmp" "$dst"
  48486. + }
  48487. + fi || exit 1
  48488. -# The final little trick to "correctly" pass the exit status to the exit trap.
  48489. + trap '' 0
  48490. + fi
  48491. +done
  48492. -{
  48493. - (exit 0); exit
  48494. -}
  48495. +# Local variables:
  48496. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  48497. +# time-stamp-start: "scriptversion="
  48498. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  48499. +# time-stamp-time-zone: "UTC"
  48500. +# time-stamp-end: "; # UTC"
  48501. +# End:
  48502. diff -Nur libmad-0.15.1b.orig/ltmain.sh libmad-0.15.1b/ltmain.sh
  48503. --- libmad-0.15.1b.orig/ltmain.sh 2004-02-17 02:51:24.000000000 +0100
  48504. +++ libmad-0.15.1b/ltmain.sh 2011-02-17 17:22:43.063552569 +0100
  48505. @@ -1,540 +1,1040 @@
  48506. -# ltmain.sh - Provide generalized library-building support services.
  48507. -# NOTE: Changing this file will not affect anything until you rerun configure.
  48508. -#
  48509. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
  48510. -# Free Software Foundation, Inc.
  48511. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  48512. -#
  48513. -# This program is free software; you can redistribute it and/or modify
  48514. +# Generated from ltmain.m4sh.
  48515. +
  48516. +# ltmain.sh (GNU libtool) 2.2.6b
  48517. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  48518. +
  48519. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  48520. +# This is free software; see the source for copying conditions. There is NO
  48521. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  48522. +
  48523. +# GNU Libtool is free software; you can redistribute it and/or modify
  48524. # it under the terms of the GNU General Public License as published by
  48525. # the Free Software Foundation; either version 2 of the License, or
  48526. # (at your option) any later version.
  48527. #
  48528. -# This program is distributed in the hope that it will be useful, but
  48529. +# As a special exception to the GNU General Public License,
  48530. +# if you distribute this file as part of a program or library that
  48531. +# is built using GNU Libtool, you may include this file under the
  48532. +# same distribution terms that you use for the rest of that program.
  48533. +#
  48534. +# GNU Libtool is distributed in the hope that it will be useful, but
  48535. # WITHOUT ANY WARRANTY; without even the implied warranty of
  48536. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  48537. # General Public License for more details.
  48538. #
  48539. # You should have received a copy of the GNU General Public License
  48540. -# along with this program; if not, write to the Free Software
  48541. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  48542. +# along with GNU Libtool; see the file COPYING. If not, a copy
  48543. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  48544. +# or obtained by writing to the Free Software Foundation, Inc.,
  48545. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  48546. +
  48547. +# Usage: $progname [OPTION]... [MODE-ARG]...
  48548. +#
  48549. +# Provide generalized library-building support services.
  48550. #
  48551. -# As a special exception to the GNU General Public License, if you
  48552. -# distribute this file as part of a program that contains a
  48553. -# configuration script generated by Autoconf, you may include it under
  48554. -# the same distribution terms that you use for the rest of that program.
  48555. +# --config show all configuration variables
  48556. +# --debug enable verbose shell tracing
  48557. +# -n, --dry-run display commands without modifying any files
  48558. +# --features display basic configuration information and exit
  48559. +# --mode=MODE use operation mode MODE
  48560. +# --preserve-dup-deps don't remove duplicate dependency libraries
  48561. +# --quiet, --silent don't print informational messages
  48562. +# --tag=TAG use configuration variables from tag TAG
  48563. +# -v, --verbose print informational messages (default)
  48564. +# --version print version information
  48565. +# -h, --help print short or long help message
  48566. +#
  48567. +# MODE must be one of the following:
  48568. +#
  48569. +# clean remove files from the build directory
  48570. +# compile compile a source file into a libtool object
  48571. +# execute automatically set library path, then run a program
  48572. +# finish complete the installation of libtool libraries
  48573. +# install install libraries or executables
  48574. +# link create a library or an executable
  48575. +# uninstall remove libraries from an installed directory
  48576. +#
  48577. +# MODE-ARGS vary depending on the MODE.
  48578. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  48579. +#
  48580. +# When reporting a bug, please describe a test case to reproduce it and
  48581. +# include the following information:
  48582. +#
  48583. +# host-triplet: $host
  48584. +# shell: $SHELL
  48585. +# compiler: $LTCC
  48586. +# compiler flags: $LTCFLAGS
  48587. +# linker: $LD (gnu? $with_gnu_ld)
  48588. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  48589. +# automake: $automake_version
  48590. +# autoconf: $autoconf_version
  48591. +#
  48592. +# Report bugs to <bug-libtool@gnu.org>.
  48593. -# Check that we have a working $echo.
  48594. -if test "X$1" = X--no-reexec; then
  48595. - # Discard the --no-reexec flag, and continue.
  48596. - shift
  48597. -elif test "X$1" = X--fallback-echo; then
  48598. - # Avoid inline document here, it may be left over
  48599. - :
  48600. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  48601. - # Yippee, $echo works!
  48602. - :
  48603. +PROGRAM=ltmain.sh
  48604. +PACKAGE=libtool
  48605. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  48606. +TIMESTAMP=""
  48607. +package_revision=1.3017
  48608. +
  48609. +# Be Bourne compatible
  48610. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  48611. + emulate sh
  48612. + NULLCMD=:
  48613. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  48614. + # is contrary to our usage. Disable this feature.
  48615. + alias -g '${1+"$@"}'='"$@"'
  48616. + setopt NO_GLOB_SUBST
  48617. else
  48618. - # Restart under the correct shell, and then maybe $echo will work.
  48619. - exec $SHELL "$0" --no-reexec ${1+"$@"}
  48620. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  48621. fi
  48622. +BIN_SH=xpg4; export BIN_SH # for Tru64
  48623. +DUALCASE=1; export DUALCASE # for MKS sh
  48624. -if test "X$1" = X--fallback-echo; then
  48625. - # used as fallback echo
  48626. - shift
  48627. - cat <<EOF
  48628. -$*
  48629. -EOF
  48630. - exit 0
  48631. -fi
  48632. +# NLS nuisances: We save the old values to restore during execute mode.
  48633. +# Only set LANG and LC_ALL to C if already set.
  48634. +# These must not be set unconditionally because not all systems understand
  48635. +# e.g. LANG=C (notably SCO).
  48636. +lt_user_locale=
  48637. +lt_safe_locale=
  48638. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  48639. +do
  48640. + eval "if test \"\${$lt_var+set}\" = set; then
  48641. + save_$lt_var=\$$lt_var
  48642. + $lt_var=C
  48643. + export $lt_var
  48644. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  48645. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  48646. + fi"
  48647. +done
  48648. -# The name of this program.
  48649. -progname=`$echo "$0" | ${SED} 's%^.*/%%'`
  48650. -modename="$progname"
  48651. +$lt_unset CDPATH
  48652. -# Constants.
  48653. -PROGRAM=ltmain.sh
  48654. -PACKAGE=libtool
  48655. -VERSION=1.5.2
  48656. -TIMESTAMP=" (1.1220.2.60 2004/01/25 12:25:08) Debian$Rev: 192 $"
  48657. -default_mode=
  48658. -help="Try \`$progname --help' for more information."
  48659. -magic="%%%MAGIC variable%%%"
  48660. -mkdir="mkdir"
  48661. -mv="mv -f"
  48662. -rm="rm -f"
  48663. +
  48664. +
  48665. +
  48666. +: ${CP="cp -f"}
  48667. +: ${ECHO="echo"}
  48668. +: ${EGREP="/bin/grep -E"}
  48669. +: ${FGREP="/bin/grep -F"}
  48670. +: ${GREP="/bin/grep"}
  48671. +: ${LN_S="ln -s"}
  48672. +: ${MAKE="make"}
  48673. +: ${MKDIR="mkdir"}
  48674. +: ${MV="mv -f"}
  48675. +: ${RM="rm -f"}
  48676. +: ${SED="/bin/sed"}
  48677. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  48678. +: ${Xsed="$SED -e 1s/^X//"}
  48679. +
  48680. +# Global variables:
  48681. +EXIT_SUCCESS=0
  48682. +EXIT_FAILURE=1
  48683. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  48684. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  48685. +
  48686. +exit_status=$EXIT_SUCCESS
  48687. +
  48688. +# Make sure IFS has a sensible default
  48689. +lt_nl='
  48690. +'
  48691. +IFS=" $lt_nl"
  48692. +
  48693. +dirname="s,/[^/]*$,,"
  48694. +basename="s,^.*/,,"
  48695. +
  48696. +# func_dirname_and_basename file append nondir_replacement
  48697. +# perform func_basename and func_dirname in a single function
  48698. +# call:
  48699. +# dirname: Compute the dirname of FILE. If nonempty,
  48700. +# add APPEND to the result, otherwise set result
  48701. +# to NONDIR_REPLACEMENT.
  48702. +# value returned in "$func_dirname_result"
  48703. +# basename: Compute filename of FILE.
  48704. +# value retuned in "$func_basename_result"
  48705. +# Implementation must be kept synchronized with func_dirname
  48706. +# and func_basename. For efficiency, we do not delegate to
  48707. +# those functions but instead duplicate the functionality here.
  48708. +func_dirname_and_basename ()
  48709. +{
  48710. + # Extract subdirectory from the argument.
  48711. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  48712. + if test "X$func_dirname_result" = "X${1}"; then
  48713. + func_dirname_result="${3}"
  48714. + else
  48715. + func_dirname_result="$func_dirname_result${2}"
  48716. + fi
  48717. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  48718. +}
  48719. +
  48720. +# Generated shell functions inserted here.
  48721. +
  48722. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  48723. +# is ksh but when the shell is invoked as "sh" and the current value of
  48724. +# the _XPG environment variable is not equal to 1 (one), the special
  48725. +# positional parameter $0, within a function call, is the name of the
  48726. +# function.
  48727. +progpath="$0"
  48728. +
  48729. +# The name of this program:
  48730. +# In the unlikely event $progname began with a '-', it would play havoc with
  48731. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  48732. +func_dirname_and_basename "$progpath"
  48733. +progname=$func_basename_result
  48734. +case $progname in
  48735. + -*) progname=./$progname ;;
  48736. +esac
  48737. +
  48738. +# Make sure we have an absolute path for reexecution:
  48739. +case $progpath in
  48740. + [\\/]*|[A-Za-z]:\\*) ;;
  48741. + *[\\/]*)
  48742. + progdir=$func_dirname_result
  48743. + progdir=`cd "$progdir" && pwd`
  48744. + progpath="$progdir/$progname"
  48745. + ;;
  48746. + *)
  48747. + save_IFS="$IFS"
  48748. + IFS=:
  48749. + for progdir in $PATH; do
  48750. + IFS="$save_IFS"
  48751. + test -x "$progdir/$progname" && break
  48752. + done
  48753. + IFS="$save_IFS"
  48754. + test -n "$progdir" || progdir=`pwd`
  48755. + progpath="$progdir/$progname"
  48756. + ;;
  48757. +esac
  48758. # Sed substitution that helps us do robust quoting. It backslashifies
  48759. # metacharacters that are still active within double-quoted strings.
  48760. Xsed="${SED}"' -e 1s/^X//'
  48761. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  48762. -# test EBCDIC or ASCII
  48763. -case `echo A|tr A '\301'` in
  48764. - A) # EBCDIC based system
  48765. - SP2NL="tr '\100' '\n'"
  48766. - NL2SP="tr '\r\n' '\100\100'"
  48767. - ;;
  48768. - *) # Assume ASCII based system
  48769. - SP2NL="tr '\040' '\012'"
  48770. - NL2SP="tr '\015\012' '\040\040'"
  48771. - ;;
  48772. -esac
  48773. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  48774. -# NLS nuisances.
  48775. -# Only set LANG and LC_ALL to C if already set.
  48776. -# These must not be set unconditionally because not all systems understand
  48777. -# e.g. LANG=C (notably SCO).
  48778. -# We save the old values to restore during execute mode.
  48779. -if test "${LC_ALL+set}" = set; then
  48780. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  48781. -fi
  48782. -if test "${LANG+set}" = set; then
  48783. - save_LANG="$LANG"; LANG=C; export LANG
  48784. -fi
  48785. +# Same as above, but do not quote variable references.
  48786. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  48787. -# Make sure IFS has a sensible default
  48788. -: ${IFS="
  48789. -"}
  48790. +# Re-`\' parameter expansions in output of double_quote_subst that were
  48791. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  48792. +# in input to double_quote_subst, that '$' was protected from expansion.
  48793. +# Since each input `\' is now two `\'s, look for any number of runs of
  48794. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  48795. +bs='\\'
  48796. +bs2='\\\\'
  48797. +bs4='\\\\\\\\'
  48798. +dollar='\$'
  48799. +sed_double_backslash="\
  48800. + s/$bs4/&\\
  48801. +/g
  48802. + s/^$bs2$dollar/$bs&/
  48803. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  48804. + s/\n//g"
  48805. +
  48806. +# Standard options:
  48807. +opt_dry_run=false
  48808. +opt_help=false
  48809. +opt_quiet=false
  48810. +opt_verbose=false
  48811. +opt_warning=:
  48812. +
  48813. +# func_echo arg...
  48814. +# Echo program name prefixed message, along with the current mode
  48815. +# name if it has been set yet.
  48816. +func_echo ()
  48817. +{
  48818. + $ECHO "$progname${mode+: }$mode: $*"
  48819. +}
  48820. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  48821. - $echo "$modename: not configured to build any kind of library" 1>&2
  48822. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  48823. - exit 1
  48824. -fi
  48825. +# func_verbose arg...
  48826. +# Echo program name prefixed message in verbose mode only.
  48827. +func_verbose ()
  48828. +{
  48829. + $opt_verbose && func_echo ${1+"$@"}
  48830. -# Global variables.
  48831. -mode=$default_mode
  48832. -nonopt=
  48833. -prev=
  48834. -prevopt=
  48835. -run=
  48836. -show="$echo"
  48837. -show_help=
  48838. -execute_dlfiles=
  48839. -lo2o="s/\\.lo\$/.${objext}/"
  48840. -o2lo="s/\\.${objext}\$/.lo/"
  48841. + # A bug in bash halts the script if the last line of a function
  48842. + # fails when set -e is in force, so we need another command to
  48843. + # work around that:
  48844. + :
  48845. +}
  48846. -#####################################
  48847. -# Shell function definitions:
  48848. -# This seems to be the best place for them
  48849. +# func_error arg...
  48850. +# Echo program name prefixed message to standard error.
  48851. +func_error ()
  48852. +{
  48853. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  48854. +}
  48855. -# Need a lot of goo to handle *both* DLLs and import libs
  48856. -# Has to be a shell function in order to 'eat' the argument
  48857. -# that is supplied when $file_magic_command is called.
  48858. -win32_libid () {
  48859. - win32_libid_type="unknown"
  48860. - win32_fileres=`file -L $1 2>/dev/null`
  48861. - case $win32_fileres in
  48862. - *ar\ archive\ import\ library*) # definitely import
  48863. - win32_libid_type="x86 archive import"
  48864. - ;;
  48865. - *ar\ archive*) # could be an import, or static
  48866. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  48867. - grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  48868. - win32_nmres=`eval $NM -f posix -A $1 | \
  48869. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  48870. - if test "X$win32_nmres" = "Ximport" ; then
  48871. - win32_libid_type="x86 archive import"
  48872. - else
  48873. - win32_libid_type="x86 archive static"
  48874. - fi
  48875. - fi
  48876. - ;;
  48877. - *DLL*)
  48878. - win32_libid_type="x86 DLL"
  48879. - ;;
  48880. - *executable*) # but shell scripts are "executable" too...
  48881. - case $win32_fileres in
  48882. - *MS\ Windows\ PE\ Intel*)
  48883. - win32_libid_type="x86 DLL"
  48884. - ;;
  48885. - esac
  48886. - ;;
  48887. - esac
  48888. - $echo $win32_libid_type
  48889. +# func_warning arg...
  48890. +# Echo program name prefixed warning message to standard error.
  48891. +func_warning ()
  48892. +{
  48893. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  48894. +
  48895. + # bash bug again:
  48896. + :
  48897. }
  48898. -# End of Shell function definitions
  48899. -#####################################
  48900. +# func_fatal_error arg...
  48901. +# Echo program name prefixed message to standard error, and exit.
  48902. +func_fatal_error ()
  48903. +{
  48904. + func_error ${1+"$@"}
  48905. + exit $EXIT_FAILURE
  48906. +}
  48907. -# Parse our command line options once, thoroughly.
  48908. -while test "$#" -gt 0
  48909. -do
  48910. - arg="$1"
  48911. - shift
  48912. +# func_fatal_help arg...
  48913. +# Echo program name prefixed message to standard error, followed by
  48914. +# a help hint, and exit.
  48915. +func_fatal_help ()
  48916. +{
  48917. + func_error ${1+"$@"}
  48918. + func_fatal_error "$help"
  48919. +}
  48920. +help="Try \`$progname --help' for more information." ## default
  48921. - case $arg in
  48922. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  48923. - *) optarg= ;;
  48924. - esac
  48925. - # If the previous option needs an argument, assign it.
  48926. - if test -n "$prev"; then
  48927. - case $prev in
  48928. - execute_dlfiles)
  48929. - execute_dlfiles="$execute_dlfiles $arg"
  48930. - ;;
  48931. - tag)
  48932. - tagname="$arg"
  48933. - preserve_args="${preserve_args}=$arg"
  48934. -
  48935. - # Check whether tagname contains only valid characters
  48936. - case $tagname in
  48937. - *[!-_A-Za-z0-9,/]*)
  48938. - $echo "$progname: invalid tag name: $tagname" 1>&2
  48939. - exit 1
  48940. - ;;
  48941. - esac
  48942. +# func_grep expression filename
  48943. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  48944. +func_grep ()
  48945. +{
  48946. + $GREP "$1" "$2" >/dev/null 2>&1
  48947. +}
  48948. - case $tagname in
  48949. - CC)
  48950. - # Don't test for the "default" C tag, as we know, it's there, but
  48951. - # not specially marked.
  48952. - ;;
  48953. - *)
  48954. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
  48955. - taglist="$taglist $tagname"
  48956. - # Evaluate the configuration.
  48957. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
  48958. - else
  48959. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  48960. - fi
  48961. - ;;
  48962. - esac
  48963. - ;;
  48964. - *)
  48965. - eval "$prev=\$arg"
  48966. - ;;
  48967. - esac
  48968. - prev=
  48969. - prevopt=
  48970. - continue
  48971. - fi
  48972. +# func_mkdir_p directory-path
  48973. +# Make sure the entire path to DIRECTORY-PATH is available.
  48974. +func_mkdir_p ()
  48975. +{
  48976. + my_directory_path="$1"
  48977. + my_dir_list=
  48978. - # Have we seen a non-optional argument yet?
  48979. - case $arg in
  48980. - --help)
  48981. - show_help=yes
  48982. - ;;
  48983. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  48984. - --version)
  48985. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  48986. - $echo
  48987. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  48988. - $echo "This is free software; see the source for copying conditions. There is NO"
  48989. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  48990. - exit 0
  48991. - ;;
  48992. + # Protect directory names starting with `-'
  48993. + case $my_directory_path in
  48994. + -*) my_directory_path="./$my_directory_path" ;;
  48995. + esac
  48996. - --config)
  48997. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  48998. - # Now print the configurations for the tags.
  48999. - for tagname in $taglist; do
  49000. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
  49001. - done
  49002. - exit 0
  49003. - ;;
  49004. + # While some portion of DIR does not yet exist...
  49005. + while test ! -d "$my_directory_path"; do
  49006. + # ...make a list in topmost first order. Use a colon delimited
  49007. + # list incase some portion of path contains whitespace.
  49008. + my_dir_list="$my_directory_path:$my_dir_list"
  49009. - --debug)
  49010. - $echo "$progname: enabling shell trace mode"
  49011. - set -x
  49012. - preserve_args="$preserve_args $arg"
  49013. - ;;
  49014. + # If the last portion added has no slash in it, the list is done
  49015. + case $my_directory_path in */*) ;; *) break ;; esac
  49016. - --dry-run | -n)
  49017. - run=:
  49018. - ;;
  49019. + # ...otherwise throw away the child directory and loop
  49020. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  49021. + done
  49022. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  49023. - --features)
  49024. - $echo "host: $host"
  49025. - if test "$build_libtool_libs" = yes; then
  49026. - $echo "enable shared libraries"
  49027. - else
  49028. - $echo "disable shared libraries"
  49029. - fi
  49030. - if test "$build_old_libs" = yes; then
  49031. - $echo "enable static libraries"
  49032. - else
  49033. - $echo "disable static libraries"
  49034. + save_mkdir_p_IFS="$IFS"; IFS=':'
  49035. + for my_dir in $my_dir_list; do
  49036. + IFS="$save_mkdir_p_IFS"
  49037. + # mkdir can fail with a `File exist' error if two processes
  49038. + # try to create one of the directories concurrently. Don't
  49039. + # stop in that case!
  49040. + $MKDIR "$my_dir" 2>/dev/null || :
  49041. + done
  49042. + IFS="$save_mkdir_p_IFS"
  49043. +
  49044. + # Bail out if we (or some other process) failed to create a directory.
  49045. + test -d "$my_directory_path" || \
  49046. + func_fatal_error "Failed to create \`$1'"
  49047. fi
  49048. - exit 0
  49049. - ;;
  49050. +}
  49051. - --finish) mode="finish" ;;
  49052. - --mode) prevopt="--mode" prev=mode ;;
  49053. - --mode=*) mode="$optarg" ;;
  49054. +# func_mktempdir [string]
  49055. +# Make a temporary directory that won't clash with other running
  49056. +# libtool processes, and avoids race conditions if possible. If
  49057. +# given, STRING is the basename for that directory.
  49058. +func_mktempdir ()
  49059. +{
  49060. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  49061. - --preserve-dup-deps) duplicate_deps="yes" ;;
  49062. + if test "$opt_dry_run" = ":"; then
  49063. + # Return a directory name, but don't create it in dry-run mode
  49064. + my_tmpdir="${my_template}-$$"
  49065. + else
  49066. - --quiet | --silent)
  49067. - show=:
  49068. - preserve_args="$preserve_args $arg"
  49069. - ;;
  49070. + # If mktemp works, use that first and foremost
  49071. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  49072. - --tag) prevopt="--tag" prev=tag ;;
  49073. - --tag=*)
  49074. - set tag "$optarg" ${1+"$@"}
  49075. - shift
  49076. - prev=tag
  49077. - preserve_args="$preserve_args --tag"
  49078. - ;;
  49079. + if test ! -d "$my_tmpdir"; then
  49080. + # Failing that, at least try and use $RANDOM to avoid a race
  49081. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  49082. - -dlopen)
  49083. - prevopt="-dlopen"
  49084. - prev=execute_dlfiles
  49085. - ;;
  49086. + save_mktempdir_umask=`umask`
  49087. + umask 0077
  49088. + $MKDIR "$my_tmpdir"
  49089. + umask $save_mktempdir_umask
  49090. + fi
  49091. - -*)
  49092. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  49093. - $echo "$help" 1>&2
  49094. - exit 1
  49095. - ;;
  49096. + # If we're not in dry-run mode, bomb out on failure
  49097. + test -d "$my_tmpdir" || \
  49098. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  49099. + fi
  49100. - *)
  49101. - nonopt="$arg"
  49102. - break
  49103. - ;;
  49104. - esac
  49105. -done
  49106. + $ECHO "X$my_tmpdir" | $Xsed
  49107. +}
  49108. -if test -n "$prevopt"; then
  49109. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  49110. - $echo "$help" 1>&2
  49111. - exit 1
  49112. -fi
  49113. -# If this variable is set in any of the actions, the command in it
  49114. -# will be execed at the end. This prevents here-documents from being
  49115. -# left over by shells.
  49116. -exec_cmd=
  49117. +# func_quote_for_eval arg
  49118. +# Aesthetically quote ARG to be evaled later.
  49119. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  49120. +# is double-quoted, suitable for a subsequent eval, whereas
  49121. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  49122. +# which are still active within double quotes backslashified.
  49123. +func_quote_for_eval ()
  49124. +{
  49125. + case $1 in
  49126. + *[\\\`\"\$]*)
  49127. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  49128. + *)
  49129. + func_quote_for_eval_unquoted_result="$1" ;;
  49130. + esac
  49131. -if test -z "$show_help"; then
  49132. + case $func_quote_for_eval_unquoted_result in
  49133. + # Double-quote args containing shell metacharacters to delay
  49134. + # word splitting, command substitution and and variable
  49135. + # expansion for a subsequent eval.
  49136. + # Many Bourne shells cannot handle close brackets correctly
  49137. + # in scan sets, so we specify it separately.
  49138. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49139. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  49140. + ;;
  49141. + *)
  49142. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  49143. + esac
  49144. +}
  49145. - # Infer the operation mode.
  49146. - if test -z "$mode"; then
  49147. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  49148. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  49149. - case $nonopt in
  49150. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  49151. - mode=link
  49152. - for arg
  49153. - do
  49154. - case $arg in
  49155. - -c)
  49156. - mode=compile
  49157. - break
  49158. - ;;
  49159. - esac
  49160. - done
  49161. - ;;
  49162. - *db | *dbx | *strace | *truss)
  49163. - mode=execute
  49164. - ;;
  49165. - *install*|cp|mv)
  49166. - mode=install
  49167. - ;;
  49168. - *rm)
  49169. - mode=uninstall
  49170. - ;;
  49171. - *)
  49172. - # If we have no mode, but dlfiles were specified, then do execute mode.
  49173. - test -n "$execute_dlfiles" && mode=execute
  49174. - # Just use the default operation mode.
  49175. - if test -z "$mode"; then
  49176. - if test -n "$nonopt"; then
  49177. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  49178. - else
  49179. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  49180. - fi
  49181. - fi
  49182. - ;;
  49183. +# func_quote_for_expand arg
  49184. +# Aesthetically quote ARG to be evaled later; same as above,
  49185. +# but do not quote variable references.
  49186. +func_quote_for_expand ()
  49187. +{
  49188. + case $1 in
  49189. + *[\\\`\"]*)
  49190. + my_arg=`$ECHO "X$1" | $Xsed \
  49191. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  49192. + *)
  49193. + my_arg="$1" ;;
  49194. esac
  49195. - fi
  49196. - # Only execute mode is allowed to have -dlopen flags.
  49197. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  49198. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  49199. - $echo "$help" 1>&2
  49200. - exit 1
  49201. - fi
  49202. + case $my_arg in
  49203. + # Double-quote args containing shell metacharacters to delay
  49204. + # word splitting and command substitution for a subsequent eval.
  49205. + # Many Bourne shells cannot handle close brackets correctly
  49206. + # in scan sets, so we specify it separately.
  49207. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49208. + my_arg="\"$my_arg\""
  49209. + ;;
  49210. + esac
  49211. - # Change the help message to a mode-specific one.
  49212. - generic_help="$help"
  49213. - help="Try \`$modename --help --mode=$mode' for more information."
  49214. + func_quote_for_expand_result="$my_arg"
  49215. +}
  49216. - # These modes are in order of execution frequency so that they run quickly.
  49217. - case $mode in
  49218. - # libtool compile mode
  49219. - compile)
  49220. - modename="$modename: compile"
  49221. - # Get the compilation command and the source file.
  49222. - base_compile=
  49223. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  49224. - suppress_opt=yes
  49225. - suppress_output=
  49226. - arg_mode=normal
  49227. - libobj=
  49228. - later=
  49229. - for arg
  49230. - do
  49231. - case "$arg_mode" in
  49232. - arg )
  49233. - # do not "continue". Instead, add this to base_compile
  49234. - lastarg="$arg"
  49235. - arg_mode=normal
  49236. - ;;
  49237. +# func_show_eval cmd [fail_exp]
  49238. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  49239. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  49240. +# is given, then evaluate it.
  49241. +func_show_eval ()
  49242. +{
  49243. + my_cmd="$1"
  49244. + my_fail_exp="${2-:}"
  49245. - target )
  49246. - libobj="$arg"
  49247. - arg_mode=normal
  49248. - continue
  49249. - ;;
  49250. + ${opt_silent-false} || {
  49251. + func_quote_for_expand "$my_cmd"
  49252. + eval "func_echo $func_quote_for_expand_result"
  49253. + }
  49254. +
  49255. + if ${opt_dry_run-false}; then :; else
  49256. + eval "$my_cmd"
  49257. + my_status=$?
  49258. + if test "$my_status" -eq 0; then :; else
  49259. + eval "(exit $my_status); $my_fail_exp"
  49260. + fi
  49261. + fi
  49262. +}
  49263. - normal )
  49264. - # Accept any command-line options.
  49265. - case $arg in
  49266. - -o)
  49267. - if test -n "$libobj" ; then
  49268. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  49269. - exit 1
  49270. - fi
  49271. - arg_mode=target
  49272. - continue
  49273. - ;;
  49274. - -static | -prefer-pic | -prefer-non-pic)
  49275. - later="$later $arg"
  49276. - continue
  49277. - ;;
  49278. +# func_show_eval_locale cmd [fail_exp]
  49279. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  49280. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  49281. +# is given, then evaluate it. Use the saved locale for evaluation.
  49282. +func_show_eval_locale ()
  49283. +{
  49284. + my_cmd="$1"
  49285. + my_fail_exp="${2-:}"
  49286. - -no-suppress)
  49287. - suppress_opt=no
  49288. - continue
  49289. - ;;
  49290. + ${opt_silent-false} || {
  49291. + func_quote_for_expand "$my_cmd"
  49292. + eval "func_echo $func_quote_for_expand_result"
  49293. + }
  49294. +
  49295. + if ${opt_dry_run-false}; then :; else
  49296. + eval "$lt_user_locale
  49297. + $my_cmd"
  49298. + my_status=$?
  49299. + eval "$lt_safe_locale"
  49300. + if test "$my_status" -eq 0; then :; else
  49301. + eval "(exit $my_status); $my_fail_exp"
  49302. + fi
  49303. + fi
  49304. +}
  49305. - -Xcompiler)
  49306. - arg_mode=arg # the next one goes into the "base_compile" arg list
  49307. - continue # The current "srcfile" will either be retained or
  49308. - ;; # replaced later. I would guess that would be a bug.
  49309. - -Wc,*)
  49310. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  49311. - lastarg=
  49312. - save_ifs="$IFS"; IFS=','
  49313. - for arg in $args; do
  49314. - IFS="$save_ifs"
  49315. - # Double-quote args containing other shell metacharacters.
  49316. - # Many Bourne shells cannot handle close brackets correctly
  49317. - # in scan sets, so we specify it separately.
  49318. - case $arg in
  49319. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49320. - arg="\"$arg\""
  49321. - ;;
  49322. - esac
  49323. - lastarg="$lastarg $arg"
  49324. - done
  49325. - IFS="$save_ifs"
  49326. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  49327. - # Add the arguments to base_compile.
  49328. - base_compile="$base_compile $lastarg"
  49329. - continue
  49330. - ;;
  49331. - * )
  49332. - # Accept the current argument as the source file.
  49333. - # The previous "srcfile" becomes the current argument.
  49334. - #
  49335. - lastarg="$srcfile"
  49336. - srcfile="$arg"
  49337. - ;;
  49338. - esac # case $arg
  49339. - ;;
  49340. - esac # case $arg_mode
  49341. +# func_version
  49342. +# Echo version message to standard output and exit.
  49343. +func_version ()
  49344. +{
  49345. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  49346. + s/^# //
  49347. + s/^# *$//
  49348. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  49349. + p
  49350. + }' < "$progpath"
  49351. + exit $?
  49352. +}
  49353. - # Aesthetically quote the previous argument.
  49354. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  49355. +# func_usage
  49356. +# Echo short help message to standard output and exit.
  49357. +func_usage ()
  49358. +{
  49359. + $SED -n '/^# Usage:/,/# -h/ {
  49360. + s/^# //
  49361. + s/^# *$//
  49362. + s/\$progname/'$progname'/
  49363. + p
  49364. + }' < "$progpath"
  49365. + $ECHO
  49366. + $ECHO "run \`$progname --help | more' for full usage"
  49367. + exit $?
  49368. +}
  49369. - case $lastarg in
  49370. - # Double-quote args containing other shell metacharacters.
  49371. - # Many Bourne shells cannot handle close brackets correctly
  49372. - # in scan sets, so we specify it separately.
  49373. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49374. - lastarg="\"$lastarg\""
  49375. - ;;
  49376. - esac
  49377. +# func_help
  49378. +# Echo long help message to standard output and exit.
  49379. +func_help ()
  49380. +{
  49381. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  49382. + s/^# //
  49383. + s/^# *$//
  49384. + s*\$progname*'$progname'*
  49385. + s*\$host*'"$host"'*
  49386. + s*\$SHELL*'"$SHELL"'*
  49387. + s*\$LTCC*'"$LTCC"'*
  49388. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  49389. + s*\$LD*'"$LD"'*
  49390. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  49391. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  49392. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  49393. + p
  49394. + }' < "$progpath"
  49395. + exit $?
  49396. +}
  49397. - base_compile="$base_compile $lastarg"
  49398. - done # for arg
  49399. +# func_missing_arg argname
  49400. +# Echo program name prefixed message to standard error and set global
  49401. +# exit_cmd.
  49402. +func_missing_arg ()
  49403. +{
  49404. + func_error "missing argument for $1"
  49405. + exit_cmd=exit
  49406. +}
  49407. - case $arg_mode in
  49408. - arg)
  49409. - $echo "$modename: you must specify an argument for -Xcompile"
  49410. - exit 1
  49411. - ;;
  49412. - target)
  49413. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  49414. - exit 1
  49415. +exit_cmd=:
  49416. +
  49417. +
  49418. +
  49419. +
  49420. +
  49421. +# Check that we have a working $ECHO.
  49422. +if test "X$1" = X--no-reexec; then
  49423. + # Discard the --no-reexec flag, and continue.
  49424. + shift
  49425. +elif test "X$1" = X--fallback-echo; then
  49426. + # Avoid inline document here, it may be left over
  49427. + :
  49428. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  49429. + # Yippee, $ECHO works!
  49430. + :
  49431. +else
  49432. + # Restart under the correct shell, and then maybe $ECHO will work.
  49433. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  49434. +fi
  49435. +
  49436. +if test "X$1" = X--fallback-echo; then
  49437. + # used as fallback echo
  49438. + shift
  49439. + cat <<EOF
  49440. +$*
  49441. +EOF
  49442. + exit $EXIT_SUCCESS
  49443. +fi
  49444. +
  49445. +magic="%%%MAGIC variable%%%"
  49446. +magic_exe="%%%MAGIC EXE variable%%%"
  49447. +
  49448. +# Global variables.
  49449. +# $mode is unset
  49450. +nonopt=
  49451. +execute_dlfiles=
  49452. +preserve_args=
  49453. +lo2o="s/\\.lo\$/.${objext}/"
  49454. +o2lo="s/\\.${objext}\$/.lo/"
  49455. +extracted_archives=
  49456. +extracted_serial=0
  49457. +
  49458. +opt_dry_run=false
  49459. +opt_duplicate_deps=false
  49460. +opt_silent=false
  49461. +opt_debug=:
  49462. +
  49463. +# If this variable is set in any of the actions, the command in it
  49464. +# will be execed at the end. This prevents here-documents from being
  49465. +# left over by shells.
  49466. +exec_cmd=
  49467. +
  49468. +# func_fatal_configuration arg...
  49469. +# Echo program name prefixed message to standard error, followed by
  49470. +# a configuration failure hint, and exit.
  49471. +func_fatal_configuration ()
  49472. +{
  49473. + func_error ${1+"$@"}
  49474. + func_error "See the $PACKAGE documentation for more information."
  49475. + func_fatal_error "Fatal configuration error."
  49476. +}
  49477. +
  49478. +
  49479. +# func_config
  49480. +# Display the configuration for all the tags in this script.
  49481. +func_config ()
  49482. +{
  49483. + re_begincf='^# ### BEGIN LIBTOOL'
  49484. + re_endcf='^# ### END LIBTOOL'
  49485. +
  49486. + # Default configuration.
  49487. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  49488. +
  49489. + # Now print the configurations for the tags.
  49490. + for tagname in $taglist; do
  49491. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  49492. + done
  49493. +
  49494. + exit $?
  49495. +}
  49496. +
  49497. +# func_features
  49498. +# Display the features supported by this script.
  49499. +func_features ()
  49500. +{
  49501. + $ECHO "host: $host"
  49502. + if test "$build_libtool_libs" = yes; then
  49503. + $ECHO "enable shared libraries"
  49504. + else
  49505. + $ECHO "disable shared libraries"
  49506. + fi
  49507. + if test "$build_old_libs" = yes; then
  49508. + $ECHO "enable static libraries"
  49509. + else
  49510. + $ECHO "disable static libraries"
  49511. + fi
  49512. +
  49513. + exit $?
  49514. +}
  49515. +
  49516. +# func_enable_tag tagname
  49517. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  49518. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  49519. +# variable here.
  49520. +func_enable_tag ()
  49521. +{
  49522. + # Global variable:
  49523. + tagname="$1"
  49524. +
  49525. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  49526. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  49527. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  49528. +
  49529. + # Validate tagname.
  49530. + case $tagname in
  49531. + *[!-_A-Za-z0-9,/]*)
  49532. + func_fatal_error "invalid tag name: $tagname"
  49533. ;;
  49534. + esac
  49535. +
  49536. + # Don't test for the "default" C tag, as we know it's
  49537. + # there but not specially marked.
  49538. + case $tagname in
  49539. + CC) ;;
  49540. *)
  49541. - # Get the name of the library object.
  49542. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  49543. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  49544. + taglist="$taglist $tagname"
  49545. +
  49546. + # Evaluate the configuration. Be careful to quote the path
  49547. + # and the sed script, to avoid splitting on whitespace, but
  49548. + # also don't use non-portable quotes within backquotes within
  49549. + # quotes we have to do it in 2 steps:
  49550. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  49551. + eval "$extractedcf"
  49552. + else
  49553. + func_error "ignoring unknown tag $tagname"
  49554. + fi
  49555. ;;
  49556. - esac
  49557. + esac
  49558. +}
  49559. - # Recognize several different file suffixes.
  49560. - # If the user specifies -o file.o, it is replaced with file.lo
  49561. - xform='[cCFSifmso]'
  49562. - case $libobj in
  49563. - *.ada) xform=ada ;;
  49564. - *.adb) xform=adb ;;
  49565. - *.ads) xform=ads ;;
  49566. - *.asm) xform=asm ;;
  49567. - *.c++) xform=c++ ;;
  49568. - *.cc) xform=cc ;;
  49569. - *.ii) xform=ii ;;
  49570. - *.class) xform=class ;;
  49571. - *.cpp) xform=cpp ;;
  49572. - *.cxx) xform=cxx ;;
  49573. - *.f90) xform=f90 ;;
  49574. - *.for) xform=for ;;
  49575. - *.java) xform=java ;;
  49576. +# Parse options once, thoroughly. This comes as soon as possible in
  49577. +# the script to make things like `libtool --version' happen quickly.
  49578. +{
  49579. +
  49580. + # Shorthand for --mode=foo, only valid as the first argument
  49581. + case $1 in
  49582. + clean|clea|cle|cl)
  49583. + shift; set dummy --mode clean ${1+"$@"}; shift
  49584. + ;;
  49585. + compile|compil|compi|comp|com|co|c)
  49586. + shift; set dummy --mode compile ${1+"$@"}; shift
  49587. + ;;
  49588. + execute|execut|execu|exec|exe|ex|e)
  49589. + shift; set dummy --mode execute ${1+"$@"}; shift
  49590. + ;;
  49591. + finish|finis|fini|fin|fi|f)
  49592. + shift; set dummy --mode finish ${1+"$@"}; shift
  49593. + ;;
  49594. + install|instal|insta|inst|ins|in|i)
  49595. + shift; set dummy --mode install ${1+"$@"}; shift
  49596. + ;;
  49597. + link|lin|li|l)
  49598. + shift; set dummy --mode link ${1+"$@"}; shift
  49599. + ;;
  49600. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  49601. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  49602. + ;;
  49603. + esac
  49604. +
  49605. + # Parse non-mode specific arguments:
  49606. + while test "$#" -gt 0; do
  49607. + opt="$1"
  49608. + shift
  49609. +
  49610. + case $opt in
  49611. + --config) func_config ;;
  49612. +
  49613. + --debug) preserve_args="$preserve_args $opt"
  49614. + func_echo "enabling shell trace mode"
  49615. + opt_debug='set -x'
  49616. + $opt_debug
  49617. + ;;
  49618. +
  49619. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  49620. + execute_dlfiles="$execute_dlfiles $1"
  49621. + shift
  49622. + ;;
  49623. +
  49624. + --dry-run | -n) opt_dry_run=: ;;
  49625. + --features) func_features ;;
  49626. + --finish) mode="finish" ;;
  49627. +
  49628. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  49629. + case $1 in
  49630. + # Valid mode arguments:
  49631. + clean) ;;
  49632. + compile) ;;
  49633. + execute) ;;
  49634. + finish) ;;
  49635. + install) ;;
  49636. + link) ;;
  49637. + relink) ;;
  49638. + uninstall) ;;
  49639. +
  49640. + # Catch anything else as an error
  49641. + *) func_error "invalid argument for $opt"
  49642. + exit_cmd=exit
  49643. + break
  49644. + ;;
  49645. + esac
  49646. +
  49647. + mode="$1"
  49648. + shift
  49649. + ;;
  49650. +
  49651. + --preserve-dup-deps)
  49652. + opt_duplicate_deps=: ;;
  49653. +
  49654. + --quiet|--silent) preserve_args="$preserve_args $opt"
  49655. + opt_silent=:
  49656. + ;;
  49657. +
  49658. + --verbose| -v) preserve_args="$preserve_args $opt"
  49659. + opt_silent=false
  49660. + ;;
  49661. +
  49662. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  49663. + preserve_args="$preserve_args $opt $1"
  49664. + func_enable_tag "$1" # tagname is set here
  49665. + shift
  49666. + ;;
  49667. +
  49668. + # Separate optargs to long options:
  49669. + -dlopen=*|--mode=*|--tag=*)
  49670. + func_opt_split "$opt"
  49671. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  49672. + shift
  49673. + ;;
  49674. +
  49675. + -\?|-h) func_usage ;;
  49676. + --help) opt_help=: ;;
  49677. + --version) func_version ;;
  49678. +
  49679. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  49680. +
  49681. + *) nonopt="$opt"
  49682. + break
  49683. + ;;
  49684. esac
  49685. + done
  49686. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  49687. - case $libobj in
  49688. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  49689. + case $host in
  49690. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  49691. + # don't eliminate duplications in $postdeps and $predeps
  49692. + opt_duplicate_compiler_generated_deps=:
  49693. + ;;
  49694. *)
  49695. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  49696. - exit 1
  49697. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  49698. ;;
  49699. + esac
  49700. +
  49701. + # Having warned about all mis-specified options, bail out if
  49702. + # anything was wrong.
  49703. + $exit_cmd $EXIT_FAILURE
  49704. +}
  49705. +
  49706. +# func_check_version_match
  49707. +# Ensure that we are using m4 macros, and libtool script from the same
  49708. +# release of libtool.
  49709. +func_check_version_match ()
  49710. +{
  49711. + if test "$package_revision" != "$macro_revision"; then
  49712. + if test "$VERSION" != "$macro_version"; then
  49713. + if test -z "$macro_version"; then
  49714. + cat >&2 <<_LT_EOF
  49715. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  49716. +$progname: definition of this LT_INIT comes from an older release.
  49717. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  49718. +$progname: and run autoconf again.
  49719. +_LT_EOF
  49720. + else
  49721. + cat >&2 <<_LT_EOF
  49722. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  49723. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  49724. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  49725. +$progname: and run autoconf again.
  49726. +_LT_EOF
  49727. + fi
  49728. + else
  49729. + cat >&2 <<_LT_EOF
  49730. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  49731. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  49732. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  49733. +$progname: of $PACKAGE $VERSION and run autoconf again.
  49734. +_LT_EOF
  49735. + fi
  49736. +
  49737. + exit $EXIT_MISMATCH
  49738. + fi
  49739. +}
  49740. +
  49741. +
  49742. +## ----------- ##
  49743. +## Main. ##
  49744. +## ----------- ##
  49745. +
  49746. +$opt_help || {
  49747. + # Sanity checks first:
  49748. + func_check_version_match
  49749. +
  49750. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  49751. + func_fatal_configuration "not configured to build any kind of library"
  49752. + fi
  49753. +
  49754. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  49755. +
  49756. +
  49757. + # Darwin sucks
  49758. + eval std_shrext=\"$shrext_cmds\"
  49759. +
  49760. +
  49761. + # Only execute mode is allowed to have -dlopen flags.
  49762. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  49763. + func_error "unrecognized option \`-dlopen'"
  49764. + $ECHO "$help" 1>&2
  49765. + exit $EXIT_FAILURE
  49766. + fi
  49767. +
  49768. + # Change the help message to a mode-specific one.
  49769. + generic_help="$help"
  49770. + help="Try \`$progname --help --mode=$mode' for more information."
  49771. +}
  49772. +
  49773. +
  49774. +# func_lalib_p file
  49775. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  49776. +# This function is only a basic sanity check; it will hardly flush out
  49777. +# determined imposters.
  49778. +func_lalib_p ()
  49779. +{
  49780. + test -f "$1" &&
  49781. + $SED -e 4q "$1" 2>/dev/null \
  49782. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  49783. +}
  49784. +
  49785. +# func_lalib_unsafe_p file
  49786. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  49787. +# This function implements the same check as func_lalib_p without
  49788. +# resorting to external programs. To this end, it redirects stdin and
  49789. +# closes it afterwards, without saving the original file descriptor.
  49790. +# As a safety measure, use it only where a negative result would be
  49791. +# fatal anyway. Works if `file' does not exist.
  49792. +func_lalib_unsafe_p ()
  49793. +{
  49794. + lalib_p=no
  49795. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  49796. + for lalib_p_l in 1 2 3 4
  49797. + do
  49798. + read lalib_p_line
  49799. + case "$lalib_p_line" in
  49800. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  49801. + esac
  49802. + done
  49803. + exec 0<&5 5<&-
  49804. + fi
  49805. + test "$lalib_p" = yes
  49806. +}
  49807. +
  49808. +# func_ltwrapper_script_p file
  49809. +# True iff FILE is a libtool wrapper script
  49810. +# This function is only a basic sanity check; it will hardly flush out
  49811. +# determined imposters.
  49812. +func_ltwrapper_script_p ()
  49813. +{
  49814. + func_lalib_p "$1"
  49815. +}
  49816. +
  49817. +# func_ltwrapper_executable_p file
  49818. +# True iff FILE is a libtool wrapper executable
  49819. +# This function is only a basic sanity check; it will hardly flush out
  49820. +# determined imposters.
  49821. +func_ltwrapper_executable_p ()
  49822. +{
  49823. + func_ltwrapper_exec_suffix=
  49824. + case $1 in
  49825. + *.exe) ;;
  49826. + *) func_ltwrapper_exec_suffix=.exe ;;
  49827. + esac
  49828. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  49829. +}
  49830. +
  49831. +# func_ltwrapper_scriptname file
  49832. +# Assumes file is an ltwrapper_executable
  49833. +# uses $file to determine the appropriate filename for a
  49834. +# temporary ltwrapper_script.
  49835. +func_ltwrapper_scriptname ()
  49836. +{
  49837. + func_ltwrapper_scriptname_result=""
  49838. + if func_ltwrapper_executable_p "$1"; then
  49839. + func_dirname_and_basename "$1" "" "."
  49840. + func_stripname '' '.exe' "$func_basename_result"
  49841. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  49842. + fi
  49843. +}
  49844. +
  49845. +# func_ltwrapper_p file
  49846. +# True iff FILE is a libtool wrapper script or wrapper executable
  49847. +# This function is only a basic sanity check; it will hardly flush out
  49848. +# determined imposters.
  49849. +func_ltwrapper_p ()
  49850. +{
  49851. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  49852. +}
  49853. +
  49854. +
  49855. +# func_execute_cmds commands fail_cmd
  49856. +# Execute tilde-delimited COMMANDS.
  49857. +# If FAIL_CMD is given, eval that upon failure.
  49858. +# FAIL_CMD may read-access the current command in variable CMD!
  49859. +func_execute_cmds ()
  49860. +{
  49861. + $opt_debug
  49862. + save_ifs=$IFS; IFS='~'
  49863. + for cmd in $1; do
  49864. + IFS=$save_ifs
  49865. + eval cmd=\"$cmd\"
  49866. + func_show_eval "$cmd" "${2-:}"
  49867. + done
  49868. + IFS=$save_ifs
  49869. +}
  49870. +
  49871. +
  49872. +# func_source file
  49873. +# Source FILE, adding directory component if necessary.
  49874. +# Note that it is not necessary on cygwin/mingw to append a dot to
  49875. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  49876. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  49877. +# `FILE.' does not work on cygwin managed mounts.
  49878. +func_source ()
  49879. +{
  49880. + $opt_debug
  49881. + case $1 in
  49882. + */* | *\\*) . "$1" ;;
  49883. + *) . "./$1" ;;
  49884. esac
  49885. +}
  49886. +
  49887. - # Infer tagged configuration to use if any are available and
  49888. - # if one wasn't chosen via the "--tag" command line option.
  49889. - # Only attempt this if the compiler in the base compile
  49890. - # command doesn't match the default compiler.
  49891. +# func_infer_tag arg
  49892. +# Infer tagged configuration to use if any are available and
  49893. +# if one wasn't chosen via the "--tag" command line option.
  49894. +# Only attempt this if the compiler in the base compile
  49895. +# command doesn't match the default compiler.
  49896. +# arg is usually of the form 'gcc ...'
  49897. +func_infer_tag ()
  49898. +{
  49899. + $opt_debug
  49900. if test -n "$available_tags" && test -z "$tagname"; then
  49901. - case $base_compile in
  49902. + CC_quoted=
  49903. + for arg in $CC; do
  49904. + func_quote_for_eval "$arg"
  49905. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  49906. + done
  49907. + case $@ in
  49908. # Blanks in the command may have been stripped by the calling shell,
  49909. # but not from the CC environment variable when configure was run.
  49910. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
  49911. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  49912. # Blanks at the start of $base_compile will cause this to fail
  49913. # if we don't check for them as well.
  49914. *)
  49915. for z in $available_tags; do
  49916. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
  49917. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  49918. # Evaluate the configuration.
  49919. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
  49920. - case "$base_compile " in
  49921. - "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
  49922. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  49923. + CC_quoted=
  49924. + for arg in $CC; do
  49925. + # Double-quote args containing other shell metacharacters.
  49926. + func_quote_for_eval "$arg"
  49927. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  49928. + done
  49929. + case "$@ " in
  49930. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  49931. # The compiler in the base compile command matches
  49932. # the one in the tagged configuration.
  49933. # Assume this is the tagged configuration we want.
  49934. @@ -548,78 +1048,248 @@
  49935. # was found and let the user know that the "--tag" command
  49936. # line option must be used.
  49937. if test -z "$tagname"; then
  49938. - $echo "$modename: unable to infer tagged configuration"
  49939. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  49940. - exit 1
  49941. -# else
  49942. -# $echo "$modename: using $tagname tagged configuration"
  49943. + func_echo "unable to infer tagged configuration"
  49944. + func_fatal_error "specify a tag with \`--tag'"
  49945. +# else
  49946. +# func_verbose "using $tagname tagged configuration"
  49947. fi
  49948. ;;
  49949. esac
  49950. fi
  49951. +}
  49952. - for arg in $later; do
  49953. - case $arg in
  49954. - -static)
  49955. - build_old_libs=yes
  49956. - continue
  49957. - ;;
  49958. -
  49959. - -prefer-pic)
  49960. - pic_mode=yes
  49961. - continue
  49962. - ;;
  49963. - -prefer-non-pic)
  49964. - pic_mode=no
  49965. - continue
  49966. - ;;
  49967. - esac
  49968. - done
  49969. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  49970. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  49971. - if test "X$xdir" = "X$obj"; then
  49972. - xdir=
  49973. +# func_write_libtool_object output_name pic_name nonpic_name
  49974. +# Create a libtool object file (analogous to a ".la" file),
  49975. +# but don't create it if we're doing a dry run.
  49976. +func_write_libtool_object ()
  49977. +{
  49978. + write_libobj=${1}
  49979. + if test "$build_libtool_libs" = yes; then
  49980. + write_lobj=\'${2}\'
  49981. else
  49982. - xdir=$xdir/
  49983. - fi
  49984. - lobj=${xdir}$objdir/$objname
  49985. -
  49986. - if test -z "$base_compile"; then
  49987. - $echo "$modename: you must specify a compilation command" 1>&2
  49988. - $echo "$help" 1>&2
  49989. - exit 1
  49990. + write_lobj=none
  49991. fi
  49992. - # Delete any leftover library objects.
  49993. if test "$build_old_libs" = yes; then
  49994. - removelist="$obj $lobj $libobj ${libobj}T"
  49995. + write_oldobj=\'${3}\'
  49996. else
  49997. - removelist="$lobj $libobj ${libobj}T"
  49998. + write_oldobj=none
  49999. fi
  50000. - $run $rm $removelist
  50001. - trap "$run $rm $removelist; exit 1" 1 2 15
  50002. + $opt_dry_run || {
  50003. + cat >${write_libobj}T <<EOF
  50004. +# $write_libobj - a libtool object file
  50005. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  50006. +#
  50007. +# Please DO NOT delete this file!
  50008. +# It is necessary for linking the library.
  50009. - # On Cygwin there's no "real" PIC flag so we must build both object types
  50010. - case $host_os in
  50011. - cygwin* | mingw* | pw32* | os2*)
  50012. - pic_mode=default
  50013. - ;;
  50014. - esac
  50015. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  50016. - # non-PIC code in shared libraries is not supported
  50017. - pic_mode=default
  50018. - fi
  50019. +# Name of the PIC object.
  50020. +pic_object=$write_lobj
  50021. - # Calculate the filename of the output object if compiler does
  50022. +# Name of the non-PIC object
  50023. +non_pic_object=$write_oldobj
  50024. +
  50025. +EOF
  50026. + $MV "${write_libobj}T" "${write_libobj}"
  50027. + }
  50028. +}
  50029. +
  50030. +# func_mode_compile arg...
  50031. +func_mode_compile ()
  50032. +{
  50033. + $opt_debug
  50034. + # Get the compilation command and the source file.
  50035. + base_compile=
  50036. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  50037. + suppress_opt=yes
  50038. + suppress_output=
  50039. + arg_mode=normal
  50040. + libobj=
  50041. + later=
  50042. + pie_flag=
  50043. +
  50044. + for arg
  50045. + do
  50046. + case $arg_mode in
  50047. + arg )
  50048. + # do not "continue". Instead, add this to base_compile
  50049. + lastarg="$arg"
  50050. + arg_mode=normal
  50051. + ;;
  50052. +
  50053. + target )
  50054. + libobj="$arg"
  50055. + arg_mode=normal
  50056. + continue
  50057. + ;;
  50058. +
  50059. + normal )
  50060. + # Accept any command-line options.
  50061. + case $arg in
  50062. + -o)
  50063. + test -n "$libobj" && \
  50064. + func_fatal_error "you cannot specify \`-o' more than once"
  50065. + arg_mode=target
  50066. + continue
  50067. + ;;
  50068. +
  50069. + -pie | -fpie | -fPIE)
  50070. + pie_flag="$pie_flag $arg"
  50071. + continue
  50072. + ;;
  50073. +
  50074. + -shared | -static | -prefer-pic | -prefer-non-pic)
  50075. + later="$later $arg"
  50076. + continue
  50077. + ;;
  50078. +
  50079. + -no-suppress)
  50080. + suppress_opt=no
  50081. + continue
  50082. + ;;
  50083. +
  50084. + -Xcompiler)
  50085. + arg_mode=arg # the next one goes into the "base_compile" arg list
  50086. + continue # The current "srcfile" will either be retained or
  50087. + ;; # replaced later. I would guess that would be a bug.
  50088. +
  50089. + -Wc,*)
  50090. + func_stripname '-Wc,' '' "$arg"
  50091. + args=$func_stripname_result
  50092. + lastarg=
  50093. + save_ifs="$IFS"; IFS=','
  50094. + for arg in $args; do
  50095. + IFS="$save_ifs"
  50096. + func_quote_for_eval "$arg"
  50097. + lastarg="$lastarg $func_quote_for_eval_result"
  50098. + done
  50099. + IFS="$save_ifs"
  50100. + func_stripname ' ' '' "$lastarg"
  50101. + lastarg=$func_stripname_result
  50102. +
  50103. + # Add the arguments to base_compile.
  50104. + base_compile="$base_compile $lastarg"
  50105. + continue
  50106. + ;;
  50107. +
  50108. + *)
  50109. + # Accept the current argument as the source file.
  50110. + # The previous "srcfile" becomes the current argument.
  50111. + #
  50112. + lastarg="$srcfile"
  50113. + srcfile="$arg"
  50114. + ;;
  50115. + esac # case $arg
  50116. + ;;
  50117. + esac # case $arg_mode
  50118. +
  50119. + # Aesthetically quote the previous argument.
  50120. + func_quote_for_eval "$lastarg"
  50121. + base_compile="$base_compile $func_quote_for_eval_result"
  50122. + done # for arg
  50123. +
  50124. + case $arg_mode in
  50125. + arg)
  50126. + func_fatal_error "you must specify an argument for -Xcompile"
  50127. + ;;
  50128. + target)
  50129. + func_fatal_error "you must specify a target with \`-o'"
  50130. + ;;
  50131. + *)
  50132. + # Get the name of the library object.
  50133. + test -z "$libobj" && {
  50134. + func_basename "$srcfile"
  50135. + libobj="$func_basename_result"
  50136. + }
  50137. + ;;
  50138. + esac
  50139. +
  50140. + # Recognize several different file suffixes.
  50141. + # If the user specifies -o file.o, it is replaced with file.lo
  50142. + case $libobj in
  50143. + *.[cCFSifmso] | \
  50144. + *.ada | *.adb | *.ads | *.asm | \
  50145. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  50146. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  50147. + func_xform "$libobj"
  50148. + libobj=$func_xform_result
  50149. + ;;
  50150. + esac
  50151. +
  50152. + case $libobj in
  50153. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  50154. + *)
  50155. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  50156. + ;;
  50157. + esac
  50158. +
  50159. + func_infer_tag $base_compile
  50160. +
  50161. + for arg in $later; do
  50162. + case $arg in
  50163. + -shared)
  50164. + test "$build_libtool_libs" != yes && \
  50165. + func_fatal_configuration "can not build a shared library"
  50166. + build_old_libs=no
  50167. + continue
  50168. + ;;
  50169. +
  50170. + -static)
  50171. + build_libtool_libs=no
  50172. + build_old_libs=yes
  50173. + continue
  50174. + ;;
  50175. +
  50176. + -prefer-pic)
  50177. + pic_mode=yes
  50178. + continue
  50179. + ;;
  50180. +
  50181. + -prefer-non-pic)
  50182. + pic_mode=no
  50183. + continue
  50184. + ;;
  50185. + esac
  50186. + done
  50187. +
  50188. + func_quote_for_eval "$libobj"
  50189. + test "X$libobj" != "X$func_quote_for_eval_result" \
  50190. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  50191. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  50192. + func_dirname_and_basename "$obj" "/" ""
  50193. + objname="$func_basename_result"
  50194. + xdir="$func_dirname_result"
  50195. + lobj=${xdir}$objdir/$objname
  50196. +
  50197. + test -z "$base_compile" && \
  50198. + func_fatal_help "you must specify a compilation command"
  50199. +
  50200. + # Delete any leftover library objects.
  50201. + if test "$build_old_libs" = yes; then
  50202. + removelist="$obj $lobj $libobj ${libobj}T"
  50203. + else
  50204. + removelist="$lobj $libobj ${libobj}T"
  50205. + fi
  50206. +
  50207. + # On Cygwin there's no "real" PIC flag so we must build both object types
  50208. + case $host_os in
  50209. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  50210. + pic_mode=default
  50211. + ;;
  50212. + esac
  50213. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  50214. + # non-PIC code in shared libraries is not supported
  50215. + pic_mode=default
  50216. + fi
  50217. +
  50218. + # Calculate the filename of the output object if compiler does
  50219. # not support -o with -c
  50220. if test "$compiler_c_o" = no; then
  50221. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  50222. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  50223. lockfile="$output_obj.lock"
  50224. - removelist="$removelist $output_obj $lockfile"
  50225. - trap "$run $rm $removelist; exit 1" 1 2 15
  50226. else
  50227. output_obj=
  50228. need_locks=no
  50229. @@ -629,13 +1299,13 @@
  50230. # Lock this critical section if it is needed
  50231. # We use this script file to make the link, it avoids creating a new file
  50232. if test "$need_locks" = yes; then
  50233. - until $run ln "$0" "$lockfile" 2>/dev/null; do
  50234. - $show "Waiting for $lockfile to be removed"
  50235. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  50236. + func_echo "Waiting for $lockfile to be removed"
  50237. sleep 2
  50238. done
  50239. elif test "$need_locks" = warn; then
  50240. if test -f "$lockfile"; then
  50241. - $echo "\
  50242. + $ECHO "\
  50243. *** ERROR, $lockfile exists and contains:
  50244. `cat $lockfile 2>/dev/null`
  50245. @@ -646,29 +1316,22 @@
  50246. avoid parallel builds (make -j) in this platform, or get a better
  50247. compiler."
  50248. - $run $rm $removelist
  50249. - exit 1
  50250. + $opt_dry_run || $RM $removelist
  50251. + exit $EXIT_FAILURE
  50252. fi
  50253. - $echo $srcfile > "$lockfile"
  50254. + removelist="$removelist $output_obj"
  50255. + $ECHO "$srcfile" > "$lockfile"
  50256. fi
  50257. + $opt_dry_run || $RM $removelist
  50258. + removelist="$removelist $lockfile"
  50259. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  50260. +
  50261. if test -n "$fix_srcfile_path"; then
  50262. eval srcfile=\"$fix_srcfile_path\"
  50263. fi
  50264. -
  50265. - $run $rm "$libobj" "${libobj}T"
  50266. -
  50267. - # Create a libtool object file (analogous to a ".la" file),
  50268. - # but don't create it if we're doing a dry run.
  50269. - test -z "$run" && cat > ${libobj}T <<EOF
  50270. -# $libobj - a libtool object file
  50271. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  50272. -#
  50273. -# Please DO NOT delete this file!
  50274. -# It is necessary for linking the library.
  50275. -
  50276. -# Name of the PIC object.
  50277. -EOF
  50278. + func_quote_for_eval "$srcfile"
  50279. + qsrcfile=$func_quote_for_eval_result
  50280. # Only build a PIC object if we are building libtool libraries.
  50281. if test "$build_libtool_libs" = yes; then
  50282. @@ -676,38 +1339,25 @@
  50283. fbsd_hideous_sh_bug=$base_compile
  50284. if test "$pic_mode" != no; then
  50285. - command="$base_compile $srcfile $pic_flag"
  50286. + command="$base_compile $qsrcfile $pic_flag"
  50287. else
  50288. # Don't build PIC code
  50289. - command="$base_compile $srcfile"
  50290. + command="$base_compile $qsrcfile"
  50291. fi
  50292. - if test ! -d "${xdir}$objdir"; then
  50293. - $show "$mkdir ${xdir}$objdir"
  50294. - $run $mkdir ${xdir}$objdir
  50295. - status=$?
  50296. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  50297. - exit $status
  50298. - fi
  50299. - fi
  50300. + func_mkdir_p "$xdir$objdir"
  50301. if test -z "$output_obj"; then
  50302. # Place PIC objects in $objdir
  50303. command="$command -o $lobj"
  50304. fi
  50305. - $run $rm "$lobj" "$output_obj"
  50306. -
  50307. - $show "$command"
  50308. - if $run eval "$command"; then :
  50309. - else
  50310. - test -n "$output_obj" && $run $rm $removelist
  50311. - exit 1
  50312. - fi
  50313. + func_show_eval_locale "$command" \
  50314. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  50315. if test "$need_locks" = warn &&
  50316. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  50317. - $echo "\
  50318. + $ECHO "\
  50319. *** ERROR, $lockfile contains:
  50320. `cat $lockfile 2>/dev/null`
  50321. @@ -721,47 +1371,29 @@
  50322. avoid parallel builds (make -j) in this platform, or get a better
  50323. compiler."
  50324. - $run $rm $removelist
  50325. - exit 1
  50326. + $opt_dry_run || $RM $removelist
  50327. + exit $EXIT_FAILURE
  50328. fi
  50329. # Just move the object if needed, then go on to compile the next one
  50330. if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  50331. - $show "$mv $output_obj $lobj"
  50332. - if $run $mv $output_obj $lobj; then :
  50333. - else
  50334. - error=$?
  50335. - $run $rm $removelist
  50336. - exit $error
  50337. - fi
  50338. + func_show_eval '$MV "$output_obj" "$lobj"' \
  50339. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  50340. fi
  50341. - # Append the name of the PIC object to the libtool object file.
  50342. - test -z "$run" && cat >> ${libobj}T <<EOF
  50343. -pic_object='$objdir/$objname'
  50344. -
  50345. -EOF
  50346. -
  50347. # Allow error messages only from the first compilation.
  50348. if test "$suppress_opt" = yes; then
  50349. - suppress_output=' >/dev/null 2>&1'
  50350. + suppress_output=' >/dev/null 2>&1'
  50351. fi
  50352. - else
  50353. - # No PIC object so indicate it doesn't exist in the libtool
  50354. - # object file.
  50355. - test -z "$run" && cat >> ${libobj}T <<EOF
  50356. -pic_object=none
  50357. -
  50358. -EOF
  50359. fi
  50360. # Only build a position-dependent object if we build old libraries.
  50361. if test "$build_old_libs" = yes; then
  50362. if test "$pic_mode" != yes; then
  50363. # Don't build PIC code
  50364. - command="$base_compile $srcfile"
  50365. + command="$base_compile $qsrcfile$pie_flag"
  50366. else
  50367. - command="$base_compile $srcfile $pic_flag"
  50368. + command="$base_compile $qsrcfile $pic_flag"
  50369. fi
  50370. if test "$compiler_c_o" = yes; then
  50371. command="$command -o $obj"
  50372. @@ -769,17 +1401,12 @@
  50373. # Suppress compiler output if we already did a PIC compilation.
  50374. command="$command$suppress_output"
  50375. - $run $rm "$obj" "$output_obj"
  50376. - $show "$command"
  50377. - if $run eval "$command"; then :
  50378. - else
  50379. - $run $rm $removelist
  50380. - exit 1
  50381. - fi
  50382. + func_show_eval_locale "$command" \
  50383. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  50384. if test "$need_locks" = warn &&
  50385. test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  50386. - $echo "\
  50387. + $ECHO "\
  50388. *** ERROR, $lockfile contains:
  50389. `cat $lockfile 2>/dev/null`
  50390. @@ -793,5194 +1420,6784 @@
  50391. avoid parallel builds (make -j) in this platform, or get a better
  50392. compiler."
  50393. - $run $rm $removelist
  50394. - exit 1
  50395. + $opt_dry_run || $RM $removelist
  50396. + exit $EXIT_FAILURE
  50397. fi
  50398. # Just move the object if needed
  50399. if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  50400. - $show "$mv $output_obj $obj"
  50401. - if $run $mv $output_obj $obj; then :
  50402. - else
  50403. - error=$?
  50404. - $run $rm $removelist
  50405. - exit $error
  50406. - fi
  50407. + func_show_eval '$MV "$output_obj" "$obj"' \
  50408. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  50409. fi
  50410. + fi
  50411. - # Append the name of the non-PIC object the libtool object file.
  50412. - # Only append if the libtool object file exists.
  50413. - test -z "$run" && cat >> ${libobj}T <<EOF
  50414. -# Name of the non-PIC object.
  50415. -non_pic_object='$objname'
  50416. + $opt_dry_run || {
  50417. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  50418. -EOF
  50419. - else
  50420. - # Append the name of the non-PIC object the libtool object file.
  50421. - # Only append if the libtool object file exists.
  50422. - test -z "$run" && cat >> ${libobj}T <<EOF
  50423. -# Name of the non-PIC object.
  50424. -non_pic_object=none
  50425. + # Unlock the critical section if it was locked
  50426. + if test "$need_locks" != no; then
  50427. + removelist=$lockfile
  50428. + $RM "$lockfile"
  50429. + fi
  50430. + }
  50431. -EOF
  50432. - fi
  50433. + exit $EXIT_SUCCESS
  50434. +}
  50435. - $run $mv "${libobj}T" "${libobj}"
  50436. +$opt_help || {
  50437. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  50438. +}
  50439. - # Unlock the critical section if it was locked
  50440. - if test "$need_locks" != no; then
  50441. - $run $rm "$lockfile"
  50442. - fi
  50443. +func_mode_help ()
  50444. +{
  50445. + # We need to display help for each of the modes.
  50446. + case $mode in
  50447. + "")
  50448. + # Generic help is extracted from the usage comments
  50449. + # at the start of this file.
  50450. + func_help
  50451. + ;;
  50452. - exit 0
  50453. - ;;
  50454. + clean)
  50455. + $ECHO \
  50456. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  50457. - # libtool link mode
  50458. - link | relink)
  50459. - modename="$modename: link"
  50460. - case $host in
  50461. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  50462. - # It is impossible to link a dll without this setting, and
  50463. - # we shouldn't force the makefile maintainer to figure out
  50464. - # which system we are compiling for in order to pass an extra
  50465. - # flag for every libtool invocation.
  50466. - # allow_undefined=no
  50467. +Remove files from the build directory.
  50468. - # FIXME: Unfortunately, there are problems with the above when trying
  50469. - # to make a dll which has undefined symbols, in which case not
  50470. - # even a static library is built. For now, we need to specify
  50471. - # -no-undefined on the libtool link line when we can be certain
  50472. - # that all symbols are satisfied, otherwise we get a static library.
  50473. - allow_undefined=yes
  50474. - ;;
  50475. - *)
  50476. - allow_undefined=yes
  50477. - ;;
  50478. - esac
  50479. - libtool_args="$nonopt"
  50480. - base_compile="$nonopt $@"
  50481. - compile_command="$nonopt"
  50482. - finalize_command="$nonopt"
  50483. +RM is the name of the program to use to delete files associated with each FILE
  50484. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  50485. +to RM.
  50486. - compile_rpath=
  50487. - finalize_rpath=
  50488. - compile_shlibpath=
  50489. - finalize_shlibpath=
  50490. - convenience=
  50491. - old_convenience=
  50492. - deplibs=
  50493. - old_deplibs=
  50494. - compiler_flags=
  50495. - linker_flags=
  50496. - dllsearchpath=
  50497. - lib_search_path=`pwd`
  50498. - inst_prefix_dir=
  50499. +If FILE is a libtool library, object or program, all the files associated
  50500. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  50501. + ;;
  50502. - avoid_version=no
  50503. - dlfiles=
  50504. - dlprefiles=
  50505. - dlself=no
  50506. - export_dynamic=no
  50507. - export_symbols=
  50508. - export_symbols_regex=
  50509. - generated=
  50510. - libobjs=
  50511. - ltlibs=
  50512. - module=no
  50513. - no_install=no
  50514. - objs=
  50515. - non_pic_objects=
  50516. - precious_files_regex=
  50517. - prefer_static_libs=no
  50518. - preload=no
  50519. - prev=
  50520. - prevarg=
  50521. - release=
  50522. - rpath=
  50523. - xrpath=
  50524. - perm_rpath=
  50525. - temp_rpath=
  50526. - thread_safe=no
  50527. - vinfo=
  50528. - vinfo_number=no
  50529. + compile)
  50530. + $ECHO \
  50531. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  50532. - # Infer tagged configuration to use if any are available and
  50533. - # if one wasn't chosen via the "--tag" command line option.
  50534. - # Only attempt this if the compiler in the base link
  50535. - # command doesn't match the default compiler.
  50536. - if test -n "$available_tags" && test -z "$tagname"; then
  50537. - case $base_compile in
  50538. - # Blanks in the command may have been stripped by the calling shell,
  50539. - # but not from the CC environment variable when configure was run.
  50540. - "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;;
  50541. - # Blanks at the start of $base_compile will cause this to fail
  50542. - # if we don't check for them as well.
  50543. - *)
  50544. - for z in $available_tags; do
  50545. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
  50546. - # Evaluate the configuration.
  50547. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
  50548. - case $base_compile in
  50549. - "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
  50550. - # The compiler in $compile_command matches
  50551. - # the one in the tagged configuration.
  50552. - # Assume this is the tagged configuration we want.
  50553. - tagname=$z
  50554. - break
  50555. - ;;
  50556. - esac
  50557. - fi
  50558. - done
  50559. - # If $tagname still isn't set, then no tagged configuration
  50560. - # was found and let the user know that the "--tag" command
  50561. - # line option must be used.
  50562. - if test -z "$tagname"; then
  50563. - $echo "$modename: unable to infer tagged configuration"
  50564. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  50565. - exit 1
  50566. -# else
  50567. -# $echo "$modename: using $tagname tagged configuration"
  50568. - fi
  50569. - ;;
  50570. - esac
  50571. - fi
  50572. +Compile a source file into a libtool library object.
  50573. - # We need to know -static, to get the right output filenames.
  50574. - for arg
  50575. - do
  50576. - case $arg in
  50577. - -all-static | -static)
  50578. - if test "X$arg" = "X-all-static"; then
  50579. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  50580. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  50581. - fi
  50582. - if test -n "$link_static_flag"; then
  50583. - dlopen_self=$dlopen_self_static
  50584. - fi
  50585. - else
  50586. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  50587. - dlopen_self=$dlopen_self_static
  50588. - fi
  50589. - fi
  50590. - build_libtool_libs=no
  50591. - build_old_libs=yes
  50592. - prefer_static_libs=yes
  50593. - break
  50594. - ;;
  50595. - esac
  50596. - done
  50597. +This mode accepts the following additional options:
  50598. - # See if our shared archives depend on static archives.
  50599. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  50600. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  50601. + -no-suppress do not suppress compiler output for multiple passes
  50602. + -prefer-pic try to building PIC objects only
  50603. + -prefer-non-pic try to building non-PIC objects only
  50604. + -shared do not build a \`.o' file suitable for static linking
  50605. + -static only build a \`.o' file suitable for static linking
  50606. - # Go through the arguments, transforming them on the way.
  50607. - while test "$#" -gt 0; do
  50608. - arg="$1"
  50609. - shift
  50610. - case $arg in
  50611. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50612. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  50613. - ;;
  50614. - *) qarg=$arg ;;
  50615. - esac
  50616. - libtool_args="$libtool_args $qarg"
  50617. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  50618. +from the given SOURCEFILE.
  50619. - # If the previous option needs an argument, assign it.
  50620. - if test -n "$prev"; then
  50621. - case $prev in
  50622. - output)
  50623. - compile_command="$compile_command @OUTPUT@"
  50624. - finalize_command="$finalize_command @OUTPUT@"
  50625. - ;;
  50626. - esac
  50627. +The output file name is determined by removing the directory component from
  50628. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  50629. +library object suffix, \`.lo'."
  50630. + ;;
  50631. - case $prev in
  50632. - dlfiles|dlprefiles)
  50633. - if test "$preload" = no; then
  50634. - # Add the symbol object into the linking commands.
  50635. - compile_command="$compile_command @SYMFILE@"
  50636. - finalize_command="$finalize_command @SYMFILE@"
  50637. - preload=yes
  50638. - fi
  50639. - case $arg in
  50640. - *.la | *.lo) ;; # We handle these cases below.
  50641. - force)
  50642. - if test "$dlself" = no; then
  50643. - dlself=needless
  50644. - export_dynamic=yes
  50645. - fi
  50646. - prev=
  50647. - continue
  50648. - ;;
  50649. - self)
  50650. - if test "$prev" = dlprefiles; then
  50651. - dlself=yes
  50652. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  50653. - dlself=yes
  50654. - else
  50655. - dlself=needless
  50656. - export_dynamic=yes
  50657. - fi
  50658. - prev=
  50659. - continue
  50660. - ;;
  50661. - *)
  50662. - if test "$prev" = dlfiles; then
  50663. - dlfiles="$dlfiles $arg"
  50664. - else
  50665. - dlprefiles="$dlprefiles $arg"
  50666. - fi
  50667. - prev=
  50668. - continue
  50669. - ;;
  50670. - esac
  50671. - ;;
  50672. - expsyms)
  50673. - export_symbols="$arg"
  50674. - if test ! -f "$arg"; then
  50675. - $echo "$modename: symbol file \`$arg' does not exist"
  50676. - exit 1
  50677. - fi
  50678. - prev=
  50679. - continue
  50680. - ;;
  50681. - expsyms_regex)
  50682. - export_symbols_regex="$arg"
  50683. - prev=
  50684. - continue
  50685. - ;;
  50686. - inst_prefix)
  50687. - inst_prefix_dir="$arg"
  50688. - prev=
  50689. - continue
  50690. - ;;
  50691. - precious_regex)
  50692. - precious_files_regex="$arg"
  50693. - prev=
  50694. - continue
  50695. - ;;
  50696. - release)
  50697. - release="-$arg"
  50698. - prev=
  50699. - continue
  50700. - ;;
  50701. - objectlist)
  50702. - if test -f "$arg"; then
  50703. - save_arg=$arg
  50704. - moreargs=
  50705. - for fil in `cat $save_arg`
  50706. - do
  50707. -# moreargs="$moreargs $fil"
  50708. - arg=$fil
  50709. - # A libtool-controlled object.
  50710. + execute)
  50711. + $ECHO \
  50712. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  50713. - # Check to see that this really is a libtool object.
  50714. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50715. - pic_object=
  50716. - non_pic_object=
  50717. +Automatically set library path, then run a program.
  50718. - # Read the .lo file
  50719. - # If there is no directory component, then add one.
  50720. - case $arg in
  50721. - */* | *\\*) . $arg ;;
  50722. - *) . ./$arg ;;
  50723. - esac
  50724. +This mode accepts the following additional options:
  50725. - if test -z "$pic_object" || \
  50726. - test -z "$non_pic_object" ||
  50727. - test "$pic_object" = none && \
  50728. - test "$non_pic_object" = none; then
  50729. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  50730. - exit 1
  50731. - fi
  50732. + -dlopen FILE add the directory containing FILE to the library path
  50733. - # Extract subdirectory from the argument.
  50734. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50735. - if test "X$xdir" = "X$arg"; then
  50736. - xdir=
  50737. - else
  50738. - xdir="$xdir/"
  50739. - fi
  50740. +This mode sets the library path environment variable according to \`-dlopen'
  50741. +flags.
  50742. - if test "$pic_object" != none; then
  50743. - # Prepend the subdirectory the object is found in.
  50744. - pic_object="$xdir$pic_object"
  50745. +If any of the ARGS are libtool executable wrappers, then they are translated
  50746. +into their corresponding uninstalled binary, and any of their required library
  50747. +directories are added to the library path.
  50748. - if test "$prev" = dlfiles; then
  50749. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50750. - dlfiles="$dlfiles $pic_object"
  50751. - prev=
  50752. - continue
  50753. - else
  50754. - # If libtool objects are unsupported, then we need to preload.
  50755. - prev=dlprefiles
  50756. - fi
  50757. - fi
  50758. +Then, COMMAND is executed, with ARGS as arguments."
  50759. + ;;
  50760. - # CHECK ME: I think I busted this. -Ossama
  50761. - if test "$prev" = dlprefiles; then
  50762. - # Preload the old-style object.
  50763. - dlprefiles="$dlprefiles $pic_object"
  50764. - prev=
  50765. - fi
  50766. + finish)
  50767. + $ECHO \
  50768. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  50769. - # A PIC object.
  50770. - libobjs="$libobjs $pic_object"
  50771. - arg="$pic_object"
  50772. - fi
  50773. +Complete the installation of libtool libraries.
  50774. - # Non-PIC object.
  50775. - if test "$non_pic_object" != none; then
  50776. - # Prepend the subdirectory the object is found in.
  50777. - non_pic_object="$xdir$non_pic_object"
  50778. +Each LIBDIR is a directory that contains libtool libraries.
  50779. - # A standard non-PIC object
  50780. - non_pic_objects="$non_pic_objects $non_pic_object"
  50781. - if test -z "$pic_object" || test "$pic_object" = none ; then
  50782. - arg="$non_pic_object"
  50783. - fi
  50784. - fi
  50785. - else
  50786. - # Only an error if not doing a dry-run.
  50787. - if test -z "$run"; then
  50788. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50789. - exit 1
  50790. - else
  50791. - # Dry-run case.
  50792. +The commands that this mode executes may require superuser privileges. Use
  50793. +the \`--dry-run' option if you just want to see what would be executed."
  50794. + ;;
  50795. - # Extract subdirectory from the argument.
  50796. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50797. - if test "X$xdir" = "X$arg"; then
  50798. - xdir=
  50799. - else
  50800. - xdir="$xdir/"
  50801. - fi
  50802. + install)
  50803. + $ECHO \
  50804. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  50805. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50806. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50807. - libobjs="$libobjs $pic_object"
  50808. - non_pic_objects="$non_pic_objects $non_pic_object"
  50809. - fi
  50810. - fi
  50811. - done
  50812. - else
  50813. - $echo "$modename: link input file \`$save_arg' does not exist"
  50814. - exit 1
  50815. - fi
  50816. - arg=$save_arg
  50817. - prev=
  50818. - continue
  50819. - ;;
  50820. - rpath | xrpath)
  50821. - # We need an absolute path.
  50822. - case $arg in
  50823. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50824. - *)
  50825. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  50826. - exit 1
  50827. - ;;
  50828. - esac
  50829. - if test "$prev" = rpath; then
  50830. - case "$rpath " in
  50831. - *" $arg "*) ;;
  50832. - *) rpath="$rpath $arg" ;;
  50833. - esac
  50834. - else
  50835. - case "$xrpath " in
  50836. - *" $arg "*) ;;
  50837. - *) xrpath="$xrpath $arg" ;;
  50838. - esac
  50839. - fi
  50840. - prev=
  50841. - continue
  50842. - ;;
  50843. - xcompiler)
  50844. - compiler_flags="$compiler_flags $qarg"
  50845. - prev=
  50846. - compile_command="$compile_command $qarg"
  50847. - finalize_command="$finalize_command $qarg"
  50848. - continue
  50849. - ;;
  50850. - xlinker)
  50851. - linker_flags="$linker_flags $qarg"
  50852. - compiler_flags="$compiler_flags $wl$qarg"
  50853. - prev=
  50854. - compile_command="$compile_command $wl$qarg"
  50855. - finalize_command="$finalize_command $wl$qarg"
  50856. - continue
  50857. - ;;
  50858. - xcclinker)
  50859. - linker_flags="$linker_flags $qarg"
  50860. - compiler_flags="$compiler_flags $qarg"
  50861. - prev=
  50862. - compile_command="$compile_command $qarg"
  50863. - finalize_command="$finalize_command $qarg"
  50864. - continue
  50865. - ;;
  50866. - *)
  50867. - eval "$prev=\"\$arg\""
  50868. - prev=
  50869. - continue
  50870. - ;;
  50871. - esac
  50872. - fi # test -n "$prev"
  50873. +Install executables or libraries.
  50874. - prevarg="$arg"
  50875. +INSTALL-COMMAND is the installation command. The first component should be
  50876. +either the \`install' or \`cp' program.
  50877. - case $arg in
  50878. - -all-static)
  50879. - if test -n "$link_static_flag"; then
  50880. - compile_command="$compile_command $link_static_flag"
  50881. - finalize_command="$finalize_command $link_static_flag"
  50882. - fi
  50883. - continue
  50884. - ;;
  50885. +The following components of INSTALL-COMMAND are treated specially:
  50886. - -allow-undefined)
  50887. - # FIXME: remove this flag sometime in the future.
  50888. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  50889. - continue
  50890. - ;;
  50891. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  50892. - -avoid-version)
  50893. - avoid_version=yes
  50894. - continue
  50895. - ;;
  50896. +The rest of the components are interpreted as arguments to that command (only
  50897. +BSD-compatible install options are recognized)."
  50898. + ;;
  50899. - -dlopen)
  50900. - prev=dlfiles
  50901. - continue
  50902. - ;;
  50903. + link)
  50904. + $ECHO \
  50905. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  50906. - -dlpreopen)
  50907. - prev=dlprefiles
  50908. - continue
  50909. - ;;
  50910. +Link object files or libraries together to form another library, or to
  50911. +create an executable program.
  50912. - -export-dynamic)
  50913. - export_dynamic=yes
  50914. - continue
  50915. - ;;
  50916. +LINK-COMMAND is a command using the C compiler that you would use to create
  50917. +a program from several object files.
  50918. - -export-symbols | -export-symbols-regex)
  50919. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  50920. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  50921. - exit 1
  50922. - fi
  50923. - if test "X$arg" = "X-export-symbols"; then
  50924. - prev=expsyms
  50925. - else
  50926. - prev=expsyms_regex
  50927. - fi
  50928. - continue
  50929. - ;;
  50930. +The following components of LINK-COMMAND are treated specially:
  50931. - -inst-prefix-dir)
  50932. - prev=inst_prefix
  50933. - continue
  50934. - ;;
  50935. + -all-static do not do any dynamic linking at all
  50936. + -avoid-version do not add a version suffix if possible
  50937. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  50938. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  50939. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  50940. + -export-symbols SYMFILE
  50941. + try to export only the symbols listed in SYMFILE
  50942. + -export-symbols-regex REGEX
  50943. + try to export only the symbols matching REGEX
  50944. + -LLIBDIR search LIBDIR for required installed libraries
  50945. + -lNAME OUTPUT-FILE requires the installed library libNAME
  50946. + -module build a library that can dlopened
  50947. + -no-fast-install disable the fast-install mode
  50948. + -no-install link a not-installable executable
  50949. + -no-undefined declare that a library does not refer to external symbols
  50950. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  50951. + -objectlist FILE Use a list of object files found in FILE to specify objects
  50952. + -precious-files-regex REGEX
  50953. + don't remove output files matching REGEX
  50954. + -release RELEASE specify package release information
  50955. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  50956. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  50957. + -shared only do dynamic linking of libtool libraries
  50958. + -shrext SUFFIX override the standard shared library file extension
  50959. + -static do not do any dynamic linking of uninstalled libtool libraries
  50960. + -static-libtool-libs
  50961. + do not do any dynamic linking of libtool libraries
  50962. + -version-info CURRENT[:REVISION[:AGE]]
  50963. + specify library version info [each variable defaults to 0]
  50964. + -weak LIBNAME declare that the target provides the LIBNAME interface
  50965. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  50966. - # so, if we see these flags be careful not to treat them like -L
  50967. - -L[A-Z][A-Z]*:*)
  50968. - case $with_gcc/$host in
  50969. - no/*-*-irix* | /*-*-irix*)
  50970. - compile_command="$compile_command $arg"
  50971. - finalize_command="$finalize_command $arg"
  50972. - ;;
  50973. - esac
  50974. - continue
  50975. - ;;
  50976. +All other options (arguments beginning with \`-') are ignored.
  50977. - -L*)
  50978. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  50979. - # We need an absolute path.
  50980. - case $dir in
  50981. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50982. - *)
  50983. - absdir=`cd "$dir" && pwd`
  50984. - if test -z "$absdir"; then
  50985. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  50986. - exit 1
  50987. - fi
  50988. - dir="$absdir"
  50989. - ;;
  50990. - esac
  50991. - case "$deplibs " in
  50992. - *" -L$dir "*) ;;
  50993. - *)
  50994. - deplibs="$deplibs -L$dir"
  50995. - lib_search_path="$lib_search_path $dir"
  50996. - ;;
  50997. - esac
  50998. - case $host in
  50999. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  51000. - case :$dllsearchpath: in
  51001. - *":$dir:"*) ;;
  51002. - *) dllsearchpath="$dllsearchpath:$dir";;
  51003. - esac
  51004. - ;;
  51005. - esac
  51006. - continue
  51007. - ;;
  51008. +Every other argument is treated as a filename. Files ending in \`.la' are
  51009. +treated as uninstalled libtool libraries, other files are standard or library
  51010. +object files.
  51011. - -l*)
  51012. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  51013. - case $host in
  51014. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  51015. - # These systems don't actually have a C or math library (as such)
  51016. - continue
  51017. - ;;
  51018. - *-*-mingw* | *-*-os2*)
  51019. - # These systems don't actually have a C library (as such)
  51020. - test "X$arg" = "X-lc" && continue
  51021. - ;;
  51022. - *-*-openbsd* | *-*-freebsd*)
  51023. - # Do not include libc due to us having libc/libc_r.
  51024. - test "X$arg" = "X-lc" && continue
  51025. - ;;
  51026. - *-*-rhapsody* | *-*-darwin1.[012])
  51027. - # Rhapsody C and math libraries are in the System framework
  51028. - deplibs="$deplibs -framework System"
  51029. - continue
  51030. - esac
  51031. - elif test "X$arg" = "X-lc_r"; then
  51032. - case $host in
  51033. - *-*-openbsd* | *-*-freebsd*)
  51034. - # Do not include libc_r directly, use -pthread flag.
  51035. - continue
  51036. - ;;
  51037. - esac
  51038. - fi
  51039. - deplibs="$deplibs $arg"
  51040. - continue
  51041. - ;;
  51042. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  51043. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  51044. +required, except when creating a convenience library.
  51045. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  51046. - deplibs="$deplibs $arg"
  51047. - continue
  51048. - ;;
  51049. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  51050. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  51051. - -module)
  51052. - module=yes
  51053. - continue
  51054. - ;;
  51055. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  51056. +is created, otherwise an executable program is created."
  51057. + ;;
  51058. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  51059. - # in order to pass architecture information to the linker
  51060. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  51061. - # but this is not reliable with gcc because gcc may use -mfoo to
  51062. - # select a different linker, different libraries, etc, while
  51063. - # -Wl,-mfoo simply passes -mfoo to the linker.
  51064. - -m*)
  51065. - # Unknown arguments in both finalize_command and compile_command need
  51066. - # to be aesthetically quoted because they are evaled later.
  51067. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51068. - case $arg in
  51069. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51070. - arg="\"$arg\""
  51071. - ;;
  51072. - esac
  51073. - compile_command="$compile_command $arg"
  51074. - finalize_command="$finalize_command $arg"
  51075. - if test "$with_gcc" = "yes" ; then
  51076. - compiler_flags="$compiler_flags $arg"
  51077. - fi
  51078. - continue
  51079. + uninstall)
  51080. + $ECHO \
  51081. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  51082. +
  51083. +Remove libraries from an installation directory.
  51084. +
  51085. +RM is the name of the program to use to delete files associated with each FILE
  51086. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  51087. +to RM.
  51088. +
  51089. +If FILE is a libtool library, all the files associated with it are deleted.
  51090. +Otherwise, only FILE itself is deleted using RM."
  51091. ;;
  51092. - -shrext)
  51093. - prev=shrext
  51094. - continue
  51095. - ;;
  51096. + *)
  51097. + func_fatal_help "invalid operation mode \`$mode'"
  51098. + ;;
  51099. + esac
  51100. - -no-fast-install)
  51101. - fast_install=no
  51102. - continue
  51103. - ;;
  51104. + $ECHO
  51105. + $ECHO "Try \`$progname --help' for more information about other modes."
  51106. - -no-install)
  51107. - case $host in
  51108. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  51109. - # The PATH hackery in wrapper scripts is required on Windows
  51110. - # in order for the loader to find any dlls it needs.
  51111. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  51112. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  51113. - fast_install=no
  51114. - ;;
  51115. - *) no_install=yes ;;
  51116. - esac
  51117. - continue
  51118. - ;;
  51119. + exit $?
  51120. +}
  51121. - -no-undefined)
  51122. - allow_undefined=no
  51123. - continue
  51124. - ;;
  51125. + # Now that we've collected a possible --mode arg, show help if necessary
  51126. + $opt_help && func_mode_help
  51127. - -objectlist)
  51128. - prev=objectlist
  51129. - continue
  51130. - ;;
  51131. - -o) prev=output ;;
  51132. +# func_mode_execute arg...
  51133. +func_mode_execute ()
  51134. +{
  51135. + $opt_debug
  51136. + # The first argument is the command name.
  51137. + cmd="$nonopt"
  51138. + test -z "$cmd" && \
  51139. + func_fatal_help "you must specify a COMMAND"
  51140. - -precious-files-regex)
  51141. - prev=precious_regex
  51142. - continue
  51143. - ;;
  51144. + # Handle -dlopen flags immediately.
  51145. + for file in $execute_dlfiles; do
  51146. + test -f "$file" \
  51147. + || func_fatal_help "\`$file' is not a file"
  51148. - -release)
  51149. - prev=release
  51150. - continue
  51151. - ;;
  51152. + dir=
  51153. + case $file in
  51154. + *.la)
  51155. + # Check to see that this really is a libtool archive.
  51156. + func_lalib_unsafe_p "$file" \
  51157. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  51158. - -rpath)
  51159. - prev=rpath
  51160. - continue
  51161. + # Read the libtool library.
  51162. + dlname=
  51163. + library_names=
  51164. + func_source "$file"
  51165. +
  51166. + # Skip this library if it cannot be dlopened.
  51167. + if test -z "$dlname"; then
  51168. + # Warn if it was a shared library.
  51169. + test -n "$library_names" && \
  51170. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  51171. + continue
  51172. + fi
  51173. +
  51174. + func_dirname "$file" "" "."
  51175. + dir="$func_dirname_result"
  51176. +
  51177. + if test -f "$dir/$objdir/$dlname"; then
  51178. + dir="$dir/$objdir"
  51179. + else
  51180. + if test ! -f "$dir/$dlname"; then
  51181. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  51182. + fi
  51183. + fi
  51184. ;;
  51185. - -R)
  51186. - prev=xrpath
  51187. - continue
  51188. + *.lo)
  51189. + # Just add the directory containing the .lo file.
  51190. + func_dirname "$file" "" "."
  51191. + dir="$func_dirname_result"
  51192. ;;
  51193. - -R*)
  51194. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  51195. - # We need an absolute path.
  51196. - case $dir in
  51197. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  51198. - *)
  51199. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  51200. - exit 1
  51201. - ;;
  51202. - esac
  51203. - case "$xrpath " in
  51204. - *" $dir "*) ;;
  51205. - *) xrpath="$xrpath $dir" ;;
  51206. - esac
  51207. + *)
  51208. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  51209. continue
  51210. ;;
  51211. + esac
  51212. - -static)
  51213. - # The effects of -static are defined in a previous loop.
  51214. - # We used to do the same as -all-static on platforms that
  51215. - # didn't have a PIC flag, but the assumption that the effects
  51216. - # would be equivalent was wrong. It would break on at least
  51217. - # Digital Unix and AIX.
  51218. - continue
  51219. - ;;
  51220. -
  51221. - -thread-safe)
  51222. - thread_safe=yes
  51223. - continue
  51224. - ;;
  51225. + # Get the absolute pathname.
  51226. + absdir=`cd "$dir" && pwd`
  51227. + test -n "$absdir" && dir="$absdir"
  51228. - -version-info)
  51229. - prev=vinfo
  51230. - continue
  51231. - ;;
  51232. - -version-number)
  51233. - prev=vinfo
  51234. - vinfo_number=yes
  51235. - continue
  51236. - ;;
  51237. + # Now add the directory to shlibpath_var.
  51238. + if eval "test -z \"\$$shlibpath_var\""; then
  51239. + eval "$shlibpath_var=\"\$dir\""
  51240. + else
  51241. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  51242. + fi
  51243. + done
  51244. - -Wc,*)
  51245. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  51246. - arg=
  51247. - save_ifs="$IFS"; IFS=','
  51248. - for flag in $args; do
  51249. - IFS="$save_ifs"
  51250. - case $flag in
  51251. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51252. - flag="\"$flag\""
  51253. - ;;
  51254. - esac
  51255. - arg="$arg $wl$flag"
  51256. - compiler_flags="$compiler_flags $flag"
  51257. - done
  51258. - IFS="$save_ifs"
  51259. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  51260. - ;;
  51261. + # This variable tells wrapper scripts just to set shlibpath_var
  51262. + # rather than running their programs.
  51263. + libtool_execute_magic="$magic"
  51264. - -Wl,*)
  51265. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  51266. - arg=
  51267. - save_ifs="$IFS"; IFS=','
  51268. - for flag in $args; do
  51269. - IFS="$save_ifs"
  51270. - case $flag in
  51271. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51272. - flag="\"$flag\""
  51273. - ;;
  51274. - esac
  51275. - arg="$arg $wl$flag"
  51276. - compiler_flags="$compiler_flags $wl$flag"
  51277. - linker_flags="$linker_flags $flag"
  51278. - done
  51279. - IFS="$save_ifs"
  51280. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  51281. + # Check if any of the arguments is a wrapper script.
  51282. + args=
  51283. + for file
  51284. + do
  51285. + case $file in
  51286. + -*) ;;
  51287. + *)
  51288. + # Do a test to see if this is really a libtool program.
  51289. + if func_ltwrapper_script_p "$file"; then
  51290. + func_source "$file"
  51291. + # Transform arg to wrapped name.
  51292. + file="$progdir/$program"
  51293. + elif func_ltwrapper_executable_p "$file"; then
  51294. + func_ltwrapper_scriptname "$file"
  51295. + func_source "$func_ltwrapper_scriptname_result"
  51296. + # Transform arg to wrapped name.
  51297. + file="$progdir/$program"
  51298. + fi
  51299. ;;
  51300. + esac
  51301. + # Quote arguments (to preserve shell metacharacters).
  51302. + func_quote_for_eval "$file"
  51303. + args="$args $func_quote_for_eval_result"
  51304. + done
  51305. - -Xcompiler)
  51306. - prev=xcompiler
  51307. - continue
  51308. - ;;
  51309. + if test "X$opt_dry_run" = Xfalse; then
  51310. + if test -n "$shlibpath_var"; then
  51311. + # Export the shlibpath_var.
  51312. + eval "export $shlibpath_var"
  51313. + fi
  51314. - -Xlinker)
  51315. - prev=xlinker
  51316. - continue
  51317. - ;;
  51318. + # Restore saved environment variables
  51319. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  51320. + do
  51321. + eval "if test \"\${save_$lt_var+set}\" = set; then
  51322. + $lt_var=\$save_$lt_var; export $lt_var
  51323. + else
  51324. + $lt_unset $lt_var
  51325. + fi"
  51326. + done
  51327. - -XCClinker)
  51328. - prev=xcclinker
  51329. - continue
  51330. - ;;
  51331. + # Now prepare to actually exec the command.
  51332. + exec_cmd="\$cmd$args"
  51333. + else
  51334. + # Display what would be done.
  51335. + if test -n "$shlibpath_var"; then
  51336. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  51337. + $ECHO "export $shlibpath_var"
  51338. + fi
  51339. + $ECHO "$cmd$args"
  51340. + exit $EXIT_SUCCESS
  51341. + fi
  51342. +}
  51343. - # Some other compiler flag.
  51344. - -* | +*)
  51345. - # Unknown arguments in both finalize_command and compile_command need
  51346. - # to be aesthetically quoted because they are evaled later.
  51347. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51348. - case $arg in
  51349. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51350. - arg="\"$arg\""
  51351. - ;;
  51352. - esac
  51353. - ;;
  51354. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  51355. - *.$objext)
  51356. - # A standard object.
  51357. - objs="$objs $arg"
  51358. - ;;
  51359. - *.lo)
  51360. - # A libtool-controlled object.
  51361. +# func_mode_finish arg...
  51362. +func_mode_finish ()
  51363. +{
  51364. + $opt_debug
  51365. + libdirs="$nonopt"
  51366. + admincmds=
  51367. - # Check to see that this really is a libtool object.
  51368. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  51369. - pic_object=
  51370. - non_pic_object=
  51371. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  51372. + for dir
  51373. + do
  51374. + libdirs="$libdirs $dir"
  51375. + done
  51376. - # Read the .lo file
  51377. - # If there is no directory component, then add one.
  51378. - case $arg in
  51379. - */* | *\\*) . $arg ;;
  51380. - *) . ./$arg ;;
  51381. - esac
  51382. + for libdir in $libdirs; do
  51383. + if test -n "$finish_cmds"; then
  51384. + # Do each command in the finish commands.
  51385. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  51386. +'"$cmd"'"'
  51387. + fi
  51388. + if test -n "$finish_eval"; then
  51389. + # Do the single finish_eval.
  51390. + eval cmds=\"$finish_eval\"
  51391. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  51392. + $cmds"
  51393. + fi
  51394. + done
  51395. + fi
  51396. - if test -z "$pic_object" || \
  51397. - test -z "$non_pic_object" ||
  51398. - test "$pic_object" = none && \
  51399. - test "$non_pic_object" = none; then
  51400. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  51401. - exit 1
  51402. - fi
  51403. + # Exit here if they wanted silent mode.
  51404. + $opt_silent && exit $EXIT_SUCCESS
  51405. - # Extract subdirectory from the argument.
  51406. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  51407. - if test "X$xdir" = "X$arg"; then
  51408. - xdir=
  51409. - else
  51410. - xdir="$xdir/"
  51411. - fi
  51412. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  51413. + $ECHO "Libraries have been installed in:"
  51414. + for libdir in $libdirs; do
  51415. + $ECHO " $libdir"
  51416. + done
  51417. + $ECHO
  51418. + $ECHO "If you ever happen to want to link against installed libraries"
  51419. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  51420. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  51421. + $ECHO "flag during linking and do at least one of the following:"
  51422. + if test -n "$shlibpath_var"; then
  51423. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  51424. + $ECHO " during execution"
  51425. + fi
  51426. + if test -n "$runpath_var"; then
  51427. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  51428. + $ECHO " during linking"
  51429. + fi
  51430. + if test -n "$hardcode_libdir_flag_spec"; then
  51431. + libdir=LIBDIR
  51432. + eval flag=\"$hardcode_libdir_flag_spec\"
  51433. - if test "$pic_object" != none; then
  51434. - # Prepend the subdirectory the object is found in.
  51435. - pic_object="$xdir$pic_object"
  51436. + $ECHO " - use the \`$flag' linker flag"
  51437. + fi
  51438. + if test -n "$admincmds"; then
  51439. + $ECHO " - have your system administrator run these commands:$admincmds"
  51440. + fi
  51441. + if test -f /etc/ld.so.conf; then
  51442. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  51443. + fi
  51444. + $ECHO
  51445. - if test "$prev" = dlfiles; then
  51446. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  51447. - dlfiles="$dlfiles $pic_object"
  51448. - prev=
  51449. - continue
  51450. - else
  51451. - # If libtool objects are unsupported, then we need to preload.
  51452. - prev=dlprefiles
  51453. - fi
  51454. - fi
  51455. + $ECHO "See any operating system documentation about shared libraries for"
  51456. + case $host in
  51457. + solaris2.[6789]|solaris2.1[0-9])
  51458. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  51459. + $ECHO "pages."
  51460. + ;;
  51461. + *)
  51462. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  51463. + ;;
  51464. + esac
  51465. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  51466. + exit $EXIT_SUCCESS
  51467. +}
  51468. - # CHECK ME: I think I busted this. -Ossama
  51469. - if test "$prev" = dlprefiles; then
  51470. - # Preload the old-style object.
  51471. - dlprefiles="$dlprefiles $pic_object"
  51472. - prev=
  51473. - fi
  51474. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  51475. - # A PIC object.
  51476. - libobjs="$libobjs $pic_object"
  51477. - arg="$pic_object"
  51478. - fi
  51479. - # Non-PIC object.
  51480. - if test "$non_pic_object" != none; then
  51481. - # Prepend the subdirectory the object is found in.
  51482. - non_pic_object="$xdir$non_pic_object"
  51483. +# func_mode_install arg...
  51484. +func_mode_install ()
  51485. +{
  51486. + $opt_debug
  51487. + # There may be an optional sh(1) argument at the beginning of
  51488. + # install_prog (especially on Windows NT).
  51489. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  51490. + # Allow the use of GNU shtool's install command.
  51491. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  51492. + # Aesthetically quote it.
  51493. + func_quote_for_eval "$nonopt"
  51494. + install_prog="$func_quote_for_eval_result "
  51495. + arg=$1
  51496. + shift
  51497. + else
  51498. + install_prog=
  51499. + arg=$nonopt
  51500. + fi
  51501. - # A standard non-PIC object
  51502. - non_pic_objects="$non_pic_objects $non_pic_object"
  51503. - if test -z "$pic_object" || test "$pic_object" = none ; then
  51504. - arg="$non_pic_object"
  51505. - fi
  51506. - fi
  51507. - else
  51508. - # Only an error if not doing a dry-run.
  51509. - if test -z "$run"; then
  51510. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  51511. - exit 1
  51512. - else
  51513. - # Dry-run case.
  51514. + # The real first argument should be the name of the installation program.
  51515. + # Aesthetically quote it.
  51516. + func_quote_for_eval "$arg"
  51517. + install_prog="$install_prog$func_quote_for_eval_result"
  51518. - # Extract subdirectory from the argument.
  51519. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  51520. - if test "X$xdir" = "X$arg"; then
  51521. - xdir=
  51522. - else
  51523. - xdir="$xdir/"
  51524. - fi
  51525. + # We need to accept at least all the BSD install flags.
  51526. + dest=
  51527. + files=
  51528. + opts=
  51529. + prev=
  51530. + install_type=
  51531. + isdir=no
  51532. + stripme=
  51533. + for arg
  51534. + do
  51535. + if test -n "$dest"; then
  51536. + files="$files $dest"
  51537. + dest=$arg
  51538. + continue
  51539. + fi
  51540. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  51541. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  51542. - libobjs="$libobjs $pic_object"
  51543. - non_pic_objects="$non_pic_objects $non_pic_object"
  51544. - fi
  51545. - fi
  51546. + case $arg in
  51547. + -d) isdir=yes ;;
  51548. + -f)
  51549. + case " $install_prog " in
  51550. + *[\\\ /]cp\ *) ;;
  51551. + *) prev=$arg ;;
  51552. + esac
  51553. ;;
  51554. -
  51555. - *.$libext)
  51556. - # An archive.
  51557. - deplibs="$deplibs $arg"
  51558. - old_deplibs="$old_deplibs $arg"
  51559. + -g | -m | -o)
  51560. + prev=$arg
  51561. + ;;
  51562. + -s)
  51563. + stripme=" -s"
  51564. continue
  51565. ;;
  51566. -
  51567. - *.la)
  51568. - # A libtool-controlled library.
  51569. -
  51570. - if test "$prev" = dlfiles; then
  51571. - # This library was specified with -dlopen.
  51572. - dlfiles="$dlfiles $arg"
  51573. - prev=
  51574. - elif test "$prev" = dlprefiles; then
  51575. - # The library was specified with -dlpreopen.
  51576. - dlprefiles="$dlprefiles $arg"
  51577. + -*)
  51578. + ;;
  51579. + *)
  51580. + # If the previous option needed an argument, then skip it.
  51581. + if test -n "$prev"; then
  51582. prev=
  51583. else
  51584. - deplibs="$deplibs $arg"
  51585. + dest=$arg
  51586. + continue
  51587. fi
  51588. - continue
  51589. ;;
  51590. + esac
  51591. - # Some other compiler argument.
  51592. - *)
  51593. - # Unknown arguments in both finalize_command and compile_command need
  51594. - # to be aesthetically quoted because they are evaled later.
  51595. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  51596. - case $arg in
  51597. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  51598. - arg="\"$arg\""
  51599. - ;;
  51600. - esac
  51601. - ;;
  51602. - esac # arg
  51603. + # Aesthetically quote the argument.
  51604. + func_quote_for_eval "$arg"
  51605. + install_prog="$install_prog $func_quote_for_eval_result"
  51606. + done
  51607. - # Now actually substitute the argument into the commands.
  51608. - if test -n "$arg"; then
  51609. - compile_command="$compile_command $arg"
  51610. - finalize_command="$finalize_command $arg"
  51611. - fi
  51612. - done # argument parsing loop
  51613. + test -z "$install_prog" && \
  51614. + func_fatal_help "you must specify an install program"
  51615. - if test -n "$prev"; then
  51616. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  51617. - $echo "$help" 1>&2
  51618. - exit 1
  51619. - fi
  51620. + test -n "$prev" && \
  51621. + func_fatal_help "the \`$prev' option requires an argument"
  51622. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  51623. - eval arg=\"$export_dynamic_flag_spec\"
  51624. - compile_command="$compile_command $arg"
  51625. - finalize_command="$finalize_command $arg"
  51626. + if test -z "$files"; then
  51627. + if test -z "$dest"; then
  51628. + func_fatal_help "no file or destination specified"
  51629. + else
  51630. + func_fatal_help "you must specify a destination"
  51631. + fi
  51632. fi
  51633. - oldlibs=
  51634. - # calculate the name of the file, without its directory
  51635. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  51636. - libobjs_save="$libobjs"
  51637. + # Strip any trailing slash from the destination.
  51638. + func_stripname '' '/' "$dest"
  51639. + dest=$func_stripname_result
  51640. - if test -n "$shlibpath_var"; then
  51641. - # get the directories listed in $shlibpath_var
  51642. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  51643. + # Check to see that the destination is a directory.
  51644. + test -d "$dest" && isdir=yes
  51645. + if test "$isdir" = yes; then
  51646. + destdir="$dest"
  51647. + destname=
  51648. else
  51649. - shlib_search_path=
  51650. - fi
  51651. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  51652. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  51653. + func_dirname_and_basename "$dest" "" "."
  51654. + destdir="$func_dirname_result"
  51655. + destname="$func_basename_result"
  51656. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  51657. - if test "X$output_objdir" = "X$output"; then
  51658. - output_objdir="$objdir"
  51659. - else
  51660. - output_objdir="$output_objdir/$objdir"
  51661. - fi
  51662. - # Create the object directory.
  51663. - if test ! -d "$output_objdir"; then
  51664. - $show "$mkdir $output_objdir"
  51665. - $run $mkdir $output_objdir
  51666. - status=$?
  51667. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  51668. - exit $status
  51669. - fi
  51670. + # Not a directory, so check to see that there is only one file specified.
  51671. + set dummy $files; shift
  51672. + test "$#" -gt 1 && \
  51673. + func_fatal_help "\`$dest' is not a directory"
  51674. fi
  51675. -
  51676. - # Determine the type of output
  51677. - case $output in
  51678. - "")
  51679. - $echo "$modename: you must specify an output file" 1>&2
  51680. - $echo "$help" 1>&2
  51681. - exit 1
  51682. - ;;
  51683. - *.$libext) linkmode=oldlib ;;
  51684. - *.lo | *.$objext) linkmode=obj ;;
  51685. - *.la) linkmode=lib ;;
  51686. - *) linkmode=prog ;; # Anything else should be a program.
  51687. - esac
  51688. -
  51689. - case $host in
  51690. - *cygwin* | *mingw* | *pw32*)
  51691. - # don't eliminate duplcations in $postdeps and $predeps
  51692. - duplicate_compiler_generated_deps=yes
  51693. - ;;
  51694. + case $destdir in
  51695. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  51696. *)
  51697. - duplicate_compiler_generated_deps=$duplicate_deps
  51698. + for file in $files; do
  51699. + case $file in
  51700. + *.lo) ;;
  51701. + *)
  51702. + func_fatal_help "\`$destdir' must be an absolute directory name"
  51703. + ;;
  51704. + esac
  51705. + done
  51706. ;;
  51707. esac
  51708. - specialdeplibs=
  51709. - libs=
  51710. - # Find all interdependent deplibs by searching for libraries
  51711. - # that are linked more than once (e.g. -la -lb -la)
  51712. - for deplib in $deplibs; do
  51713. - if test "X$duplicate_deps" = "Xyes" ; then
  51714. - case "$libs " in
  51715. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51716. - esac
  51717. - fi
  51718. - libs="$libs $deplib"
  51719. - done
  51720. + # This variable tells wrapper scripts just to set variables rather
  51721. + # than running their programs.
  51722. + libtool_install_magic="$magic"
  51723. - if test "$linkmode" = lib; then
  51724. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  51725. + staticlibs=
  51726. + future_libdirs=
  51727. + current_libdirs=
  51728. + for file in $files; do
  51729. - # Compute libraries that are listed more than once in $predeps
  51730. - # $postdeps and mark them as special (i.e., whose duplicates are
  51731. - # not to be eliminated).
  51732. - pre_post_deps=
  51733. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  51734. - for pre_post_dep in $predeps $postdeps; do
  51735. - case "$pre_post_deps " in
  51736. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  51737. + # Do each installation.
  51738. + case $file in
  51739. + *.$libext)
  51740. + # Do the static libraries later.
  51741. + staticlibs="$staticlibs $file"
  51742. + ;;
  51743. +
  51744. + *.la)
  51745. + # Check to see that this really is a libtool archive.
  51746. + func_lalib_unsafe_p "$file" \
  51747. + || func_fatal_help "\`$file' is not a valid libtool archive"
  51748. +
  51749. + library_names=
  51750. + old_library=
  51751. + relink_command=
  51752. + func_source "$file"
  51753. +
  51754. + # Add the libdir to current_libdirs if it is the destination.
  51755. + if test "X$destdir" = "X$libdir"; then
  51756. + case "$current_libdirs " in
  51757. + *" $libdir "*) ;;
  51758. + *) current_libdirs="$current_libdirs $libdir" ;;
  51759. esac
  51760. - pre_post_deps="$pre_post_deps $pre_post_dep"
  51761. - done
  51762. - fi
  51763. - pre_post_deps=
  51764. - fi
  51765. + else
  51766. + # Note the libdir as a future libdir.
  51767. + case "$future_libdirs " in
  51768. + *" $libdir "*) ;;
  51769. + *) future_libdirs="$future_libdirs $libdir" ;;
  51770. + esac
  51771. + fi
  51772. - deplibs=
  51773. - newdependency_libs=
  51774. - newlib_search_path=
  51775. - need_relink=no # whether we're linking any uninstalled libtool libraries
  51776. - notinst_deplibs= # not-installed libtool libraries
  51777. - notinst_path= # paths that contain not-installed libtool libraries
  51778. - case $linkmode in
  51779. - lib)
  51780. - passes="conv link"
  51781. - for file in $dlfiles $dlprefiles; do
  51782. - case $file in
  51783. - *.la) ;;
  51784. - *)
  51785. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  51786. - exit 1
  51787. + func_dirname "$file" "/" ""
  51788. + dir="$func_dirname_result"
  51789. + dir="$dir$objdir"
  51790. +
  51791. + if test -n "$relink_command"; then
  51792. + # Determine the prefix the user has applied to our future dir.
  51793. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  51794. +
  51795. + # Don't allow the user to place us outside of our expected
  51796. + # location b/c this prevents finding dependent libraries that
  51797. + # are installed to the same prefix.
  51798. + # At present, this check doesn't affect windows .dll's that
  51799. + # are installed into $libdir/../bin (currently, that works fine)
  51800. + # but it's something to keep an eye on.
  51801. + test "$inst_prefix_dir" = "$destdir" && \
  51802. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  51803. +
  51804. + if test -n "$inst_prefix_dir"; then
  51805. + # Stick the inst_prefix_dir data into the link command.
  51806. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  51807. + else
  51808. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  51809. + fi
  51810. +
  51811. + func_warning "relinking \`$file'"
  51812. + func_show_eval "$relink_command" \
  51813. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  51814. + fi
  51815. +
  51816. + # See the names of the shared library.
  51817. + set dummy $library_names; shift
  51818. + if test -n "$1"; then
  51819. + realname="$1"
  51820. + shift
  51821. +
  51822. + srcname="$realname"
  51823. + test -n "$relink_command" && srcname="$realname"T
  51824. +
  51825. + # Install the shared library and build the symlinks.
  51826. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  51827. + 'exit $?'
  51828. + tstripme="$stripme"
  51829. + case $host_os in
  51830. + cygwin* | mingw* | pw32* | cegcc*)
  51831. + case $realname in
  51832. + *.dll.a)
  51833. + tstripme=""
  51834. + ;;
  51835. + esac
  51836. ;;
  51837. esac
  51838. - done
  51839. - ;;
  51840. - prog)
  51841. - compile_deplibs=
  51842. - finalize_deplibs=
  51843. - alldeplibs=no
  51844. - newdlfiles=
  51845. - newdlprefiles=
  51846. - passes="conv scan dlopen dlpreopen link"
  51847. + if test -n "$tstripme" && test -n "$striplib"; then
  51848. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  51849. + fi
  51850. +
  51851. + if test "$#" -gt 0; then
  51852. + # Delete the old symlinks, and create new ones.
  51853. + # Try `ln -sf' first, because the `ln' binary might depend on
  51854. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  51855. + # so we also need to try rm && ln -s.
  51856. + for linkname
  51857. + do
  51858. + test "$linkname" != "$realname" \
  51859. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  51860. + done
  51861. + fi
  51862. +
  51863. + # Do each command in the postinstall commands.
  51864. + lib="$destdir/$realname"
  51865. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  51866. + fi
  51867. +
  51868. + # Install the pseudo-library for information purposes.
  51869. + func_basename "$file"
  51870. + name="$func_basename_result"
  51871. + instname="$dir/$name"i
  51872. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  51873. +
  51874. + # Maybe install the static library, too.
  51875. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  51876. ;;
  51877. - *) passes="conv"
  51878. +
  51879. + *.lo)
  51880. + # Install (i.e. copy) a libtool object.
  51881. +
  51882. + # Figure out destination file name, if it wasn't already specified.
  51883. + if test -n "$destname"; then
  51884. + destfile="$destdir/$destname"
  51885. + else
  51886. + func_basename "$file"
  51887. + destfile="$func_basename_result"
  51888. + destfile="$destdir/$destfile"
  51889. + fi
  51890. +
  51891. + # Deduce the name of the destination old-style object file.
  51892. + case $destfile in
  51893. + *.lo)
  51894. + func_lo2o "$destfile"
  51895. + staticdest=$func_lo2o_result
  51896. + ;;
  51897. + *.$objext)
  51898. + staticdest="$destfile"
  51899. + destfile=
  51900. + ;;
  51901. + *)
  51902. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  51903. + ;;
  51904. + esac
  51905. +
  51906. + # Install the libtool object if requested.
  51907. + test -n "$destfile" && \
  51908. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  51909. +
  51910. + # Install the old object if enabled.
  51911. + if test "$build_old_libs" = yes; then
  51912. + # Deduce the name of the old-style object file.
  51913. + func_lo2o "$file"
  51914. + staticobj=$func_lo2o_result
  51915. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  51916. + fi
  51917. + exit $EXIT_SUCCESS
  51918. ;;
  51919. - esac
  51920. - for pass in $passes; do
  51921. - if test "$linkmode,$pass" = "lib,link" ||
  51922. - test "$linkmode,$pass" = "prog,scan"; then
  51923. - libs="$deplibs"
  51924. - deplibs=
  51925. - fi
  51926. - if test "$linkmode" = prog; then
  51927. - case $pass in
  51928. - dlopen) libs="$dlfiles" ;;
  51929. - dlpreopen) libs="$dlprefiles" ;;
  51930. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  51931. +
  51932. + *)
  51933. + # Figure out destination file name, if it wasn't already specified.
  51934. + if test -n "$destname"; then
  51935. + destfile="$destdir/$destname"
  51936. + else
  51937. + func_basename "$file"
  51938. + destfile="$func_basename_result"
  51939. + destfile="$destdir/$destfile"
  51940. + fi
  51941. +
  51942. + # If the file is missing, and there is a .exe on the end, strip it
  51943. + # because it is most likely a libtool script we actually want to
  51944. + # install
  51945. + stripped_ext=""
  51946. + case $file in
  51947. + *.exe)
  51948. + if test ! -f "$file"; then
  51949. + func_stripname '' '.exe' "$file"
  51950. + file=$func_stripname_result
  51951. + stripped_ext=".exe"
  51952. + fi
  51953. + ;;
  51954. esac
  51955. - fi
  51956. - if test "$pass" = dlopen; then
  51957. - # Collect dlpreopened libraries
  51958. - save_deplibs="$deplibs"
  51959. - deplibs=
  51960. - fi
  51961. - for deplib in $libs; do
  51962. - lib=
  51963. - found=no
  51964. - case $deplib in
  51965. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  51966. - if test "$linkmode,$pass" = "prog,link"; then
  51967. - compile_deplibs="$deplib $compile_deplibs"
  51968. - finalize_deplibs="$deplib $finalize_deplibs"
  51969. - else
  51970. - deplibs="$deplib $deplibs"
  51971. - fi
  51972. - continue
  51973. - ;;
  51974. - -l*)
  51975. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  51976. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  51977. - continue
  51978. - fi
  51979. - if test "$pass" = conv; then
  51980. - deplibs="$deplib $deplibs"
  51981. - continue
  51982. - fi
  51983. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  51984. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  51985. - for search_ext in .la $shrext .so .a; do
  51986. - # Search the libtool library
  51987. - lib="$searchdir/lib${name}${search_ext}"
  51988. - if test -f "$lib"; then
  51989. - if test "$search_ext" = ".la"; then
  51990. - found=yes
  51991. - else
  51992. - found=no
  51993. - fi
  51994. - break 2
  51995. - fi
  51996. - done
  51997. - done
  51998. - if test "$found" != yes; then
  51999. - # deplib doesn't seem to be a libtool library
  52000. - if test "$linkmode,$pass" = "prog,link"; then
  52001. - compile_deplibs="$deplib $compile_deplibs"
  52002. - finalize_deplibs="$deplib $finalize_deplibs"
  52003. - else
  52004. - deplibs="$deplib $deplibs"
  52005. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  52006. - fi
  52007. - continue
  52008. - else # deplib is a libtool library
  52009. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  52010. - # We need to do some special things here, and not later.
  52011. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52012. - case " $predeps $postdeps " in
  52013. - *" $deplib "*)
  52014. - if (${SED} -e '2q' $lib |
  52015. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  52016. - library_names=
  52017. - old_library=
  52018. - case $lib in
  52019. - */* | *\\*) . $lib ;;
  52020. - *) . ./$lib ;;
  52021. - esac
  52022. - for l in $old_library $library_names; do
  52023. - ll="$l"
  52024. - done
  52025. - if test "X$ll" = "X$old_library" ; then # only static version available
  52026. - found=no
  52027. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  52028. - test "X$ladir" = "X$lib" && ladir="."
  52029. - lib=$ladir/$old_library
  52030. - if test "$linkmode,$pass" = "prog,link"; then
  52031. - compile_deplibs="$deplib $compile_deplibs"
  52032. - finalize_deplibs="$deplib $finalize_deplibs"
  52033. - else
  52034. - deplibs="$deplib $deplibs"
  52035. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  52036. - fi
  52037. - continue
  52038. - fi
  52039. - fi
  52040. - ;;
  52041. - *) ;;
  52042. - esac
  52043. - fi
  52044. - fi
  52045. - ;; # -l
  52046. - -L*)
  52047. - case $linkmode in
  52048. - lib)
  52049. - deplibs="$deplib $deplibs"
  52050. - test "$pass" = conv && continue
  52051. - newdependency_libs="$deplib $newdependency_libs"
  52052. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  52053. - ;;
  52054. - prog)
  52055. - if test "$pass" = conv; then
  52056. - deplibs="$deplib $deplibs"
  52057. - continue
  52058. - fi
  52059. - if test "$pass" = scan; then
  52060. - deplibs="$deplib $deplibs"
  52061. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  52062. +
  52063. + # Do a test to see if this is really a libtool program.
  52064. + case $host in
  52065. + *cygwin* | *mingw*)
  52066. + if func_ltwrapper_executable_p "$file"; then
  52067. + func_ltwrapper_scriptname "$file"
  52068. + wrapper=$func_ltwrapper_scriptname_result
  52069. else
  52070. - compile_deplibs="$deplib $compile_deplibs"
  52071. - finalize_deplibs="$deplib $finalize_deplibs"
  52072. + func_stripname '' '.exe' "$file"
  52073. + wrapper=$func_stripname_result
  52074. fi
  52075. ;;
  52076. - *)
  52077. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  52078. - ;;
  52079. - esac # linkmode
  52080. - continue
  52081. - ;; # -L
  52082. - -R*)
  52083. - if test "$pass" = link; then
  52084. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  52085. - # Make sure the xrpath contains only unique directories.
  52086. - case "$xrpath " in
  52087. - *" $dir "*) ;;
  52088. - *) xrpath="$xrpath $dir" ;;
  52089. - esac
  52090. - fi
  52091. - deplibs="$deplib $deplibs"
  52092. - continue
  52093. - ;;
  52094. - *.la) lib="$deplib" ;;
  52095. - *.$libext)
  52096. - if test "$pass" = conv; then
  52097. - deplibs="$deplib $deplibs"
  52098. - continue
  52099. - fi
  52100. - case $linkmode in
  52101. - lib)
  52102. - if test "$deplibs_check_method" != pass_all; then
  52103. - $echo
  52104. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  52105. - $echo "*** I have the capability to make that library automatically link in when"
  52106. - $echo "*** you link to this library. But I can only do this if you have a"
  52107. - $echo "*** shared version of the library, which you do not appear to have"
  52108. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  52109. - $echo "*** that it is just a static archive that I should not used here."
  52110. - else
  52111. - $echo
  52112. - $echo "*** Warning: Linking the shared library $output against the"
  52113. - $echo "*** static library $deplib is not portable!"
  52114. - deplibs="$deplib $deplibs"
  52115. - fi
  52116. - continue
  52117. + *)
  52118. + wrapper=$file
  52119. ;;
  52120. - prog)
  52121. - if test "$pass" != link; then
  52122. - deplibs="$deplib $deplibs"
  52123. - else
  52124. - compile_deplibs="$deplib $compile_deplibs"
  52125. - finalize_deplibs="$deplib $finalize_deplibs"
  52126. + esac
  52127. + if func_ltwrapper_script_p "$wrapper"; then
  52128. + notinst_deplibs=
  52129. + relink_command=
  52130. +
  52131. + func_source "$wrapper"
  52132. +
  52133. + # Check the variables that should have been set.
  52134. + test -z "$generated_by_libtool_version" && \
  52135. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  52136. +
  52137. + finalize=yes
  52138. + for lib in $notinst_deplibs; do
  52139. + # Check to see that each library is installed.
  52140. + libdir=
  52141. + if test -f "$lib"; then
  52142. + func_source "$lib"
  52143. fi
  52144. - continue
  52145. - ;;
  52146. - esac # linkmode
  52147. - ;; # *.$libext
  52148. - *.lo | *.$objext)
  52149. - if test "$pass" = conv; then
  52150. - deplibs="$deplib $deplibs"
  52151. - elif test "$linkmode" = prog; then
  52152. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  52153. - # If there is no dlopen support or we're linking statically,
  52154. - # we need to preload.
  52155. - newdlprefiles="$newdlprefiles $deplib"
  52156. - compile_deplibs="$deplib $compile_deplibs"
  52157. - finalize_deplibs="$deplib $finalize_deplibs"
  52158. - else
  52159. - newdlfiles="$newdlfiles $deplib"
  52160. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  52161. + if test -n "$libdir" && test ! -f "$libfile"; then
  52162. + func_warning "\`$lib' has not been installed in \`$libdir'"
  52163. + finalize=no
  52164. fi
  52165. + done
  52166. +
  52167. + relink_command=
  52168. + func_source "$wrapper"
  52169. +
  52170. + outputname=
  52171. + if test "$fast_install" = no && test -n "$relink_command"; then
  52172. + $opt_dry_run || {
  52173. + if test "$finalize" = yes; then
  52174. + tmpdir=`func_mktempdir`
  52175. + func_basename "$file$stripped_ext"
  52176. + file="$func_basename_result"
  52177. + outputname="$tmpdir/$file"
  52178. + # Replace the output file specification.
  52179. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  52180. +
  52181. + $opt_silent || {
  52182. + func_quote_for_expand "$relink_command"
  52183. + eval "func_echo $func_quote_for_expand_result"
  52184. + }
  52185. + if eval "$relink_command"; then :
  52186. + else
  52187. + func_error "error: relink \`$file' with the above command before installing it"
  52188. + $opt_dry_run || ${RM}r "$tmpdir"
  52189. + continue
  52190. + fi
  52191. + file="$outputname"
  52192. + else
  52193. + func_warning "cannot relink \`$file'"
  52194. + fi
  52195. + }
  52196. + else
  52197. + # Install the binary that we compiled earlier.
  52198. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  52199. fi
  52200. - continue
  52201. - ;;
  52202. - %DEPLIBS%)
  52203. - alldeplibs=yes
  52204. - continue
  52205. - ;;
  52206. - esac # case $deplib
  52207. - if test "$found" = yes || test -f "$lib"; then :
  52208. - else
  52209. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  52210. - exit 1
  52211. fi
  52212. - # Check to see that this really is a libtool archive.
  52213. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  52214. - else
  52215. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  52216. - exit 1
  52217. + # remove .exe since cygwin /usr/bin/install will append another
  52218. + # one anyway
  52219. + case $install_prog,$host in
  52220. + */usr/bin/install*,*cygwin*)
  52221. + case $file:$destfile in
  52222. + *.exe:*.exe)
  52223. + # this is ok
  52224. + ;;
  52225. + *.exe:*)
  52226. + destfile=$destfile.exe
  52227. + ;;
  52228. + *:*.exe)
  52229. + func_stripname '' '.exe' "$destfile"
  52230. + destfile=$func_stripname_result
  52231. + ;;
  52232. + esac
  52233. + ;;
  52234. + esac
  52235. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  52236. + $opt_dry_run || if test -n "$outputname"; then
  52237. + ${RM}r "$tmpdir"
  52238. fi
  52239. + ;;
  52240. + esac
  52241. + done
  52242. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  52243. - test "X$ladir" = "X$lib" && ladir="."
  52244. + for file in $staticlibs; do
  52245. + func_basename "$file"
  52246. + name="$func_basename_result"
  52247. - dlname=
  52248. - dlopen=
  52249. - dlpreopen=
  52250. - libdir=
  52251. - library_names=
  52252. - old_library=
  52253. - # If the library was installed with an old release of libtool,
  52254. - # it will not redefine variables installed, or shouldnotlink
  52255. - installed=yes
  52256. - shouldnotlink=no
  52257. + # Set up the ranlib parameters.
  52258. + oldlib="$destdir/$name"
  52259. - # Read the .la file
  52260. - case $lib in
  52261. - */* | *\\*) . $lib ;;
  52262. - *) . ./$lib ;;
  52263. - esac
  52264. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  52265. - if test "$linkmode,$pass" = "lib,link" ||
  52266. - test "$linkmode,$pass" = "prog,scan" ||
  52267. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  52268. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  52269. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  52270. - fi
  52271. + if test -n "$stripme" && test -n "$old_striplib"; then
  52272. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  52273. + fi
  52274. - if test "$pass" = conv; then
  52275. - # Only check for convenience libraries
  52276. - deplibs="$lib $deplibs"
  52277. - if test -z "$libdir"; then
  52278. - if test -z "$old_library"; then
  52279. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  52280. - exit 1
  52281. - fi
  52282. - # It is a libtool convenience library, so add in its objects.
  52283. - convenience="$convenience $ladir/$objdir/$old_library"
  52284. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  52285. - tmp_libs=
  52286. - for deplib in $dependency_libs; do
  52287. - deplibs="$deplib $deplibs"
  52288. - if test "X$duplicate_deps" = "Xyes" ; then
  52289. - case "$tmp_libs " in
  52290. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52291. - esac
  52292. - fi
  52293. - tmp_libs="$tmp_libs $deplib"
  52294. - done
  52295. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  52296. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  52297. - exit 1
  52298. - fi
  52299. - continue
  52300. - fi # $pass = conv
  52301. + # Do each command in the postinstall commands.
  52302. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  52303. + done
  52304. -
  52305. - # Get the name of the library we link against.
  52306. - linklib=
  52307. - for l in $old_library $library_names; do
  52308. - linklib="$l"
  52309. - done
  52310. - if test -z "$linklib"; then
  52311. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  52312. - exit 1
  52313. - fi
  52314. + test -n "$future_libdirs" && \
  52315. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  52316. - # This library was specified with -dlopen.
  52317. - if test "$pass" = dlopen; then
  52318. - if test -z "$libdir"; then
  52319. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  52320. - exit 1
  52321. - fi
  52322. - if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  52323. - # If there is no dlname, no dlopen support or we're linking
  52324. - # statically, we need to preload. We also need to preload any
  52325. - # dependent libraries so libltdl's deplib preloader doesn't
  52326. - # bomb out in the load deplibs phase.
  52327. - dlprefiles="$dlprefiles $lib $dependency_libs"
  52328. - else
  52329. - newdlfiles="$newdlfiles $lib"
  52330. - fi
  52331. - continue
  52332. - fi # $pass = dlopen
  52333. + if test -n "$current_libdirs"; then
  52334. + # Maybe just do a dry run.
  52335. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  52336. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  52337. + else
  52338. + exit $EXIT_SUCCESS
  52339. + fi
  52340. +}
  52341. - # We need an absolute path.
  52342. - case $ladir in
  52343. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  52344. - *)
  52345. - abs_ladir=`cd "$ladir" && pwd`
  52346. - if test -z "$abs_ladir"; then
  52347. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  52348. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  52349. - abs_ladir="$ladir"
  52350. - fi
  52351. - ;;
  52352. - esac
  52353. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  52354. +test "$mode" = install && func_mode_install ${1+"$@"}
  52355. - # Find the relevant object directory and library name.
  52356. - if test "X$installed" = Xyes; then
  52357. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  52358. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  52359. - dir="$ladir"
  52360. - absdir="$abs_ladir"
  52361. - libdir="$abs_ladir"
  52362. - else
  52363. - dir="$libdir"
  52364. - absdir="$libdir"
  52365. - fi
  52366. - else
  52367. - dir="$ladir/$objdir"
  52368. - absdir="$abs_ladir/$objdir"
  52369. - # Remove this search path later
  52370. - notinst_path="$notinst_path $abs_ladir"
  52371. - fi # $installed = yes
  52372. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  52373. - # This library was specified with -dlpreopen.
  52374. - if test "$pass" = dlpreopen; then
  52375. - if test -z "$libdir"; then
  52376. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  52377. - exit 1
  52378. - fi
  52379. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  52380. - # are required to link).
  52381. - if test -n "$old_library"; then
  52382. - newdlprefiles="$newdlprefiles $dir/$old_library"
  52383. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  52384. - elif test -n "$dlname"; then
  52385. - newdlprefiles="$newdlprefiles $dir/$dlname"
  52386. - else
  52387. - newdlprefiles="$newdlprefiles $dir/$linklib"
  52388. - fi
  52389. - fi # $pass = dlpreopen
  52390. +# func_generate_dlsyms outputname originator pic_p
  52391. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  52392. +# a dlpreopen symbol table.
  52393. +func_generate_dlsyms ()
  52394. +{
  52395. + $opt_debug
  52396. + my_outputname="$1"
  52397. + my_originator="$2"
  52398. + my_pic_p="${3-no}"
  52399. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  52400. + my_dlsyms=
  52401. +
  52402. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52403. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  52404. + my_dlsyms="${my_outputname}S.c"
  52405. + else
  52406. + func_error "not configured to extract global symbols from dlpreopened files"
  52407. + fi
  52408. + fi
  52409. - if test -z "$libdir"; then
  52410. - # Link the convenience library
  52411. - if test "$linkmode" = lib; then
  52412. - deplibs="$dir/$old_library $deplibs"
  52413. - elif test "$linkmode,$pass" = "prog,link"; then
  52414. - compile_deplibs="$dir/$old_library $compile_deplibs"
  52415. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  52416. - else
  52417. - deplibs="$lib $deplibs" # used for prog,scan pass
  52418. - fi
  52419. - continue
  52420. - fi
  52421. + if test -n "$my_dlsyms"; then
  52422. + case $my_dlsyms in
  52423. + "") ;;
  52424. + *.c)
  52425. + # Discover the nlist of each of the dlfiles.
  52426. + nlist="$output_objdir/${my_outputname}.nm"
  52427. -
  52428. - if test "$linkmode" = prog && test "$pass" != link; then
  52429. - newlib_search_path="$newlib_search_path $ladir"
  52430. - deplibs="$lib $deplibs"
  52431. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  52432. - linkalldeplibs=no
  52433. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  52434. - test "$build_libtool_libs" = no; then
  52435. - linkalldeplibs=yes
  52436. - fi
  52437. + # Parse the name list into a source file.
  52438. + func_verbose "creating $output_objdir/$my_dlsyms"
  52439. - tmp_libs=
  52440. - for deplib in $dependency_libs; do
  52441. - case $deplib in
  52442. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  52443. - esac
  52444. - # Need to link against all dependency_libs?
  52445. - if test "$linkalldeplibs" = yes; then
  52446. - deplibs="$deplib $deplibs"
  52447. - else
  52448. - # Need to hardcode shared library paths
  52449. - # or/and link against static libraries
  52450. - newdependency_libs="$deplib $newdependency_libs"
  52451. - fi
  52452. - if test "X$duplicate_deps" = "Xyes" ; then
  52453. - case "$tmp_libs " in
  52454. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  52455. - esac
  52456. - fi
  52457. - tmp_libs="$tmp_libs $deplib"
  52458. - done # for deplib
  52459. - continue
  52460. - fi # $linkmode = prog...
  52461. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  52462. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  52463. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  52464. - if test "$linkmode,$pass" = "prog,link"; then
  52465. - if test -n "$library_names" &&
  52466. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  52467. - # We need to hardcode the library path
  52468. - if test -n "$shlibpath_var"; then
  52469. - # Make sure the rpath contains only unique directories.
  52470. - case "$temp_rpath " in
  52471. - *" $dir "*) ;;
  52472. - *" $absdir "*) ;;
  52473. - *) temp_rpath="$temp_rpath $dir" ;;
  52474. - esac
  52475. - fi
  52476. +#ifdef __cplusplus
  52477. +extern \"C\" {
  52478. +#endif
  52479. - # Hardcode the library path.
  52480. - # Skip directories that are in the system default run-time
  52481. - # search path.
  52482. - case " $sys_lib_dlsearch_path " in
  52483. - *" $absdir "*) ;;
  52484. - *)
  52485. - case "$compile_rpath " in
  52486. - *" $absdir "*) ;;
  52487. - *) compile_rpath="$compile_rpath $absdir"
  52488. +/* External symbol declarations for the compiler. */\
  52489. +"
  52490. +
  52491. + if test "$dlself" = yes; then
  52492. + func_verbose "generating symbol list for \`$output'"
  52493. +
  52494. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  52495. +
  52496. + # Add our own program objects to the symbol list.
  52497. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52498. + for progfile in $progfiles; do
  52499. + func_verbose "extracting global C symbols from \`$progfile'"
  52500. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  52501. + done
  52502. +
  52503. + if test -n "$exclude_expsyms"; then
  52504. + $opt_dry_run || {
  52505. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  52506. + eval '$MV "$nlist"T "$nlist"'
  52507. + }
  52508. + fi
  52509. +
  52510. + if test -n "$export_symbols_regex"; then
  52511. + $opt_dry_run || {
  52512. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  52513. + eval '$MV "$nlist"T "$nlist"'
  52514. + }
  52515. + fi
  52516. +
  52517. + # Prepare the list of exported symbols
  52518. + if test -z "$export_symbols"; then
  52519. + export_symbols="$output_objdir/$outputname.exp"
  52520. + $opt_dry_run || {
  52521. + $RM $export_symbols
  52522. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  52523. + case $host in
  52524. + *cygwin* | *mingw* | *cegcc* )
  52525. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  52526. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  52527. + ;;
  52528. esac
  52529. - ;;
  52530. - esac
  52531. - case " $sys_lib_dlsearch_path " in
  52532. - *" $libdir "*) ;;
  52533. - *)
  52534. - case "$finalize_rpath " in
  52535. - *" $libdir "*) ;;
  52536. - *) finalize_rpath="$finalize_rpath $libdir"
  52537. + }
  52538. + else
  52539. + $opt_dry_run || {
  52540. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  52541. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  52542. + eval '$MV "$nlist"T "$nlist"'
  52543. + case $host in
  52544. + *cygwin | *mingw* | *cegcc* )
  52545. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  52546. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  52547. + ;;
  52548. esac
  52549. - ;;
  52550. - esac
  52551. - fi # $linkmode,$pass = prog,link...
  52552. -
  52553. - if test "$alldeplibs" = yes &&
  52554. - { test "$deplibs_check_method" = pass_all ||
  52555. - { test "$build_libtool_libs" = yes &&
  52556. - test -n "$library_names"; }; }; then
  52557. - # We only need to search for static libraries
  52558. - continue
  52559. + }
  52560. fi
  52561. fi
  52562. - link_static=no # Whether the deplib will be linked statically
  52563. - if test -n "$library_names" &&
  52564. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  52565. - if test "$installed" = no; then
  52566. - notinst_deplibs="$notinst_deplibs $lib"
  52567. - need_relink=yes
  52568. + for dlprefile in $dlprefiles; do
  52569. + func_verbose "extracting global C symbols from \`$dlprefile'"
  52570. + func_basename "$dlprefile"
  52571. + name="$func_basename_result"
  52572. + $opt_dry_run || {
  52573. + eval '$ECHO ": $name " >> "$nlist"'
  52574. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  52575. + }
  52576. + done
  52577. +
  52578. + $opt_dry_run || {
  52579. + # Make sure we have at least an empty file.
  52580. + test -f "$nlist" || : > "$nlist"
  52581. +
  52582. + if test -n "$exclude_expsyms"; then
  52583. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  52584. + $MV "$nlist"T "$nlist"
  52585. fi
  52586. - # This is a shared library
  52587. -
  52588. - # Warn about portability, can't link against -module's on some systems (darwin)
  52589. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  52590. - $echo
  52591. - if test "$linkmode" = prog; then
  52592. - $echo "*** Warning: Linking the executable $output against the loadable module"
  52593. - else
  52594. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  52595. - fi
  52596. - $echo "*** $linklib is not portable!"
  52597. - fi
  52598. - if test "$linkmode" = lib &&
  52599. - test "$hardcode_into_libs" = yes; then
  52600. - # Hardcode the library path.
  52601. - # Skip directories that are in the system default run-time
  52602. - # search path.
  52603. - case " $sys_lib_dlsearch_path " in
  52604. - *" $absdir "*) ;;
  52605. - *)
  52606. - case "$compile_rpath " in
  52607. - *" $absdir "*) ;;
  52608. - *) compile_rpath="$compile_rpath $absdir"
  52609. - esac
  52610. - ;;
  52611. - esac
  52612. - case " $sys_lib_dlsearch_path " in
  52613. - *" $libdir "*) ;;
  52614. - *)
  52615. - case "$finalize_rpath " in
  52616. - *" $libdir "*) ;;
  52617. - *) finalize_rpath="$finalize_rpath $libdir"
  52618. - esac
  52619. - ;;
  52620. - esac
  52621. +
  52622. + # Try sorting and uniquifying the output.
  52623. + if $GREP -v "^: " < "$nlist" |
  52624. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  52625. + sort -k 3
  52626. + else
  52627. + sort +2
  52628. + fi |
  52629. + uniq > "$nlist"S; then
  52630. + :
  52631. + else
  52632. + $GREP -v "^: " < "$nlist" > "$nlist"S
  52633. fi
  52634. - if test -n "$old_archive_from_expsyms_cmds"; then
  52635. - # figure out the soname
  52636. - set dummy $library_names
  52637. - realname="$2"
  52638. - shift; shift
  52639. - libname=`eval \\$echo \"$libname_spec\"`
  52640. - # use dlname if we got it. it's perfectly good, no?
  52641. - if test -n "$dlname"; then
  52642. - soname="$dlname"
  52643. - elif test -n "$soname_spec"; then
  52644. - # bleh windows
  52645. - case $host in
  52646. - *cygwin* | mingw*)
  52647. - major=`expr $current - $age`
  52648. - versuffix="-$major"
  52649. - ;;
  52650. - esac
  52651. - eval soname=\"$soname_spec\"
  52652. - else
  52653. - soname="$realname"
  52654. - fi
  52655. + if test -f "$nlist"S; then
  52656. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  52657. + else
  52658. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  52659. + fi
  52660. - # Make a new name for the extract_expsyms_cmds to use
  52661. - soroot="$soname"
  52662. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  52663. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  52664. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  52665. - # If the library has no export list, then create one now
  52666. - if test -f "$output_objdir/$soname-def"; then :
  52667. - else
  52668. - $show "extracting exported symbol list from \`$soname'"
  52669. - save_ifs="$IFS"; IFS='~'
  52670. - cmds=$extract_expsyms_cmds
  52671. - for cmd in $cmds; do
  52672. - IFS="$save_ifs"
  52673. - eval cmd=\"$cmd\"
  52674. - $show "$cmd"
  52675. - $run eval "$cmd" || exit $?
  52676. - done
  52677. - IFS="$save_ifs"
  52678. - fi
  52679. +/* The mapping between symbol names and symbols. */
  52680. +typedef struct {
  52681. + const char *name;
  52682. + void *address;
  52683. +} lt_dlsymlist;
  52684. +"
  52685. + case $host in
  52686. + *cygwin* | *mingw* | *cegcc* )
  52687. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  52688. +/* DATA imports from DLLs on WIN32 con't be const, because
  52689. + runtime relocations are performed -- see ld's documentation
  52690. + on pseudo-relocs. */"
  52691. + lt_dlsym_const= ;;
  52692. + *osf5*)
  52693. + echo >> "$output_objdir/$my_dlsyms" "\
  52694. +/* This system does not cope well with relocations in const data */"
  52695. + lt_dlsym_const= ;;
  52696. + *)
  52697. + lt_dlsym_const=const ;;
  52698. + esac
  52699. - # Create $newlib
  52700. - if test -f "$output_objdir/$newlib"; then :; else
  52701. - $show "generating import library for \`$soname'"
  52702. - save_ifs="$IFS"; IFS='~'
  52703. - cmds=$old_archive_from_expsyms_cmds
  52704. - for cmd in $cmds; do
  52705. - IFS="$save_ifs"
  52706. - eval cmd=\"$cmd\"
  52707. - $show "$cmd"
  52708. - $run eval "$cmd" || exit $?
  52709. - done
  52710. - IFS="$save_ifs"
  52711. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  52712. +extern $lt_dlsym_const lt_dlsymlist
  52713. +lt_${my_prefix}_LTX_preloaded_symbols[];
  52714. +$lt_dlsym_const lt_dlsymlist
  52715. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  52716. +{\
  52717. + { \"$my_originator\", (void *) 0 },"
  52718. +
  52719. + case $need_lib_prefix in
  52720. + no)
  52721. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  52722. + ;;
  52723. + *)
  52724. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  52725. + ;;
  52726. + esac
  52727. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  52728. + {0, (void *) 0}
  52729. +};
  52730. +
  52731. +/* This works around a problem in FreeBSD linker */
  52732. +#ifdef FREEBSD_WORKAROUND
  52733. +static const void *lt_preloaded_setup() {
  52734. + return lt_${my_prefix}_LTX_preloaded_symbols;
  52735. +}
  52736. +#endif
  52737. +
  52738. +#ifdef __cplusplus
  52739. +}
  52740. +#endif\
  52741. +"
  52742. + } # !$opt_dry_run
  52743. +
  52744. + pic_flag_for_symtable=
  52745. + case "$compile_command " in
  52746. + *" -static "*) ;;
  52747. + *)
  52748. + case $host in
  52749. + # compiling the symbol table file with pic_flag works around
  52750. + # a FreeBSD bug that causes programs to crash when -lm is
  52751. + # linked before any other PIC object. But we must not use
  52752. + # pic_flag when linking with -static. The problem exists in
  52753. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  52754. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  52755. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  52756. + *-*-hpux*)
  52757. + pic_flag_for_symtable=" $pic_flag" ;;
  52758. + *)
  52759. + if test "X$my_pic_p" != Xno; then
  52760. + pic_flag_for_symtable=" $pic_flag"
  52761. fi
  52762. - # make sure the library variables are pointing to the new library
  52763. - dir=$output_objdir
  52764. - linklib=$newlib
  52765. - fi # test -n "$old_archive_from_expsyms_cmds"
  52766. + ;;
  52767. + esac
  52768. + ;;
  52769. + esac
  52770. + symtab_cflags=
  52771. + for arg in $LTCFLAGS; do
  52772. + case $arg in
  52773. + -pie | -fpie | -fPIE) ;;
  52774. + *) symtab_cflags="$symtab_cflags $arg" ;;
  52775. + esac
  52776. + done
  52777. - if test "$linkmode" = prog || test "$mode" != relink; then
  52778. - add_shlibpath=
  52779. - add_dir=
  52780. - add=
  52781. - lib_linked=yes
  52782. - case $hardcode_action in
  52783. - immediate | unsupported)
  52784. - if test "$hardcode_direct" = no; then
  52785. - add="$dir/$linklib"
  52786. - case $host in
  52787. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  52788. - *-*-darwin* )
  52789. - # if the lib is a module then we can not link against it, someone
  52790. - # is ignoring the new warnings I added
  52791. - if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then
  52792. - $echo "** Warning, lib $linklib is a module, not a shared library"
  52793. - if test -z "$old_library" ; then
  52794. - $echo
  52795. - $echo "** And there doesn't seem to be a static archive available"
  52796. - $echo "** The link will probably fail, sorry"
  52797. - else
  52798. - add="$dir/$old_library"
  52799. - fi
  52800. - fi
  52801. - esac
  52802. - elif test "$hardcode_minus_L" = no; then
  52803. - case $host in
  52804. - *-*-sunos*) add_shlibpath="$dir" ;;
  52805. - esac
  52806. - add_dir="-L$dir"
  52807. - add="-l$name"
  52808. - elif test "$hardcode_shlibpath_var" = no; then
  52809. - add_shlibpath="$dir"
  52810. - add="-l$name"
  52811. - else
  52812. - lib_linked=no
  52813. - fi
  52814. - ;;
  52815. - relink)
  52816. - if test "$hardcode_direct" = yes; then
  52817. - add="$dir/$linklib"
  52818. - elif test "$hardcode_minus_L" = yes; then
  52819. - add_dir="-L$dir"
  52820. - # Try looking first in the location we're being installed to.
  52821. - if test -n "$inst_prefix_dir"; then
  52822. - case "$libdir" in
  52823. - [\\/]*)
  52824. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  52825. - ;;
  52826. - esac
  52827. - fi
  52828. - add="-l$name"
  52829. - elif test "$hardcode_shlibpath_var" = yes; then
  52830. - add_shlibpath="$dir"
  52831. - add="-l$name"
  52832. - else
  52833. - lib_linked=no
  52834. - fi
  52835. - ;;
  52836. - *) lib_linked=no ;;
  52837. - esac
  52838. + # Now compile the dynamic symbol file.
  52839. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  52840. - if test "$lib_linked" != yes; then
  52841. - $echo "$modename: configuration error: unsupported hardcode properties"
  52842. - exit 1
  52843. - fi
  52844. + # Clean up the generated files.
  52845. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  52846. - if test -n "$add_shlibpath"; then
  52847. - case :$compile_shlibpath: in
  52848. - *":$add_shlibpath:"*) ;;
  52849. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  52850. - esac
  52851. - fi
  52852. - if test "$linkmode" = prog; then
  52853. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  52854. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  52855. - else
  52856. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52857. - test -n "$add" && deplibs="$add $deplibs"
  52858. - if test "$hardcode_direct" != yes && \
  52859. - test "$hardcode_minus_L" != yes && \
  52860. - test "$hardcode_shlibpath_var" = yes; then
  52861. - case :$finalize_shlibpath: in
  52862. - *":$libdir:"*) ;;
  52863. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52864. - esac
  52865. - fi
  52866. - fi
  52867. + # Transform the symbol file into the correct name.
  52868. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  52869. + case $host in
  52870. + *cygwin* | *mingw* | *cegcc* )
  52871. + if test -f "$output_objdir/$my_outputname.def"; then
  52872. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  52873. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  52874. + else
  52875. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  52876. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  52877. fi
  52878. + ;;
  52879. + *)
  52880. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  52881. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  52882. + ;;
  52883. + esac
  52884. + ;;
  52885. + *)
  52886. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  52887. + ;;
  52888. + esac
  52889. + else
  52890. + # We keep going just in case the user didn't refer to
  52891. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  52892. + # really was required.
  52893. +
  52894. + # Nullify the symbol file.
  52895. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  52896. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  52897. + fi
  52898. +}
  52899. - if test "$linkmode" = prog || test "$mode" = relink; then
  52900. - add_shlibpath=
  52901. - add_dir=
  52902. - add=
  52903. - # Finalize command for both is simple: just hardcode it.
  52904. - if test "$hardcode_direct" = yes; then
  52905. - add="$libdir/$linklib"
  52906. - elif test "$hardcode_minus_L" = yes; then
  52907. - add_dir="-L$libdir"
  52908. - add="-l$name"
  52909. - elif test "$hardcode_shlibpath_var" = yes; then
  52910. - case :$finalize_shlibpath: in
  52911. - *":$libdir:"*) ;;
  52912. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  52913. - esac
  52914. - add="-l$name"
  52915. - elif test "$hardcode_automatic" = yes; then
  52916. - if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
  52917. - add="$inst_prefix_dir$libdir/$linklib"
  52918. - else
  52919. - add="$libdir/$linklib"
  52920. - fi
  52921. - else
  52922. - # We cannot seem to hardcode it, guess we'll fake it.
  52923. - add_dir="-L$libdir"
  52924. - # Try looking first in the location we're being installed to.
  52925. - if test -n "$inst_prefix_dir"; then
  52926. - case "$libdir" in
  52927. - [\\/]*)
  52928. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  52929. - ;;
  52930. - esac
  52931. - fi
  52932. - add="-l$name"
  52933. - fi
  52934. +# func_win32_libid arg
  52935. +# return the library type of file 'arg'
  52936. +#
  52937. +# Need a lot of goo to handle *both* DLLs and import libs
  52938. +# Has to be a shell function in order to 'eat' the argument
  52939. +# that is supplied when $file_magic_command is called.
  52940. +func_win32_libid ()
  52941. +{
  52942. + $opt_debug
  52943. + win32_libid_type="unknown"
  52944. + win32_fileres=`file -L $1 2>/dev/null`
  52945. + case $win32_fileres in
  52946. + *ar\ archive\ import\ library*) # definitely import
  52947. + win32_libid_type="x86 archive import"
  52948. + ;;
  52949. + *ar\ archive*) # could be an import, or static
  52950. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  52951. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  52952. + win32_nmres=`eval $NM -f posix -A $1 |
  52953. + $SED -n -e '
  52954. + 1,100{
  52955. + / I /{
  52956. + s,.*,import,
  52957. + p
  52958. + q
  52959. + }
  52960. + }'`
  52961. + case $win32_nmres in
  52962. + import*) win32_libid_type="x86 archive import";;
  52963. + *) win32_libid_type="x86 archive static";;
  52964. + esac
  52965. + fi
  52966. + ;;
  52967. + *DLL*)
  52968. + win32_libid_type="x86 DLL"
  52969. + ;;
  52970. + *executable*) # but shell scripts are "executable" too...
  52971. + case $win32_fileres in
  52972. + *MS\ Windows\ PE\ Intel*)
  52973. + win32_libid_type="x86 DLL"
  52974. + ;;
  52975. + esac
  52976. + ;;
  52977. + esac
  52978. + $ECHO "$win32_libid_type"
  52979. +}
  52980. - if test "$linkmode" = prog; then
  52981. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  52982. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  52983. - else
  52984. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  52985. - test -n "$add" && deplibs="$add $deplibs"
  52986. - fi
  52987. - fi
  52988. - elif test "$linkmode" = prog; then
  52989. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  52990. - # is not unsupported. This is valid on all known static and
  52991. - # shared platforms.
  52992. - if test "$hardcode_direct" != unsupported; then
  52993. - test -n "$old_library" && linklib="$old_library"
  52994. - compile_deplibs="$dir/$linklib $compile_deplibs"
  52995. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  52996. - else
  52997. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  52998. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  52999. - fi
  53000. - elif test "$build_libtool_libs" = yes; then
  53001. - # Not a shared library
  53002. - if test "$deplibs_check_method" != pass_all; then
  53003. - # We're trying link a shared library against a static one
  53004. - # but the system doesn't support it.
  53005. - # Just print a warning and add the library to dependency_libs so
  53006. - # that the program can be linked against the static library.
  53007. - $echo
  53008. - $echo "*** Warning: This system can not link to static lib archive $lib."
  53009. - $echo "*** I have the capability to make that library automatically link in when"
  53010. - $echo "*** you link to this library. But I can only do this if you have a"
  53011. - $echo "*** shared version of the library, which you do not appear to have."
  53012. - if test "$module" = yes; then
  53013. - $echo "*** But as you try to build a module library, libtool will still create "
  53014. - $echo "*** a static module, that should work as long as the dlopening application"
  53015. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  53016. - if test -z "$global_symbol_pipe"; then
  53017. - $echo
  53018. - $echo "*** However, this would only work if libtool was able to extract symbol"
  53019. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  53020. - $echo "*** not find such a program. So, this module is probably useless."
  53021. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  53022. - fi
  53023. - if test "$build_old_libs" = no; then
  53024. - build_libtool_libs=module
  53025. - build_old_libs=yes
  53026. - else
  53027. - build_libtool_libs=no
  53028. - fi
  53029. - fi
  53030. +
  53031. +# func_extract_an_archive dir oldlib
  53032. +func_extract_an_archive ()
  53033. +{
  53034. + $opt_debug
  53035. + f_ex_an_ar_dir="$1"; shift
  53036. + f_ex_an_ar_oldlib="$1"
  53037. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  53038. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  53039. + :
  53040. + else
  53041. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  53042. + fi
  53043. +}
  53044. +
  53045. +
  53046. +# func_extract_archives gentop oldlib ...
  53047. +func_extract_archives ()
  53048. +{
  53049. + $opt_debug
  53050. + my_gentop="$1"; shift
  53051. + my_oldlibs=${1+"$@"}
  53052. + my_oldobjs=""
  53053. + my_xlib=""
  53054. + my_xabs=""
  53055. + my_xdir=""
  53056. +
  53057. + for my_xlib in $my_oldlibs; do
  53058. + # Extract the objects.
  53059. + case $my_xlib in
  53060. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  53061. + *) my_xabs=`pwd`"/$my_xlib" ;;
  53062. + esac
  53063. + func_basename "$my_xlib"
  53064. + my_xlib="$func_basename_result"
  53065. + my_xlib_u=$my_xlib
  53066. + while :; do
  53067. + case " $extracted_archives " in
  53068. + *" $my_xlib_u "*)
  53069. + func_arith $extracted_serial + 1
  53070. + extracted_serial=$func_arith_result
  53071. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  53072. + *) break ;;
  53073. + esac
  53074. + done
  53075. + extracted_archives="$extracted_archives $my_xlib_u"
  53076. + my_xdir="$my_gentop/$my_xlib_u"
  53077. +
  53078. + func_mkdir_p "$my_xdir"
  53079. +
  53080. + case $host in
  53081. + *-darwin*)
  53082. + func_verbose "Extracting $my_xabs"
  53083. + # Do not bother doing anything if just a dry run
  53084. + $opt_dry_run || {
  53085. + darwin_orig_dir=`pwd`
  53086. + cd $my_xdir || exit $?
  53087. + darwin_archive=$my_xabs
  53088. + darwin_curdir=`pwd`
  53089. + darwin_base_archive=`basename "$darwin_archive"`
  53090. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  53091. + if test -n "$darwin_arches"; then
  53092. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  53093. + darwin_arch=
  53094. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  53095. + for darwin_arch in $darwin_arches ; do
  53096. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  53097. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  53098. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  53099. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  53100. + cd "$darwin_curdir"
  53101. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  53102. + done # $darwin_arches
  53103. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  53104. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  53105. + darwin_file=
  53106. + darwin_files=
  53107. + for darwin_file in $darwin_filelist; do
  53108. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  53109. + $LIPO -create -output "$darwin_file" $darwin_files
  53110. + done # $darwin_filelist
  53111. + $RM -rf unfat-$$
  53112. + cd "$darwin_orig_dir"
  53113. else
  53114. - convenience="$convenience $dir/$old_library"
  53115. - old_convenience="$old_convenience $dir/$old_library"
  53116. - deplibs="$dir/$old_library $deplibs"
  53117. - link_static=yes
  53118. - fi
  53119. - fi # link shared/static library?
  53120. + cd $darwin_orig_dir
  53121. + func_extract_an_archive "$my_xdir" "$my_xabs"
  53122. + fi # $darwin_arches
  53123. + } # !$opt_dry_run
  53124. + ;;
  53125. + *)
  53126. + func_extract_an_archive "$my_xdir" "$my_xabs"
  53127. + ;;
  53128. + esac
  53129. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  53130. + done
  53131. - if test "$linkmode" = lib; then
  53132. - if test -n "$dependency_libs" &&
  53133. - { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
  53134. - test "$link_static" = yes; }; then
  53135. - # Extract -R from dependency_libs
  53136. - temp_deplibs=
  53137. - for libdir in $dependency_libs; do
  53138. - case $libdir in
  53139. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  53140. - case " $xrpath " in
  53141. - *" $temp_xrpath "*) ;;
  53142. - *) xrpath="$xrpath $temp_xrpath";;
  53143. - esac;;
  53144. - *) temp_deplibs="$temp_deplibs $libdir";;
  53145. - esac
  53146. - done
  53147. - dependency_libs="$temp_deplibs"
  53148. - fi
  53149. + func_extract_archives_result="$my_oldobjs"
  53150. +}
  53151. - newlib_search_path="$newlib_search_path $absdir"
  53152. - # Link against this library
  53153. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  53154. - # ... and its dependency_libs
  53155. - tmp_libs=
  53156. - for deplib in $dependency_libs; do
  53157. - newdependency_libs="$deplib $newdependency_libs"
  53158. - if test "X$duplicate_deps" = "Xyes" ; then
  53159. - case "$tmp_libs " in
  53160. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  53161. - esac
  53162. - fi
  53163. - tmp_libs="$tmp_libs $deplib"
  53164. - done
  53165. - if test "$link_all_deplibs" != no; then
  53166. - # Add the search paths of all dependency libraries
  53167. - for deplib in $dependency_libs; do
  53168. - case $deplib in
  53169. - -L*) path="$deplib" ;;
  53170. - *.la)
  53171. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  53172. - test "X$dir" = "X$deplib" && dir="."
  53173. - # We need an absolute path.
  53174. - case $dir in
  53175. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  53176. - *)
  53177. - absdir=`cd "$dir" && pwd`
  53178. - if test -z "$absdir"; then
  53179. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  53180. - absdir="$dir"
  53181. - fi
  53182. - ;;
  53183. - esac
  53184. - if grep "^installed=no" $deplib > /dev/null; then
  53185. - path="$absdir/$objdir"
  53186. - else
  53187. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  53188. - if test -z "$libdir"; then
  53189. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  53190. - exit 1
  53191. - fi
  53192. - if test "$absdir" != "$libdir"; then
  53193. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  53194. - fi
  53195. - path="$absdir"
  53196. - fi
  53197. - depdepl=
  53198. - case $host in
  53199. - *-*-darwin*)
  53200. - # we do not want to link against static libs, but need to link against shared
  53201. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  53202. - if test -n "$deplibrary_names" ; then
  53203. - for tmp in $deplibrary_names ; do
  53204. - depdepl=$tmp
  53205. - done
  53206. - if test -f "$path/$depdepl" ; then
  53207. - depdepl="$path/$depdepl"
  53208. - fi
  53209. - # do not add paths which are already there
  53210. - case " $newlib_search_path " in
  53211. - *" $path "*) ;;
  53212. - *) newlib_search_path="$newlib_search_path $path";;
  53213. - esac
  53214. - fi
  53215. - path=""
  53216. - ;;
  53217. - *)
  53218. - path="-L$path"
  53219. - ;;
  53220. - esac
  53221. -
  53222. - ;;
  53223. - -l*)
  53224. - case $host in
  53225. - *-*-darwin*)
  53226. - # Again, we only want to link against shared libraries
  53227. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  53228. - for tmp in $newlib_search_path ; do
  53229. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  53230. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  53231. - break
  53232. - fi
  53233. - done
  53234. - path=""
  53235. - ;;
  53236. - *) continue ;;
  53237. - esac
  53238. - ;;
  53239. - *) continue ;;
  53240. - esac
  53241. - case " $deplibs " in
  53242. - *" $depdepl "*) ;;
  53243. - *) deplibs="$deplibs $depdepl" ;;
  53244. - esac
  53245. - case " $deplibs " in
  53246. - *" $path "*) ;;
  53247. - *) deplibs="$deplibs $path" ;;
  53248. - esac
  53249. - done
  53250. - fi # link_all_deplibs != no
  53251. - fi # linkmode = lib
  53252. - done # for deplib in $libs
  53253. - dependency_libs="$newdependency_libs"
  53254. - if test "$pass" = dlpreopen; then
  53255. - # Link the dlpreopened libraries before other libraries
  53256. - for deplib in $save_deplibs; do
  53257. - deplibs="$deplib $deplibs"
  53258. - done
  53259. - fi
  53260. - if test "$pass" != dlopen; then
  53261. - if test "$pass" != conv; then
  53262. - # Make sure lib_search_path contains only unique directories.
  53263. - lib_search_path=
  53264. - for dir in $newlib_search_path; do
  53265. - case "$lib_search_path " in
  53266. - *" $dir "*) ;;
  53267. - *) lib_search_path="$lib_search_path $dir" ;;
  53268. - esac
  53269. - done
  53270. - newlib_search_path=
  53271. - fi
  53272. - if test "$linkmode,$pass" != "prog,link"; then
  53273. - vars="deplibs"
  53274. - else
  53275. - vars="compile_deplibs finalize_deplibs"
  53276. - fi
  53277. - for var in $vars dependency_libs; do
  53278. - # Add libraries to $var in reverse order
  53279. - eval tmp_libs=\"\$$var\"
  53280. - new_libs=
  53281. - for deplib in $tmp_libs; do
  53282. - # FIXME: Pedantically, this is the right thing to do, so
  53283. - # that some nasty dependency loop isn't accidentally
  53284. - # broken:
  53285. - #new_libs="$deplib $new_libs"
  53286. - # Pragmatically, this seems to cause very few problems in
  53287. - # practice:
  53288. - case $deplib in
  53289. - -L*) new_libs="$deplib $new_libs" ;;
  53290. - -R*) ;;
  53291. - *)
  53292. - # And here is the reason: when a library appears more
  53293. - # than once as an explicit dependence of a library, or
  53294. - # is implicitly linked in more than once by the
  53295. - # compiler, it is considered special, and multiple
  53296. - # occurrences thereof are not removed. Compare this
  53297. - # with having the same library being listed as a
  53298. - # dependency of multiple other libraries: in this case,
  53299. - # we know (pedantically, we assume) the library does not
  53300. - # need to be listed more than once, so we keep only the
  53301. - # last copy. This is not always right, but it is rare
  53302. - # enough that we require users that really mean to play
  53303. - # such unportable linking tricks to link the library
  53304. - # using -Wl,-lname, so that libtool does not consider it
  53305. - # for duplicate removal.
  53306. - case " $specialdeplibs " in
  53307. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  53308. - *)
  53309. - case " $new_libs " in
  53310. - *" $deplib "*) ;;
  53311. - *) new_libs="$deplib $new_libs" ;;
  53312. - esac
  53313. - ;;
  53314. - esac
  53315. - ;;
  53316. - esac
  53317. - done
  53318. - tmp_libs=
  53319. - for deplib in $new_libs; do
  53320. - case $deplib in
  53321. - -L*)
  53322. - case " $tmp_libs " in
  53323. - *" $deplib "*) ;;
  53324. - *) tmp_libs="$tmp_libs $deplib" ;;
  53325. - esac
  53326. - ;;
  53327. - *) tmp_libs="$tmp_libs $deplib" ;;
  53328. - esac
  53329. - done
  53330. - eval $var=\"$tmp_libs\"
  53331. - done # for var
  53332. - fi
  53333. - # Last step: remove runtime libs from dependency_libs (they stay in deplibs)
  53334. - tmp_libs=
  53335. - for i in $dependency_libs ; do
  53336. - case " $predeps $postdeps $compiler_lib_search_path " in
  53337. - *" $i "*)
  53338. - i=""
  53339. - ;;
  53340. - esac
  53341. - if test -n "$i" ; then
  53342. - tmp_libs="$tmp_libs $i"
  53343. +# func_emit_wrapper_part1 [arg=no]
  53344. +#
  53345. +# Emit the first part of a libtool wrapper script on stdout.
  53346. +# For more information, see the description associated with
  53347. +# func_emit_wrapper(), below.
  53348. +func_emit_wrapper_part1 ()
  53349. +{
  53350. + func_emit_wrapper_part1_arg1=no
  53351. + if test -n "$1" ; then
  53352. + func_emit_wrapper_part1_arg1=$1
  53353. fi
  53354. - done
  53355. - dependency_libs=$tmp_libs
  53356. - done # for pass
  53357. - if test "$linkmode" = prog; then
  53358. - dlfiles="$newdlfiles"
  53359. - dlprefiles="$newdlprefiles"
  53360. - fi
  53361. - case $linkmode in
  53362. - oldlib)
  53363. - if test -n "$deplibs"; then
  53364. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  53365. - fi
  53366. + $ECHO "\
  53367. +#! $SHELL
  53368. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53369. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  53370. - fi
  53371. +# $output - temporary wrapper script for $objdir/$outputname
  53372. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  53373. +#
  53374. +# The $output program cannot be directly executed until all the libtool
  53375. +# libraries that it depends on are installed.
  53376. +#
  53377. +# This wrapper script should never be moved out of the build directory.
  53378. +# If it is, it will not operate correctly.
  53379. - if test -n "$rpath"; then
  53380. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  53381. - fi
  53382. +# Sed substitution that helps us do robust quoting. It backslashifies
  53383. +# metacharacters that are still active within double-quoted strings.
  53384. +Xsed='${SED} -e 1s/^X//'
  53385. +sed_quote_subst='$sed_quote_subst'
  53386. - if test -n "$xrpath"; then
  53387. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  53388. - fi
  53389. +# Be Bourne compatible
  53390. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  53391. + emulate sh
  53392. + NULLCMD=:
  53393. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  53394. + # is contrary to our usage. Disable this feature.
  53395. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  53396. + setopt NO_GLOB_SUBST
  53397. +else
  53398. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  53399. +fi
  53400. +BIN_SH=xpg4; export BIN_SH # for Tru64
  53401. +DUALCASE=1; export DUALCASE # for MKS sh
  53402. - if test -n "$vinfo"; then
  53403. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  53404. - fi
  53405. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  53406. +# if CDPATH is set.
  53407. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  53408. - if test -n "$release"; then
  53409. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  53410. - fi
  53411. +relink_command=\"$relink_command\"
  53412. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  53413. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  53414. - fi
  53415. +# This environment variable determines our operation mode.
  53416. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  53417. + # install mode needs the following variables:
  53418. + generated_by_libtool_version='$macro_version'
  53419. + notinst_deplibs='$notinst_deplibs'
  53420. +else
  53421. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  53422. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  53423. + ECHO=\"$qecho\"
  53424. + file=\"\$0\"
  53425. + # Make sure echo works.
  53426. + if test \"X\$1\" = X--no-reexec; then
  53427. + # Discard the --no-reexec flag, and continue.
  53428. + shift
  53429. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  53430. + # Yippee, \$ECHO works!
  53431. + :
  53432. + else
  53433. + # Restart under the correct shell, and then maybe \$ECHO will work.
  53434. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  53435. + fi
  53436. + fi\
  53437. +"
  53438. + $ECHO "\
  53439. - # Now set the variables for building old libraries.
  53440. - build_libtool_libs=no
  53441. - oldlibs="$output"
  53442. - objs="$objs$old_deplibs"
  53443. - ;;
  53444. + # Find the directory that this script lives in.
  53445. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  53446. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  53447. - lib)
  53448. - # Make sure we only generate libraries of the form `libNAME.la'.
  53449. - case $outputname in
  53450. - lib*)
  53451. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  53452. - eval shared_ext=\"$shrext\"
  53453. - eval libname=\"$libname_spec\"
  53454. - ;;
  53455. - *)
  53456. - if test "$module" = no; then
  53457. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  53458. - $echo "$help" 1>&2
  53459. - exit 1
  53460. - fi
  53461. - if test "$need_lib_prefix" != no; then
  53462. - # Add the "lib" prefix for modules if required
  53463. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  53464. - eval shared_ext=\"$shrext\"
  53465. - eval libname=\"$libname_spec\"
  53466. - else
  53467. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  53468. - fi
  53469. - ;;
  53470. + # Follow symbolic links until we get to the real thisdir.
  53471. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  53472. + while test -n \"\$file\"; do
  53473. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  53474. +
  53475. + # If there was a directory component, then change thisdir.
  53476. + if test \"x\$destdir\" != \"x\$file\"; then
  53477. + case \"\$destdir\" in
  53478. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  53479. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  53480. esac
  53481. + fi
  53482. - if test -n "$objs"; then
  53483. - if test "$deplibs_check_method" != pass_all; then
  53484. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  53485. - exit 1
  53486. - else
  53487. - $echo
  53488. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  53489. - $echo "*** objects $objs is not portable!"
  53490. - libobjs="$libobjs $objs"
  53491. - fi
  53492. - fi
  53493. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  53494. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  53495. + done
  53496. +"
  53497. +}
  53498. +# end: func_emit_wrapper_part1
  53499. - if test "$dlself" != no; then
  53500. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  53501. - fi
  53502. +# func_emit_wrapper_part2 [arg=no]
  53503. +#
  53504. +# Emit the second part of a libtool wrapper script on stdout.
  53505. +# For more information, see the description associated with
  53506. +# func_emit_wrapper(), below.
  53507. +func_emit_wrapper_part2 ()
  53508. +{
  53509. + func_emit_wrapper_part2_arg1=no
  53510. + if test -n "$1" ; then
  53511. + func_emit_wrapper_part2_arg1=$1
  53512. + fi
  53513. +
  53514. + $ECHO "\
  53515. +
  53516. + # Usually 'no', except on cygwin/mingw when embedded into
  53517. + # the cwrapper.
  53518. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  53519. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  53520. + # special case for '.'
  53521. + if test \"\$thisdir\" = \".\"; then
  53522. + thisdir=\`pwd\`
  53523. + fi
  53524. + # remove .libs from thisdir
  53525. + case \"\$thisdir\" in
  53526. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  53527. + $objdir ) thisdir=. ;;
  53528. + esac
  53529. + fi
  53530. - set dummy $rpath
  53531. - if test "$#" -gt 2; then
  53532. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  53533. - fi
  53534. - install_libdir="$2"
  53535. + # Try to get the absolute directory name.
  53536. + absdir=\`cd \"\$thisdir\" && pwd\`
  53537. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  53538. +"
  53539. - oldlibs=
  53540. - if test -z "$rpath"; then
  53541. - if test "$build_libtool_libs" = yes; then
  53542. - # Building a libtool convenience library.
  53543. - # Some compilers have problems with a `.al' extension so
  53544. - # convenience libraries should have the same extension an
  53545. - # archive normally would.
  53546. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  53547. - build_libtool_libs=convenience
  53548. - build_old_libs=yes
  53549. - fi
  53550. + if test "$fast_install" = yes; then
  53551. + $ECHO "\
  53552. + program=lt-'$outputname'$exeext
  53553. + progdir=\"\$thisdir/$objdir\"
  53554. - if test -n "$vinfo"; then
  53555. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  53556. - fi
  53557. + if test ! -f \"\$progdir/\$program\" ||
  53558. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  53559. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  53560. - if test -n "$release"; then
  53561. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  53562. - fi
  53563. - else
  53564. + file=\"\$\$-\$program\"
  53565. - # Parse the version information argument.
  53566. - save_ifs="$IFS"; IFS=':'
  53567. - set dummy $vinfo 0 0 0
  53568. - IFS="$save_ifs"
  53569. + if test ! -d \"\$progdir\"; then
  53570. + $MKDIR \"\$progdir\"
  53571. + else
  53572. + $RM \"\$progdir/\$file\"
  53573. + fi"
  53574. +
  53575. + $ECHO "\
  53576. +
  53577. + # relink executable if necessary
  53578. + if test -n \"\$relink_command\"; then
  53579. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  53580. + else
  53581. + $ECHO \"\$relink_command_output\" >&2
  53582. + $RM \"\$progdir/\$file\"
  53583. + exit 1
  53584. + fi
  53585. + fi
  53586. - if test -n "$8"; then
  53587. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  53588. - $echo "$help" 1>&2
  53589. - exit 1
  53590. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  53591. + { $RM \"\$progdir/\$program\";
  53592. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  53593. + $RM \"\$progdir/\$file\"
  53594. + fi"
  53595. + else
  53596. + $ECHO "\
  53597. + program='$outputname'
  53598. + progdir=\"\$thisdir/$objdir\"
  53599. +"
  53600. fi
  53601. - # convert absolute version numbers to libtool ages
  53602. - # this retains compatibility with .la files and attempts
  53603. - # to make the code below a bit more comprehensible
  53604. -
  53605. - case $vinfo_number in
  53606. - yes)
  53607. - number_major="$2"
  53608. - number_minor="$3"
  53609. - number_revision="$4"
  53610. - #
  53611. - # There are really only two kinds -- those that
  53612. - # use the current revision as the major version
  53613. - # and those that subtract age and use age as
  53614. - # a minor version. But, then there is irix
  53615. - # which has an extra 1 added just for fun
  53616. - #
  53617. - case $version_type in
  53618. - darwin|linux|osf|windows)
  53619. - current=`expr $number_major + $number_minor`
  53620. - age="$number_minor"
  53621. - revision="$number_revision"
  53622. - ;;
  53623. - freebsd-aout|freebsd-elf|sunos)
  53624. - current="$number_major"
  53625. - revision="$number_minor"
  53626. - age="0"
  53627. - ;;
  53628. - irix|nonstopux)
  53629. - current=`expr $number_major + $number_minor - 1`
  53630. - age="$number_minor"
  53631. - revision="$number_minor"
  53632. - ;;
  53633. - esac
  53634. - ;;
  53635. - no)
  53636. - current="$2"
  53637. - revision="$3"
  53638. - age="$4"
  53639. - ;;
  53640. - esac
  53641. + $ECHO "\
  53642. - # Check that each of the things are valid numbers.
  53643. - case $current in
  53644. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  53645. - *)
  53646. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  53647. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  53648. - exit 1
  53649. - ;;
  53650. - esac
  53651. + if test -f \"\$progdir/\$program\"; then"
  53652. - case $revision in
  53653. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  53654. - *)
  53655. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  53656. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  53657. - exit 1
  53658. - ;;
  53659. - esac
  53660. + # Export our shlibpath_var if we have one.
  53661. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  53662. + $ECHO "\
  53663. + # Add our own library path to $shlibpath_var
  53664. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  53665. - case $age in
  53666. - 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  53667. - *)
  53668. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  53669. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  53670. - exit 1
  53671. - ;;
  53672. - esac
  53673. + # Some systems cannot cope with colon-terminated $shlibpath_var
  53674. + # The second colon is a workaround for a bug in BeOS R4 sed
  53675. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  53676. - if test "$age" -gt "$current"; then
  53677. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  53678. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  53679. - exit 1
  53680. + export $shlibpath_var
  53681. +"
  53682. fi
  53683. - # Calculate the version variables.
  53684. - major=
  53685. - versuffix=
  53686. - verstring=
  53687. - case $version_type in
  53688. - none) ;;
  53689. + # fixup the dll searchpath if we need to.
  53690. + if test -n "$dllsearchpath"; then
  53691. + $ECHO "\
  53692. + # Add the dll search path components to the executable PATH
  53693. + PATH=$dllsearchpath:\$PATH
  53694. +"
  53695. + fi
  53696. - darwin)
  53697. - # Like Linux, but with the current version available in
  53698. - # verstring for coding it into the library header
  53699. - major=.`expr $current - $age`
  53700. - versuffix="$major.$age.$revision"
  53701. - # Darwin ld doesn't like 0 for these options...
  53702. - minor_current=`expr $current + 1`
  53703. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  53704. + $ECHO "\
  53705. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  53706. + # Run the actual program with our arguments.
  53707. +"
  53708. + case $host in
  53709. + # Backslashes separate directories on plain windows
  53710. + *-*-mingw | *-*-os2* | *-cegcc*)
  53711. + $ECHO "\
  53712. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  53713. +"
  53714. ;;
  53715. - freebsd-aout)
  53716. - major=".$current"
  53717. - versuffix=".$current.$revision";
  53718. + *)
  53719. + $ECHO "\
  53720. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  53721. +"
  53722. ;;
  53723. + esac
  53724. + $ECHO "\
  53725. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  53726. + exit 1
  53727. + fi
  53728. + else
  53729. + # The program doesn't exist.
  53730. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  53731. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  53732. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  53733. + exit 1
  53734. + fi
  53735. +fi\
  53736. +"
  53737. +}
  53738. +# end: func_emit_wrapper_part2
  53739. - freebsd-elf)
  53740. - major=".$current"
  53741. - versuffix=".$current";
  53742. - ;;
  53743. - irix | nonstopux)
  53744. - major=`expr $current - $age + 1`
  53745. +# func_emit_wrapper [arg=no]
  53746. +#
  53747. +# Emit a libtool wrapper script on stdout.
  53748. +# Don't directly open a file because we may want to
  53749. +# incorporate the script contents within a cygwin/mingw
  53750. +# wrapper executable. Must ONLY be called from within
  53751. +# func_mode_link because it depends on a number of variables
  53752. +# set therein.
  53753. +#
  53754. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  53755. +# variable will take. If 'yes', then the emitted script
  53756. +# will assume that the directory in which it is stored is
  53757. +# the $objdir directory. This is a cygwin/mingw-specific
  53758. +# behavior.
  53759. +func_emit_wrapper ()
  53760. +{
  53761. + func_emit_wrapper_arg1=no
  53762. + if test -n "$1" ; then
  53763. + func_emit_wrapper_arg1=$1
  53764. + fi
  53765. - case $version_type in
  53766. - nonstopux) verstring_prefix=nonstopux ;;
  53767. - *) verstring_prefix=sgi ;;
  53768. - esac
  53769. - verstring="$verstring_prefix$major.$revision"
  53770. + # split this up so that func_emit_cwrapperexe_src
  53771. + # can call each part independently.
  53772. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  53773. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  53774. +}
  53775. - # Add in all the interfaces that we are compatible with.
  53776. - loop=$revision
  53777. - while test "$loop" -ne 0; do
  53778. - iface=`expr $revision - $loop`
  53779. - loop=`expr $loop - 1`
  53780. - verstring="$verstring_prefix$major.$iface:$verstring"
  53781. - done
  53782. - # Before this point, $major must not contain `.'.
  53783. - major=.$major
  53784. - versuffix="$major.$revision"
  53785. - ;;
  53786. +# func_to_host_path arg
  53787. +#
  53788. +# Convert paths to host format when used with build tools.
  53789. +# Intended for use with "native" mingw (where libtool itself
  53790. +# is running under the msys shell), or in the following cross-
  53791. +# build environments:
  53792. +# $build $host
  53793. +# mingw (msys) mingw [e.g. native]
  53794. +# cygwin mingw
  53795. +# *nix + wine mingw
  53796. +# where wine is equipped with the `winepath' executable.
  53797. +# In the native mingw case, the (msys) shell automatically
  53798. +# converts paths for any non-msys applications it launches,
  53799. +# but that facility isn't available from inside the cwrapper.
  53800. +# Similar accommodations are necessary for $host mingw and
  53801. +# $build cygwin. Calling this function does no harm for other
  53802. +# $host/$build combinations not listed above.
  53803. +#
  53804. +# ARG is the path (on $build) that should be converted to
  53805. +# the proper representation for $host. The result is stored
  53806. +# in $func_to_host_path_result.
  53807. +func_to_host_path ()
  53808. +{
  53809. + func_to_host_path_result="$1"
  53810. + if test -n "$1" ; then
  53811. + case $host in
  53812. + *mingw* )
  53813. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  53814. + case $build in
  53815. + *mingw* ) # actually, msys
  53816. + # awkward: cmd appends spaces to result
  53817. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  53818. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  53819. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  53820. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  53821. + $SED -e "$lt_sed_naive_backslashify"`
  53822. + ;;
  53823. + *cygwin* )
  53824. + func_to_host_path_tmp1=`cygpath -w "$1"`
  53825. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  53826. + $SED -e "$lt_sed_naive_backslashify"`
  53827. + ;;
  53828. + * )
  53829. + # Unfortunately, winepath does not exit with a non-zero
  53830. + # error code, so we are forced to check the contents of
  53831. + # stdout. On the other hand, if the command is not
  53832. + # found, the shell will set an exit code of 127 and print
  53833. + # *an error message* to stdout. So we must check for both
  53834. + # error code of zero AND non-empty stdout, which explains
  53835. + # the odd construction:
  53836. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  53837. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  53838. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  53839. + $SED -e "$lt_sed_naive_backslashify"`
  53840. + else
  53841. + # Allow warning below.
  53842. + func_to_host_path_result=""
  53843. + fi
  53844. + ;;
  53845. + esac
  53846. + if test -z "$func_to_host_path_result" ; then
  53847. + func_error "Could not determine host path corresponding to"
  53848. + func_error " '$1'"
  53849. + func_error "Continuing, but uninstalled executables may not work."
  53850. + # Fallback:
  53851. + func_to_host_path_result="$1"
  53852. + fi
  53853. + ;;
  53854. + esac
  53855. + fi
  53856. +}
  53857. +# end: func_to_host_path
  53858. - linux)
  53859. - major=.`expr $current - $age`
  53860. - versuffix="$major.$age.$revision"
  53861. - ;;
  53862. +# func_to_host_pathlist arg
  53863. +#
  53864. +# Convert pathlists to host format when used with build tools.
  53865. +# See func_to_host_path(), above. This function supports the
  53866. +# following $build/$host combinations (but does no harm for
  53867. +# combinations not listed here):
  53868. +# $build $host
  53869. +# mingw (msys) mingw [e.g. native]
  53870. +# cygwin mingw
  53871. +# *nix + wine mingw
  53872. +#
  53873. +# Path separators are also converted from $build format to
  53874. +# $host format. If ARG begins or ends with a path separator
  53875. +# character, it is preserved (but converted to $host format)
  53876. +# on output.
  53877. +#
  53878. +# ARG is a pathlist (on $build) that should be converted to
  53879. +# the proper representation on $host. The result is stored
  53880. +# in $func_to_host_pathlist_result.
  53881. +func_to_host_pathlist ()
  53882. +{
  53883. + func_to_host_pathlist_result="$1"
  53884. + if test -n "$1" ; then
  53885. + case $host in
  53886. + *mingw* )
  53887. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  53888. + # Remove leading and trailing path separator characters from
  53889. + # ARG. msys behavior is inconsistent here, cygpath turns them
  53890. + # into '.;' and ';.', and winepath ignores them completely.
  53891. + func_to_host_pathlist_tmp2="$1"
  53892. + # Once set for this call, this variable should not be
  53893. + # reassigned. It is used in tha fallback case.
  53894. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  53895. + $SED -e 's|^:*||' -e 's|:*$||'`
  53896. + case $build in
  53897. + *mingw* ) # Actually, msys.
  53898. + # Awkward: cmd appends spaces to result.
  53899. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  53900. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  53901. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  53902. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  53903. + $SED -e "$lt_sed_naive_backslashify"`
  53904. + ;;
  53905. + *cygwin* )
  53906. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  53907. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  53908. + $SED -e "$lt_sed_naive_backslashify"`
  53909. + ;;
  53910. + * )
  53911. + # unfortunately, winepath doesn't convert pathlists
  53912. + func_to_host_pathlist_result=""
  53913. + func_to_host_pathlist_oldIFS=$IFS
  53914. + IFS=:
  53915. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  53916. + IFS=$func_to_host_pathlist_oldIFS
  53917. + if test -n "$func_to_host_pathlist_f" ; then
  53918. + func_to_host_path "$func_to_host_pathlist_f"
  53919. + if test -n "$func_to_host_path_result" ; then
  53920. + if test -z "$func_to_host_pathlist_result" ; then
  53921. + func_to_host_pathlist_result="$func_to_host_path_result"
  53922. + else
  53923. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  53924. + fi
  53925. + fi
  53926. + fi
  53927. + IFS=:
  53928. + done
  53929. + IFS=$func_to_host_pathlist_oldIFS
  53930. + ;;
  53931. + esac
  53932. + if test -z "$func_to_host_pathlist_result" ; then
  53933. + func_error "Could not determine the host path(s) corresponding to"
  53934. + func_error " '$1'"
  53935. + func_error "Continuing, but uninstalled executables may not work."
  53936. + # Fallback. This may break if $1 contains DOS-style drive
  53937. + # specifications. The fix is not to complicate the expression
  53938. + # below, but for the user to provide a working wine installation
  53939. + # with winepath so that path translation in the cross-to-mingw
  53940. + # case works properly.
  53941. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  53942. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  53943. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  53944. + fi
  53945. + # Now, add the leading and trailing path separators back
  53946. + case "$1" in
  53947. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  53948. + ;;
  53949. + esac
  53950. + case "$1" in
  53951. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  53952. + ;;
  53953. + esac
  53954. + ;;
  53955. + esac
  53956. + fi
  53957. +}
  53958. +# end: func_to_host_pathlist
  53959. - osf)
  53960. - major=.`expr $current - $age`
  53961. - versuffix=".$current.$age.$revision"
  53962. - verstring="$current.$age.$revision"
  53963. +# func_emit_cwrapperexe_src
  53964. +# emit the source code for a wrapper executable on stdout
  53965. +# Must ONLY be called from within func_mode_link because
  53966. +# it depends on a number of variable set therein.
  53967. +func_emit_cwrapperexe_src ()
  53968. +{
  53969. + cat <<EOF
  53970. - # Add in all the interfaces that we are compatible with.
  53971. - loop=$age
  53972. - while test "$loop" -ne 0; do
  53973. - iface=`expr $current - $loop`
  53974. - loop=`expr $loop - 1`
  53975. - verstring="$verstring:${iface}.0"
  53976. - done
  53977. +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  53978. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  53979. - # Make executables depend on our current version.
  53980. - verstring="$verstring:${current}.0"
  53981. - ;;
  53982. + The $output program cannot be directly executed until all the libtool
  53983. + libraries that it depends on are installed.
  53984. - sunos)
  53985. - major=".$current"
  53986. - versuffix=".$current.$revision"
  53987. - ;;
  53988. + This wrapper executable should never be moved out of the build directory.
  53989. + If it is, it will not operate correctly.
  53990. - windows)
  53991. - # Use '-' rather than '.', since we only want one
  53992. - # extension on DOS 8.3 filesystems.
  53993. - major=`expr $current - $age`
  53994. - versuffix="-$major"
  53995. - ;;
  53996. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  53997. + but could eventually absorb all of the scripts functionality and
  53998. + exec $objdir/$outputname directly.
  53999. +*/
  54000. +EOF
  54001. + cat <<"EOF"
  54002. +#include <stdio.h>
  54003. +#include <stdlib.h>
  54004. +#ifdef _MSC_VER
  54005. +# include <direct.h>
  54006. +# include <process.h>
  54007. +# include <io.h>
  54008. +# define setmode _setmode
  54009. +#else
  54010. +# include <unistd.h>
  54011. +# include <stdint.h>
  54012. +# ifdef __CYGWIN__
  54013. +# include <io.h>
  54014. +# define HAVE_SETENV
  54015. +# ifdef __STRICT_ANSI__
  54016. +char *realpath (const char *, char *);
  54017. +int putenv (char *);
  54018. +int setenv (const char *, const char *, int);
  54019. +# endif
  54020. +# endif
  54021. +#endif
  54022. +#include <malloc.h>
  54023. +#include <stdarg.h>
  54024. +#include <assert.h>
  54025. +#include <string.h>
  54026. +#include <ctype.h>
  54027. +#include <errno.h>
  54028. +#include <fcntl.h>
  54029. +#include <sys/stat.h>
  54030. - *)
  54031. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  54032. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  54033. - exit 1
  54034. - ;;
  54035. - esac
  54036. +#if defined(PATH_MAX)
  54037. +# define LT_PATHMAX PATH_MAX
  54038. +#elif defined(MAXPATHLEN)
  54039. +# define LT_PATHMAX MAXPATHLEN
  54040. +#else
  54041. +# define LT_PATHMAX 1024
  54042. +#endif
  54043. - # Clear the version info if we defaulted, and they specified a release.
  54044. - if test -z "$vinfo" && test -n "$release"; then
  54045. - major=
  54046. - case $version_type in
  54047. - darwin)
  54048. - # we can't check for "0.0" in archive_cmds due to quoting
  54049. - # problems, so we reset it completely
  54050. - verstring=
  54051. - ;;
  54052. - *)
  54053. - verstring="0.0"
  54054. - ;;
  54055. - esac
  54056. - if test "$need_version" = no; then
  54057. - versuffix=
  54058. - else
  54059. - versuffix=".0.0"
  54060. - fi
  54061. - fi
  54062. +#ifndef S_IXOTH
  54063. +# define S_IXOTH 0
  54064. +#endif
  54065. +#ifndef S_IXGRP
  54066. +# define S_IXGRP 0
  54067. +#endif
  54068. - # Remove version info from name if versioning should be avoided
  54069. - if test "$avoid_version" = yes && test "$need_version" = no; then
  54070. - major=
  54071. - versuffix=
  54072. - verstring=""
  54073. - fi
  54074. +#ifdef _MSC_VER
  54075. +# define S_IXUSR _S_IEXEC
  54076. +# define stat _stat
  54077. +# ifndef _INTPTR_T_DEFINED
  54078. +# define intptr_t int
  54079. +# endif
  54080. +#endif
  54081. - # Check to see if the archive will have undefined symbols.
  54082. - if test "$allow_undefined" = yes; then
  54083. - if test "$allow_undefined_flag" = unsupported; then
  54084. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  54085. - build_libtool_libs=no
  54086. - build_old_libs=yes
  54087. - fi
  54088. - else
  54089. - # Don't allow undefined symbols.
  54090. - allow_undefined_flag="$no_undefined_flag"
  54091. - fi
  54092. - fi
  54093. +#ifndef DIR_SEPARATOR
  54094. +# define DIR_SEPARATOR '/'
  54095. +# define PATH_SEPARATOR ':'
  54096. +#endif
  54097. - if test "$mode" != relink; then
  54098. - # Remove our outputs, but don't remove object files since they
  54099. - # may have been created when compiling PIC objects.
  54100. - removelist=
  54101. - tempremovelist=`$echo "$output_objdir/*"`
  54102. - for p in $tempremovelist; do
  54103. - case $p in
  54104. - *.$objext)
  54105. - ;;
  54106. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  54107. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  54108. - then
  54109. - continue
  54110. - fi
  54111. - removelist="$removelist $p"
  54112. - ;;
  54113. - *) ;;
  54114. - esac
  54115. - done
  54116. - if test -n "$removelist"; then
  54117. - $show "${rm}r $removelist"
  54118. - $run ${rm}r $removelist
  54119. - fi
  54120. - fi
  54121. +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  54122. + defined (__OS2__)
  54123. +# define HAVE_DOS_BASED_FILE_SYSTEM
  54124. +# define FOPEN_WB "wb"
  54125. +# ifndef DIR_SEPARATOR_2
  54126. +# define DIR_SEPARATOR_2 '\\'
  54127. +# endif
  54128. +# ifndef PATH_SEPARATOR_2
  54129. +# define PATH_SEPARATOR_2 ';'
  54130. +# endif
  54131. +#endif
  54132. - # Now set the variables for building old libraries.
  54133. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  54134. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  54135. +#ifndef DIR_SEPARATOR_2
  54136. +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  54137. +#else /* DIR_SEPARATOR_2 */
  54138. +# define IS_DIR_SEPARATOR(ch) \
  54139. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  54140. +#endif /* DIR_SEPARATOR_2 */
  54141. - # Transform .lo files to .o files.
  54142. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  54143. - fi
  54144. +#ifndef PATH_SEPARATOR_2
  54145. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  54146. +#else /* PATH_SEPARATOR_2 */
  54147. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  54148. +#endif /* PATH_SEPARATOR_2 */
  54149. - # Eliminate all temporary directories.
  54150. - for path in $notinst_path; do
  54151. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  54152. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  54153. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  54154. - done
  54155. +#ifdef __CYGWIN__
  54156. +# define FOPEN_WB "wb"
  54157. +#endif
  54158. - if test -n "$xrpath"; then
  54159. - # If the user specified any rpath flags, then add them.
  54160. - temp_xrpath=
  54161. - for libdir in $xrpath; do
  54162. - temp_xrpath="$temp_xrpath -R$libdir"
  54163. - case "$finalize_rpath " in
  54164. - *" $libdir "*) ;;
  54165. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  54166. - esac
  54167. - done
  54168. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  54169. - dependency_libs="$temp_xrpath $dependency_libs"
  54170. - fi
  54171. - fi
  54172. +#ifndef FOPEN_WB
  54173. +# define FOPEN_WB "w"
  54174. +#endif
  54175. +#ifndef _O_BINARY
  54176. +# define _O_BINARY 0
  54177. +#endif
  54178. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  54179. - old_dlfiles="$dlfiles"
  54180. - dlfiles=
  54181. - for lib in $old_dlfiles; do
  54182. - case " $dlprefiles $dlfiles " in
  54183. - *" $lib "*) ;;
  54184. - *) dlfiles="$dlfiles $lib" ;;
  54185. - esac
  54186. - done
  54187. +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  54188. +#define XFREE(stale) do { \
  54189. + if (stale) { free ((void *) stale); stale = 0; } \
  54190. +} while (0)
  54191. - # Make sure dlprefiles contains only unique files
  54192. - old_dlprefiles="$dlprefiles"
  54193. - dlprefiles=
  54194. - for lib in $old_dlprefiles; do
  54195. - case "$dlprefiles " in
  54196. - *" $lib "*) ;;
  54197. - *) dlprefiles="$dlprefiles $lib" ;;
  54198. - esac
  54199. - done
  54200. +#undef LTWRAPPER_DEBUGPRINTF
  54201. +#if defined DEBUGWRAPPER
  54202. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  54203. +static void
  54204. +ltwrapper_debugprintf (const char *fmt, ...)
  54205. +{
  54206. + va_list args;
  54207. + va_start (args, fmt);
  54208. + (void) vfprintf (stderr, fmt, args);
  54209. + va_end (args);
  54210. +}
  54211. +#else
  54212. +# define LTWRAPPER_DEBUGPRINTF(args)
  54213. +#endif
  54214. - if test "$build_libtool_libs" = yes; then
  54215. - if test -n "$rpath"; then
  54216. - case $host in
  54217. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  54218. - # these systems don't actually have a c library (as such)!
  54219. - ;;
  54220. - *-*-rhapsody* | *-*-darwin1.[012])
  54221. - # Rhapsody C library is in the System framework
  54222. - deplibs="$deplibs -framework System"
  54223. - ;;
  54224. - *-*-netbsd*)
  54225. - # Don't link with libc until the a.out ld.so is fixed.
  54226. - ;;
  54227. - *-*-openbsd* | *-*-freebsd*)
  54228. - # Do not include libc due to us having libc/libc_r.
  54229. - test "X$arg" = "X-lc" && continue
  54230. - ;;
  54231. - *)
  54232. - # Add libc to deplibs on all other systems if necessary.
  54233. - if test "$build_libtool_need_lc" = "yes"; then
  54234. - deplibs="$deplibs -lc"
  54235. - fi
  54236. - ;;
  54237. - esac
  54238. - fi
  54239. +const char *program_name = NULL;
  54240. - # Transform deplibs into only deplibs that can be linked in shared.
  54241. - name_save=$name
  54242. - libname_save=$libname
  54243. - release_save=$release
  54244. - versuffix_save=$versuffix
  54245. - major_save=$major
  54246. - # I'm not sure if I'm treating the release correctly. I think
  54247. - # release should show up in the -l (ie -lgmp5) so we don't want to
  54248. - # add it in twice. Is that correct?
  54249. - release=""
  54250. - versuffix=""
  54251. - major=""
  54252. - newdeplibs=
  54253. - droppeddeps=no
  54254. - case $deplibs_check_method in
  54255. - pass_all)
  54256. - # Don't check for shared/static. Everything works.
  54257. - # This might be a little naive. We might want to check
  54258. - # whether the library exists or not. But this is on
  54259. - # osf3 & osf4 and I'm not really sure... Just
  54260. - # implementing what was already the behavior.
  54261. - newdeplibs=$deplibs
  54262. - ;;
  54263. - test_compile)
  54264. - # This code stresses the "libraries are programs" paradigm to its
  54265. - # limits. Maybe even breaks it. We compile a program, linking it
  54266. - # against the deplibs as a proxy for the library. Then we can check
  54267. - # whether they linked in statically or dynamically with ldd.
  54268. - $rm conftest.c
  54269. - cat > conftest.c <<EOF
  54270. - int main() { return 0; }
  54271. +void *xmalloc (size_t num);
  54272. +char *xstrdup (const char *string);
  54273. +const char *base_name (const char *name);
  54274. +char *find_executable (const char *wrapper);
  54275. +char *chase_symlinks (const char *pathspec);
  54276. +int make_executable (const char *path);
  54277. +int check_executable (const char *path);
  54278. +char *strendzap (char *str, const char *pat);
  54279. +void lt_fatal (const char *message, ...);
  54280. +void lt_setenv (const char *name, const char *value);
  54281. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  54282. +void lt_opt_process_env_set (const char *arg);
  54283. +void lt_opt_process_env_prepend (const char *arg);
  54284. +void lt_opt_process_env_append (const char *arg);
  54285. +int lt_split_name_value (const char *arg, char** name, char** value);
  54286. +void lt_update_exe_path (const char *name, const char *value);
  54287. +void lt_update_lib_path (const char *name, const char *value);
  54288. +
  54289. +static const char *script_text_part1 =
  54290. +EOF
  54291. +
  54292. + func_emit_wrapper_part1 yes |
  54293. + $SED -e 's/\([\\"]\)/\\\1/g' \
  54294. + -e 's/^/ "/' -e 's/$/\\n"/'
  54295. + echo ";"
  54296. + cat <<EOF
  54297. +
  54298. +static const char *script_text_part2 =
  54299. +EOF
  54300. + func_emit_wrapper_part2 yes |
  54301. + $SED -e 's/\([\\"]\)/\\\1/g' \
  54302. + -e 's/^/ "/' -e 's/$/\\n"/'
  54303. + echo ";"
  54304. +
  54305. + cat <<EOF
  54306. +const char * MAGIC_EXE = "$magic_exe";
  54307. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  54308. +EOF
  54309. +
  54310. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  54311. + func_to_host_pathlist "$temp_rpath"
  54312. + cat <<EOF
  54313. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  54314. EOF
  54315. - $rm conftest
  54316. - $LTCC -o conftest conftest.c $deplibs
  54317. - if test "$?" -eq 0 ; then
  54318. - ldd_output=`ldd conftest`
  54319. - for i in $deplibs; do
  54320. - name="`expr $i : '-l\(.*\)'`"
  54321. - # If $name is empty we are operating on a -L argument.
  54322. - if test "$name" != "" && test "$name" -ne "0"; then
  54323. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54324. - case " $predeps $postdeps " in
  54325. - *" $i "*)
  54326. - newdeplibs="$newdeplibs $i"
  54327. - i=""
  54328. - ;;
  54329. - esac
  54330. - fi
  54331. - if test -n "$i" ; then
  54332. - libname=`eval \\$echo \"$libname_spec\"`
  54333. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  54334. - set dummy $deplib_matches
  54335. - deplib_match=$2
  54336. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  54337. - newdeplibs="$newdeplibs $i"
  54338. - else
  54339. - droppeddeps=yes
  54340. - $echo
  54341. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  54342. - $echo "*** I have the capability to make that library automatically link in when"
  54343. - $echo "*** you link to this library. But I can only do this if you have a"
  54344. - $echo "*** shared version of the library, which I believe you do not have"
  54345. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  54346. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  54347. - fi
  54348. - fi
  54349. - else
  54350. - newdeplibs="$newdeplibs $i"
  54351. - fi
  54352. - done
  54353. - else
  54354. - # Error occurred in the first compile. Let's try to salvage
  54355. - # the situation: Compile a separate program for each library.
  54356. - for i in $deplibs; do
  54357. - name="`expr $i : '-l\(.*\)'`"
  54358. - # If $name is empty we are operating on a -L argument.
  54359. - if test "$name" != "" && test "$name" != "0"; then
  54360. - $rm conftest
  54361. - $LTCC -o conftest conftest.c $i
  54362. - # Did it work?
  54363. - if test "$?" -eq 0 ; then
  54364. - ldd_output=`ldd conftest`
  54365. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54366. - case " $predeps $postdeps " in
  54367. - *" $i "*)
  54368. - newdeplibs="$newdeplibs $i"
  54369. - i=""
  54370. - ;;
  54371. - esac
  54372. - fi
  54373. - if test -n "$i" ; then
  54374. - libname=`eval \\$echo \"$libname_spec\"`
  54375. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  54376. - set dummy $deplib_matches
  54377. - deplib_match=$2
  54378. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  54379. - newdeplibs="$newdeplibs $i"
  54380. - else
  54381. - droppeddeps=yes
  54382. - $echo
  54383. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  54384. - $echo "*** I have the capability to make that library automatically link in when"
  54385. - $echo "*** you link to this library. But I can only do this if you have a"
  54386. - $echo "*** shared version of the library, which you do not appear to have"
  54387. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  54388. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  54389. - fi
  54390. - fi
  54391. - else
  54392. - droppeddeps=yes
  54393. - $echo
  54394. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  54395. - $echo "*** make it link in! You will probably need to install it or some"
  54396. - $echo "*** library that it depends on before this library will be fully"
  54397. - $echo "*** functional. Installing it before continuing would be even better."
  54398. - fi
  54399. - else
  54400. - newdeplibs="$newdeplibs $i"
  54401. - fi
  54402. - done
  54403. - fi
  54404. - ;;
  54405. - file_magic*)
  54406. - set dummy $deplibs_check_method
  54407. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  54408. - for a_deplib in $deplibs; do
  54409. - name="`expr $a_deplib : '-l\(.*\)'`"
  54410. - # If $name is empty we are operating on a -L argument.
  54411. - if test "$name" != "" && test "$name" != "0"; then
  54412. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54413. - case " $predeps $postdeps " in
  54414. - *" $a_deplib "*)
  54415. - newdeplibs="$newdeplibs $a_deplib"
  54416. - a_deplib=""
  54417. - ;;
  54418. - esac
  54419. - fi
  54420. - if test -n "$a_deplib" ; then
  54421. - libname=`eval \\$echo \"$libname_spec\"`
  54422. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  54423. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  54424. - for potent_lib in $potential_libs; do
  54425. - # Follow soft links.
  54426. - if ls -lLd "$potent_lib" 2>/dev/null \
  54427. - | grep " -> " >/dev/null; then
  54428. - continue
  54429. - fi
  54430. - # The statement above tries to avoid entering an
  54431. - # endless loop below, in case of cyclic links.
  54432. - # We might still enter an endless loop, since a link
  54433. - # loop can be closed while we follow links,
  54434. - # but so what?
  54435. - potlib="$potent_lib"
  54436. - while test -h "$potlib" 2>/dev/null; do
  54437. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  54438. - case $potliblink in
  54439. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  54440. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  54441. - esac
  54442. - done
  54443. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  54444. - | ${SED} 10q \
  54445. - | $EGREP "$file_magic_regex" > /dev/null; then
  54446. - newdeplibs="$newdeplibs $a_deplib"
  54447. - a_deplib=""
  54448. - break 2
  54449. - fi
  54450. - done
  54451. - done
  54452. - fi
  54453. - if test -n "$a_deplib" ; then
  54454. - droppeddeps=yes
  54455. - $echo
  54456. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  54457. - $echo "*** I have the capability to make that library automatically link in when"
  54458. - $echo "*** you link to this library. But I can only do this if you have a"
  54459. - $echo "*** shared version of the library, which you do not appear to have"
  54460. - $echo "*** because I did check the linker path looking for a file starting"
  54461. - if test -z "$potlib" ; then
  54462. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  54463. - else
  54464. - $echo "*** with $libname and none of the candidates passed a file format test"
  54465. - $echo "*** using a file magic. Last file checked: $potlib"
  54466. - fi
  54467. - fi
  54468. else
  54469. - # Add a -L argument.
  54470. - newdeplibs="$newdeplibs $a_deplib"
  54471. + cat <<"EOF"
  54472. +const char * LIB_PATH_VALUE = "";
  54473. +EOF
  54474. fi
  54475. - done # Gone through all deplibs.
  54476. - ;;
  54477. - match_pattern*)
  54478. - set dummy $deplibs_check_method
  54479. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  54480. - for a_deplib in $deplibs; do
  54481. - name="`expr $a_deplib : '-l\(.*\)'`"
  54482. - # If $name is empty we are operating on a -L argument.
  54483. - if test -n "$name" && test "$name" != "0"; then
  54484. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54485. - case " $predeps $postdeps " in
  54486. - *" $a_deplib "*)
  54487. - newdeplibs="$newdeplibs $a_deplib"
  54488. - a_deplib=""
  54489. - ;;
  54490. - esac
  54491. - fi
  54492. - if test -n "$a_deplib" ; then
  54493. - libname=`eval \\$echo \"$libname_spec\"`
  54494. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  54495. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  54496. - for potent_lib in $potential_libs; do
  54497. - potlib="$potent_lib" # see symlink-check above in file_magic test
  54498. - if eval $echo \"$potent_lib\" 2>/dev/null \
  54499. - | ${SED} 10q \
  54500. - | $EGREP "$match_pattern_regex" > /dev/null; then
  54501. - newdeplibs="$newdeplibs $a_deplib"
  54502. - a_deplib=""
  54503. - break 2
  54504. - fi
  54505. - done
  54506. - done
  54507. - fi
  54508. - if test -n "$a_deplib" ; then
  54509. - droppeddeps=yes
  54510. - $echo
  54511. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  54512. - $echo "*** I have the capability to make that library automatically link in when"
  54513. - $echo "*** you link to this library. But I can only do this if you have a"
  54514. - $echo "*** shared version of the library, which you do not appear to have"
  54515. - $echo "*** because I did check the linker path looking for a file starting"
  54516. - if test -z "$potlib" ; then
  54517. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  54518. - else
  54519. - $echo "*** with $libname and none of the candidates passed a file format test"
  54520. - $echo "*** using a regex pattern. Last file checked: $potlib"
  54521. - fi
  54522. - fi
  54523. +
  54524. + if test -n "$dllsearchpath"; then
  54525. + func_to_host_pathlist "$dllsearchpath:"
  54526. + cat <<EOF
  54527. +const char * EXE_PATH_VARNAME = "PATH";
  54528. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  54529. +EOF
  54530. else
  54531. - # Add a -L argument.
  54532. - newdeplibs="$newdeplibs $a_deplib"
  54533. + cat <<"EOF"
  54534. +const char * EXE_PATH_VARNAME = "";
  54535. +const char * EXE_PATH_VALUE = "";
  54536. +EOF
  54537. fi
  54538. - done # Gone through all deplibs.
  54539. - ;;
  54540. - none | unknown | *)
  54541. - newdeplibs=""
  54542. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  54543. - -e 's/ -[LR][^ ]*//g'`
  54544. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  54545. - for i in $predeps $postdeps ; do
  54546. - # can't use Xsed below, because $i might contain '/'
  54547. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  54548. - done
  54549. - fi
  54550. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  54551. - | grep . >/dev/null; then
  54552. - $echo
  54553. - if test "X$deplibs_check_method" = "Xnone"; then
  54554. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  54555. +
  54556. + if test "$fast_install" = yes; then
  54557. + cat <<EOF
  54558. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  54559. +EOF
  54560. else
  54561. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  54562. + cat <<EOF
  54563. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  54564. +EOF
  54565. fi
  54566. - $echo "*** All declared inter-library dependencies are being dropped."
  54567. - droppeddeps=yes
  54568. - fi
  54569. - ;;
  54570. - esac
  54571. - versuffix=$versuffix_save
  54572. - major=$major_save
  54573. - release=$release_save
  54574. - libname=$libname_save
  54575. - name=$name_save
  54576. - case $host in
  54577. - *-*-rhapsody* | *-*-darwin1.[012])
  54578. - # On Rhapsody replace the C library is the System framework
  54579. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54580. - ;;
  54581. - esac
  54582. - if test "$droppeddeps" = yes; then
  54583. - if test "$module" = yes; then
  54584. - $echo
  54585. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  54586. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  54587. - $echo "*** a static module, that should work as long as the dlopening"
  54588. - $echo "*** application is linked with the -dlopen flag."
  54589. - if test -z "$global_symbol_pipe"; then
  54590. - $echo
  54591. - $echo "*** However, this would only work if libtool was able to extract symbol"
  54592. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  54593. - $echo "*** not find such a program. So, this module is probably useless."
  54594. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  54595. - fi
  54596. - if test "$build_old_libs" = no; then
  54597. - oldlibs="$output_objdir/$libname.$libext"
  54598. - build_libtool_libs=module
  54599. - build_old_libs=yes
  54600. - else
  54601. - build_libtool_libs=no
  54602. - fi
  54603. - else
  54604. - $echo "*** The inter-library dependencies that have been dropped here will be"
  54605. - $echo "*** automatically added whenever a program is linked with this library"
  54606. - $echo "*** or is declared to -dlopen it."
  54607. + cat <<"EOF"
  54608. - if test "$allow_undefined" = no; then
  54609. - $echo
  54610. - $echo "*** Since this library must not contain undefined symbols,"
  54611. - $echo "*** because either the platform does not support them or"
  54612. - $echo "*** it was explicitly requested with -no-undefined,"
  54613. - $echo "*** libtool will only create a static version of it."
  54614. - if test "$build_old_libs" = no; then
  54615. - oldlibs="$output_objdir/$libname.$libext"
  54616. - build_libtool_libs=module
  54617. - build_old_libs=yes
  54618. - else
  54619. - build_libtool_libs=no
  54620. - fi
  54621. - fi
  54622. - fi
  54623. - fi
  54624. - # Done checking deplibs!
  54625. - deplibs=$newdeplibs
  54626. - fi
  54627. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  54628. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  54629. - # All the library-specific variables (install_libdir is set above).
  54630. - library_names=
  54631. - old_library=
  54632. - dlname=
  54633. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  54634. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  54635. - # Test again, we may have decided not to build it any more
  54636. - if test "$build_libtool_libs" = yes; then
  54637. - if test "$hardcode_into_libs" = yes; then
  54638. - # Hardcode the library paths
  54639. - hardcode_libdirs=
  54640. - dep_rpath=
  54641. - rpath="$finalize_rpath"
  54642. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  54643. - for libdir in $rpath; do
  54644. - if test -n "$hardcode_libdir_flag_spec"; then
  54645. - if test -n "$hardcode_libdir_separator"; then
  54646. - if test -z "$hardcode_libdirs"; then
  54647. - hardcode_libdirs="$libdir"
  54648. - else
  54649. - # Just accumulate the unique libdirs.
  54650. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54651. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54652. - ;;
  54653. - *)
  54654. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54655. - ;;
  54656. - esac
  54657. - fi
  54658. - else
  54659. - eval flag=\"$hardcode_libdir_flag_spec\"
  54660. - dep_rpath="$dep_rpath $flag"
  54661. - fi
  54662. - elif test -n "$runpath_var"; then
  54663. - case "$perm_rpath " in
  54664. - *" $libdir "*) ;;
  54665. - *) perm_rpath="$perm_rpath $libdir" ;;
  54666. - esac
  54667. - fi
  54668. - done
  54669. - # Substitute the hardcoded libdirs into the rpath.
  54670. - if test -n "$hardcode_libdir_separator" &&
  54671. - test -n "$hardcode_libdirs"; then
  54672. - libdir="$hardcode_libdirs"
  54673. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  54674. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  54675. - else
  54676. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  54677. - fi
  54678. - fi
  54679. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  54680. - # We should set the runpath_var.
  54681. - rpath=
  54682. - for dir in $perm_rpath; do
  54683. - rpath="$rpath$dir:"
  54684. - done
  54685. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  54686. - fi
  54687. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  54688. - fi
  54689. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  54690. - shlibpath="$finalize_shlibpath"
  54691. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  54692. - if test -n "$shlibpath"; then
  54693. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  54694. - fi
  54695. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  54696. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  54697. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  54698. - # Get the real and link names of the library.
  54699. - eval shared_ext=\"$shrext\"
  54700. - eval library_names=\"$library_names_spec\"
  54701. - set dummy $library_names
  54702. - realname="$2"
  54703. - shift; shift
  54704. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  54705. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  54706. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  54707. - if test -n "$soname_spec"; then
  54708. - eval soname=\"$soname_spec\"
  54709. - else
  54710. - soname="$realname"
  54711. - fi
  54712. - if test -z "$dlname"; then
  54713. - dlname=$soname
  54714. - fi
  54715. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  54716. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  54717. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  54718. - lib="$output_objdir/$realname"
  54719. - for link
  54720. - do
  54721. - linknames="$linknames $link"
  54722. - done
  54723. +int
  54724. +main (int argc, char *argv[])
  54725. +{
  54726. + char **newargz;
  54727. + int newargc;
  54728. + char *tmp_pathspec;
  54729. + char *actual_cwrapper_path;
  54730. + char *actual_cwrapper_name;
  54731. + char *target_name;
  54732. + char *lt_argv_zero;
  54733. + intptr_t rval = 127;
  54734. - # Use standard objects if they are pic
  54735. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54736. + int i;
  54737. - # Prepare the list of exported symbols
  54738. - if test -z "$export_symbols"; then
  54739. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  54740. - $show "generating symbol list for \`$libname.la'"
  54741. - export_symbols="$output_objdir/$libname.exp"
  54742. - $run $rm $export_symbols
  54743. - cmds=$export_symbols_cmds
  54744. - save_ifs="$IFS"; IFS='~'
  54745. - for cmd in $cmds; do
  54746. - IFS="$save_ifs"
  54747. - eval cmd=\"$cmd\"
  54748. - if len=`expr "X$cmd" : ".*"` &&
  54749. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  54750. - $show "$cmd"
  54751. - $run eval "$cmd" || exit $?
  54752. - skipped_export=false
  54753. - else
  54754. - # The command line is too long to execute in one step.
  54755. - $show "using reloadable object file for export list..."
  54756. - skipped_export=:
  54757. - fi
  54758. - done
  54759. - IFS="$save_ifs"
  54760. - if test -n "$export_symbols_regex"; then
  54761. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  54762. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  54763. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  54764. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  54765. - fi
  54766. - fi
  54767. - fi
  54768. + program_name = (char *) xstrdup (base_name (argv[0]));
  54769. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  54770. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  54771. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  54772. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  54773. - fi
  54774. + /* very simple arg parsing; don't want to rely on getopt */
  54775. + for (i = 1; i < argc; i++)
  54776. + {
  54777. + if (strcmp (argv[i], dumpscript_opt) == 0)
  54778. + {
  54779. +EOF
  54780. + case "$host" in
  54781. + *mingw* | *cygwin* )
  54782. + # make stdout use "unix" line endings
  54783. + echo " setmode(1,_O_BINARY);"
  54784. + ;;
  54785. + esac
  54786. - tmp_deplibs=
  54787. - for test_deplib in $deplibs; do
  54788. - case " $convenience " in
  54789. - *" $test_deplib "*) ;;
  54790. - *)
  54791. - tmp_deplibs="$tmp_deplibs $test_deplib"
  54792. - ;;
  54793. - esac
  54794. - done
  54795. - deplibs="$tmp_deplibs"
  54796. + cat <<"EOF"
  54797. + printf ("%s", script_text_part1);
  54798. + printf ("%s", script_text_part2);
  54799. + return 0;
  54800. + }
  54801. + }
  54802. +
  54803. + newargz = XMALLOC (char *, argc + 1);
  54804. + tmp_pathspec = find_executable (argv[0]);
  54805. + if (tmp_pathspec == NULL)
  54806. + lt_fatal ("Couldn't find %s", argv[0]);
  54807. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  54808. + tmp_pathspec));
  54809. +
  54810. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  54811. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  54812. + actual_cwrapper_path));
  54813. + XFREE (tmp_pathspec);
  54814. +
  54815. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  54816. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  54817. +
  54818. + /* wrapper name transforms */
  54819. + strendzap (actual_cwrapper_name, ".exe");
  54820. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  54821. + XFREE (actual_cwrapper_name);
  54822. + actual_cwrapper_name = tmp_pathspec;
  54823. + tmp_pathspec = 0;
  54824. +
  54825. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  54826. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  54827. + strendzap (target_name, ".exe");
  54828. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  54829. + XFREE (target_name);
  54830. + target_name = tmp_pathspec;
  54831. + tmp_pathspec = 0;
  54832. - if test -n "$convenience"; then
  54833. - if test -n "$whole_archive_flag_spec"; then
  54834. - save_libobjs=$libobjs
  54835. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  54836. - else
  54837. - gentop="$output_objdir/${outputname}x"
  54838. - $show "${rm}r $gentop"
  54839. - $run ${rm}r "$gentop"
  54840. - $show "$mkdir $gentop"
  54841. - $run $mkdir "$gentop"
  54842. - status=$?
  54843. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  54844. - exit $status
  54845. - fi
  54846. - generated="$generated $gentop"
  54847. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  54848. + target_name));
  54849. +EOF
  54850. - for xlib in $convenience; do
  54851. - # Extract the objects.
  54852. - case $xlib in
  54853. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  54854. - *) xabs=`pwd`"/$xlib" ;;
  54855. - esac
  54856. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  54857. - xdir="$gentop/$xlib"
  54858. + cat <<EOF
  54859. + newargz[0] =
  54860. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  54861. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  54862. + strcpy (newargz[0], actual_cwrapper_path);
  54863. + strcat (newargz[0], "$objdir");
  54864. + strcat (newargz[0], "/");
  54865. +EOF
  54866. - $show "${rm}r $xdir"
  54867. - $run ${rm}r "$xdir"
  54868. - $show "$mkdir $xdir"
  54869. - $run $mkdir "$xdir"
  54870. - status=$?
  54871. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  54872. - exit $status
  54873. - fi
  54874. - # We will extract separately just the conflicting names and we will no
  54875. - # longer touch any unique names. It is faster to leave these extract
  54876. - # automatically by $AR in one run.
  54877. - $show "(cd $xdir && $AR x $xabs)"
  54878. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  54879. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  54880. - :
  54881. - else
  54882. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  54883. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  54884. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  54885. - do
  54886. - i=1
  54887. - while test "$i" -le "$count"
  54888. - do
  54889. - # Put our $i before any first dot (extension)
  54890. - # Never overwrite any file
  54891. - name_to="$name"
  54892. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  54893. - do
  54894. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  54895. - done
  54896. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  54897. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  54898. - i=`expr $i + 1`
  54899. - done
  54900. - done
  54901. - fi
  54902. + cat <<"EOF"
  54903. + /* stop here, and copy so we don't have to do this twice */
  54904. + tmp_pathspec = xstrdup (newargz[0]);
  54905. +
  54906. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  54907. + strcat (newargz[0], actual_cwrapper_name);
  54908. +
  54909. + /* DO want the lt- prefix here if it exists, so use target_name */
  54910. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  54911. + XFREE (tmp_pathspec);
  54912. + tmp_pathspec = NULL;
  54913. +EOF
  54914. - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  54915. - done
  54916. - fi
  54917. - fi
  54918. + case $host_os in
  54919. + mingw*)
  54920. + cat <<"EOF"
  54921. + {
  54922. + char* p;
  54923. + while ((p = strchr (newargz[0], '\\')) != NULL)
  54924. + {
  54925. + *p = '/';
  54926. + }
  54927. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  54928. + {
  54929. + *p = '/';
  54930. + }
  54931. + }
  54932. +EOF
  54933. + ;;
  54934. + esac
  54935. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  54936. - eval flag=\"$thread_safe_flag_spec\"
  54937. - linker_flags="$linker_flags $flag"
  54938. - fi
  54939. + cat <<"EOF"
  54940. + XFREE (target_name);
  54941. + XFREE (actual_cwrapper_path);
  54942. + XFREE (actual_cwrapper_name);
  54943. +
  54944. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  54945. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  54946. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  54947. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  54948. - # Make a backup of the uninstalled library when relinking
  54949. - if test "$mode" = relink; then
  54950. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  54951. - fi
  54952. + newargc=0;
  54953. + for (i = 1; i < argc; i++)
  54954. + {
  54955. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  54956. + {
  54957. + if (argv[i][env_set_opt_len] == '=')
  54958. + {
  54959. + const char *p = argv[i] + env_set_opt_len + 1;
  54960. + lt_opt_process_env_set (p);
  54961. + }
  54962. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  54963. + {
  54964. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  54965. + }
  54966. + else
  54967. + lt_fatal ("%s missing required argument", env_set_opt);
  54968. + continue;
  54969. + }
  54970. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  54971. + {
  54972. + if (argv[i][env_prepend_opt_len] == '=')
  54973. + {
  54974. + const char *p = argv[i] + env_prepend_opt_len + 1;
  54975. + lt_opt_process_env_prepend (p);
  54976. + }
  54977. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  54978. + {
  54979. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  54980. + }
  54981. + else
  54982. + lt_fatal ("%s missing required argument", env_prepend_opt);
  54983. + continue;
  54984. + }
  54985. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  54986. + {
  54987. + if (argv[i][env_append_opt_len] == '=')
  54988. + {
  54989. + const char *p = argv[i] + env_append_opt_len + 1;
  54990. + lt_opt_process_env_append (p);
  54991. + }
  54992. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  54993. + {
  54994. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  54995. + }
  54996. + else
  54997. + lt_fatal ("%s missing required argument", env_append_opt);
  54998. + continue;
  54999. + }
  55000. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  55001. + {
  55002. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  55003. + namespace, but it is not one of the ones we know about and
  55004. + have already dealt with, above (inluding dump-script), then
  55005. + report an error. Otherwise, targets might begin to believe
  55006. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  55007. + namespace. The first time any user complains about this, we'll
  55008. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  55009. + or a configure.ac-settable value.
  55010. + */
  55011. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  55012. + ltwrapper_option_prefix, argv[i]);
  55013. + }
  55014. + /* otherwise ... */
  55015. + newargz[++newargc] = xstrdup (argv[i]);
  55016. + }
  55017. + newargz[++newargc] = NULL;
  55018. +
  55019. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  55020. + for (i = 0; i < newargc; i++)
  55021. + {
  55022. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  55023. + }
  55024. - # Do each of the archive commands.
  55025. - if test "$module" = yes && test -n "$module_cmds" ; then
  55026. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  55027. - eval test_cmds=\"$module_expsym_cmds\"
  55028. - cmds=$module_expsym_cmds
  55029. - else
  55030. - eval test_cmds=\"$module_cmds\"
  55031. - cmds=$module_cmds
  55032. - fi
  55033. - else
  55034. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  55035. - eval test_cmds=\"$archive_expsym_cmds\"
  55036. - cmds=$archive_expsym_cmds
  55037. - else
  55038. - eval test_cmds=\"$archive_cmds\"
  55039. - cmds=$archive_cmds
  55040. - fi
  55041. - fi
  55042. +EOF
  55043. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  55044. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  55045. - :
  55046. - else
  55047. - # The command line is too long to link in one step, link piecewise.
  55048. - $echo "creating reloadable object files..."
  55049. + case $host_os in
  55050. + mingw*)
  55051. + cat <<"EOF"
  55052. + /* execv doesn't actually work on mingw as expected on unix */
  55053. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  55054. + if (rval == -1)
  55055. + {
  55056. + /* failed to start process */
  55057. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  55058. + return 127;
  55059. + }
  55060. + return rval;
  55061. +EOF
  55062. + ;;
  55063. + *)
  55064. + cat <<"EOF"
  55065. + execv (lt_argv_zero, newargz);
  55066. + return rval; /* =127, but avoids unused variable warning */
  55067. +EOF
  55068. + ;;
  55069. + esac
  55070. - # Save the value of $output and $libobjs because we want to
  55071. - # use them later. If we have whole_archive_flag_spec, we
  55072. - # want to use save_libobjs as it was before
  55073. - # whole_archive_flag_spec was expanded, because we can't
  55074. - # assume the linker understands whole_archive_flag_spec.
  55075. - # This may have to be revisited, in case too many
  55076. - # convenience libraries get linked in and end up exceeding
  55077. - # the spec.
  55078. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  55079. - save_libobjs=$libobjs
  55080. - fi
  55081. - save_output=$output
  55082. + cat <<"EOF"
  55083. +}
  55084. - # Clear the reloadable object creation command queue and
  55085. - # initialize k to one.
  55086. - test_cmds=
  55087. - concat_cmds=
  55088. - objlist=
  55089. - delfiles=
  55090. - last_robj=
  55091. - k=1
  55092. - output=$output_objdir/$save_output-${k}.$objext
  55093. - # Loop over the list of objects to be linked.
  55094. - for obj in $save_libobjs
  55095. - do
  55096. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  55097. - if test "X$objlist" = X ||
  55098. - { len=`expr "X$test_cmds" : ".*"` &&
  55099. - test "$len" -le "$max_cmd_len"; }; then
  55100. - objlist="$objlist $obj"
  55101. - else
  55102. - # The command $test_cmds is almost too long, add a
  55103. - # command to the queue.
  55104. - if test "$k" -eq 1 ; then
  55105. - # The first file doesn't have a previous command to add.
  55106. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  55107. - else
  55108. - # All subsequent reloadable object files will link in
  55109. - # the last one created.
  55110. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  55111. - fi
  55112. - last_robj=$output_objdir/$save_output-${k}.$objext
  55113. - k=`expr $k + 1`
  55114. - output=$output_objdir/$save_output-${k}.$objext
  55115. - objlist=$obj
  55116. - len=1
  55117. - fi
  55118. - done
  55119. - # Handle the remaining objects by creating one last
  55120. - # reloadable object file. All subsequent reloadable object
  55121. - # files will link in the last one created.
  55122. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  55123. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  55124. +void *
  55125. +xmalloc (size_t num)
  55126. +{
  55127. + void *p = (void *) malloc (num);
  55128. + if (!p)
  55129. + lt_fatal ("Memory exhausted");
  55130. - if ${skipped_export-false}; then
  55131. - $show "generating symbol list for \`$libname.la'"
  55132. - export_symbols="$output_objdir/$libname.exp"
  55133. - $run $rm $export_symbols
  55134. - libobjs=$output
  55135. - # Append the command to create the export file.
  55136. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  55137. - fi
  55138. -
  55139. - # Set up a command to remove the reloadale object files
  55140. - # after they are used.
  55141. - i=0
  55142. - while test "$i" -lt "$k"
  55143. - do
  55144. - i=`expr $i + 1`
  55145. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  55146. - done
  55147. + return p;
  55148. +}
  55149. - $echo "creating a temporary reloadable object file: $output"
  55150. +char *
  55151. +xstrdup (const char *string)
  55152. +{
  55153. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  55154. + string) : NULL;
  55155. +}
  55156. - # Loop through the commands generated above and execute them.
  55157. - save_ifs="$IFS"; IFS='~'
  55158. - for cmd in $concat_cmds; do
  55159. - IFS="$save_ifs"
  55160. - eval cmd=\"$cmd\"
  55161. - $show "$cmd"
  55162. - $run eval "$cmd" || exit $?
  55163. - done
  55164. - IFS="$save_ifs"
  55165. +const char *
  55166. +base_name (const char *name)
  55167. +{
  55168. + const char *base;
  55169. - libobjs=$output
  55170. - # Restore the value of output.
  55171. - output=$save_output
  55172. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55173. + /* Skip over the disk name in MSDOS pathnames. */
  55174. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  55175. + name += 2;
  55176. +#endif
  55177. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  55178. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  55179. - fi
  55180. - # Expand the library linking commands again to reset the
  55181. - # value of $libobjs for piecewise linking.
  55182. + for (base = name; *name; name++)
  55183. + if (IS_DIR_SEPARATOR (*name))
  55184. + base = name + 1;
  55185. + return base;
  55186. +}
  55187. - # Do each of the archive commands.
  55188. - if test "$module" = yes && test -n "$module_cmds" ; then
  55189. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  55190. - cmds=$module_expsym_cmds
  55191. - else
  55192. - cmds=$module_cmds
  55193. - fi
  55194. - else
  55195. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  55196. - cmds=$archive_expsym_cmds
  55197. - else
  55198. - cmds=$archive_cmds
  55199. - fi
  55200. - fi
  55201. +int
  55202. +check_executable (const char *path)
  55203. +{
  55204. + struct stat st;
  55205. - # Append the command to remove the reloadable object files
  55206. - # to the just-reset $cmds.
  55207. - eval cmds=\"\$cmds~\$rm $delfiles\"
  55208. - fi
  55209. - save_ifs="$IFS"; IFS='~'
  55210. - for cmd in $cmds; do
  55211. - IFS="$save_ifs"
  55212. - eval cmd=\"$cmd\"
  55213. - $show "$cmd"
  55214. - $run eval "$cmd" || exit $?
  55215. - done
  55216. - IFS="$save_ifs"
  55217. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  55218. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  55219. + if ((!path) || (!*path))
  55220. + return 0;
  55221. +
  55222. + if ((stat (path, &st) >= 0)
  55223. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  55224. + return 1;
  55225. + else
  55226. + return 0;
  55227. +}
  55228. - # Restore the uninstalled library and exit
  55229. - if test "$mode" = relink; then
  55230. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  55231. - exit 0
  55232. - fi
  55233. +int
  55234. +make_executable (const char *path)
  55235. +{
  55236. + int rval = 0;
  55237. + struct stat st;
  55238. - # Create links to the real library.
  55239. - for linkname in $linknames; do
  55240. - if test "$realname" != "$linkname"; then
  55241. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  55242. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  55243. - fi
  55244. - done
  55245. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  55246. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  55247. + if ((!path) || (!*path))
  55248. + return 0;
  55249. +
  55250. + if (stat (path, &st) >= 0)
  55251. + {
  55252. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  55253. + }
  55254. + return rval;
  55255. +}
  55256. - # If -module or -export-dynamic was specified, set the dlname.
  55257. - if test "$module" = yes || test "$export_dynamic" = yes; then
  55258. - # On all known operating systems, these are identical.
  55259. - dlname="$soname"
  55260. - fi
  55261. - fi
  55262. - ;;
  55263. +/* Searches for the full path of the wrapper. Returns
  55264. + newly allocated full path name if found, NULL otherwise
  55265. + Does not chase symlinks, even on platforms that support them.
  55266. +*/
  55267. +char *
  55268. +find_executable (const char *wrapper)
  55269. +{
  55270. + int has_slash = 0;
  55271. + const char *p;
  55272. + const char *p_next;
  55273. + /* static buffer for getcwd */
  55274. + char tmp[LT_PATHMAX + 1];
  55275. + int tmp_len;
  55276. + char *concat_name;
  55277. - obj)
  55278. - if test -n "$deplibs"; then
  55279. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  55280. - fi
  55281. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  55282. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  55283. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  55284. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  55285. - fi
  55286. + if ((wrapper == NULL) || (*wrapper == '\0'))
  55287. + return NULL;
  55288. - if test -n "$rpath"; then
  55289. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  55290. - fi
  55291. + /* Absolute path? */
  55292. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55293. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  55294. + {
  55295. + concat_name = xstrdup (wrapper);
  55296. + if (check_executable (concat_name))
  55297. + return concat_name;
  55298. + XFREE (concat_name);
  55299. + }
  55300. + else
  55301. + {
  55302. +#endif
  55303. + if (IS_DIR_SEPARATOR (wrapper[0]))
  55304. + {
  55305. + concat_name = xstrdup (wrapper);
  55306. + if (check_executable (concat_name))
  55307. + return concat_name;
  55308. + XFREE (concat_name);
  55309. + }
  55310. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55311. + }
  55312. +#endif
  55313. - if test -n "$xrpath"; then
  55314. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  55315. - fi
  55316. + for (p = wrapper; *p; p++)
  55317. + if (*p == '/')
  55318. + {
  55319. + has_slash = 1;
  55320. + break;
  55321. + }
  55322. + if (!has_slash)
  55323. + {
  55324. + /* no slashes; search PATH */
  55325. + const char *path = getenv ("PATH");
  55326. + if (path != NULL)
  55327. + {
  55328. + for (p = path; *p; p = p_next)
  55329. + {
  55330. + const char *q;
  55331. + size_t p_len;
  55332. + for (q = p; *q; q++)
  55333. + if (IS_PATH_SEPARATOR (*q))
  55334. + break;
  55335. + p_len = q - p;
  55336. + p_next = (*q == '\0' ? q : q + 1);
  55337. + if (p_len == 0)
  55338. + {
  55339. + /* empty path: current directory */
  55340. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  55341. + lt_fatal ("getcwd failed");
  55342. + tmp_len = strlen (tmp);
  55343. + concat_name =
  55344. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  55345. + memcpy (concat_name, tmp, tmp_len);
  55346. + concat_name[tmp_len] = '/';
  55347. + strcpy (concat_name + tmp_len + 1, wrapper);
  55348. + }
  55349. + else
  55350. + {
  55351. + concat_name =
  55352. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  55353. + memcpy (concat_name, p, p_len);
  55354. + concat_name[p_len] = '/';
  55355. + strcpy (concat_name + p_len + 1, wrapper);
  55356. + }
  55357. + if (check_executable (concat_name))
  55358. + return concat_name;
  55359. + XFREE (concat_name);
  55360. + }
  55361. + }
  55362. + /* not found in PATH; assume curdir */
  55363. + }
  55364. + /* Relative path | not found in path: prepend cwd */
  55365. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  55366. + lt_fatal ("getcwd failed");
  55367. + tmp_len = strlen (tmp);
  55368. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  55369. + memcpy (concat_name, tmp, tmp_len);
  55370. + concat_name[tmp_len] = '/';
  55371. + strcpy (concat_name + tmp_len + 1, wrapper);
  55372. +
  55373. + if (check_executable (concat_name))
  55374. + return concat_name;
  55375. + XFREE (concat_name);
  55376. + return NULL;
  55377. +}
  55378. - if test -n "$vinfo"; then
  55379. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  55380. - fi
  55381. +char *
  55382. +chase_symlinks (const char *pathspec)
  55383. +{
  55384. +#ifndef S_ISLNK
  55385. + return xstrdup (pathspec);
  55386. +#else
  55387. + char buf[LT_PATHMAX];
  55388. + struct stat s;
  55389. + char *tmp_pathspec = xstrdup (pathspec);
  55390. + char *p;
  55391. + int has_symlinks = 0;
  55392. + while (strlen (tmp_pathspec) && !has_symlinks)
  55393. + {
  55394. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  55395. + tmp_pathspec));
  55396. + if (lstat (tmp_pathspec, &s) == 0)
  55397. + {
  55398. + if (S_ISLNK (s.st_mode) != 0)
  55399. + {
  55400. + has_symlinks = 1;
  55401. + break;
  55402. + }
  55403. +
  55404. + /* search backwards for last DIR_SEPARATOR */
  55405. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  55406. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  55407. + p--;
  55408. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  55409. + {
  55410. + /* no more DIR_SEPARATORS left */
  55411. + break;
  55412. + }
  55413. + *p = '\0';
  55414. + }
  55415. + else
  55416. + {
  55417. + char *errstr = strerror (errno);
  55418. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  55419. + }
  55420. + }
  55421. + XFREE (tmp_pathspec);
  55422. +
  55423. + if (!has_symlinks)
  55424. + {
  55425. + return xstrdup (pathspec);
  55426. + }
  55427. +
  55428. + tmp_pathspec = realpath (pathspec, buf);
  55429. + if (tmp_pathspec == 0)
  55430. + {
  55431. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  55432. + }
  55433. + return xstrdup (tmp_pathspec);
  55434. +#endif
  55435. +}
  55436. - if test -n "$release"; then
  55437. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  55438. - fi
  55439. +char *
  55440. +strendzap (char *str, const char *pat)
  55441. +{
  55442. + size_t len, patlen;
  55443. - case $output in
  55444. - *.lo)
  55445. - if test -n "$objs$old_deplibs"; then
  55446. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  55447. - exit 1
  55448. - fi
  55449. - libobj="$output"
  55450. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  55451. - ;;
  55452. - *)
  55453. - libobj=
  55454. - obj="$output"
  55455. - ;;
  55456. - esac
  55457. + assert (str != NULL);
  55458. + assert (pat != NULL);
  55459. - # Delete the old objects.
  55460. - $run $rm $obj $libobj
  55461. + len = strlen (str);
  55462. + patlen = strlen (pat);
  55463. - # Objects from convenience libraries. This assumes
  55464. - # single-version convenience libraries. Whenever we create
  55465. - # different ones for PIC/non-PIC, this we'll have to duplicate
  55466. - # the extraction.
  55467. - reload_conv_objs=
  55468. - gentop=
  55469. - # reload_cmds runs $LD directly, so let us get rid of
  55470. - # -Wl from whole_archive_flag_spec
  55471. - wl=
  55472. + if (patlen <= len)
  55473. + {
  55474. + str += len - patlen;
  55475. + if (strcmp (str, pat) == 0)
  55476. + *str = '\0';
  55477. + }
  55478. + return str;
  55479. +}
  55480. - if test -n "$convenience"; then
  55481. - if test -n "$whole_archive_flag_spec"; then
  55482. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  55483. - else
  55484. - gentop="$output_objdir/${obj}x"
  55485. - $show "${rm}r $gentop"
  55486. - $run ${rm}r "$gentop"
  55487. - $show "$mkdir $gentop"
  55488. - $run $mkdir "$gentop"
  55489. - status=$?
  55490. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  55491. - exit $status
  55492. - fi
  55493. - generated="$generated $gentop"
  55494. +static void
  55495. +lt_error_core (int exit_status, const char *mode,
  55496. + const char *message, va_list ap)
  55497. +{
  55498. + fprintf (stderr, "%s: %s: ", program_name, mode);
  55499. + vfprintf (stderr, message, ap);
  55500. + fprintf (stderr, ".\n");
  55501. - for xlib in $convenience; do
  55502. - # Extract the objects.
  55503. - case $xlib in
  55504. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  55505. - *) xabs=`pwd`"/$xlib" ;;
  55506. - esac
  55507. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  55508. - xdir="$gentop/$xlib"
  55509. + if (exit_status >= 0)
  55510. + exit (exit_status);
  55511. +}
  55512. - $show "${rm}r $xdir"
  55513. - $run ${rm}r "$xdir"
  55514. - $show "$mkdir $xdir"
  55515. - $run $mkdir "$xdir"
  55516. - status=$?
  55517. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  55518. - exit $status
  55519. - fi
  55520. - # We will extract separately just the conflicting names and we will no
  55521. - # longer touch any unique names. It is faster to leave these extract
  55522. - # automatically by $AR in one run.
  55523. - $show "(cd $xdir && $AR x $xabs)"
  55524. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  55525. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  55526. - :
  55527. - else
  55528. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  55529. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  55530. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  55531. - do
  55532. - i=1
  55533. - while test "$i" -le "$count"
  55534. - do
  55535. - # Put our $i before any first dot (extension)
  55536. - # Never overwrite any file
  55537. - name_to="$name"
  55538. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  55539. - do
  55540. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  55541. - done
  55542. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  55543. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  55544. - i=`expr $i + 1`
  55545. - done
  55546. - done
  55547. - fi
  55548. +void
  55549. +lt_fatal (const char *message, ...)
  55550. +{
  55551. + va_list ap;
  55552. + va_start (ap, message);
  55553. + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  55554. + va_end (ap);
  55555. +}
  55556. - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  55557. - done
  55558. - fi
  55559. - fi
  55560. +void
  55561. +lt_setenv (const char *name, const char *value)
  55562. +{
  55563. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  55564. + (name ? name : "<NULL>"),
  55565. + (value ? value : "<NULL>")));
  55566. + {
  55567. +#ifdef HAVE_SETENV
  55568. + /* always make a copy, for consistency with !HAVE_SETENV */
  55569. + char *str = xstrdup (value);
  55570. + setenv (name, str, 1);
  55571. +#else
  55572. + int len = strlen (name) + 1 + strlen (value) + 1;
  55573. + char *str = XMALLOC (char, len);
  55574. + sprintf (str, "%s=%s", name, value);
  55575. + if (putenv (str) != EXIT_SUCCESS)
  55576. + {
  55577. + XFREE (str);
  55578. + }
  55579. +#endif
  55580. + }
  55581. +}
  55582. - # Create the old-style object.
  55583. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  55584. +char *
  55585. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  55586. +{
  55587. + char *new_value;
  55588. + if (orig_value && *orig_value)
  55589. + {
  55590. + int orig_value_len = strlen (orig_value);
  55591. + int add_len = strlen (add);
  55592. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  55593. + if (to_end)
  55594. + {
  55595. + strcpy (new_value, orig_value);
  55596. + strcpy (new_value + orig_value_len, add);
  55597. + }
  55598. + else
  55599. + {
  55600. + strcpy (new_value, add);
  55601. + strcpy (new_value + add_len, orig_value);
  55602. + }
  55603. + }
  55604. + else
  55605. + {
  55606. + new_value = xstrdup (add);
  55607. + }
  55608. + return new_value;
  55609. +}
  55610. - output="$obj"
  55611. - cmds=$reload_cmds
  55612. - save_ifs="$IFS"; IFS='~'
  55613. - for cmd in $cmds; do
  55614. - IFS="$save_ifs"
  55615. - eval cmd=\"$cmd\"
  55616. - $show "$cmd"
  55617. - $run eval "$cmd" || exit $?
  55618. - done
  55619. - IFS="$save_ifs"
  55620. +int
  55621. +lt_split_name_value (const char *arg, char** name, char** value)
  55622. +{
  55623. + const char *p;
  55624. + int len;
  55625. + if (!arg || !*arg)
  55626. + return 1;
  55627. - # Exit if we aren't doing a library object file.
  55628. - if test -z "$libobj"; then
  55629. - if test -n "$gentop"; then
  55630. - $show "${rm}r $gentop"
  55631. - $run ${rm}r $gentop
  55632. - fi
  55633. + p = strchr (arg, (int)'=');
  55634. - exit 0
  55635. - fi
  55636. + if (!p)
  55637. + return 1;
  55638. - if test "$build_libtool_libs" != yes; then
  55639. - if test -n "$gentop"; then
  55640. - $show "${rm}r $gentop"
  55641. - $run ${rm}r $gentop
  55642. - fi
  55643. + *value = xstrdup (++p);
  55644. - # Create an invalid libtool object if no PIC, so that we don't
  55645. - # accidentally link it into a program.
  55646. - # $show "echo timestamp > $libobj"
  55647. - # $run eval "echo timestamp > $libobj" || exit $?
  55648. - exit 0
  55649. - fi
  55650. + len = strlen (arg) - strlen (*value);
  55651. + *name = XMALLOC (char, len);
  55652. + strncpy (*name, arg, len-1);
  55653. + (*name)[len - 1] = '\0';
  55654. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  55655. - # Only do commands if we really have different PIC objects.
  55656. - reload_objs="$libobjs $reload_conv_objs"
  55657. - output="$libobj"
  55658. - cmds=$reload_cmds
  55659. - save_ifs="$IFS"; IFS='~'
  55660. - for cmd in $cmds; do
  55661. - IFS="$save_ifs"
  55662. - eval cmd=\"$cmd\"
  55663. - $show "$cmd"
  55664. - $run eval "$cmd" || exit $?
  55665. - done
  55666. - IFS="$save_ifs"
  55667. - fi
  55668. + return 0;
  55669. +}
  55670. - if test -n "$gentop"; then
  55671. - $show "${rm}r $gentop"
  55672. - $run ${rm}r $gentop
  55673. - fi
  55674. +void
  55675. +lt_opt_process_env_set (const char *arg)
  55676. +{
  55677. + char *name = NULL;
  55678. + char *value = NULL;
  55679. - exit 0
  55680. - ;;
  55681. + if (lt_split_name_value (arg, &name, &value) != 0)
  55682. + {
  55683. + XFREE (name);
  55684. + XFREE (value);
  55685. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  55686. + }
  55687. +
  55688. + lt_setenv (name, value);
  55689. + XFREE (name);
  55690. + XFREE (value);
  55691. +}
  55692. - prog)
  55693. - case $host in
  55694. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  55695. - esac
  55696. - if test -n "$vinfo"; then
  55697. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  55698. - fi
  55699. +void
  55700. +lt_opt_process_env_prepend (const char *arg)
  55701. +{
  55702. + char *name = NULL;
  55703. + char *value = NULL;
  55704. + char *new_value = NULL;
  55705. +
  55706. + if (lt_split_name_value (arg, &name, &value) != 0)
  55707. + {
  55708. + XFREE (name);
  55709. + XFREE (value);
  55710. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  55711. + }
  55712. +
  55713. + new_value = lt_extend_str (getenv (name), value, 0);
  55714. + lt_setenv (name, new_value);
  55715. + XFREE (new_value);
  55716. + XFREE (name);
  55717. + XFREE (value);
  55718. +}
  55719. - if test -n "$release"; then
  55720. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  55721. - fi
  55722. +void
  55723. +lt_opt_process_env_append (const char *arg)
  55724. +{
  55725. + char *name = NULL;
  55726. + char *value = NULL;
  55727. + char *new_value = NULL;
  55728. +
  55729. + if (lt_split_name_value (arg, &name, &value) != 0)
  55730. + {
  55731. + XFREE (name);
  55732. + XFREE (value);
  55733. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  55734. + }
  55735. +
  55736. + new_value = lt_extend_str (getenv (name), value, 1);
  55737. + lt_setenv (name, new_value);
  55738. + XFREE (new_value);
  55739. + XFREE (name);
  55740. + XFREE (value);
  55741. +}
  55742. - if test "$preload" = yes; then
  55743. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  55744. - test "$dlopen_self_static" = unknown; then
  55745. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  55746. - fi
  55747. - fi
  55748. +void
  55749. +lt_update_exe_path (const char *name, const char *value)
  55750. +{
  55751. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  55752. + (name ? name : "<NULL>"),
  55753. + (value ? value : "<NULL>")));
  55754. +
  55755. + if (name && *name && value && *value)
  55756. + {
  55757. + char *new_value = lt_extend_str (getenv (name), value, 0);
  55758. + /* some systems can't cope with a ':'-terminated path #' */
  55759. + int len = strlen (new_value);
  55760. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  55761. + {
  55762. + new_value[len-1] = '\0';
  55763. + }
  55764. + lt_setenv (name, new_value);
  55765. + XFREE (new_value);
  55766. + }
  55767. +}
  55768. - case $host in
  55769. - *-*-rhapsody* | *-*-darwin1.[012])
  55770. - # On Rhapsody replace the C library is the System framework
  55771. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  55772. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  55773. - ;;
  55774. - esac
  55775. +void
  55776. +lt_update_lib_path (const char *name, const char *value)
  55777. +{
  55778. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  55779. + (name ? name : "<NULL>"),
  55780. + (value ? value : "<NULL>")));
  55781. +
  55782. + if (name && *name && value && *value)
  55783. + {
  55784. + char *new_value = lt_extend_str (getenv (name), value, 0);
  55785. + lt_setenv (name, new_value);
  55786. + XFREE (new_value);
  55787. + }
  55788. +}
  55789. - case $host in
  55790. - *darwin*)
  55791. - # Don't allow lazy linking, it breaks C++ global constructors
  55792. - if test "$tagname" = CXX ; then
  55793. - compile_command="$compile_command ${wl}-bind_at_load"
  55794. - finalize_command="$finalize_command ${wl}-bind_at_load"
  55795. - fi
  55796. - ;;
  55797. - esac
  55798. - compile_command="$compile_command $compile_deplibs"
  55799. - finalize_command="$finalize_command $finalize_deplibs"
  55800. +EOF
  55801. +}
  55802. +# end: func_emit_cwrapperexe_src
  55803. - if test -n "$rpath$xrpath"; then
  55804. - # If the user specified any rpath flags, then add them.
  55805. - for libdir in $rpath $xrpath; do
  55806. - # This is the magic to use -rpath.
  55807. - case "$finalize_rpath " in
  55808. - *" $libdir "*) ;;
  55809. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  55810. - esac
  55811. - done
  55812. - fi
  55813. +# func_mode_link arg...
  55814. +func_mode_link ()
  55815. +{
  55816. + $opt_debug
  55817. + case $host in
  55818. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55819. + # It is impossible to link a dll without this setting, and
  55820. + # we shouldn't force the makefile maintainer to figure out
  55821. + # which system we are compiling for in order to pass an extra
  55822. + # flag for every libtool invocation.
  55823. + # allow_undefined=no
  55824. - # Now hardcode the library paths
  55825. - rpath=
  55826. - hardcode_libdirs=
  55827. - for libdir in $compile_rpath $finalize_rpath; do
  55828. - if test -n "$hardcode_libdir_flag_spec"; then
  55829. - if test -n "$hardcode_libdir_separator"; then
  55830. - if test -z "$hardcode_libdirs"; then
  55831. - hardcode_libdirs="$libdir"
  55832. - else
  55833. - # Just accumulate the unique libdirs.
  55834. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55835. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55836. - ;;
  55837. - *)
  55838. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55839. - ;;
  55840. - esac
  55841. - fi
  55842. - else
  55843. - eval flag=\"$hardcode_libdir_flag_spec\"
  55844. - rpath="$rpath $flag"
  55845. - fi
  55846. - elif test -n "$runpath_var"; then
  55847. - case "$perm_rpath " in
  55848. - *" $libdir "*) ;;
  55849. - *) perm_rpath="$perm_rpath $libdir" ;;
  55850. - esac
  55851. - fi
  55852. - case $host in
  55853. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  55854. - case :$dllsearchpath: in
  55855. - *":$libdir:"*) ;;
  55856. - *) dllsearchpath="$dllsearchpath:$libdir";;
  55857. - esac
  55858. - ;;
  55859. - esac
  55860. - done
  55861. - # Substitute the hardcoded libdirs into the rpath.
  55862. - if test -n "$hardcode_libdir_separator" &&
  55863. - test -n "$hardcode_libdirs"; then
  55864. - libdir="$hardcode_libdirs"
  55865. - eval rpath=\" $hardcode_libdir_flag_spec\"
  55866. - fi
  55867. - compile_rpath="$rpath"
  55868. -
  55869. - rpath=
  55870. - hardcode_libdirs=
  55871. - for libdir in $finalize_rpath; do
  55872. - if test -n "$hardcode_libdir_flag_spec"; then
  55873. - if test -n "$hardcode_libdir_separator"; then
  55874. - if test -z "$hardcode_libdirs"; then
  55875. - hardcode_libdirs="$libdir"
  55876. - else
  55877. - # Just accumulate the unique libdirs.
  55878. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  55879. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  55880. - ;;
  55881. - *)
  55882. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  55883. - ;;
  55884. - esac
  55885. - fi
  55886. - else
  55887. - eval flag=\"$hardcode_libdir_flag_spec\"
  55888. - rpath="$rpath $flag"
  55889. - fi
  55890. - elif test -n "$runpath_var"; then
  55891. - case "$finalize_perm_rpath " in
  55892. - *" $libdir "*) ;;
  55893. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  55894. - esac
  55895. - fi
  55896. - done
  55897. - # Substitute the hardcoded libdirs into the rpath.
  55898. - if test -n "$hardcode_libdir_separator" &&
  55899. - test -n "$hardcode_libdirs"; then
  55900. - libdir="$hardcode_libdirs"
  55901. - eval rpath=\" $hardcode_libdir_flag_spec\"
  55902. - fi
  55903. - finalize_rpath="$rpath"
  55904. -
  55905. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  55906. - # Transform all the library objects into standard objects.
  55907. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55908. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  55909. - fi
  55910. -
  55911. - dlsyms=
  55912. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  55913. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  55914. - dlsyms="${outputname}S.c"
  55915. - else
  55916. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  55917. - fi
  55918. - fi
  55919. -
  55920. - if test -n "$dlsyms"; then
  55921. - case $dlsyms in
  55922. - "") ;;
  55923. - *.c)
  55924. - # Discover the nlist of each of the dlfiles.
  55925. - nlist="$output_objdir/${outputname}.nm"
  55926. -
  55927. - $show "$rm $nlist ${nlist}S ${nlist}T"
  55928. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  55929. -
  55930. - # Parse the name list into a source file.
  55931. - $show "creating $output_objdir/$dlsyms"
  55932. -
  55933. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  55934. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  55935. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  55936. -
  55937. -#ifdef __cplusplus
  55938. -extern \"C\" {
  55939. -#endif
  55940. -
  55941. -/* Prevent the only kind of declaration conflicts we can make. */
  55942. -#define lt_preloaded_symbols some_other_symbol
  55943. + # FIXME: Unfortunately, there are problems with the above when trying
  55944. + # to make a dll which has undefined symbols, in which case not
  55945. + # even a static library is built. For now, we need to specify
  55946. + # -no-undefined on the libtool link line when we can be certain
  55947. + # that all symbols are satisfied, otherwise we get a static library.
  55948. + allow_undefined=yes
  55949. + ;;
  55950. + *)
  55951. + allow_undefined=yes
  55952. + ;;
  55953. + esac
  55954. + libtool_args=$nonopt
  55955. + base_compile="$nonopt $@"
  55956. + compile_command=$nonopt
  55957. + finalize_command=$nonopt
  55958. -/* External symbol declarations for the compiler. */\
  55959. -"
  55960. + compile_rpath=
  55961. + finalize_rpath=
  55962. + compile_shlibpath=
  55963. + finalize_shlibpath=
  55964. + convenience=
  55965. + old_convenience=
  55966. + deplibs=
  55967. + old_deplibs=
  55968. + compiler_flags=
  55969. + linker_flags=
  55970. + dllsearchpath=
  55971. + lib_search_path=`pwd`
  55972. + inst_prefix_dir=
  55973. + new_inherited_linker_flags=
  55974. - if test "$dlself" = yes; then
  55975. - $show "generating symbol list for \`$output'"
  55976. + avoid_version=no
  55977. + dlfiles=
  55978. + dlprefiles=
  55979. + dlself=no
  55980. + export_dynamic=no
  55981. + export_symbols=
  55982. + export_symbols_regex=
  55983. + generated=
  55984. + libobjs=
  55985. + ltlibs=
  55986. + module=no
  55987. + no_install=no
  55988. + objs=
  55989. + non_pic_objects=
  55990. + precious_files_regex=
  55991. + prefer_static_libs=no
  55992. + preload=no
  55993. + prev=
  55994. + prevarg=
  55995. + release=
  55996. + rpath=
  55997. + xrpath=
  55998. + perm_rpath=
  55999. + temp_rpath=
  56000. + thread_safe=no
  56001. + vinfo=
  56002. + vinfo_number=no
  56003. + weak_libs=
  56004. + single_module="${wl}-single_module"
  56005. + func_infer_tag $base_compile
  56006. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  56007. + # We need to know -static, to get the right output filenames.
  56008. + for arg
  56009. + do
  56010. + case $arg in
  56011. + -shared)
  56012. + test "$build_libtool_libs" != yes && \
  56013. + func_fatal_configuration "can not build a shared library"
  56014. + build_old_libs=no
  56015. + break
  56016. + ;;
  56017. + -all-static | -static | -static-libtool-libs)
  56018. + case $arg in
  56019. + -all-static)
  56020. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  56021. + func_warning "complete static linking is impossible in this configuration"
  56022. + fi
  56023. + if test -n "$link_static_flag"; then
  56024. + dlopen_self=$dlopen_self_static
  56025. + fi
  56026. + prefer_static_libs=yes
  56027. + ;;
  56028. + -static)
  56029. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  56030. + dlopen_self=$dlopen_self_static
  56031. + fi
  56032. + prefer_static_libs=built
  56033. + ;;
  56034. + -static-libtool-libs)
  56035. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  56036. + dlopen_self=$dlopen_self_static
  56037. + fi
  56038. + prefer_static_libs=yes
  56039. + ;;
  56040. + esac
  56041. + build_libtool_libs=no
  56042. + build_old_libs=yes
  56043. + break
  56044. + ;;
  56045. + esac
  56046. + done
  56047. - # Add our own program objects to the symbol list.
  56048. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  56049. - for arg in $progfiles; do
  56050. - $show "extracting global C symbols from \`$arg'"
  56051. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  56052. - done
  56053. + # See if our shared archives depend on static archives.
  56054. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  56055. - if test -n "$exclude_expsyms"; then
  56056. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  56057. - $run eval '$mv "$nlist"T "$nlist"'
  56058. - fi
  56059. + # Go through the arguments, transforming them on the way.
  56060. + while test "$#" -gt 0; do
  56061. + arg="$1"
  56062. + shift
  56063. + func_quote_for_eval "$arg"
  56064. + qarg=$func_quote_for_eval_unquoted_result
  56065. + func_append libtool_args " $func_quote_for_eval_result"
  56066. - if test -n "$export_symbols_regex"; then
  56067. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  56068. - $run eval '$mv "$nlist"T "$nlist"'
  56069. - fi
  56070. + # If the previous option needs an argument, assign it.
  56071. + if test -n "$prev"; then
  56072. + case $prev in
  56073. + output)
  56074. + func_append compile_command " @OUTPUT@"
  56075. + func_append finalize_command " @OUTPUT@"
  56076. + ;;
  56077. + esac
  56078. - # Prepare the list of exported symbols
  56079. - if test -z "$export_symbols"; then
  56080. - export_symbols="$output_objdir/$output.exp"
  56081. - $run $rm $export_symbols
  56082. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  56083. - else
  56084. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  56085. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  56086. - $run eval 'mv "$nlist"T "$nlist"'
  56087. - fi
  56088. + case $prev in
  56089. + dlfiles|dlprefiles)
  56090. + if test "$preload" = no; then
  56091. + # Add the symbol object into the linking commands.
  56092. + func_append compile_command " @SYMFILE@"
  56093. + func_append finalize_command " @SYMFILE@"
  56094. + preload=yes
  56095. fi
  56096. -
  56097. - for arg in $dlprefiles; do
  56098. - $show "extracting global C symbols from \`$arg'"
  56099. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  56100. - $run eval '$echo ": $name " >> "$nlist"'
  56101. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  56102. - done
  56103. -
  56104. - if test -z "$run"; then
  56105. - # Make sure we have at least an empty file.
  56106. - test -f "$nlist" || : > "$nlist"
  56107. -
  56108. - if test -n "$exclude_expsyms"; then
  56109. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  56110. - $mv "$nlist"T "$nlist"
  56111. + case $arg in
  56112. + *.la | *.lo) ;; # We handle these cases below.
  56113. + force)
  56114. + if test "$dlself" = no; then
  56115. + dlself=needless
  56116. + export_dynamic=yes
  56117. fi
  56118. -
  56119. - # Try sorting and uniquifying the output.
  56120. - if grep -v "^: " < "$nlist" |
  56121. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  56122. - sort -k 3
  56123. - else
  56124. - sort +2
  56125. - fi |
  56126. - uniq > "$nlist"S; then
  56127. - :
  56128. + prev=
  56129. + continue
  56130. + ;;
  56131. + self)
  56132. + if test "$prev" = dlprefiles; then
  56133. + dlself=yes
  56134. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  56135. + dlself=yes
  56136. else
  56137. - grep -v "^: " < "$nlist" > "$nlist"S
  56138. + dlself=needless
  56139. + export_dynamic=yes
  56140. fi
  56141. -
  56142. - if test -f "$nlist"S; then
  56143. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  56144. + prev=
  56145. + continue
  56146. + ;;
  56147. + *)
  56148. + if test "$prev" = dlfiles; then
  56149. + dlfiles="$dlfiles $arg"
  56150. else
  56151. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  56152. + dlprefiles="$dlprefiles $arg"
  56153. fi
  56154. + prev=
  56155. + continue
  56156. + ;;
  56157. + esac
  56158. + ;;
  56159. + expsyms)
  56160. + export_symbols="$arg"
  56161. + test -f "$arg" \
  56162. + || func_fatal_error "symbol file \`$arg' does not exist"
  56163. + prev=
  56164. + continue
  56165. + ;;
  56166. + expsyms_regex)
  56167. + export_symbols_regex="$arg"
  56168. + prev=
  56169. + continue
  56170. + ;;
  56171. + framework)
  56172. + case $host in
  56173. + *-*-darwin*)
  56174. + case "$deplibs " in
  56175. + *" $qarg.ltframework "*) ;;
  56176. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  56177. + ;;
  56178. + esac
  56179. + ;;
  56180. + esac
  56181. + prev=
  56182. + continue
  56183. + ;;
  56184. + inst_prefix)
  56185. + inst_prefix_dir="$arg"
  56186. + prev=
  56187. + continue
  56188. + ;;
  56189. + objectlist)
  56190. + if test -f "$arg"; then
  56191. + save_arg=$arg
  56192. + moreargs=
  56193. + for fil in `cat "$save_arg"`
  56194. + do
  56195. +# moreargs="$moreargs $fil"
  56196. + arg=$fil
  56197. + # A libtool-controlled object.
  56198. - $echo >> "$output_objdir/$dlsyms" "\
  56199. -
  56200. -#undef lt_preloaded_symbols
  56201. + # Check to see that this really is a libtool object.
  56202. + if func_lalib_unsafe_p "$arg"; then
  56203. + pic_object=
  56204. + non_pic_object=
  56205. -#if defined (__STDC__) && __STDC__
  56206. -# define lt_ptr void *
  56207. -#else
  56208. -# define lt_ptr char *
  56209. -# define const
  56210. -#endif
  56211. + # Read the .lo file
  56212. + func_source "$arg"
  56213. -/* The mapping between symbol names and symbols. */
  56214. -const struct {
  56215. - const char *name;
  56216. - lt_ptr address;
  56217. -}
  56218. -lt_preloaded_symbols[] =
  56219. -{\
  56220. -"
  56221. + if test -z "$pic_object" ||
  56222. + test -z "$non_pic_object" ||
  56223. + test "$pic_object" = none &&
  56224. + test "$non_pic_object" = none; then
  56225. + func_fatal_error "cannot find name of object for \`$arg'"
  56226. + fi
  56227. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  56228. + # Extract subdirectory from the argument.
  56229. + func_dirname "$arg" "/" ""
  56230. + xdir="$func_dirname_result"
  56231. - $echo >> "$output_objdir/$dlsyms" "\
  56232. - {0, (lt_ptr) 0}
  56233. -};
  56234. + if test "$pic_object" != none; then
  56235. + # Prepend the subdirectory the object is found in.
  56236. + pic_object="$xdir$pic_object"
  56237. -/* This works around a problem in FreeBSD linker */
  56238. -#ifdef FREEBSD_WORKAROUND
  56239. -static const void *lt_preloaded_setup() {
  56240. - return lt_preloaded_symbols;
  56241. -}
  56242. -#endif
  56243. + if test "$prev" = dlfiles; then
  56244. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56245. + dlfiles="$dlfiles $pic_object"
  56246. + prev=
  56247. + continue
  56248. + else
  56249. + # If libtool objects are unsupported, then we need to preload.
  56250. + prev=dlprefiles
  56251. + fi
  56252. + fi
  56253. -#ifdef __cplusplus
  56254. -}
  56255. -#endif\
  56256. -"
  56257. - fi
  56258. + # CHECK ME: I think I busted this. -Ossama
  56259. + if test "$prev" = dlprefiles; then
  56260. + # Preload the old-style object.
  56261. + dlprefiles="$dlprefiles $pic_object"
  56262. + prev=
  56263. + fi
  56264. - pic_flag_for_symtable=
  56265. - case $host in
  56266. - # compiling the symbol table file with pic_flag works around
  56267. - # a FreeBSD bug that causes programs to crash when -lm is
  56268. - # linked before any other PIC object. But we must not use
  56269. - # pic_flag when linking with -static. The problem exists in
  56270. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  56271. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  56272. - case "$compile_command " in
  56273. - *" -static "*) ;;
  56274. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  56275. - esac;;
  56276. - *-*-hpux*)
  56277. - case "$compile_command " in
  56278. - *" -static "*) ;;
  56279. - *) pic_flag_for_symtable=" $pic_flag";;
  56280. - esac
  56281. - esac
  56282. + # A PIC object.
  56283. + func_append libobjs " $pic_object"
  56284. + arg="$pic_object"
  56285. + fi
  56286. +
  56287. + # Non-PIC object.
  56288. + if test "$non_pic_object" != none; then
  56289. + # Prepend the subdirectory the object is found in.
  56290. + non_pic_object="$xdir$non_pic_object"
  56291. +
  56292. + # A standard non-PIC object
  56293. + func_append non_pic_objects " $non_pic_object"
  56294. + if test -z "$pic_object" || test "$pic_object" = none ; then
  56295. + arg="$non_pic_object"
  56296. + fi
  56297. + else
  56298. + # If the PIC object exists, use it instead.
  56299. + # $xdir was prepended to $pic_object above.
  56300. + non_pic_object="$pic_object"
  56301. + func_append non_pic_objects " $non_pic_object"
  56302. + fi
  56303. + else
  56304. + # Only an error if not doing a dry-run.
  56305. + if $opt_dry_run; then
  56306. + # Extract subdirectory from the argument.
  56307. + func_dirname "$arg" "/" ""
  56308. + xdir="$func_dirname_result"
  56309. - # Now compile the dynamic symbol file.
  56310. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  56311. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  56312. -
  56313. - # Clean up the generated files.
  56314. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  56315. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  56316. -
  56317. - # Transform the symbol file into the correct name.
  56318. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  56319. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  56320. + func_lo2o "$arg"
  56321. + pic_object=$xdir$objdir/$func_lo2o_result
  56322. + non_pic_object=$xdir$func_lo2o_result
  56323. + func_append libobjs " $pic_object"
  56324. + func_append non_pic_objects " $non_pic_object"
  56325. + else
  56326. + func_fatal_error "\`$arg' is not a valid libtool object"
  56327. + fi
  56328. + fi
  56329. + done
  56330. + else
  56331. + func_fatal_error "link input file \`$arg' does not exist"
  56332. + fi
  56333. + arg=$save_arg
  56334. + prev=
  56335. + continue
  56336. + ;;
  56337. + precious_regex)
  56338. + precious_files_regex="$arg"
  56339. + prev=
  56340. + continue
  56341. + ;;
  56342. + release)
  56343. + release="-$arg"
  56344. + prev=
  56345. + continue
  56346. + ;;
  56347. + rpath | xrpath)
  56348. + # We need an absolute path.
  56349. + case $arg in
  56350. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56351. + *)
  56352. + func_fatal_error "only absolute run-paths are allowed"
  56353. + ;;
  56354. + esac
  56355. + if test "$prev" = rpath; then
  56356. + case "$rpath " in
  56357. + *" $arg "*) ;;
  56358. + *) rpath="$rpath $arg" ;;
  56359. + esac
  56360. + else
  56361. + case "$xrpath " in
  56362. + *" $arg "*) ;;
  56363. + *) xrpath="$xrpath $arg" ;;
  56364. + esac
  56365. + fi
  56366. + prev=
  56367. + continue
  56368. + ;;
  56369. + shrext)
  56370. + shrext_cmds="$arg"
  56371. + prev=
  56372. + continue
  56373. + ;;
  56374. + weak)
  56375. + weak_libs="$weak_libs $arg"
  56376. + prev=
  56377. + continue
  56378. + ;;
  56379. + xcclinker)
  56380. + linker_flags="$linker_flags $qarg"
  56381. + compiler_flags="$compiler_flags $qarg"
  56382. + prev=
  56383. + func_append compile_command " $qarg"
  56384. + func_append finalize_command " $qarg"
  56385. + continue
  56386. + ;;
  56387. + xcompiler)
  56388. + compiler_flags="$compiler_flags $qarg"
  56389. + prev=
  56390. + func_append compile_command " $qarg"
  56391. + func_append finalize_command " $qarg"
  56392. + continue
  56393. + ;;
  56394. + xlinker)
  56395. + linker_flags="$linker_flags $qarg"
  56396. + compiler_flags="$compiler_flags $wl$qarg"
  56397. + prev=
  56398. + func_append compile_command " $wl$qarg"
  56399. + func_append finalize_command " $wl$qarg"
  56400. + continue
  56401. ;;
  56402. *)
  56403. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  56404. - exit 1
  56405. + eval "$prev=\"\$arg\""
  56406. + prev=
  56407. + continue
  56408. ;;
  56409. esac
  56410. - else
  56411. - # We keep going just in case the user didn't refer to
  56412. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  56413. - # really was required.
  56414. -
  56415. - # Nullify the symbol file.
  56416. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  56417. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  56418. - fi
  56419. -
  56420. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  56421. - # Replace the output file specification.
  56422. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  56423. - link_command="$compile_command$compile_rpath"
  56424. + fi # test -n "$prev"
  56425. - # We have no uninstalled library dependencies, so finalize right now.
  56426. - $show "$link_command"
  56427. - $run eval "$link_command"
  56428. - status=$?
  56429. + prevarg="$arg"
  56430. - # Delete the generated files.
  56431. - if test -n "$dlsyms"; then
  56432. - $show "$rm $output_objdir/${outputname}S.${objext}"
  56433. - $run $rm "$output_objdir/${outputname}S.${objext}"
  56434. + case $arg in
  56435. + -all-static)
  56436. + if test -n "$link_static_flag"; then
  56437. + # See comment for -static flag below, for more details.
  56438. + func_append compile_command " $link_static_flag"
  56439. + func_append finalize_command " $link_static_flag"
  56440. fi
  56441. + continue
  56442. + ;;
  56443. - exit $status
  56444. - fi
  56445. -
  56446. - if test -n "$shlibpath_var"; then
  56447. - # We should set the shlibpath_var
  56448. - rpath=
  56449. - for dir in $temp_rpath; do
  56450. - case $dir in
  56451. - [\\/]* | [A-Za-z]:[\\/]*)
  56452. - # Absolute path.
  56453. - rpath="$rpath$dir:"
  56454. - ;;
  56455. - *)
  56456. - # Relative path: add a thisdir entry.
  56457. - rpath="$rpath\$thisdir/$dir:"
  56458. - ;;
  56459. - esac
  56460. - done
  56461. - temp_rpath="$rpath"
  56462. - fi
  56463. + -allow-undefined)
  56464. + # FIXME: remove this flag sometime in the future.
  56465. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  56466. + ;;
  56467. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  56468. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  56469. - fi
  56470. - if test -n "$finalize_shlibpath"; then
  56471. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  56472. - fi
  56473. + -avoid-version)
  56474. + avoid_version=yes
  56475. + continue
  56476. + ;;
  56477. - compile_var=
  56478. - finalize_var=
  56479. - if test -n "$runpath_var"; then
  56480. - if test -n "$perm_rpath"; then
  56481. - # We should set the runpath_var.
  56482. - rpath=
  56483. - for dir in $perm_rpath; do
  56484. - rpath="$rpath$dir:"
  56485. - done
  56486. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  56487. - fi
  56488. - if test -n "$finalize_perm_rpath"; then
  56489. - # We should set the runpath_var.
  56490. - rpath=
  56491. - for dir in $finalize_perm_rpath; do
  56492. - rpath="$rpath$dir:"
  56493. - done
  56494. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  56495. - fi
  56496. - fi
  56497. + -dlopen)
  56498. + prev=dlfiles
  56499. + continue
  56500. + ;;
  56501. - if test "$no_install" = yes; then
  56502. - # We don't need to create a wrapper script.
  56503. - link_command="$compile_var$compile_command$compile_rpath"
  56504. - # Replace the output file specification.
  56505. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  56506. - # Delete the old output file.
  56507. - $run $rm $output
  56508. - # Link the executable and exit
  56509. - $show "$link_command"
  56510. - $run eval "$link_command" || exit $?
  56511. - exit 0
  56512. - fi
  56513. + -dlpreopen)
  56514. + prev=dlprefiles
  56515. + continue
  56516. + ;;
  56517. - if test "$hardcode_action" = relink; then
  56518. - # Fast installation is not supported
  56519. - link_command="$compile_var$compile_command$compile_rpath"
  56520. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  56521. + -export-dynamic)
  56522. + export_dynamic=yes
  56523. + continue
  56524. + ;;
  56525. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  56526. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  56527. - else
  56528. - if test "$fast_install" != no; then
  56529. - link_command="$finalize_var$compile_command$finalize_rpath"
  56530. - if test "$fast_install" = yes; then
  56531. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  56532. - else
  56533. - # fast_install is set to needless
  56534. - relink_command=
  56535. - fi
  56536. + -export-symbols | -export-symbols-regex)
  56537. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  56538. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  56539. + fi
  56540. + if test "X$arg" = "X-export-symbols"; then
  56541. + prev=expsyms
  56542. else
  56543. - link_command="$compile_var$compile_command$compile_rpath"
  56544. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  56545. + prev=expsyms_regex
  56546. fi
  56547. - fi
  56548. -
  56549. - # Replace the output file specification.
  56550. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  56551. + continue
  56552. + ;;
  56553. - # Delete the old output files.
  56554. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  56555. + -framework)
  56556. + prev=framework
  56557. + continue
  56558. + ;;
  56559. - $show "$link_command"
  56560. - $run eval "$link_command" || exit $?
  56561. + -inst-prefix-dir)
  56562. + prev=inst_prefix
  56563. + continue
  56564. + ;;
  56565. - # Now create the wrapper script.
  56566. - $show "creating $output"
  56567. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  56568. + # so, if we see these flags be careful not to treat them like -L
  56569. + -L[A-Z][A-Z]*:*)
  56570. + case $with_gcc/$host in
  56571. + no/*-*-irix* | /*-*-irix*)
  56572. + func_append compile_command " $arg"
  56573. + func_append finalize_command " $arg"
  56574. + ;;
  56575. + esac
  56576. + continue
  56577. + ;;
  56578. - # Quote the relink command for shipping.
  56579. - if test -n "$relink_command"; then
  56580. - # Preserve any variables that may affect compiler behavior
  56581. - for var in $variables_saved_for_relink; do
  56582. - if eval test -z \"\${$var+set}\"; then
  56583. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  56584. - elif eval var_value=\$$var; test -z "$var_value"; then
  56585. - relink_command="$var=; export $var; $relink_command"
  56586. + -L*)
  56587. + func_stripname '-L' '' "$arg"
  56588. + dir=$func_stripname_result
  56589. + if test -z "$dir"; then
  56590. + if test "$#" -gt 0; then
  56591. + func_fatal_error "require no space between \`-L' and \`$1'"
  56592. else
  56593. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  56594. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  56595. + func_fatal_error "need path for \`-L' option"
  56596. fi
  56597. - done
  56598. - relink_command="(cd `pwd`; $relink_command)"
  56599. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  56600. - fi
  56601. -
  56602. - # Quote $echo for shipping.
  56603. - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  56604. - case $0 in
  56605. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  56606. - *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  56607. - esac
  56608. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  56609. - else
  56610. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  56611. - fi
  56612. -
  56613. - # Only actually do things if our run command is non-null.
  56614. - if test -z "$run"; then
  56615. - # win32 will think the script is a binary if it has
  56616. - # a .exe suffix, so we strip it off here.
  56617. - case $output in
  56618. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  56619. + fi
  56620. + # We need an absolute path.
  56621. + case $dir in
  56622. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56623. + *)
  56624. + absdir=`cd "$dir" && pwd`
  56625. + test -z "$absdir" && \
  56626. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  56627. + dir="$absdir"
  56628. + ;;
  56629. esac
  56630. - # test for cygwin because mv fails w/o .exe extensions
  56631. - case $host in
  56632. - *cygwin*)
  56633. - exeext=.exe
  56634. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  56635. - *) exeext= ;;
  56636. + case "$deplibs " in
  56637. + *" -L$dir "*) ;;
  56638. + *)
  56639. + deplibs="$deplibs -L$dir"
  56640. + lib_search_path="$lib_search_path $dir"
  56641. + ;;
  56642. esac
  56643. case $host in
  56644. - *cygwin* | *mingw* )
  56645. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  56646. - cwrapper=`$echo ${output}.exe`
  56647. - $rm $cwrappersource $cwrapper
  56648. - trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15
  56649. -
  56650. - cat > $cwrappersource <<EOF
  56651. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  56652. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  56653. + case :$dllsearchpath: in
  56654. + *":$dir:"*) ;;
  56655. + ::) dllsearchpath=$dir;;
  56656. + *) dllsearchpath="$dllsearchpath:$dir";;
  56657. + esac
  56658. + case :$dllsearchpath: in
  56659. + *":$testbindir:"*) ;;
  56660. + ::) dllsearchpath=$testbindir;;
  56661. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  56662. + esac
  56663. + ;;
  56664. + esac
  56665. + continue
  56666. + ;;
  56667. -/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  56668. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  56669. + -l*)
  56670. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  56671. + case $host in
  56672. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  56673. + # These systems don't actually have a C or math library (as such)
  56674. + continue
  56675. + ;;
  56676. + *-*-os2*)
  56677. + # These systems don't actually have a C library (as such)
  56678. + test "X$arg" = "X-lc" && continue
  56679. + ;;
  56680. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56681. + # Do not include libc due to us having libc/libc_r.
  56682. + test "X$arg" = "X-lc" && continue
  56683. + ;;
  56684. + *-*-rhapsody* | *-*-darwin1.[012])
  56685. + # Rhapsody C and math libraries are in the System framework
  56686. + deplibs="$deplibs System.ltframework"
  56687. + continue
  56688. + ;;
  56689. + *-*-sco3.2v5* | *-*-sco5v6*)
  56690. + # Causes problems with __ctype
  56691. + test "X$arg" = "X-lc" && continue
  56692. + ;;
  56693. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  56694. + # Compiler inserts libc in the correct place for threads to work
  56695. + test "X$arg" = "X-lc" && continue
  56696. + ;;
  56697. + esac
  56698. + elif test "X$arg" = "X-lc_r"; then
  56699. + case $host in
  56700. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56701. + # Do not include libc_r directly, use -pthread flag.
  56702. + continue
  56703. + ;;
  56704. + esac
  56705. + fi
  56706. + deplibs="$deplibs $arg"
  56707. + continue
  56708. + ;;
  56709. - The $output program cannot be directly executed until all the libtool
  56710. - libraries that it depends on are installed.
  56711. -
  56712. - This wrapper executable should never be moved out of the build directory.
  56713. - If it is, it will not operate correctly.
  56714. + -module)
  56715. + module=yes
  56716. + continue
  56717. + ;;
  56718. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  56719. - but could eventually absorb all of the scripts functionality and
  56720. - exec $objdir/$outputname directly.
  56721. -*/
  56722. -EOF
  56723. - cat >> $cwrappersource<<"EOF"
  56724. -#include <stdio.h>
  56725. -#include <stdlib.h>
  56726. -#include <unistd.h>
  56727. -#include <malloc.h>
  56728. -#include <stdarg.h>
  56729. -#include <assert.h>
  56730. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  56731. + # classes, name mangling, and exception handling.
  56732. + # Darwin uses the -arch flag to determine output architecture.
  56733. + -model|-arch|-isysroot)
  56734. + compiler_flags="$compiler_flags $arg"
  56735. + func_append compile_command " $arg"
  56736. + func_append finalize_command " $arg"
  56737. + prev=xcompiler
  56738. + continue
  56739. + ;;
  56740. -#if defined(PATH_MAX)
  56741. -# define LT_PATHMAX PATH_MAX
  56742. -#elif defined(MAXPATHLEN)
  56743. -# define LT_PATHMAX MAXPATHLEN
  56744. -#else
  56745. -# define LT_PATHMAX 1024
  56746. -#endif
  56747. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56748. + compiler_flags="$compiler_flags $arg"
  56749. + func_append compile_command " $arg"
  56750. + func_append finalize_command " $arg"
  56751. + case "$new_inherited_linker_flags " in
  56752. + *" $arg "*) ;;
  56753. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  56754. + esac
  56755. + continue
  56756. + ;;
  56757. -#ifndef DIR_SEPARATOR
  56758. -#define DIR_SEPARATOR '/'
  56759. -#endif
  56760. + -multi_module)
  56761. + single_module="${wl}-multi_module"
  56762. + continue
  56763. + ;;
  56764. -#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  56765. - defined (__OS2__)
  56766. -#define HAVE_DOS_BASED_FILE_SYSTEM
  56767. -#ifndef DIR_SEPARATOR_2
  56768. -#define DIR_SEPARATOR_2 '\\'
  56769. -#endif
  56770. -#endif
  56771. + -no-fast-install)
  56772. + fast_install=no
  56773. + continue
  56774. + ;;
  56775. -#ifndef DIR_SEPARATOR_2
  56776. -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  56777. -#else /* DIR_SEPARATOR_2 */
  56778. -# define IS_DIR_SEPARATOR(ch) \
  56779. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  56780. -#endif /* DIR_SEPARATOR_2 */
  56781. + -no-install)
  56782. + case $host in
  56783. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  56784. + # The PATH hackery in wrapper scripts is required on Windows
  56785. + # and Darwin in order for the loader to find any dlls it needs.
  56786. + func_warning "\`-no-install' is ignored for $host"
  56787. + func_warning "assuming \`-no-fast-install' instead"
  56788. + fast_install=no
  56789. + ;;
  56790. + *) no_install=yes ;;
  56791. + esac
  56792. + continue
  56793. + ;;
  56794. -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  56795. -#define XFREE(stale) do { \
  56796. - if (stale) { free ((void *) stale); stale = 0; } \
  56797. -} while (0)
  56798. + -no-undefined)
  56799. + allow_undefined=no
  56800. + continue
  56801. + ;;
  56802. -const char *program_name = NULL;
  56803. + -objectlist)
  56804. + prev=objectlist
  56805. + continue
  56806. + ;;
  56807. -void * xmalloc (size_t num);
  56808. -char * xstrdup (const char *string);
  56809. -char * basename (const char *name);
  56810. -char * fnqualify(const char *path);
  56811. -char * strendzap(char *str, const char *pat);
  56812. -void lt_fatal (const char *message, ...);
  56813. + -o) prev=output ;;
  56814. -int
  56815. -main (int argc, char *argv[])
  56816. -{
  56817. - char **newargz;
  56818. - int i;
  56819. -
  56820. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  56821. - newargz = XMALLOC(char *, argc+2);
  56822. -EOF
  56823. + -precious-files-regex)
  56824. + prev=precious_regex
  56825. + continue
  56826. + ;;
  56827. - cat >> $cwrappersource <<EOF
  56828. - newargz[0] = "$SHELL";
  56829. -EOF
  56830. + -release)
  56831. + prev=release
  56832. + continue
  56833. + ;;
  56834. - cat >> $cwrappersource <<"EOF"
  56835. - newargz[1] = fnqualify(argv[0]);
  56836. - /* we know the script has the same name, without the .exe */
  56837. - /* so make sure newargz[1] doesn't end in .exe */
  56838. - strendzap(newargz[1],".exe");
  56839. - for (i = 1; i < argc; i++)
  56840. - newargz[i+1] = xstrdup(argv[i]);
  56841. - newargz[argc+1] = NULL;
  56842. -EOF
  56843. + -rpath)
  56844. + prev=rpath
  56845. + continue
  56846. + ;;
  56847. - cat >> $cwrappersource <<EOF
  56848. - execv("$SHELL",newargz);
  56849. -EOF
  56850. + -R)
  56851. + prev=xrpath
  56852. + continue
  56853. + ;;
  56854. - cat >> $cwrappersource <<"EOF"
  56855. -}
  56856. + -R*)
  56857. + func_stripname '-R' '' "$arg"
  56858. + dir=$func_stripname_result
  56859. + # We need an absolute path.
  56860. + case $dir in
  56861. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56862. + *)
  56863. + func_fatal_error "only absolute run-paths are allowed"
  56864. + ;;
  56865. + esac
  56866. + case "$xrpath " in
  56867. + *" $dir "*) ;;
  56868. + *) xrpath="$xrpath $dir" ;;
  56869. + esac
  56870. + continue
  56871. + ;;
  56872. -void *
  56873. -xmalloc (size_t num)
  56874. -{
  56875. - void * p = (void *) malloc (num);
  56876. - if (!p)
  56877. - lt_fatal ("Memory exhausted");
  56878. + -shared)
  56879. + # The effects of -shared are defined in a previous loop.
  56880. + continue
  56881. + ;;
  56882. - return p;
  56883. -}
  56884. + -shrext)
  56885. + prev=shrext
  56886. + continue
  56887. + ;;
  56888. -char *
  56889. -xstrdup (const char *string)
  56890. -{
  56891. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  56892. -;
  56893. -}
  56894. + -static | -static-libtool-libs)
  56895. + # The effects of -static are defined in a previous loop.
  56896. + # We used to do the same as -all-static on platforms that
  56897. + # didn't have a PIC flag, but the assumption that the effects
  56898. + # would be equivalent was wrong. It would break on at least
  56899. + # Digital Unix and AIX.
  56900. + continue
  56901. + ;;
  56902. -char *
  56903. -basename (const char *name)
  56904. -{
  56905. - const char *base;
  56906. + -thread-safe)
  56907. + thread_safe=yes
  56908. + continue
  56909. + ;;
  56910. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  56911. - /* Skip over the disk name in MSDOS pathnames. */
  56912. - if (isalpha (name[0]) && name[1] == ':')
  56913. - name += 2;
  56914. -#endif
  56915. + -version-info)
  56916. + prev=vinfo
  56917. + continue
  56918. + ;;
  56919. - for (base = name; *name; name++)
  56920. - if (IS_DIR_SEPARATOR (*name))
  56921. - base = name + 1;
  56922. - return (char *) base;
  56923. -}
  56924. + -version-number)
  56925. + prev=vinfo
  56926. + vinfo_number=yes
  56927. + continue
  56928. + ;;
  56929. -char *
  56930. -fnqualify(const char *path)
  56931. -{
  56932. - size_t size;
  56933. - char *p;
  56934. - char tmp[LT_PATHMAX + 1];
  56935. + -weak)
  56936. + prev=weak
  56937. + continue
  56938. + ;;
  56939. - assert(path != NULL);
  56940. + -Wc,*)
  56941. + func_stripname '-Wc,' '' "$arg"
  56942. + args=$func_stripname_result
  56943. + arg=
  56944. + save_ifs="$IFS"; IFS=','
  56945. + for flag in $args; do
  56946. + IFS="$save_ifs"
  56947. + func_quote_for_eval "$flag"
  56948. + arg="$arg $wl$func_quote_for_eval_result"
  56949. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  56950. + done
  56951. + IFS="$save_ifs"
  56952. + func_stripname ' ' '' "$arg"
  56953. + arg=$func_stripname_result
  56954. + ;;
  56955. - /* Is it qualified already? */
  56956. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  56957. - if (isalpha (path[0]) && path[1] == ':')
  56958. - return xstrdup (path);
  56959. -#endif
  56960. - if (IS_DIR_SEPARATOR (path[0]))
  56961. - return xstrdup (path);
  56962. + -Wl,*)
  56963. + func_stripname '-Wl,' '' "$arg"
  56964. + args=$func_stripname_result
  56965. + arg=
  56966. + save_ifs="$IFS"; IFS=','
  56967. + for flag in $args; do
  56968. + IFS="$save_ifs"
  56969. + func_quote_for_eval "$flag"
  56970. + arg="$arg $wl$func_quote_for_eval_result"
  56971. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  56972. + linker_flags="$linker_flags $func_quote_for_eval_result"
  56973. + done
  56974. + IFS="$save_ifs"
  56975. + func_stripname ' ' '' "$arg"
  56976. + arg=$func_stripname_result
  56977. + ;;
  56978. - /* prepend the current directory */
  56979. - /* doesn't handle '~' */
  56980. - if (getcwd (tmp, LT_PATHMAX) == NULL)
  56981. - lt_fatal ("getcwd failed");
  56982. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  56983. - p = XMALLOC(char, size);
  56984. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  56985. - return p;
  56986. -}
  56987. + -Xcompiler)
  56988. + prev=xcompiler
  56989. + continue
  56990. + ;;
  56991. -char *
  56992. -strendzap(char *str, const char *pat)
  56993. -{
  56994. - size_t len, patlen;
  56995. + -Xlinker)
  56996. + prev=xlinker
  56997. + continue
  56998. + ;;
  56999. +
  57000. + -XCClinker)
  57001. + prev=xcclinker
  57002. + continue
  57003. + ;;
  57004. +
  57005. + # -msg_* for osf cc
  57006. + -msg_*)
  57007. + func_quote_for_eval "$arg"
  57008. + arg="$func_quote_for_eval_result"
  57009. + ;;
  57010. +
  57011. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  57012. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  57013. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  57014. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  57015. + # -q* pass through compiler args for the IBM compiler
  57016. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  57017. + # compiler args for GCC
  57018. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  57019. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  57020. + # @file GCC response files
  57021. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  57022. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  57023. + func_quote_for_eval "$arg"
  57024. + arg="$func_quote_for_eval_result"
  57025. + func_append compile_command " $arg"
  57026. + func_append finalize_command " $arg"
  57027. + compiler_flags="$compiler_flags $arg"
  57028. + continue
  57029. + ;;
  57030. +
  57031. + # Some other compiler flag.
  57032. + -* | +*)
  57033. + func_quote_for_eval "$arg"
  57034. + arg="$func_quote_for_eval_result"
  57035. + ;;
  57036. +
  57037. + *.$objext)
  57038. + # A standard object.
  57039. + objs="$objs $arg"
  57040. + ;;
  57041. +
  57042. + *.lo)
  57043. + # A libtool-controlled object.
  57044. +
  57045. + # Check to see that this really is a libtool object.
  57046. + if func_lalib_unsafe_p "$arg"; then
  57047. + pic_object=
  57048. + non_pic_object=
  57049. +
  57050. + # Read the .lo file
  57051. + func_source "$arg"
  57052. +
  57053. + if test -z "$pic_object" ||
  57054. + test -z "$non_pic_object" ||
  57055. + test "$pic_object" = none &&
  57056. + test "$non_pic_object" = none; then
  57057. + func_fatal_error "cannot find name of object for \`$arg'"
  57058. + fi
  57059. +
  57060. + # Extract subdirectory from the argument.
  57061. + func_dirname "$arg" "/" ""
  57062. + xdir="$func_dirname_result"
  57063. +
  57064. + if test "$pic_object" != none; then
  57065. + # Prepend the subdirectory the object is found in.
  57066. + pic_object="$xdir$pic_object"
  57067. +
  57068. + if test "$prev" = dlfiles; then
  57069. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  57070. + dlfiles="$dlfiles $pic_object"
  57071. + prev=
  57072. + continue
  57073. + else
  57074. + # If libtool objects are unsupported, then we need to preload.
  57075. + prev=dlprefiles
  57076. + fi
  57077. + fi
  57078. +
  57079. + # CHECK ME: I think I busted this. -Ossama
  57080. + if test "$prev" = dlprefiles; then
  57081. + # Preload the old-style object.
  57082. + dlprefiles="$dlprefiles $pic_object"
  57083. + prev=
  57084. + fi
  57085. +
  57086. + # A PIC object.
  57087. + func_append libobjs " $pic_object"
  57088. + arg="$pic_object"
  57089. + fi
  57090. +
  57091. + # Non-PIC object.
  57092. + if test "$non_pic_object" != none; then
  57093. + # Prepend the subdirectory the object is found in.
  57094. + non_pic_object="$xdir$non_pic_object"
  57095. +
  57096. + # A standard non-PIC object
  57097. + func_append non_pic_objects " $non_pic_object"
  57098. + if test -z "$pic_object" || test "$pic_object" = none ; then
  57099. + arg="$non_pic_object"
  57100. + fi
  57101. + else
  57102. + # If the PIC object exists, use it instead.
  57103. + # $xdir was prepended to $pic_object above.
  57104. + non_pic_object="$pic_object"
  57105. + func_append non_pic_objects " $non_pic_object"
  57106. + fi
  57107. + else
  57108. + # Only an error if not doing a dry-run.
  57109. + if $opt_dry_run; then
  57110. + # Extract subdirectory from the argument.
  57111. + func_dirname "$arg" "/" ""
  57112. + xdir="$func_dirname_result"
  57113. +
  57114. + func_lo2o "$arg"
  57115. + pic_object=$xdir$objdir/$func_lo2o_result
  57116. + non_pic_object=$xdir$func_lo2o_result
  57117. + func_append libobjs " $pic_object"
  57118. + func_append non_pic_objects " $non_pic_object"
  57119. + else
  57120. + func_fatal_error "\`$arg' is not a valid libtool object"
  57121. + fi
  57122. + fi
  57123. + ;;
  57124. +
  57125. + *.$libext)
  57126. + # An archive.
  57127. + deplibs="$deplibs $arg"
  57128. + old_deplibs="$old_deplibs $arg"
  57129. + continue
  57130. + ;;
  57131. +
  57132. + *.la)
  57133. + # A libtool-controlled library.
  57134. +
  57135. + if test "$prev" = dlfiles; then
  57136. + # This library was specified with -dlopen.
  57137. + dlfiles="$dlfiles $arg"
  57138. + prev=
  57139. + elif test "$prev" = dlprefiles; then
  57140. + # The library was specified with -dlpreopen.
  57141. + dlprefiles="$dlprefiles $arg"
  57142. + prev=
  57143. + else
  57144. + deplibs="$deplibs $arg"
  57145. + fi
  57146. + continue
  57147. + ;;
  57148. +
  57149. + # Some other compiler argument.
  57150. + *)
  57151. + # Unknown arguments in both finalize_command and compile_command need
  57152. + # to be aesthetically quoted because they are evaled later.
  57153. + func_quote_for_eval "$arg"
  57154. + arg="$func_quote_for_eval_result"
  57155. + ;;
  57156. + esac # arg
  57157. +
  57158. + # Now actually substitute the argument into the commands.
  57159. + if test -n "$arg"; then
  57160. + func_append compile_command " $arg"
  57161. + func_append finalize_command " $arg"
  57162. + fi
  57163. + done # argument parsing loop
  57164. +
  57165. + test -n "$prev" && \
  57166. + func_fatal_help "the \`$prevarg' option requires an argument"
  57167. +
  57168. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  57169. + eval arg=\"$export_dynamic_flag_spec\"
  57170. + func_append compile_command " $arg"
  57171. + func_append finalize_command " $arg"
  57172. + fi
  57173. +
  57174. + oldlibs=
  57175. + # calculate the name of the file, without its directory
  57176. + func_basename "$output"
  57177. + outputname="$func_basename_result"
  57178. + libobjs_save="$libobjs"
  57179. +
  57180. + if test -n "$shlibpath_var"; then
  57181. + # get the directories listed in $shlibpath_var
  57182. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  57183. + else
  57184. + shlib_search_path=
  57185. + fi
  57186. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  57187. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  57188. +
  57189. + func_dirname "$output" "/" ""
  57190. + output_objdir="$func_dirname_result$objdir"
  57191. + # Create the object directory.
  57192. + func_mkdir_p "$output_objdir"
  57193. +
  57194. + # Determine the type of output
  57195. + case $output in
  57196. + "")
  57197. + func_fatal_help "you must specify an output file"
  57198. + ;;
  57199. + *.$libext) linkmode=oldlib ;;
  57200. + *.lo | *.$objext) linkmode=obj ;;
  57201. + *.la) linkmode=lib ;;
  57202. + *) linkmode=prog ;; # Anything else should be a program.
  57203. + esac
  57204. +
  57205. + specialdeplibs=
  57206. +
  57207. + libs=
  57208. + # Find all interdependent deplibs by searching for libraries
  57209. + # that are linked more than once (e.g. -la -lb -la)
  57210. + for deplib in $deplibs; do
  57211. + if $opt_duplicate_deps ; then
  57212. + case "$libs " in
  57213. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57214. + esac
  57215. + fi
  57216. + libs="$libs $deplib"
  57217. + done
  57218. +
  57219. + if test "$linkmode" = lib; then
  57220. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  57221. +
  57222. + # Compute libraries that are listed more than once in $predeps
  57223. + # $postdeps and mark them as special (i.e., whose duplicates are
  57224. + # not to be eliminated).
  57225. + pre_post_deps=
  57226. + if $opt_duplicate_compiler_generated_deps; then
  57227. + for pre_post_dep in $predeps $postdeps; do
  57228. + case "$pre_post_deps " in
  57229. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  57230. + esac
  57231. + pre_post_deps="$pre_post_deps $pre_post_dep"
  57232. + done
  57233. + fi
  57234. + pre_post_deps=
  57235. + fi
  57236. +
  57237. + deplibs=
  57238. + newdependency_libs=
  57239. + newlib_search_path=
  57240. + need_relink=no # whether we're linking any uninstalled libtool libraries
  57241. + notinst_deplibs= # not-installed libtool libraries
  57242. + notinst_path= # paths that contain not-installed libtool libraries
  57243. +
  57244. + case $linkmode in
  57245. + lib)
  57246. + passes="conv dlpreopen link"
  57247. + for file in $dlfiles $dlprefiles; do
  57248. + case $file in
  57249. + *.la) ;;
  57250. + *)
  57251. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  57252. + ;;
  57253. + esac
  57254. + done
  57255. + ;;
  57256. + prog)
  57257. + compile_deplibs=
  57258. + finalize_deplibs=
  57259. + alldeplibs=no
  57260. + newdlfiles=
  57261. + newdlprefiles=
  57262. + passes="conv scan dlopen dlpreopen link"
  57263. + ;;
  57264. + *) passes="conv"
  57265. + ;;
  57266. + esac
  57267. +
  57268. + for pass in $passes; do
  57269. + # The preopen pass in lib mode reverses $deplibs; put it back here
  57270. + # so that -L comes before libs that need it for instance...
  57271. + if test "$linkmode,$pass" = "lib,link"; then
  57272. + ## FIXME: Find the place where the list is rebuilt in the wrong
  57273. + ## order, and fix it there properly
  57274. + tmp_deplibs=
  57275. + for deplib in $deplibs; do
  57276. + tmp_deplibs="$deplib $tmp_deplibs"
  57277. + done
  57278. + deplibs="$tmp_deplibs"
  57279. + fi
  57280. +
  57281. + if test "$linkmode,$pass" = "lib,link" ||
  57282. + test "$linkmode,$pass" = "prog,scan"; then
  57283. + libs="$deplibs"
  57284. + deplibs=
  57285. + fi
  57286. + if test "$linkmode" = prog; then
  57287. + case $pass in
  57288. + dlopen) libs="$dlfiles" ;;
  57289. + dlpreopen) libs="$dlprefiles" ;;
  57290. + link)
  57291. + libs="$deplibs %DEPLIBS%"
  57292. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  57293. + ;;
  57294. + esac
  57295. + fi
  57296. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  57297. + # Collect and forward deplibs of preopened libtool libs
  57298. + for lib in $dlprefiles; do
  57299. + # Ignore non-libtool-libs
  57300. + dependency_libs=
  57301. + case $lib in
  57302. + *.la) func_source "$lib" ;;
  57303. + esac
  57304. +
  57305. + # Collect preopened libtool deplibs, except any this library
  57306. + # has declared as weak libs
  57307. + for deplib in $dependency_libs; do
  57308. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  57309. + case " $weak_libs " in
  57310. + *" $deplib_base "*) ;;
  57311. + *) deplibs="$deplibs $deplib" ;;
  57312. + esac
  57313. + done
  57314. + done
  57315. + libs="$dlprefiles"
  57316. + fi
  57317. + if test "$pass" = dlopen; then
  57318. + # Collect dlpreopened libraries
  57319. + save_deplibs="$deplibs"
  57320. + deplibs=
  57321. + fi
  57322. +
  57323. + for deplib in $libs; do
  57324. + lib=
  57325. + found=no
  57326. + case $deplib in
  57327. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  57328. + if test "$linkmode,$pass" = "prog,link"; then
  57329. + compile_deplibs="$deplib $compile_deplibs"
  57330. + finalize_deplibs="$deplib $finalize_deplibs"
  57331. + else
  57332. + compiler_flags="$compiler_flags $deplib"
  57333. + if test "$linkmode" = lib ; then
  57334. + case "$new_inherited_linker_flags " in
  57335. + *" $deplib "*) ;;
  57336. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  57337. + esac
  57338. + fi
  57339. + fi
  57340. + continue
  57341. + ;;
  57342. + -l*)
  57343. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  57344. + func_warning "\`-l' is ignored for archives/objects"
  57345. + continue
  57346. + fi
  57347. + func_stripname '-l' '' "$deplib"
  57348. + name=$func_stripname_result
  57349. + if test "$linkmode" = lib; then
  57350. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  57351. + else
  57352. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  57353. + fi
  57354. + for searchdir in $searchdirs; do
  57355. + for search_ext in .la $std_shrext .so .a; do
  57356. + # Search the libtool library
  57357. + lib="$searchdir/lib${name}${search_ext}"
  57358. + if test -f "$lib"; then
  57359. + if test "$search_ext" = ".la"; then
  57360. + found=yes
  57361. + else
  57362. + found=no
  57363. + fi
  57364. + break 2
  57365. + fi
  57366. + done
  57367. + done
  57368. + if test "$found" != yes; then
  57369. + # deplib doesn't seem to be a libtool library
  57370. + if test "$linkmode,$pass" = "prog,link"; then
  57371. + compile_deplibs="$deplib $compile_deplibs"
  57372. + finalize_deplibs="$deplib $finalize_deplibs"
  57373. + else
  57374. + deplibs="$deplib $deplibs"
  57375. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  57376. + fi
  57377. + continue
  57378. + else # deplib is a libtool library
  57379. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  57380. + # We need to do some special things here, and not later.
  57381. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  57382. + case " $predeps $postdeps " in
  57383. + *" $deplib "*)
  57384. + if func_lalib_p "$lib"; then
  57385. + library_names=
  57386. + old_library=
  57387. + func_source "$lib"
  57388. + for l in $old_library $library_names; do
  57389. + ll="$l"
  57390. + done
  57391. + if test "X$ll" = "X$old_library" ; then # only static version available
  57392. + found=no
  57393. + func_dirname "$lib" "" "."
  57394. + ladir="$func_dirname_result"
  57395. + lib=$ladir/$old_library
  57396. + if test "$linkmode,$pass" = "prog,link"; then
  57397. + compile_deplibs="$deplib $compile_deplibs"
  57398. + finalize_deplibs="$deplib $finalize_deplibs"
  57399. + else
  57400. + deplibs="$deplib $deplibs"
  57401. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  57402. + fi
  57403. + continue
  57404. + fi
  57405. + fi
  57406. + ;;
  57407. + *) ;;
  57408. + esac
  57409. + fi
  57410. + fi
  57411. + ;; # -l
  57412. + *.ltframework)
  57413. + if test "$linkmode,$pass" = "prog,link"; then
  57414. + compile_deplibs="$deplib $compile_deplibs"
  57415. + finalize_deplibs="$deplib $finalize_deplibs"
  57416. + else
  57417. + deplibs="$deplib $deplibs"
  57418. + if test "$linkmode" = lib ; then
  57419. + case "$new_inherited_linker_flags " in
  57420. + *" $deplib "*) ;;
  57421. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  57422. + esac
  57423. + fi
  57424. + fi
  57425. + continue
  57426. + ;;
  57427. + -L*)
  57428. + case $linkmode in
  57429. + lib)
  57430. + deplibs="$deplib $deplibs"
  57431. + test "$pass" = conv && continue
  57432. + newdependency_libs="$deplib $newdependency_libs"
  57433. + func_stripname '-L' '' "$deplib"
  57434. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57435. + ;;
  57436. + prog)
  57437. + if test "$pass" = conv; then
  57438. + deplibs="$deplib $deplibs"
  57439. + continue
  57440. + fi
  57441. + if test "$pass" = scan; then
  57442. + deplibs="$deplib $deplibs"
  57443. + else
  57444. + compile_deplibs="$deplib $compile_deplibs"
  57445. + finalize_deplibs="$deplib $finalize_deplibs"
  57446. + fi
  57447. + func_stripname '-L' '' "$deplib"
  57448. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57449. + ;;
  57450. + *)
  57451. + func_warning "\`-L' is ignored for archives/objects"
  57452. + ;;
  57453. + esac # linkmode
  57454. + continue
  57455. + ;; # -L
  57456. + -R*)
  57457. + if test "$pass" = link; then
  57458. + func_stripname '-R' '' "$deplib"
  57459. + dir=$func_stripname_result
  57460. + # Make sure the xrpath contains only unique directories.
  57461. + case "$xrpath " in
  57462. + *" $dir "*) ;;
  57463. + *) xrpath="$xrpath $dir" ;;
  57464. + esac
  57465. + fi
  57466. + deplibs="$deplib $deplibs"
  57467. + continue
  57468. + ;;
  57469. + *.la) lib="$deplib" ;;
  57470. + *.$libext)
  57471. + if test "$pass" = conv; then
  57472. + deplibs="$deplib $deplibs"
  57473. + continue
  57474. + fi
  57475. + case $linkmode in
  57476. + lib)
  57477. + # Linking convenience modules into shared libraries is allowed,
  57478. + # but linking other static libraries is non-portable.
  57479. + case " $dlpreconveniencelibs " in
  57480. + *" $deplib "*) ;;
  57481. + *)
  57482. + valid_a_lib=no
  57483. + case $deplibs_check_method in
  57484. + match_pattern*)
  57485. + set dummy $deplibs_check_method; shift
  57486. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  57487. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  57488. + | $EGREP "$match_pattern_regex" > /dev/null; then
  57489. + valid_a_lib=yes
  57490. + fi
  57491. + ;;
  57492. + pass_all)
  57493. + valid_a_lib=yes
  57494. + ;;
  57495. + esac
  57496. + if test "$valid_a_lib" != yes; then
  57497. + $ECHO
  57498. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  57499. + $ECHO "*** I have the capability to make that library automatically link in when"
  57500. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57501. + $ECHO "*** shared version of the library, which you do not appear to have"
  57502. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  57503. + $ECHO "*** that it is just a static archive that I should not use here."
  57504. + else
  57505. + $ECHO
  57506. + $ECHO "*** Warning: Linking the shared library $output against the"
  57507. + $ECHO "*** static library $deplib is not portable!"
  57508. + deplibs="$deplib $deplibs"
  57509. + fi
  57510. + ;;
  57511. + esac
  57512. + continue
  57513. + ;;
  57514. + prog)
  57515. + if test "$pass" != link; then
  57516. + deplibs="$deplib $deplibs"
  57517. + else
  57518. + compile_deplibs="$deplib $compile_deplibs"
  57519. + finalize_deplibs="$deplib $finalize_deplibs"
  57520. + fi
  57521. + continue
  57522. + ;;
  57523. + esac # linkmode
  57524. + ;; # *.$libext
  57525. + *.lo | *.$objext)
  57526. + if test "$pass" = conv; then
  57527. + deplibs="$deplib $deplibs"
  57528. + elif test "$linkmode" = prog; then
  57529. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  57530. + # If there is no dlopen support or we're linking statically,
  57531. + # we need to preload.
  57532. + newdlprefiles="$newdlprefiles $deplib"
  57533. + compile_deplibs="$deplib $compile_deplibs"
  57534. + finalize_deplibs="$deplib $finalize_deplibs"
  57535. + else
  57536. + newdlfiles="$newdlfiles $deplib"
  57537. + fi
  57538. + fi
  57539. + continue
  57540. + ;;
  57541. + %DEPLIBS%)
  57542. + alldeplibs=yes
  57543. + continue
  57544. + ;;
  57545. + esac # case $deplib
  57546. +
  57547. + if test "$found" = yes || test -f "$lib"; then :
  57548. + else
  57549. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  57550. + fi
  57551. +
  57552. + # Check to see that this really is a libtool archive.
  57553. + func_lalib_unsafe_p "$lib" \
  57554. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  57555. +
  57556. + func_dirname "$lib" "" "."
  57557. + ladir="$func_dirname_result"
  57558. +
  57559. + dlname=
  57560. + dlopen=
  57561. + dlpreopen=
  57562. + libdir=
  57563. + library_names=
  57564. + old_library=
  57565. + inherited_linker_flags=
  57566. + # If the library was installed with an old release of libtool,
  57567. + # it will not redefine variables installed, or shouldnotlink
  57568. + installed=yes
  57569. + shouldnotlink=no
  57570. + avoidtemprpath=
  57571. +
  57572. +
  57573. + # Read the .la file
  57574. + func_source "$lib"
  57575. +
  57576. + # Convert "-framework foo" to "foo.ltframework"
  57577. + if test -n "$inherited_linker_flags"; then
  57578. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  57579. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  57580. + case " $new_inherited_linker_flags " in
  57581. + *" $tmp_inherited_linker_flag "*) ;;
  57582. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  57583. + esac
  57584. + done
  57585. + fi
  57586. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57587. + if test "$linkmode,$pass" = "lib,link" ||
  57588. + test "$linkmode,$pass" = "prog,scan" ||
  57589. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  57590. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  57591. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  57592. + fi
  57593. +
  57594. + if test "$pass" = conv; then
  57595. + # Only check for convenience libraries
  57596. + deplibs="$lib $deplibs"
  57597. + if test -z "$libdir"; then
  57598. + if test -z "$old_library"; then
  57599. + func_fatal_error "cannot find name of link library for \`$lib'"
  57600. + fi
  57601. + # It is a libtool convenience library, so add in its objects.
  57602. + convenience="$convenience $ladir/$objdir/$old_library"
  57603. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  57604. + tmp_libs=
  57605. + for deplib in $dependency_libs; do
  57606. + deplibs="$deplib $deplibs"
  57607. + if $opt_duplicate_deps ; then
  57608. + case "$tmp_libs " in
  57609. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57610. + esac
  57611. + fi
  57612. + tmp_libs="$tmp_libs $deplib"
  57613. + done
  57614. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  57615. + func_fatal_error "\`$lib' is not a convenience library"
  57616. + fi
  57617. + continue
  57618. + fi # $pass = conv
  57619. +
  57620. +
  57621. + # Get the name of the library we link against.
  57622. + linklib=
  57623. + for l in $old_library $library_names; do
  57624. + linklib="$l"
  57625. + done
  57626. + if test -z "$linklib"; then
  57627. + func_fatal_error "cannot find name of link library for \`$lib'"
  57628. + fi
  57629. +
  57630. + # This library was specified with -dlopen.
  57631. + if test "$pass" = dlopen; then
  57632. + if test -z "$libdir"; then
  57633. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  57634. + fi
  57635. + if test -z "$dlname" ||
  57636. + test "$dlopen_support" != yes ||
  57637. + test "$build_libtool_libs" = no; then
  57638. + # If there is no dlname, no dlopen support or we're linking
  57639. + # statically, we need to preload. We also need to preload any
  57640. + # dependent libraries so libltdl's deplib preloader doesn't
  57641. + # bomb out in the load deplibs phase.
  57642. + dlprefiles="$dlprefiles $lib $dependency_libs"
  57643. + else
  57644. + newdlfiles="$newdlfiles $lib"
  57645. + fi
  57646. + continue
  57647. + fi # $pass = dlopen
  57648. +
  57649. + # We need an absolute path.
  57650. + case $ladir in
  57651. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  57652. + *)
  57653. + abs_ladir=`cd "$ladir" && pwd`
  57654. + if test -z "$abs_ladir"; then
  57655. + func_warning "cannot determine absolute directory name of \`$ladir'"
  57656. + func_warning "passing it literally to the linker, although it might fail"
  57657. + abs_ladir="$ladir"
  57658. + fi
  57659. + ;;
  57660. + esac
  57661. + func_basename "$lib"
  57662. + laname="$func_basename_result"
  57663. +
  57664. + # Find the relevant object directory and library name.
  57665. + if test "X$installed" = Xyes; then
  57666. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57667. + func_warning "library \`$lib' was moved."
  57668. + dir="$ladir"
  57669. + absdir="$abs_ladir"
  57670. + libdir="$abs_ladir"
  57671. + else
  57672. + dir="$libdir"
  57673. + absdir="$libdir"
  57674. + fi
  57675. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  57676. + else
  57677. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57678. + dir="$ladir"
  57679. + absdir="$abs_ladir"
  57680. + # Remove this search path later
  57681. + notinst_path="$notinst_path $abs_ladir"
  57682. + else
  57683. + dir="$ladir/$objdir"
  57684. + absdir="$abs_ladir/$objdir"
  57685. + # Remove this search path later
  57686. + notinst_path="$notinst_path $abs_ladir"
  57687. + fi
  57688. + fi # $installed = yes
  57689. + func_stripname 'lib' '.la' "$laname"
  57690. + name=$func_stripname_result
  57691. +
  57692. + # This library was specified with -dlpreopen.
  57693. + if test "$pass" = dlpreopen; then
  57694. + if test -z "$libdir" && test "$linkmode" = prog; then
  57695. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  57696. + fi
  57697. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  57698. + # are required to link).
  57699. + if test -n "$old_library"; then
  57700. + newdlprefiles="$newdlprefiles $dir/$old_library"
  57701. + # Keep a list of preopened convenience libraries to check
  57702. + # that they are being used correctly in the link pass.
  57703. + test -z "$libdir" && \
  57704. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  57705. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  57706. + elif test -n "$dlname"; then
  57707. + newdlprefiles="$newdlprefiles $dir/$dlname"
  57708. + else
  57709. + newdlprefiles="$newdlprefiles $dir/$linklib"
  57710. + fi
  57711. + fi # $pass = dlpreopen
  57712. +
  57713. + if test -z "$libdir"; then
  57714. + # Link the convenience library
  57715. + if test "$linkmode" = lib; then
  57716. + deplibs="$dir/$old_library $deplibs"
  57717. + elif test "$linkmode,$pass" = "prog,link"; then
  57718. + compile_deplibs="$dir/$old_library $compile_deplibs"
  57719. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  57720. + else
  57721. + deplibs="$lib $deplibs" # used for prog,scan pass
  57722. + fi
  57723. + continue
  57724. + fi
  57725. +
  57726. +
  57727. + if test "$linkmode" = prog && test "$pass" != link; then
  57728. + newlib_search_path="$newlib_search_path $ladir"
  57729. + deplibs="$lib $deplibs"
  57730. +
  57731. + linkalldeplibs=no
  57732. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  57733. + test "$build_libtool_libs" = no; then
  57734. + linkalldeplibs=yes
  57735. + fi
  57736. +
  57737. + tmp_libs=
  57738. + for deplib in $dependency_libs; do
  57739. + case $deplib in
  57740. + -L*) func_stripname '-L' '' "$deplib"
  57741. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57742. + ;;
  57743. + esac
  57744. + # Need to link against all dependency_libs?
  57745. + if test "$linkalldeplibs" = yes; then
  57746. + deplibs="$deplib $deplibs"
  57747. + else
  57748. + # Need to hardcode shared library paths
  57749. + # or/and link against static libraries
  57750. + newdependency_libs="$deplib $newdependency_libs"
  57751. + fi
  57752. + if $opt_duplicate_deps ; then
  57753. + case "$tmp_libs " in
  57754. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57755. + esac
  57756. + fi
  57757. + tmp_libs="$tmp_libs $deplib"
  57758. + done # for deplib
  57759. + continue
  57760. + fi # $linkmode = prog...
  57761. +
  57762. + if test "$linkmode,$pass" = "prog,link"; then
  57763. + if test -n "$library_names" &&
  57764. + { { test "$prefer_static_libs" = no ||
  57765. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  57766. + test -z "$old_library"; }; then
  57767. + # We need to hardcode the library path
  57768. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  57769. + # Make sure the rpath contains only unique directories.
  57770. + case "$temp_rpath:" in
  57771. + *"$absdir:"*) ;;
  57772. + *) temp_rpath="$temp_rpath$absdir:" ;;
  57773. + esac
  57774. + fi
  57775. +
  57776. + # Hardcode the library path.
  57777. + # Skip directories that are in the system default run-time
  57778. + # search path.
  57779. + case " $sys_lib_dlsearch_path " in
  57780. + *" $absdir "*) ;;
  57781. + *)
  57782. + case "$compile_rpath " in
  57783. + *" $absdir "*) ;;
  57784. + *) compile_rpath="$compile_rpath $absdir"
  57785. + esac
  57786. + ;;
  57787. + esac
  57788. + case " $sys_lib_dlsearch_path " in
  57789. + *" $libdir "*) ;;
  57790. + *)
  57791. + case "$finalize_rpath " in
  57792. + *" $libdir "*) ;;
  57793. + *) finalize_rpath="$finalize_rpath $libdir"
  57794. + esac
  57795. + ;;
  57796. + esac
  57797. + fi # $linkmode,$pass = prog,link...
  57798. +
  57799. + if test "$alldeplibs" = yes &&
  57800. + { test "$deplibs_check_method" = pass_all ||
  57801. + { test "$build_libtool_libs" = yes &&
  57802. + test -n "$library_names"; }; }; then
  57803. + # We only need to search for static libraries
  57804. + continue
  57805. + fi
  57806. + fi
  57807. +
  57808. + link_static=no # Whether the deplib will be linked statically
  57809. + use_static_libs=$prefer_static_libs
  57810. + if test "$use_static_libs" = built && test "$installed" = yes; then
  57811. + use_static_libs=no
  57812. + fi
  57813. + if test -n "$library_names" &&
  57814. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  57815. + case $host in
  57816. + *cygwin* | *mingw* | *cegcc*)
  57817. + # No point in relinking DLLs because paths are not encoded
  57818. + notinst_deplibs="$notinst_deplibs $lib"
  57819. + need_relink=no
  57820. + ;;
  57821. + *)
  57822. + if test "$installed" = no; then
  57823. + notinst_deplibs="$notinst_deplibs $lib"
  57824. + need_relink=yes
  57825. + fi
  57826. + ;;
  57827. + esac
  57828. + # This is a shared library
  57829. +
  57830. + # Warn about portability, can't link against -module's on some
  57831. + # systems (darwin). Don't bleat about dlopened modules though!
  57832. + dlopenmodule=""
  57833. + for dlpremoduletest in $dlprefiles; do
  57834. + if test "X$dlpremoduletest" = "X$lib"; then
  57835. + dlopenmodule="$dlpremoduletest"
  57836. + break
  57837. + fi
  57838. + done
  57839. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  57840. + $ECHO
  57841. + if test "$linkmode" = prog; then
  57842. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  57843. + else
  57844. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  57845. + fi
  57846. + $ECHO "*** $linklib is not portable!"
  57847. + fi
  57848. + if test "$linkmode" = lib &&
  57849. + test "$hardcode_into_libs" = yes; then
  57850. + # Hardcode the library path.
  57851. + # Skip directories that are in the system default run-time
  57852. + # search path.
  57853. + case " $sys_lib_dlsearch_path " in
  57854. + *" $absdir "*) ;;
  57855. + *)
  57856. + case "$compile_rpath " in
  57857. + *" $absdir "*) ;;
  57858. + *) compile_rpath="$compile_rpath $absdir"
  57859. + esac
  57860. + ;;
  57861. + esac
  57862. + case " $sys_lib_dlsearch_path " in
  57863. + *" $libdir "*) ;;
  57864. + *)
  57865. + case "$finalize_rpath " in
  57866. + *" $libdir "*) ;;
  57867. + *) finalize_rpath="$finalize_rpath $libdir"
  57868. + esac
  57869. + ;;
  57870. + esac
  57871. + fi
  57872. +
  57873. + if test -n "$old_archive_from_expsyms_cmds"; then
  57874. + # figure out the soname
  57875. + set dummy $library_names
  57876. + shift
  57877. + realname="$1"
  57878. + shift
  57879. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57880. + # use dlname if we got it. it's perfectly good, no?
  57881. + if test -n "$dlname"; then
  57882. + soname="$dlname"
  57883. + elif test -n "$soname_spec"; then
  57884. + # bleh windows
  57885. + case $host in
  57886. + *cygwin* | mingw* | *cegcc*)
  57887. + func_arith $current - $age
  57888. + major=$func_arith_result
  57889. + versuffix="-$major"
  57890. + ;;
  57891. + esac
  57892. + eval soname=\"$soname_spec\"
  57893. + else
  57894. + soname="$realname"
  57895. + fi
  57896. +
  57897. + # Make a new name for the extract_expsyms_cmds to use
  57898. + soroot="$soname"
  57899. + func_basename "$soroot"
  57900. + soname="$func_basename_result"
  57901. + func_stripname 'lib' '.dll' "$soname"
  57902. + newlib=libimp-$func_stripname_result.a
  57903. +
  57904. + # If the library has no export list, then create one now
  57905. + if test -f "$output_objdir/$soname-def"; then :
  57906. + else
  57907. + func_verbose "extracting exported symbol list from \`$soname'"
  57908. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  57909. + fi
  57910. +
  57911. + # Create $newlib
  57912. + if test -f "$output_objdir/$newlib"; then :; else
  57913. + func_verbose "generating import library for \`$soname'"
  57914. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  57915. + fi
  57916. + # make sure the library variables are pointing to the new library
  57917. + dir=$output_objdir
  57918. + linklib=$newlib
  57919. + fi # test -n "$old_archive_from_expsyms_cmds"
  57920. +
  57921. + if test "$linkmode" = prog || test "$mode" != relink; then
  57922. + add_shlibpath=
  57923. + add_dir=
  57924. + add=
  57925. + lib_linked=yes
  57926. + case $hardcode_action in
  57927. + immediate | unsupported)
  57928. + if test "$hardcode_direct" = no; then
  57929. + add="$dir/$linklib"
  57930. + case $host in
  57931. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  57932. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  57933. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  57934. + *-*-unixware7*) add_dir="-L$dir" ;;
  57935. + *-*-darwin* )
  57936. + # if the lib is a (non-dlopened) module then we can not
  57937. + # link against it, someone is ignoring the earlier warnings
  57938. + if /usr/bin/file -L $add 2> /dev/null |
  57939. + $GREP ": [^:]* bundle" >/dev/null ; then
  57940. + if test "X$dlopenmodule" != "X$lib"; then
  57941. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  57942. + if test -z "$old_library" ; then
  57943. + $ECHO
  57944. + $ECHO "*** And there doesn't seem to be a static archive available"
  57945. + $ECHO "*** The link will probably fail, sorry"
  57946. + else
  57947. + add="$dir/$old_library"
  57948. + fi
  57949. + elif test -n "$old_library"; then
  57950. + add="$dir/$old_library"
  57951. + fi
  57952. + fi
  57953. + esac
  57954. + elif test "$hardcode_minus_L" = no; then
  57955. + case $host in
  57956. + *-*-sunos*) add_shlibpath="$dir" ;;
  57957. + esac
  57958. + add_dir="-L$dir"
  57959. + add="-l$name"
  57960. + elif test "$hardcode_shlibpath_var" = no; then
  57961. + add_shlibpath="$dir"
  57962. + add="-l$name"
  57963. + else
  57964. + lib_linked=no
  57965. + fi
  57966. + ;;
  57967. + relink)
  57968. + if test "$hardcode_direct" = yes &&
  57969. + test "$hardcode_direct_absolute" = no; then
  57970. + add="$dir/$linklib"
  57971. + elif test "$hardcode_minus_L" = yes; then
  57972. + add_dir="-L$dir"
  57973. + # Try looking first in the location we're being installed to.
  57974. + if test -n "$inst_prefix_dir"; then
  57975. + case $libdir in
  57976. + [\\/]*)
  57977. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57978. + ;;
  57979. + esac
  57980. + fi
  57981. + add="-l$name"
  57982. + elif test "$hardcode_shlibpath_var" = yes; then
  57983. + add_shlibpath="$dir"
  57984. + add="-l$name"
  57985. + else
  57986. + lib_linked=no
  57987. + fi
  57988. + ;;
  57989. + *) lib_linked=no ;;
  57990. + esac
  57991. +
  57992. + if test "$lib_linked" != yes; then
  57993. + func_fatal_configuration "unsupported hardcode properties"
  57994. + fi
  57995. +
  57996. + if test -n "$add_shlibpath"; then
  57997. + case :$compile_shlibpath: in
  57998. + *":$add_shlibpath:"*) ;;
  57999. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  58000. + esac
  58001. + fi
  58002. + if test "$linkmode" = prog; then
  58003. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  58004. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  58005. + else
  58006. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  58007. + test -n "$add" && deplibs="$add $deplibs"
  58008. + if test "$hardcode_direct" != yes &&
  58009. + test "$hardcode_minus_L" != yes &&
  58010. + test "$hardcode_shlibpath_var" = yes; then
  58011. + case :$finalize_shlibpath: in
  58012. + *":$libdir:"*) ;;
  58013. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  58014. + esac
  58015. + fi
  58016. + fi
  58017. + fi
  58018. +
  58019. + if test "$linkmode" = prog || test "$mode" = relink; then
  58020. + add_shlibpath=
  58021. + add_dir=
  58022. + add=
  58023. + # Finalize command for both is simple: just hardcode it.
  58024. + if test "$hardcode_direct" = yes &&
  58025. + test "$hardcode_direct_absolute" = no; then
  58026. + add="$libdir/$linklib"
  58027. + elif test "$hardcode_minus_L" = yes; then
  58028. + add_dir="-L$libdir"
  58029. + add="-l$name"
  58030. + elif test "$hardcode_shlibpath_var" = yes; then
  58031. + case :$finalize_shlibpath: in
  58032. + *":$libdir:"*) ;;
  58033. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  58034. + esac
  58035. + add="-l$name"
  58036. + elif test "$hardcode_automatic" = yes; then
  58037. + if test -n "$inst_prefix_dir" &&
  58038. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  58039. + add="$inst_prefix_dir$libdir/$linklib"
  58040. + else
  58041. + add="$libdir/$linklib"
  58042. + fi
  58043. + else
  58044. + # We cannot seem to hardcode it, guess we'll fake it.
  58045. + add_dir="-L$libdir"
  58046. + # Try looking first in the location we're being installed to.
  58047. + if test -n "$inst_prefix_dir"; then
  58048. + case $libdir in
  58049. + [\\/]*)
  58050. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  58051. + ;;
  58052. + esac
  58053. + fi
  58054. + add="-l$name"
  58055. + fi
  58056. +
  58057. + if test "$linkmode" = prog; then
  58058. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  58059. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  58060. + else
  58061. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  58062. + test -n "$add" && deplibs="$add $deplibs"
  58063. + fi
  58064. + fi
  58065. + elif test "$linkmode" = prog; then
  58066. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  58067. + # is not unsupported. This is valid on all known static and
  58068. + # shared platforms.
  58069. + if test "$hardcode_direct" != unsupported; then
  58070. + test -n "$old_library" && linklib="$old_library"
  58071. + compile_deplibs="$dir/$linklib $compile_deplibs"
  58072. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  58073. + else
  58074. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  58075. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  58076. + fi
  58077. + elif test "$build_libtool_libs" = yes; then
  58078. + # Not a shared library
  58079. + if test "$deplibs_check_method" != pass_all; then
  58080. + # We're trying link a shared library against a static one
  58081. + # but the system doesn't support it.
  58082. +
  58083. + # Just print a warning and add the library to dependency_libs so
  58084. + # that the program can be linked against the static library.
  58085. + $ECHO
  58086. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  58087. + $ECHO "*** I have the capability to make that library automatically link in when"
  58088. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58089. + $ECHO "*** shared version of the library, which you do not appear to have."
  58090. + if test "$module" = yes; then
  58091. + $ECHO "*** But as you try to build a module library, libtool will still create "
  58092. + $ECHO "*** a static module, that should work as long as the dlopening application"
  58093. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  58094. + if test -z "$global_symbol_pipe"; then
  58095. + $ECHO
  58096. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  58097. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58098. + $ECHO "*** not find such a program. So, this module is probably useless."
  58099. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  58100. + fi
  58101. + if test "$build_old_libs" = no; then
  58102. + build_libtool_libs=module
  58103. + build_old_libs=yes
  58104. + else
  58105. + build_libtool_libs=no
  58106. + fi
  58107. + fi
  58108. + else
  58109. + deplibs="$dir/$old_library $deplibs"
  58110. + link_static=yes
  58111. + fi
  58112. + fi # link shared/static library?
  58113. +
  58114. + if test "$linkmode" = lib; then
  58115. + if test -n "$dependency_libs" &&
  58116. + { test "$hardcode_into_libs" != yes ||
  58117. + test "$build_old_libs" = yes ||
  58118. + test "$link_static" = yes; }; then
  58119. + # Extract -R from dependency_libs
  58120. + temp_deplibs=
  58121. + for libdir in $dependency_libs; do
  58122. + case $libdir in
  58123. + -R*) func_stripname '-R' '' "$libdir"
  58124. + temp_xrpath=$func_stripname_result
  58125. + case " $xrpath " in
  58126. + *" $temp_xrpath "*) ;;
  58127. + *) xrpath="$xrpath $temp_xrpath";;
  58128. + esac;;
  58129. + *) temp_deplibs="$temp_deplibs $libdir";;
  58130. + esac
  58131. + done
  58132. + dependency_libs="$temp_deplibs"
  58133. + fi
  58134. +
  58135. + newlib_search_path="$newlib_search_path $absdir"
  58136. + # Link against this library
  58137. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  58138. + # ... and its dependency_libs
  58139. + tmp_libs=
  58140. + for deplib in $dependency_libs; do
  58141. + newdependency_libs="$deplib $newdependency_libs"
  58142. + if $opt_duplicate_deps ; then
  58143. + case "$tmp_libs " in
  58144. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  58145. + esac
  58146. + fi
  58147. + tmp_libs="$tmp_libs $deplib"
  58148. + done
  58149. +
  58150. + if test "$link_all_deplibs" != no; then
  58151. + # Add the search paths of all dependency libraries
  58152. + for deplib in $dependency_libs; do
  58153. + path=
  58154. + case $deplib in
  58155. + -L*) path="$deplib" ;;
  58156. + *.la)
  58157. + func_dirname "$deplib" "" "."
  58158. + dir="$func_dirname_result"
  58159. + # We need an absolute path.
  58160. + case $dir in
  58161. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  58162. + *)
  58163. + absdir=`cd "$dir" && pwd`
  58164. + if test -z "$absdir"; then
  58165. + func_warning "cannot determine absolute directory name of \`$dir'"
  58166. + absdir="$dir"
  58167. + fi
  58168. + ;;
  58169. + esac
  58170. + if $GREP "^installed=no" $deplib > /dev/null; then
  58171. + case $host in
  58172. + *-*-darwin*)
  58173. + depdepl=
  58174. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  58175. + if test -n "$deplibrary_names" ; then
  58176. + for tmp in $deplibrary_names ; do
  58177. + depdepl=$tmp
  58178. + done
  58179. + if test -f "$absdir/$objdir/$depdepl" ; then
  58180. + depdepl="$absdir/$objdir/$depdepl"
  58181. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  58182. + if test -z "$darwin_install_name"; then
  58183. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  58184. + fi
  58185. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  58186. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  58187. + path=
  58188. + fi
  58189. + fi
  58190. + ;;
  58191. + *)
  58192. + path="-L$absdir/$objdir"
  58193. + ;;
  58194. + esac
  58195. + else
  58196. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58197. + test -z "$libdir" && \
  58198. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  58199. + test "$absdir" != "$libdir" && \
  58200. + func_warning "\`$deplib' seems to be moved"
  58201. +
  58202. + path="-L$absdir"
  58203. + fi
  58204. + ;;
  58205. + esac
  58206. + case " $deplibs " in
  58207. + *" $path "*) ;;
  58208. + *) deplibs="$path $deplibs" ;;
  58209. + esac
  58210. + done
  58211. + fi # link_all_deplibs != no
  58212. + fi # linkmode = lib
  58213. + done # for deplib in $libs
  58214. + if test "$pass" = link; then
  58215. + if test "$linkmode" = "prog"; then
  58216. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  58217. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  58218. + else
  58219. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58220. + fi
  58221. + fi
  58222. + dependency_libs="$newdependency_libs"
  58223. + if test "$pass" = dlpreopen; then
  58224. + # Link the dlpreopened libraries before other libraries
  58225. + for deplib in $save_deplibs; do
  58226. + deplibs="$deplib $deplibs"
  58227. + done
  58228. + fi
  58229. + if test "$pass" != dlopen; then
  58230. + if test "$pass" != conv; then
  58231. + # Make sure lib_search_path contains only unique directories.
  58232. + lib_search_path=
  58233. + for dir in $newlib_search_path; do
  58234. + case "$lib_search_path " in
  58235. + *" $dir "*) ;;
  58236. + *) lib_search_path="$lib_search_path $dir" ;;
  58237. + esac
  58238. + done
  58239. + newlib_search_path=
  58240. + fi
  58241. +
  58242. + if test "$linkmode,$pass" != "prog,link"; then
  58243. + vars="deplibs"
  58244. + else
  58245. + vars="compile_deplibs finalize_deplibs"
  58246. + fi
  58247. + for var in $vars dependency_libs; do
  58248. + # Add libraries to $var in reverse order
  58249. + eval tmp_libs=\"\$$var\"
  58250. + new_libs=
  58251. + for deplib in $tmp_libs; do
  58252. + # FIXME: Pedantically, this is the right thing to do, so
  58253. + # that some nasty dependency loop isn't accidentally
  58254. + # broken:
  58255. + #new_libs="$deplib $new_libs"
  58256. + # Pragmatically, this seems to cause very few problems in
  58257. + # practice:
  58258. + case $deplib in
  58259. + -L*) new_libs="$deplib $new_libs" ;;
  58260. + -R*) ;;
  58261. + *)
  58262. + # And here is the reason: when a library appears more
  58263. + # than once as an explicit dependence of a library, or
  58264. + # is implicitly linked in more than once by the
  58265. + # compiler, it is considered special, and multiple
  58266. + # occurrences thereof are not removed. Compare this
  58267. + # with having the same library being listed as a
  58268. + # dependency of multiple other libraries: in this case,
  58269. + # we know (pedantically, we assume) the library does not
  58270. + # need to be listed more than once, so we keep only the
  58271. + # last copy. This is not always right, but it is rare
  58272. + # enough that we require users that really mean to play
  58273. + # such unportable linking tricks to link the library
  58274. + # using -Wl,-lname, so that libtool does not consider it
  58275. + # for duplicate removal.
  58276. + case " $specialdeplibs " in
  58277. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  58278. + *)
  58279. + case " $new_libs " in
  58280. + *" $deplib "*) ;;
  58281. + *) new_libs="$deplib $new_libs" ;;
  58282. + esac
  58283. + ;;
  58284. + esac
  58285. + ;;
  58286. + esac
  58287. + done
  58288. + tmp_libs=
  58289. + for deplib in $new_libs; do
  58290. + case $deplib in
  58291. + -L*)
  58292. + case " $tmp_libs " in
  58293. + *" $deplib "*) ;;
  58294. + *) tmp_libs="$tmp_libs $deplib" ;;
  58295. + esac
  58296. + ;;
  58297. + *) tmp_libs="$tmp_libs $deplib" ;;
  58298. + esac
  58299. + done
  58300. + eval $var=\"$tmp_libs\"
  58301. + done # for var
  58302. + fi
  58303. + # Last step: remove runtime libs from dependency_libs
  58304. + # (they stay in deplibs)
  58305. + tmp_libs=
  58306. + for i in $dependency_libs ; do
  58307. + case " $predeps $postdeps $compiler_lib_search_path " in
  58308. + *" $i "*)
  58309. + i=""
  58310. + ;;
  58311. + esac
  58312. + if test -n "$i" ; then
  58313. + tmp_libs="$tmp_libs $i"
  58314. + fi
  58315. + done
  58316. + dependency_libs=$tmp_libs
  58317. + done # for pass
  58318. + if test "$linkmode" = prog; then
  58319. + dlfiles="$newdlfiles"
  58320. + fi
  58321. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  58322. + dlprefiles="$newdlprefiles"
  58323. + fi
  58324. +
  58325. + case $linkmode in
  58326. + oldlib)
  58327. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  58328. + func_warning "\`-dlopen' is ignored for archives"
  58329. + fi
  58330. +
  58331. + case " $deplibs" in
  58332. + *\ -l* | *\ -L*)
  58333. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  58334. + esac
  58335. +
  58336. + test -n "$rpath" && \
  58337. + func_warning "\`-rpath' is ignored for archives"
  58338. +
  58339. + test -n "$xrpath" && \
  58340. + func_warning "\`-R' is ignored for archives"
  58341. +
  58342. + test -n "$vinfo" && \
  58343. + func_warning "\`-version-info/-version-number' is ignored for archives"
  58344. +
  58345. + test -n "$release" && \
  58346. + func_warning "\`-release' is ignored for archives"
  58347. +
  58348. + test -n "$export_symbols$export_symbols_regex" && \
  58349. + func_warning "\`-export-symbols' is ignored for archives"
  58350. +
  58351. + # Now set the variables for building old libraries.
  58352. + build_libtool_libs=no
  58353. + oldlibs="$output"
  58354. + objs="$objs$old_deplibs"
  58355. + ;;
  58356. +
  58357. + lib)
  58358. + # Make sure we only generate libraries of the form `libNAME.la'.
  58359. + case $outputname in
  58360. + lib*)
  58361. + func_stripname 'lib' '.la' "$outputname"
  58362. + name=$func_stripname_result
  58363. + eval shared_ext=\"$shrext_cmds\"
  58364. + eval libname=\"$libname_spec\"
  58365. + ;;
  58366. + *)
  58367. + test "$module" = no && \
  58368. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  58369. +
  58370. + if test "$need_lib_prefix" != no; then
  58371. + # Add the "lib" prefix for modules if required
  58372. + func_stripname '' '.la' "$outputname"
  58373. + name=$func_stripname_result
  58374. + eval shared_ext=\"$shrext_cmds\"
  58375. + eval libname=\"$libname_spec\"
  58376. + else
  58377. + func_stripname '' '.la' "$outputname"
  58378. + libname=$func_stripname_result
  58379. + fi
  58380. + ;;
  58381. + esac
  58382. +
  58383. + if test -n "$objs"; then
  58384. + if test "$deplibs_check_method" != pass_all; then
  58385. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  58386. + else
  58387. + $ECHO
  58388. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  58389. + $ECHO "*** objects $objs is not portable!"
  58390. + libobjs="$libobjs $objs"
  58391. + fi
  58392. + fi
  58393. +
  58394. + test "$dlself" != no && \
  58395. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  58396. +
  58397. + set dummy $rpath
  58398. + shift
  58399. + test "$#" -gt 1 && \
  58400. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  58401. +
  58402. + install_libdir="$1"
  58403. +
  58404. + oldlibs=
  58405. + if test -z "$rpath"; then
  58406. + if test "$build_libtool_libs" = yes; then
  58407. + # Building a libtool convenience library.
  58408. + # Some compilers have problems with a `.al' extension so
  58409. + # convenience libraries should have the same extension an
  58410. + # archive normally would.
  58411. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  58412. + build_libtool_libs=convenience
  58413. + build_old_libs=yes
  58414. + fi
  58415. +
  58416. + test -n "$vinfo" && \
  58417. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  58418. +
  58419. + test -n "$release" && \
  58420. + func_warning "\`-release' is ignored for convenience libraries"
  58421. + else
  58422. +
  58423. + # Parse the version information argument.
  58424. + save_ifs="$IFS"; IFS=':'
  58425. + set dummy $vinfo 0 0 0
  58426. + shift
  58427. + IFS="$save_ifs"
  58428. +
  58429. + test -n "$7" && \
  58430. + func_fatal_help "too many parameters to \`-version-info'"
  58431. +
  58432. + # convert absolute version numbers to libtool ages
  58433. + # this retains compatibility with .la files and attempts
  58434. + # to make the code below a bit more comprehensible
  58435. +
  58436. + case $vinfo_number in
  58437. + yes)
  58438. + number_major="$1"
  58439. + number_minor="$2"
  58440. + number_revision="$3"
  58441. + #
  58442. + # There are really only two kinds -- those that
  58443. + # use the current revision as the major version
  58444. + # and those that subtract age and use age as
  58445. + # a minor version. But, then there is irix
  58446. + # which has an extra 1 added just for fun
  58447. + #
  58448. + case $version_type in
  58449. + darwin|linux|osf|windows|none)
  58450. + func_arith $number_major + $number_minor
  58451. + current=$func_arith_result
  58452. + age="$number_minor"
  58453. + revision="$number_revision"
  58454. + ;;
  58455. + freebsd-aout|freebsd-elf|sunos)
  58456. + current="$number_major"
  58457. + revision="$number_minor"
  58458. + age="0"
  58459. + ;;
  58460. + irix|nonstopux)
  58461. + func_arith $number_major + $number_minor
  58462. + current=$func_arith_result
  58463. + age="$number_minor"
  58464. + revision="$number_minor"
  58465. + lt_irix_increment=no
  58466. + ;;
  58467. + *)
  58468. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  58469. + ;;
  58470. + esac
  58471. + ;;
  58472. + no)
  58473. + current="$1"
  58474. + revision="$2"
  58475. + age="$3"
  58476. + ;;
  58477. + esac
  58478. +
  58479. + # Check that each of the things are valid numbers.
  58480. + case $current in
  58481. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  58482. + *)
  58483. + func_error "CURRENT \`$current' must be a nonnegative integer"
  58484. + func_fatal_error "\`$vinfo' is not valid version information"
  58485. + ;;
  58486. + esac
  58487. +
  58488. + case $revision in
  58489. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  58490. + *)
  58491. + func_error "REVISION \`$revision' must be a nonnegative integer"
  58492. + func_fatal_error "\`$vinfo' is not valid version information"
  58493. + ;;
  58494. + esac
  58495. +
  58496. + case $age in
  58497. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  58498. + *)
  58499. + func_error "AGE \`$age' must be a nonnegative integer"
  58500. + func_fatal_error "\`$vinfo' is not valid version information"
  58501. + ;;
  58502. + esac
  58503. +
  58504. + if test "$age" -gt "$current"; then
  58505. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  58506. + func_fatal_error "\`$vinfo' is not valid version information"
  58507. + fi
  58508. +
  58509. + # Calculate the version variables.
  58510. + major=
  58511. + versuffix=
  58512. + verstring=
  58513. + case $version_type in
  58514. + none) ;;
  58515. +
  58516. + darwin)
  58517. + # Like Linux, but with the current version available in
  58518. + # verstring for coding it into the library header
  58519. + func_arith $current - $age
  58520. + major=.$func_arith_result
  58521. + versuffix="$major.$age.$revision"
  58522. + # Darwin ld doesn't like 0 for these options...
  58523. + func_arith $current + 1
  58524. + minor_current=$func_arith_result
  58525. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  58526. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  58527. + ;;
  58528. +
  58529. + freebsd-aout)
  58530. + major=".$current"
  58531. + versuffix=".$current.$revision";
  58532. + ;;
  58533. +
  58534. + freebsd-elf)
  58535. + major=".$current"
  58536. + versuffix=".$current"
  58537. + ;;
  58538. +
  58539. + irix | nonstopux)
  58540. + if test "X$lt_irix_increment" = "Xno"; then
  58541. + func_arith $current - $age
  58542. + else
  58543. + func_arith $current - $age + 1
  58544. + fi
  58545. + major=$func_arith_result
  58546. +
  58547. + case $version_type in
  58548. + nonstopux) verstring_prefix=nonstopux ;;
  58549. + *) verstring_prefix=sgi ;;
  58550. + esac
  58551. + verstring="$verstring_prefix$major.$revision"
  58552. +
  58553. + # Add in all the interfaces that we are compatible with.
  58554. + loop=$revision
  58555. + while test "$loop" -ne 0; do
  58556. + func_arith $revision - $loop
  58557. + iface=$func_arith_result
  58558. + func_arith $loop - 1
  58559. + loop=$func_arith_result
  58560. + verstring="$verstring_prefix$major.$iface:$verstring"
  58561. + done
  58562. +
  58563. + # Before this point, $major must not contain `.'.
  58564. + major=.$major
  58565. + versuffix="$major.$revision"
  58566. + ;;
  58567. +
  58568. + linux)
  58569. + func_arith $current - $age
  58570. + major=.$func_arith_result
  58571. + versuffix="$major.$age.$revision"
  58572. + ;;
  58573. +
  58574. + osf)
  58575. + func_arith $current - $age
  58576. + major=.$func_arith_result
  58577. + versuffix=".$current.$age.$revision"
  58578. + verstring="$current.$age.$revision"
  58579. +
  58580. + # Add in all the interfaces that we are compatible with.
  58581. + loop=$age
  58582. + while test "$loop" -ne 0; do
  58583. + func_arith $current - $loop
  58584. + iface=$func_arith_result
  58585. + func_arith $loop - 1
  58586. + loop=$func_arith_result
  58587. + verstring="$verstring:${iface}.0"
  58588. + done
  58589. +
  58590. + # Make executables depend on our current version.
  58591. + verstring="$verstring:${current}.0"
  58592. + ;;
  58593. +
  58594. + qnx)
  58595. + major=".$current"
  58596. + versuffix=".$current"
  58597. + ;;
  58598. +
  58599. + sunos)
  58600. + major=".$current"
  58601. + versuffix=".$current.$revision"
  58602. + ;;
  58603. +
  58604. + windows)
  58605. + # Use '-' rather than '.', since we only want one
  58606. + # extension on DOS 8.3 filesystems.
  58607. + func_arith $current - $age
  58608. + major=$func_arith_result
  58609. + versuffix="-$major"
  58610. + ;;
  58611. +
  58612. + *)
  58613. + func_fatal_configuration "unknown library version type \`$version_type'"
  58614. + ;;
  58615. + esac
  58616. +
  58617. + # Clear the version info if we defaulted, and they specified a release.
  58618. + if test -z "$vinfo" && test -n "$release"; then
  58619. + major=
  58620. + case $version_type in
  58621. + darwin)
  58622. + # we can't check for "0.0" in archive_cmds due to quoting
  58623. + # problems, so we reset it completely
  58624. + verstring=
  58625. + ;;
  58626. + *)
  58627. + verstring="0.0"
  58628. + ;;
  58629. + esac
  58630. + if test "$need_version" = no; then
  58631. + versuffix=
  58632. + else
  58633. + versuffix=".0.0"
  58634. + fi
  58635. + fi
  58636. +
  58637. + # Remove version info from name if versioning should be avoided
  58638. + if test "$avoid_version" = yes && test "$need_version" = no; then
  58639. + major=
  58640. + versuffix=
  58641. + verstring=""
  58642. + fi
  58643. +
  58644. + # Check to see if the archive will have undefined symbols.
  58645. + if test "$allow_undefined" = yes; then
  58646. + if test "$allow_undefined_flag" = unsupported; then
  58647. + func_warning "undefined symbols not allowed in $host shared libraries"
  58648. + build_libtool_libs=no
  58649. + build_old_libs=yes
  58650. + fi
  58651. + else
  58652. + # Don't allow undefined symbols.
  58653. + allow_undefined_flag="$no_undefined_flag"
  58654. + fi
  58655. +
  58656. + fi
  58657. +
  58658. + func_generate_dlsyms "$libname" "$libname" "yes"
  58659. + libobjs="$libobjs $symfileobj"
  58660. + test "X$libobjs" = "X " && libobjs=
  58661. +
  58662. + if test "$mode" != relink; then
  58663. + # Remove our outputs, but don't remove object files since they
  58664. + # may have been created when compiling PIC objects.
  58665. + removelist=
  58666. + tempremovelist=`$ECHO "$output_objdir/*"`
  58667. + for p in $tempremovelist; do
  58668. + case $p in
  58669. + *.$objext | *.gcno)
  58670. + ;;
  58671. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  58672. + if test "X$precious_files_regex" != "X"; then
  58673. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  58674. + then
  58675. + continue
  58676. + fi
  58677. + fi
  58678. + removelist="$removelist $p"
  58679. + ;;
  58680. + *) ;;
  58681. + esac
  58682. + done
  58683. + test -n "$removelist" && \
  58684. + func_show_eval "${RM}r \$removelist"
  58685. + fi
  58686. - assert(str != NULL);
  58687. - assert(pat != NULL);
  58688. + # Now set the variables for building old libraries.
  58689. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  58690. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  58691. - len = strlen(str);
  58692. - patlen = strlen(pat);
  58693. + # Transform .lo files to .o files.
  58694. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  58695. + fi
  58696. - if (patlen <= len)
  58697. - {
  58698. - str += len - patlen;
  58699. - if (strcmp(str, pat) == 0)
  58700. - *str = '\0';
  58701. - }
  58702. - return str;
  58703. -}
  58704. + # Eliminate all temporary directories.
  58705. + #for path in $notinst_path; do
  58706. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  58707. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  58708. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  58709. + #done
  58710. -static void
  58711. -lt_error_core (int exit_status, const char * mode,
  58712. - const char * message, va_list ap)
  58713. -{
  58714. - fprintf (stderr, "%s: %s: ", program_name, mode);
  58715. - vfprintf (stderr, message, ap);
  58716. - fprintf (stderr, ".\n");
  58717. + if test -n "$xrpath"; then
  58718. + # If the user specified any rpath flags, then add them.
  58719. + temp_xrpath=
  58720. + for libdir in $xrpath; do
  58721. + temp_xrpath="$temp_xrpath -R$libdir"
  58722. + case "$finalize_rpath " in
  58723. + *" $libdir "*) ;;
  58724. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  58725. + esac
  58726. + done
  58727. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  58728. + dependency_libs="$temp_xrpath $dependency_libs"
  58729. + fi
  58730. + fi
  58731. - if (exit_status >= 0)
  58732. - exit (exit_status);
  58733. -}
  58734. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  58735. + old_dlfiles="$dlfiles"
  58736. + dlfiles=
  58737. + for lib in $old_dlfiles; do
  58738. + case " $dlprefiles $dlfiles " in
  58739. + *" $lib "*) ;;
  58740. + *) dlfiles="$dlfiles $lib" ;;
  58741. + esac
  58742. + done
  58743. -void
  58744. -lt_fatal (const char *message, ...)
  58745. -{
  58746. - va_list ap;
  58747. - va_start (ap, message);
  58748. - lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  58749. - va_end (ap);
  58750. -}
  58751. + # Make sure dlprefiles contains only unique files
  58752. + old_dlprefiles="$dlprefiles"
  58753. + dlprefiles=
  58754. + for lib in $old_dlprefiles; do
  58755. + case "$dlprefiles " in
  58756. + *" $lib "*) ;;
  58757. + *) dlprefiles="$dlprefiles $lib" ;;
  58758. + esac
  58759. + done
  58760. +
  58761. + if test "$build_libtool_libs" = yes; then
  58762. + if test -n "$rpath"; then
  58763. + case $host in
  58764. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  58765. + # these systems don't actually have a c library (as such)!
  58766. + ;;
  58767. + *-*-rhapsody* | *-*-darwin1.[012])
  58768. + # Rhapsody C library is in the System framework
  58769. + deplibs="$deplibs System.ltframework"
  58770. + ;;
  58771. + *-*-netbsd*)
  58772. + # Don't link with libc until the a.out ld.so is fixed.
  58773. + ;;
  58774. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  58775. + # Do not include libc due to us having libc/libc_r.
  58776. + ;;
  58777. + *-*-sco3.2v5* | *-*-sco5v6*)
  58778. + # Causes problems with __ctype
  58779. + ;;
  58780. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  58781. + # Compiler inserts libc in the correct place for threads to work
  58782. + ;;
  58783. + *)
  58784. + # Add libc to deplibs on all other systems if necessary.
  58785. + if test "$build_libtool_need_lc" = "yes"; then
  58786. + deplibs="$deplibs -lc"
  58787. + fi
  58788. + ;;
  58789. + esac
  58790. + fi
  58791. +
  58792. + # Transform deplibs into only deplibs that can be linked in shared.
  58793. + name_save=$name
  58794. + libname_save=$libname
  58795. + release_save=$release
  58796. + versuffix_save=$versuffix
  58797. + major_save=$major
  58798. + # I'm not sure if I'm treating the release correctly. I think
  58799. + # release should show up in the -l (ie -lgmp5) so we don't want to
  58800. + # add it in twice. Is that correct?
  58801. + release=""
  58802. + versuffix=""
  58803. + major=""
  58804. + newdeplibs=
  58805. + droppeddeps=no
  58806. + case $deplibs_check_method in
  58807. + pass_all)
  58808. + # Don't check for shared/static. Everything works.
  58809. + # This might be a little naive. We might want to check
  58810. + # whether the library exists or not. But this is on
  58811. + # osf3 & osf4 and I'm not really sure... Just
  58812. + # implementing what was already the behavior.
  58813. + newdeplibs=$deplibs
  58814. + ;;
  58815. + test_compile)
  58816. + # This code stresses the "libraries are programs" paradigm to its
  58817. + # limits. Maybe even breaks it. We compile a program, linking it
  58818. + # against the deplibs as a proxy for the library. Then we can check
  58819. + # whether they linked in statically or dynamically with ldd.
  58820. + $opt_dry_run || $RM conftest.c
  58821. + cat > conftest.c <<EOF
  58822. + int main() { return 0; }
  58823. EOF
  58824. - # we should really use a build-platform specific compiler
  58825. - # here, but OTOH, the wrappers (shell script and this C one)
  58826. - # are only useful if you want to execute the "real" binary.
  58827. - # Since the "real" binary is built for $host, then this
  58828. - # wrapper might as well be built for $host, too.
  58829. - $run $LTCC -s -o $cwrapper $cwrappersource
  58830. + $opt_dry_run || $RM conftest
  58831. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  58832. + ldd_output=`ldd conftest`
  58833. + for i in $deplibs; do
  58834. + case $i in
  58835. + -l*)
  58836. + func_stripname -l '' "$i"
  58837. + name=$func_stripname_result
  58838. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58839. + case " $predeps $postdeps " in
  58840. + *" $i "*)
  58841. + newdeplibs="$newdeplibs $i"
  58842. + i=""
  58843. + ;;
  58844. + esac
  58845. + fi
  58846. + if test -n "$i" ; then
  58847. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58848. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58849. + set dummy $deplib_matches; shift
  58850. + deplib_match=$1
  58851. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58852. + newdeplibs="$newdeplibs $i"
  58853. + else
  58854. + droppeddeps=yes
  58855. + $ECHO
  58856. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58857. + $ECHO "*** I have the capability to make that library automatically link in when"
  58858. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58859. + $ECHO "*** shared version of the library, which I believe you do not have"
  58860. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  58861. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  58862. + fi
  58863. + fi
  58864. + ;;
  58865. + *)
  58866. + newdeplibs="$newdeplibs $i"
  58867. + ;;
  58868. + esac
  58869. + done
  58870. + else
  58871. + # Error occurred in the first compile. Let's try to salvage
  58872. + # the situation: Compile a separate program for each library.
  58873. + for i in $deplibs; do
  58874. + case $i in
  58875. + -l*)
  58876. + func_stripname -l '' "$i"
  58877. + name=$func_stripname_result
  58878. + $opt_dry_run || $RM conftest
  58879. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  58880. + ldd_output=`ldd conftest`
  58881. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58882. + case " $predeps $postdeps " in
  58883. + *" $i "*)
  58884. + newdeplibs="$newdeplibs $i"
  58885. + i=""
  58886. + ;;
  58887. + esac
  58888. + fi
  58889. + if test -n "$i" ; then
  58890. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58891. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58892. + set dummy $deplib_matches; shift
  58893. + deplib_match=$1
  58894. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58895. + newdeplibs="$newdeplibs $i"
  58896. + else
  58897. + droppeddeps=yes
  58898. + $ECHO
  58899. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58900. + $ECHO "*** I have the capability to make that library automatically link in when"
  58901. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58902. + $ECHO "*** shared version of the library, which you do not appear to have"
  58903. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  58904. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  58905. + fi
  58906. + fi
  58907. + else
  58908. + droppeddeps=yes
  58909. + $ECHO
  58910. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  58911. + $ECHO "*** make it link in! You will probably need to install it or some"
  58912. + $ECHO "*** library that it depends on before this library will be fully"
  58913. + $ECHO "*** functional. Installing it before continuing would be even better."
  58914. + fi
  58915. + ;;
  58916. + *)
  58917. + newdeplibs="$newdeplibs $i"
  58918. + ;;
  58919. + esac
  58920. + done
  58921. + fi
  58922. + ;;
  58923. + file_magic*)
  58924. + set dummy $deplibs_check_method; shift
  58925. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58926. + for a_deplib in $deplibs; do
  58927. + case $a_deplib in
  58928. + -l*)
  58929. + func_stripname -l '' "$a_deplib"
  58930. + name=$func_stripname_result
  58931. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58932. + case " $predeps $postdeps " in
  58933. + *" $a_deplib "*)
  58934. + newdeplibs="$newdeplibs $a_deplib"
  58935. + a_deplib=""
  58936. + ;;
  58937. + esac
  58938. + fi
  58939. + if test -n "$a_deplib" ; then
  58940. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58941. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58942. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58943. + for potent_lib in $potential_libs; do
  58944. + # Follow soft links.
  58945. + if ls -lLd "$potent_lib" 2>/dev/null |
  58946. + $GREP " -> " >/dev/null; then
  58947. + continue
  58948. + fi
  58949. + # The statement above tries to avoid entering an
  58950. + # endless loop below, in case of cyclic links.
  58951. + # We might still enter an endless loop, since a link
  58952. + # loop can be closed while we follow links,
  58953. + # but so what?
  58954. + potlib="$potent_lib"
  58955. + while test -h "$potlib" 2>/dev/null; do
  58956. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  58957. + case $potliblink in
  58958. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  58959. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  58960. + esac
  58961. + done
  58962. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  58963. + $SED -e 10q |
  58964. + $EGREP "$file_magic_regex" > /dev/null; then
  58965. + newdeplibs="$newdeplibs $a_deplib"
  58966. + a_deplib=""
  58967. + break 2
  58968. + fi
  58969. + done
  58970. + done
  58971. + fi
  58972. + if test -n "$a_deplib" ; then
  58973. + droppeddeps=yes
  58974. + $ECHO
  58975. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58976. + $ECHO "*** I have the capability to make that library automatically link in when"
  58977. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58978. + $ECHO "*** shared version of the library, which you do not appear to have"
  58979. + $ECHO "*** because I did check the linker path looking for a file starting"
  58980. + if test -z "$potlib" ; then
  58981. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  58982. + else
  58983. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58984. + $ECHO "*** using a file magic. Last file checked: $potlib"
  58985. + fi
  58986. + fi
  58987. + ;;
  58988. + *)
  58989. + # Add a -L argument.
  58990. + newdeplibs="$newdeplibs $a_deplib"
  58991. + ;;
  58992. + esac
  58993. + done # Gone through all deplibs.
  58994. + ;;
  58995. + match_pattern*)
  58996. + set dummy $deplibs_check_method; shift
  58997. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58998. + for a_deplib in $deplibs; do
  58999. + case $a_deplib in
  59000. + -l*)
  59001. + func_stripname -l '' "$a_deplib"
  59002. + name=$func_stripname_result
  59003. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59004. + case " $predeps $postdeps " in
  59005. + *" $a_deplib "*)
  59006. + newdeplibs="$newdeplibs $a_deplib"
  59007. + a_deplib=""
  59008. + ;;
  59009. + esac
  59010. + fi
  59011. + if test -n "$a_deplib" ; then
  59012. + libname=`eval "\\$ECHO \"$libname_spec\""`
  59013. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  59014. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  59015. + for potent_lib in $potential_libs; do
  59016. + potlib="$potent_lib" # see symlink-check above in file_magic test
  59017. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  59018. + $EGREP "$match_pattern_regex" > /dev/null; then
  59019. + newdeplibs="$newdeplibs $a_deplib"
  59020. + a_deplib=""
  59021. + break 2
  59022. + fi
  59023. + done
  59024. + done
  59025. + fi
  59026. + if test -n "$a_deplib" ; then
  59027. + droppeddeps=yes
  59028. + $ECHO
  59029. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  59030. + $ECHO "*** I have the capability to make that library automatically link in when"
  59031. + $ECHO "*** you link to this library. But I can only do this if you have a"
  59032. + $ECHO "*** shared version of the library, which you do not appear to have"
  59033. + $ECHO "*** because I did check the linker path looking for a file starting"
  59034. + if test -z "$potlib" ; then
  59035. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  59036. + else
  59037. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  59038. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  59039. + fi
  59040. + fi
  59041. + ;;
  59042. + *)
  59043. + # Add a -L argument.
  59044. + newdeplibs="$newdeplibs $a_deplib"
  59045. + ;;
  59046. + esac
  59047. + done # Gone through all deplibs.
  59048. + ;;
  59049. + none | unknown | *)
  59050. + newdeplibs=""
  59051. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  59052. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  59053. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  59054. + for i in $predeps $postdeps ; do
  59055. + # can't use Xsed below, because $i might contain '/'
  59056. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  59057. + done
  59058. + fi
  59059. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  59060. + $GREP . >/dev/null; then
  59061. + $ECHO
  59062. + if test "X$deplibs_check_method" = "Xnone"; then
  59063. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  59064. + else
  59065. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  59066. + fi
  59067. + $ECHO "*** All declared inter-library dependencies are being dropped."
  59068. + droppeddeps=yes
  59069. + fi
  59070. ;;
  59071. esac
  59072. - $rm $output
  59073. - trap "$rm $output; exit 1" 1 2 15
  59074. -
  59075. - $echo > $output "\
  59076. -#! $SHELL
  59077. -
  59078. -# $output - temporary wrapper script for $objdir/$outputname
  59079. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  59080. -#
  59081. -# The $output program cannot be directly executed until all the libtool
  59082. -# libraries that it depends on are installed.
  59083. -#
  59084. -# This wrapper script should never be moved out of the build directory.
  59085. -# If it is, it will not operate correctly.
  59086. -
  59087. -# Sed substitution that helps us do robust quoting. It backslashifies
  59088. -# metacharacters that are still active within double-quoted strings.
  59089. -Xsed='${SED} -e 1s/^X//'
  59090. -sed_quote_subst='$sed_quote_subst'
  59091. -
  59092. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  59093. -# if CDPATH is set.
  59094. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  59095. -
  59096. -relink_command=\"$relink_command\"
  59097. -
  59098. -# This environment variable determines our operation mode.
  59099. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  59100. - # install mode needs the following variable:
  59101. - notinst_deplibs='$notinst_deplibs'
  59102. -else
  59103. - # When we are sourced in execute mode, \$file and \$echo are already set.
  59104. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  59105. - echo=\"$qecho\"
  59106. - file=\"\$0\"
  59107. - # Make sure echo works.
  59108. - if test \"X\$1\" = X--no-reexec; then
  59109. - # Discard the --no-reexec flag, and continue.
  59110. - shift
  59111. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  59112. - # Yippee, \$echo works!
  59113. - :
  59114. - else
  59115. - # Restart under the correct shell, and then maybe \$echo will work.
  59116. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  59117. - fi
  59118. - fi\
  59119. -"
  59120. - $echo >> $output "\
  59121. + versuffix=$versuffix_save
  59122. + major=$major_save
  59123. + release=$release_save
  59124. + libname=$libname_save
  59125. + name=$name_save
  59126. - # Find the directory that this script lives in.
  59127. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  59128. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  59129. + case $host in
  59130. + *-*-rhapsody* | *-*-darwin1.[012])
  59131. + # On Rhapsody replace the C library with the System framework
  59132. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59133. + ;;
  59134. + esac
  59135. - # Follow symbolic links until we get to the real thisdir.
  59136. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  59137. - while test -n \"\$file\"; do
  59138. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  59139. + if test "$droppeddeps" = yes; then
  59140. + if test "$module" = yes; then
  59141. + $ECHO
  59142. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  59143. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  59144. + $ECHO "*** a static module, that should work as long as the dlopening"
  59145. + $ECHO "*** application is linked with the -dlopen flag."
  59146. + if test -z "$global_symbol_pipe"; then
  59147. + $ECHO
  59148. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  59149. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  59150. + $ECHO "*** not find such a program. So, this module is probably useless."
  59151. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  59152. + fi
  59153. + if test "$build_old_libs" = no; then
  59154. + oldlibs="$output_objdir/$libname.$libext"
  59155. + build_libtool_libs=module
  59156. + build_old_libs=yes
  59157. + else
  59158. + build_libtool_libs=no
  59159. + fi
  59160. + else
  59161. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  59162. + $ECHO "*** automatically added whenever a program is linked with this library"
  59163. + $ECHO "*** or is declared to -dlopen it."
  59164. - # If there was a directory component, then change thisdir.
  59165. - if test \"x\$destdir\" != \"x\$file\"; then
  59166. - case \"\$destdir\" in
  59167. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  59168. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  59169. + if test "$allow_undefined" = no; then
  59170. + $ECHO
  59171. + $ECHO "*** Since this library must not contain undefined symbols,"
  59172. + $ECHO "*** because either the platform does not support them or"
  59173. + $ECHO "*** it was explicitly requested with -no-undefined,"
  59174. + $ECHO "*** libtool will only create a static version of it."
  59175. + if test "$build_old_libs" = no; then
  59176. + oldlibs="$output_objdir/$libname.$libext"
  59177. + build_libtool_libs=module
  59178. + build_old_libs=yes
  59179. + else
  59180. + build_libtool_libs=no
  59181. + fi
  59182. + fi
  59183. + fi
  59184. + fi
  59185. + # Done checking deplibs!
  59186. + deplibs=$newdeplibs
  59187. + fi
  59188. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  59189. + case $host in
  59190. + *-*-darwin*)
  59191. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59192. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59193. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59194. + ;;
  59195. esac
  59196. - fi
  59197. -
  59198. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  59199. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  59200. - done
  59201. -
  59202. - # Try to get the absolute directory name.
  59203. - absdir=\`cd \"\$thisdir\" && pwd\`
  59204. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  59205. -"
  59206. -
  59207. - if test "$fast_install" = yes; then
  59208. - $echo >> $output "\
  59209. - program=lt-'$outputname'$exeext
  59210. - progdir=\"\$thisdir/$objdir\"
  59211. -
  59212. - if test ! -f \"\$progdir/\$program\" || \\
  59213. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  59214. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  59215. -
  59216. - file=\"\$\$-\$program\"
  59217. -
  59218. - if test ! -d \"\$progdir\"; then
  59219. - $mkdir \"\$progdir\"
  59220. - else
  59221. - $rm \"\$progdir/\$file\"
  59222. - fi"
  59223. - $echo >> $output "\
  59224. + # move library search paths that coincide with paths to not yet
  59225. + # installed libraries to the beginning of the library search list
  59226. + new_libs=
  59227. + for path in $notinst_path; do
  59228. + case " $new_libs " in
  59229. + *" -L$path/$objdir "*) ;;
  59230. + *)
  59231. + case " $deplibs " in
  59232. + *" -L$path/$objdir "*)
  59233. + new_libs="$new_libs -L$path/$objdir" ;;
  59234. + esac
  59235. + ;;
  59236. + esac
  59237. + done
  59238. + for deplib in $deplibs; do
  59239. + case $deplib in
  59240. + -L*)
  59241. + case " $new_libs " in
  59242. + *" $deplib "*) ;;
  59243. + *) new_libs="$new_libs $deplib" ;;
  59244. + esac
  59245. + ;;
  59246. + *) new_libs="$new_libs $deplib" ;;
  59247. + esac
  59248. + done
  59249. + deplibs="$new_libs"
  59250. - # relink executable if necessary
  59251. - if test -n \"\$relink_command\"; then
  59252. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  59253. - else
  59254. - $echo \"\$relink_command_output\" >&2
  59255. - $rm \"\$progdir/\$file\"
  59256. - exit 1
  59257. - fi
  59258. - fi
  59259. + # All the library-specific variables (install_libdir is set above).
  59260. + library_names=
  59261. + old_library=
  59262. + dlname=
  59263. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  59264. - { $rm \"\$progdir/\$program\";
  59265. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  59266. - $rm \"\$progdir/\$file\"
  59267. - fi"
  59268. - else
  59269. - $echo >> $output "\
  59270. - program='$outputname'
  59271. - progdir=\"\$thisdir/$objdir\"
  59272. -"
  59273. + # Test again, we may have decided not to build it any more
  59274. + if test "$build_libtool_libs" = yes; then
  59275. + if test "$hardcode_into_libs" = yes; then
  59276. + # Hardcode the library paths
  59277. + hardcode_libdirs=
  59278. + dep_rpath=
  59279. + rpath="$finalize_rpath"
  59280. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  59281. + for libdir in $rpath; do
  59282. + if test -n "$hardcode_libdir_flag_spec"; then
  59283. + if test -n "$hardcode_libdir_separator"; then
  59284. + if test -z "$hardcode_libdirs"; then
  59285. + hardcode_libdirs="$libdir"
  59286. + else
  59287. + # Just accumulate the unique libdirs.
  59288. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59289. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59290. + ;;
  59291. + *)
  59292. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59293. + ;;
  59294. + esac
  59295. + fi
  59296. + else
  59297. + eval flag=\"$hardcode_libdir_flag_spec\"
  59298. + dep_rpath="$dep_rpath $flag"
  59299. + fi
  59300. + elif test -n "$runpath_var"; then
  59301. + case "$perm_rpath " in
  59302. + *" $libdir "*) ;;
  59303. + *) perm_rpath="$perm_rpath $libdir" ;;
  59304. + esac
  59305. + fi
  59306. + done
  59307. + # Substitute the hardcoded libdirs into the rpath.
  59308. + if test -n "$hardcode_libdir_separator" &&
  59309. + test -n "$hardcode_libdirs"; then
  59310. + libdir="$hardcode_libdirs"
  59311. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  59312. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  59313. + else
  59314. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  59315. + fi
  59316. + fi
  59317. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  59318. + # We should set the runpath_var.
  59319. + rpath=
  59320. + for dir in $perm_rpath; do
  59321. + rpath="$rpath$dir:"
  59322. + done
  59323. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  59324. + fi
  59325. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  59326. fi
  59327. - $echo >> $output "\
  59328. -
  59329. - if test -f \"\$progdir/\$program\"; then"
  59330. -
  59331. - # Export our shlibpath_var if we have one.
  59332. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  59333. - $echo >> $output "\
  59334. - # Add our own library path to $shlibpath_var
  59335. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  59336. + shlibpath="$finalize_shlibpath"
  59337. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  59338. + if test -n "$shlibpath"; then
  59339. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  59340. + fi
  59341. - # Some systems cannot cope with colon-terminated $shlibpath_var
  59342. - # The second colon is a workaround for a bug in BeOS R4 sed
  59343. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  59344. + # Get the real and link names of the library.
  59345. + eval shared_ext=\"$shrext_cmds\"
  59346. + eval library_names=\"$library_names_spec\"
  59347. + set dummy $library_names
  59348. + shift
  59349. + realname="$1"
  59350. + shift
  59351. - export $shlibpath_var
  59352. -"
  59353. + if test -n "$soname_spec"; then
  59354. + eval soname=\"$soname_spec\"
  59355. + else
  59356. + soname="$realname"
  59357. fi
  59358. -
  59359. - # fixup the dll searchpath if we need to.
  59360. - if test -n "$dllsearchpath"; then
  59361. - $echo >> $output "\
  59362. - # Add the dll search path components to the executable PATH
  59363. - PATH=$dllsearchpath:\$PATH
  59364. -"
  59365. + if test -z "$dlname"; then
  59366. + dlname=$soname
  59367. fi
  59368. - $echo >> $output "\
  59369. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  59370. - # Run the actual program with our arguments.
  59371. -"
  59372. - case $host in
  59373. - # Backslashes separate directories on plain windows
  59374. - *-*-mingw | *-*-os2*)
  59375. - $echo >> $output "\
  59376. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  59377. -"
  59378. - ;;
  59379. -
  59380. - *)
  59381. - $echo >> $output "\
  59382. - exec \$progdir/\$program \${1+\"\$@\"}
  59383. -"
  59384. - ;;
  59385. - esac
  59386. - $echo >> $output "\
  59387. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  59388. - exit 1
  59389. - fi
  59390. - else
  59391. - # The program doesn't exist.
  59392. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  59393. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  59394. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  59395. - exit 1
  59396. - fi
  59397. -fi\
  59398. -"
  59399. - chmod +x $output
  59400. - fi
  59401. - exit 0
  59402. - ;;
  59403. - esac
  59404. + lib="$output_objdir/$realname"
  59405. + linknames=
  59406. + for link
  59407. + do
  59408. + linknames="$linknames $link"
  59409. + done
  59410. - # See if we need to build an old-fashioned archive.
  59411. - for oldlib in $oldlibs; do
  59412. + # Use standard objects if they are pic
  59413. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59414. + test "X$libobjs" = "X " && libobjs=
  59415. - if test "$build_libtool_libs" = convenience; then
  59416. - oldobjs="$libobjs_save"
  59417. - addlibs="$convenience"
  59418. - build_libtool_libs=no
  59419. - else
  59420. - if test "$build_libtool_libs" = module; then
  59421. - oldobjs="$libobjs_save"
  59422. - build_libtool_libs=no
  59423. - else
  59424. - oldobjs="$old_deplibs $non_pic_objects"
  59425. + delfiles=
  59426. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59427. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  59428. + export_symbols="$output_objdir/$libname.uexp"
  59429. + delfiles="$delfiles $export_symbols"
  59430. + fi
  59431. +
  59432. + orig_export_symbols=
  59433. + case $host_os in
  59434. + cygwin* | mingw* | cegcc*)
  59435. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  59436. + # exporting using user supplied symfile
  59437. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  59438. + # and it's NOT already a .def file. Must figure out
  59439. + # which of the given symbols are data symbols and tag
  59440. + # them as such. So, trigger use of export_symbols_cmds.
  59441. + # export_symbols gets reassigned inside the "prepare
  59442. + # the list of exported symbols" if statement, so the
  59443. + # include_expsyms logic still works.
  59444. + orig_export_symbols="$export_symbols"
  59445. + export_symbols=
  59446. + always_export_symbols=yes
  59447. + fi
  59448. + fi
  59449. + ;;
  59450. + esac
  59451. +
  59452. + # Prepare the list of exported symbols
  59453. + if test -z "$export_symbols"; then
  59454. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  59455. + func_verbose "generating symbol list for \`$libname.la'"
  59456. + export_symbols="$output_objdir/$libname.exp"
  59457. + $opt_dry_run || $RM $export_symbols
  59458. + cmds=$export_symbols_cmds
  59459. + save_ifs="$IFS"; IFS='~'
  59460. + for cmd in $cmds; do
  59461. + IFS="$save_ifs"
  59462. + eval cmd=\"$cmd\"
  59463. + func_len " $cmd"
  59464. + len=$func_len_result
  59465. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59466. + func_show_eval "$cmd" 'exit $?'
  59467. + skipped_export=false
  59468. + else
  59469. + # The command line is too long to execute in one step.
  59470. + func_verbose "using reloadable object file for export list..."
  59471. + skipped_export=:
  59472. + # Break out early, otherwise skipped_export may be
  59473. + # set to false by a later but shorter cmd.
  59474. + break
  59475. + fi
  59476. + done
  59477. + IFS="$save_ifs"
  59478. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  59479. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59480. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  59481. + fi
  59482. + fi
  59483. fi
  59484. - addlibs="$old_convenience"
  59485. - fi
  59486. - if test -n "$addlibs"; then
  59487. - gentop="$output_objdir/${outputname}x"
  59488. - $show "${rm}r $gentop"
  59489. - $run ${rm}r "$gentop"
  59490. - $show "$mkdir $gentop"
  59491. - $run $mkdir "$gentop"
  59492. - status=$?
  59493. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  59494. - exit $status
  59495. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59496. + tmp_export_symbols="$export_symbols"
  59497. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  59498. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  59499. + fi
  59500. +
  59501. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  59502. + # The given exports_symbols file has to be filtered, so filter it.
  59503. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  59504. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  59505. + # 's' commands which not all seds can handle. GNU sed should be fine
  59506. + # though. Also, the filter scales superlinearly with the number of
  59507. + # global variables. join(1) would be nice here, but unfortunately
  59508. + # isn't a blessed tool.
  59509. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  59510. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  59511. + export_symbols=$output_objdir/$libname.def
  59512. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  59513. fi
  59514. - generated="$generated $gentop"
  59515. - # Add in members from convenience archives.
  59516. - for xlib in $addlibs; do
  59517. - # Extract the objects.
  59518. - case $xlib in
  59519. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  59520. - *) xabs=`pwd`"/$xlib" ;;
  59521. + tmp_deplibs=
  59522. + for test_deplib in $deplibs; do
  59523. + case " $convenience " in
  59524. + *" $test_deplib "*) ;;
  59525. + *)
  59526. + tmp_deplibs="$tmp_deplibs $test_deplib"
  59527. + ;;
  59528. esac
  59529. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  59530. - xdir="$gentop/$xlib"
  59531. + done
  59532. + deplibs="$tmp_deplibs"
  59533. - $show "${rm}r $xdir"
  59534. - $run ${rm}r "$xdir"
  59535. - $show "$mkdir $xdir"
  59536. - $run $mkdir "$xdir"
  59537. - status=$?
  59538. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  59539. - exit $status
  59540. - fi
  59541. - # We will extract separately just the conflicting names and we will no
  59542. - # longer touch any unique names. It is faster to leave these extract
  59543. - # automatically by $AR in one run.
  59544. - $show "(cd $xdir && $AR x $xabs)"
  59545. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  59546. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  59547. - :
  59548. + if test -n "$convenience"; then
  59549. + if test -n "$whole_archive_flag_spec" &&
  59550. + test "$compiler_needs_object" = yes &&
  59551. + test -z "$libobjs"; then
  59552. + # extract the archives, so we have objects to list.
  59553. + # TODO: could optimize this to just extract one archive.
  59554. + whole_archive_flag_spec=
  59555. + fi
  59556. + if test -n "$whole_archive_flag_spec"; then
  59557. + save_libobjs=$libobjs
  59558. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59559. + test "X$libobjs" = "X " && libobjs=
  59560. else
  59561. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  59562. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  59563. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  59564. - do
  59565. - i=1
  59566. - while test "$i" -le "$count"
  59567. - do
  59568. - # Put our $i before any first dot (extension)
  59569. - # Never overwrite any file
  59570. - name_to="$name"
  59571. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  59572. - do
  59573. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  59574. - done
  59575. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  59576. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  59577. - i=`expr $i + 1`
  59578. - done
  59579. - done
  59580. + gentop="$output_objdir/${outputname}x"
  59581. + generated="$generated $gentop"
  59582. +
  59583. + func_extract_archives $gentop $convenience
  59584. + libobjs="$libobjs $func_extract_archives_result"
  59585. + test "X$libobjs" = "X " && libobjs=
  59586. fi
  59587. + fi
  59588. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  59589. - done
  59590. - fi
  59591. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  59592. + eval flag=\"$thread_safe_flag_spec\"
  59593. + linker_flags="$linker_flags $flag"
  59594. + fi
  59595. - # Do each command in the archive commands.
  59596. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  59597. - cmds=$old_archive_from_new_cmds
  59598. - else
  59599. - eval cmds=\"$old_archive_cmds\"
  59600. + # Make a backup of the uninstalled library when relinking
  59601. + if test "$mode" = relink; then
  59602. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  59603. + fi
  59604. - if len=`expr "X$cmds" : ".*"` &&
  59605. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59606. - cmds=$old_archive_cmds
  59607. - else
  59608. - # the command line is too long to link in one step, link in parts
  59609. - $echo "using piecewise archive linking..."
  59610. - save_RANLIB=$RANLIB
  59611. - RANLIB=:
  59612. - objlist=
  59613. - concat_cmds=
  59614. - save_oldobjs=$oldobjs
  59615. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  59616. - # encoded into archives. This makes 'ar r' malfunction in
  59617. - # this piecewise linking case whenever conflicting object
  59618. - # names appear in distinct ar calls; check, warn and compensate.
  59619. - if (for obj in $save_oldobjs
  59620. - do
  59621. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  59622. - done | sort | sort -uc >/dev/null 2>&1); then
  59623. - :
  59624. + # Do each of the archive commands.
  59625. + if test "$module" = yes && test -n "$module_cmds" ; then
  59626. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59627. + eval test_cmds=\"$module_expsym_cmds\"
  59628. + cmds=$module_expsym_cmds
  59629. else
  59630. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  59631. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  59632. - AR_FLAGS=cq
  59633. + eval test_cmds=\"$module_cmds\"
  59634. + cmds=$module_cmds
  59635. fi
  59636. - # Is there a better way of finding the last object in the list?
  59637. - for obj in $save_oldobjs
  59638. - do
  59639. - last_oldobj=$obj
  59640. - done
  59641. - for obj in $save_oldobjs
  59642. - do
  59643. - oldobjs="$objlist $obj"
  59644. - objlist="$objlist $obj"
  59645. - eval test_cmds=\"$old_archive_cmds\"
  59646. - if len=`expr "X$test_cmds" : ".*"` &&
  59647. - test "$len" -le "$max_cmd_len"; then
  59648. - :
  59649. - else
  59650. - # the above command should be used before it gets too long
  59651. - oldobjs=$objlist
  59652. - if test "$obj" = "$last_oldobj" ; then
  59653. - RANLIB=$save_RANLIB
  59654. - fi
  59655. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59656. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  59657. - objlist=
  59658. - fi
  59659. - done
  59660. - RANLIB=$save_RANLIB
  59661. - oldobjs=$objlist
  59662. - if test "X$oldobjs" = "X" ; then
  59663. - eval cmds=\"\$concat_cmds\"
  59664. + else
  59665. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59666. + eval test_cmds=\"$archive_expsym_cmds\"
  59667. + cmds=$archive_expsym_cmds
  59668. else
  59669. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  59670. + eval test_cmds=\"$archive_cmds\"
  59671. + cmds=$archive_cmds
  59672. fi
  59673. fi
  59674. - fi
  59675. - save_ifs="$IFS"; IFS='~'
  59676. - for cmd in $cmds; do
  59677. - eval cmd=\"$cmd\"
  59678. - IFS="$save_ifs"
  59679. - $show "$cmd"
  59680. - $run eval "$cmd" || exit $?
  59681. - done
  59682. - IFS="$save_ifs"
  59683. - done
  59684. - if test -n "$generated"; then
  59685. - $show "${rm}r$generated"
  59686. - $run ${rm}r$generated
  59687. - fi
  59688. + if test "X$skipped_export" != "X:" &&
  59689. + func_len " $test_cmds" &&
  59690. + len=$func_len_result &&
  59691. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59692. + :
  59693. + else
  59694. + # The command line is too long to link in one step, link piecewise
  59695. + # or, if using GNU ld and skipped_export is not :, use a linker
  59696. + # script.
  59697. - # Now create the libtool archive.
  59698. - case $output in
  59699. - *.la)
  59700. - old_library=
  59701. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  59702. - $show "creating $output"
  59703. + # Save the value of $output and $libobjs because we want to
  59704. + # use them later. If we have whole_archive_flag_spec, we
  59705. + # want to use save_libobjs as it was before
  59706. + # whole_archive_flag_spec was expanded, because we can't
  59707. + # assume the linker understands whole_archive_flag_spec.
  59708. + # This may have to be revisited, in case too many
  59709. + # convenience libraries get linked in and end up exceeding
  59710. + # the spec.
  59711. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  59712. + save_libobjs=$libobjs
  59713. + fi
  59714. + save_output=$output
  59715. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  59716. - # Preserve any variables that may affect compiler behavior
  59717. - for var in $variables_saved_for_relink; do
  59718. - if eval test -z \"\${$var+set}\"; then
  59719. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  59720. - elif eval var_value=\$$var; test -z "$var_value"; then
  59721. - relink_command="$var=; export $var; $relink_command"
  59722. - else
  59723. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  59724. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  59725. - fi
  59726. - done
  59727. - # Quote the link command for shipping.
  59728. - relink_command="(cd `pwd`; $SHELL $0 $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  59729. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  59730. - if test "$hardcode_automatic" = yes ; then
  59731. - relink_command=
  59732. - fi
  59733. - # Only create the output if not a dry run.
  59734. - if test -z "$run"; then
  59735. - for installed in no yes; do
  59736. - if test "$installed" = yes; then
  59737. - if test -z "$install_libdir"; then
  59738. - break
  59739. + # Clear the reloadable object creation command queue and
  59740. + # initialize k to one.
  59741. + test_cmds=
  59742. + concat_cmds=
  59743. + objlist=
  59744. + last_robj=
  59745. + k=1
  59746. +
  59747. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  59748. + output=${output_objdir}/${output_la}.lnkscript
  59749. + func_verbose "creating GNU ld script: $output"
  59750. + $ECHO 'INPUT (' > $output
  59751. + for obj in $save_libobjs
  59752. + do
  59753. + $ECHO "$obj" >> $output
  59754. + done
  59755. + $ECHO ')' >> $output
  59756. + delfiles="$delfiles $output"
  59757. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  59758. + output=${output_objdir}/${output_la}.lnk
  59759. + func_verbose "creating linker input file list: $output"
  59760. + : > $output
  59761. + set x $save_libobjs
  59762. + shift
  59763. + firstobj=
  59764. + if test "$compiler_needs_object" = yes; then
  59765. + firstobj="$1 "
  59766. + shift
  59767. fi
  59768. - output="$output_objdir/$outputname"i
  59769. - # Replace all uninstalled libtool libraries with the installed ones
  59770. - newdependency_libs=
  59771. - for deplib in $dependency_libs; do
  59772. - case $deplib in
  59773. - *.la)
  59774. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  59775. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  59776. - if test -z "$libdir"; then
  59777. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  59778. - exit 1
  59779. - fi
  59780. - newdependency_libs="$newdependency_libs $libdir/$name"
  59781. - ;;
  59782. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  59783. - esac
  59784. + for obj
  59785. + do
  59786. + $ECHO "$obj" >> $output
  59787. done
  59788. - dependency_libs="$newdependency_libs"
  59789. - newdlfiles=
  59790. - for lib in $dlfiles; do
  59791. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59792. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59793. - if test -z "$libdir"; then
  59794. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59795. - exit 1
  59796. + delfiles="$delfiles $output"
  59797. + output=$firstobj\"$file_list_spec$output\"
  59798. + else
  59799. + if test -n "$save_libobjs"; then
  59800. + func_verbose "creating reloadable object files..."
  59801. + output=$output_objdir/$output_la-${k}.$objext
  59802. + eval test_cmds=\"$reload_cmds\"
  59803. + func_len " $test_cmds"
  59804. + len0=$func_len_result
  59805. + len=$len0
  59806. +
  59807. + # Loop over the list of objects to be linked.
  59808. + for obj in $save_libobjs
  59809. + do
  59810. + func_len " $obj"
  59811. + func_arith $len + $func_len_result
  59812. + len=$func_arith_result
  59813. + if test "X$objlist" = X ||
  59814. + test "$len" -lt "$max_cmd_len"; then
  59815. + func_append objlist " $obj"
  59816. + else
  59817. + # The command $test_cmds is almost too long, add a
  59818. + # command to the queue.
  59819. + if test "$k" -eq 1 ; then
  59820. + # The first file doesn't have a previous command to add.
  59821. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  59822. + else
  59823. + # All subsequent reloadable object files will link in
  59824. + # the last one created.
  59825. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  59826. + fi
  59827. + last_robj=$output_objdir/$output_la-${k}.$objext
  59828. + func_arith $k + 1
  59829. + k=$func_arith_result
  59830. + output=$output_objdir/$output_la-${k}.$objext
  59831. + objlist=$obj
  59832. + func_len " $last_robj"
  59833. + func_arith $len0 + $func_len_result
  59834. + len=$func_arith_result
  59835. + fi
  59836. + done
  59837. + # Handle the remaining objects by creating one last
  59838. + # reloadable object file. All subsequent reloadable object
  59839. + # files will link in the last one created.
  59840. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59841. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  59842. + if test -n "$last_robj"; then
  59843. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  59844. fi
  59845. - newdlfiles="$newdlfiles $libdir/$name"
  59846. - done
  59847. - dlfiles="$newdlfiles"
  59848. - newdlprefiles=
  59849. - for lib in $dlprefiles; do
  59850. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59851. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59852. - if test -z "$libdir"; then
  59853. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59854. - exit 1
  59855. + delfiles="$delfiles $output"
  59856. +
  59857. + else
  59858. + output=
  59859. + fi
  59860. +
  59861. + if ${skipped_export-false}; then
  59862. + func_verbose "generating symbol list for \`$libname.la'"
  59863. + export_symbols="$output_objdir/$libname.exp"
  59864. + $opt_dry_run || $RM $export_symbols
  59865. + libobjs=$output
  59866. + # Append the command to create the export file.
  59867. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59868. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  59869. + if test -n "$last_robj"; then
  59870. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  59871. fi
  59872. - newdlprefiles="$newdlprefiles $libdir/$name"
  59873. - done
  59874. - dlprefiles="$newdlprefiles"
  59875. - else
  59876. - newdlfiles=
  59877. - for lib in $dlfiles; do
  59878. - case $lib in
  59879. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59880. - *) abs=`pwd`"/$lib" ;;
  59881. - esac
  59882. - newdlfiles="$newdlfiles $abs"
  59883. - done
  59884. - dlfiles="$newdlfiles"
  59885. - newdlprefiles=
  59886. - for lib in $dlprefiles; do
  59887. - case $lib in
  59888. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59889. - *) abs=`pwd`"/$lib" ;;
  59890. - esac
  59891. - newdlprefiles="$newdlprefiles $abs"
  59892. + fi
  59893. +
  59894. + test -n "$save_libobjs" &&
  59895. + func_verbose "creating a temporary reloadable object file: $output"
  59896. +
  59897. + # Loop through the commands generated above and execute them.
  59898. + save_ifs="$IFS"; IFS='~'
  59899. + for cmd in $concat_cmds; do
  59900. + IFS="$save_ifs"
  59901. + $opt_silent || {
  59902. + func_quote_for_expand "$cmd"
  59903. + eval "func_echo $func_quote_for_expand_result"
  59904. + }
  59905. + $opt_dry_run || eval "$cmd" || {
  59906. + lt_exit=$?
  59907. +
  59908. + # Restore the uninstalled library and exit
  59909. + if test "$mode" = relink; then
  59910. + ( cd "$output_objdir" && \
  59911. + $RM "${realname}T" && \
  59912. + $MV "${realname}U" "$realname" )
  59913. + fi
  59914. +
  59915. + exit $lt_exit
  59916. + }
  59917. done
  59918. - dlprefiles="$newdlprefiles"
  59919. + IFS="$save_ifs"
  59920. +
  59921. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  59922. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59923. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  59924. + fi
  59925. fi
  59926. - $rm $output
  59927. - # place dlname in correct position for cygwin
  59928. - tdlname=$dlname
  59929. - case $host,$output,$installed,$module,$dlname in
  59930. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59931. - esac
  59932. - $echo > $output "\
  59933. -# $outputname - a libtool library file
  59934. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  59935. -#
  59936. -# Please DO NOT delete this file!
  59937. -# It is necessary for linking the library.
  59938. -# The name that we can dlopen(3).
  59939. -dlname='$tdlname'
  59940. + if ${skipped_export-false}; then
  59941. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59942. + tmp_export_symbols="$export_symbols"
  59943. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  59944. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  59945. + fi
  59946. +
  59947. + if test -n "$orig_export_symbols"; then
  59948. + # The given exports_symbols file has to be filtered, so filter it.
  59949. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  59950. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  59951. + # 's' commands which not all seds can handle. GNU sed should be fine
  59952. + # though. Also, the filter scales superlinearly with the number of
  59953. + # global variables. join(1) would be nice here, but unfortunately
  59954. + # isn't a blessed tool.
  59955. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  59956. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  59957. + export_symbols=$output_objdir/$libname.def
  59958. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  59959. + fi
  59960. + fi
  59961. +
  59962. + libobjs=$output
  59963. + # Restore the value of output.
  59964. + output=$save_output
  59965. +
  59966. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  59967. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59968. + test "X$libobjs" = "X " && libobjs=
  59969. + fi
  59970. + # Expand the library linking commands again to reset the
  59971. + # value of $libobjs for piecewise linking.
  59972. +
  59973. + # Do each of the archive commands.
  59974. + if test "$module" = yes && test -n "$module_cmds" ; then
  59975. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59976. + cmds=$module_expsym_cmds
  59977. + else
  59978. + cmds=$module_cmds
  59979. + fi
  59980. + else
  59981. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59982. + cmds=$archive_expsym_cmds
  59983. + else
  59984. + cmds=$archive_cmds
  59985. + fi
  59986. + fi
  59987. + fi
  59988. +
  59989. + if test -n "$delfiles"; then
  59990. + # Append the command to remove temporary files to $cmds.
  59991. + eval cmds=\"\$cmds~\$RM $delfiles\"
  59992. + fi
  59993. -# Names of this library.
  59994. -library_names='$library_names'
  59995. + # Add any objects from preloaded convenience libraries
  59996. + if test -n "$dlprefiles"; then
  59997. + gentop="$output_objdir/${outputname}x"
  59998. + generated="$generated $gentop"
  59999. -# The name of the static archive.
  60000. -old_library='$old_library'
  60001. + func_extract_archives $gentop $dlprefiles
  60002. + libobjs="$libobjs $func_extract_archives_result"
  60003. + test "X$libobjs" = "X " && libobjs=
  60004. + fi
  60005. -# Libraries that this one depends upon.
  60006. -dependency_libs='$dependency_libs'
  60007. + save_ifs="$IFS"; IFS='~'
  60008. + for cmd in $cmds; do
  60009. + IFS="$save_ifs"
  60010. + eval cmd=\"$cmd\"
  60011. + $opt_silent || {
  60012. + func_quote_for_expand "$cmd"
  60013. + eval "func_echo $func_quote_for_expand_result"
  60014. + }
  60015. + $opt_dry_run || eval "$cmd" || {
  60016. + lt_exit=$?
  60017. +
  60018. + # Restore the uninstalled library and exit
  60019. + if test "$mode" = relink; then
  60020. + ( cd "$output_objdir" && \
  60021. + $RM "${realname}T" && \
  60022. + $MV "${realname}U" "$realname" )
  60023. + fi
  60024. -# Version information for $libname.
  60025. -current=$current
  60026. -age=$age
  60027. -revision=$revision
  60028. + exit $lt_exit
  60029. + }
  60030. + done
  60031. + IFS="$save_ifs"
  60032. -# Is this an already installed library?
  60033. -installed=$installed
  60034. + # Restore the uninstalled library and exit
  60035. + if test "$mode" = relink; then
  60036. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  60037. -# Should we warn about portability when linking against -modules?
  60038. -shouldnotlink=$module
  60039. + if test -n "$convenience"; then
  60040. + if test -z "$whole_archive_flag_spec"; then
  60041. + func_show_eval '${RM}r "$gentop"'
  60042. + fi
  60043. + fi
  60044. -# Files to dlopen/dlpreopen
  60045. -dlopen='$dlfiles'
  60046. -dlpreopen='$dlprefiles'
  60047. + exit $EXIT_SUCCESS
  60048. + fi
  60049. -# Directory that this library needs to be installed in:
  60050. -libdir='$install_libdir'"
  60051. - if test "$installed" = no && test "$need_relink" = yes; then
  60052. - $echo >> $output "\
  60053. -relink_command=\"$relink_command\""
  60054. + # Create links to the real library.
  60055. + for linkname in $linknames; do
  60056. + if test "$realname" != "$linkname"; then
  60057. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  60058. fi
  60059. done
  60060. - fi
  60061. - # Do a symbolic link so that the libtool archive can be found in
  60062. - # LD_LIBRARY_PATH before the program is installed.
  60063. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  60064. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  60065. + # If -module or -export-dynamic was specified, set the dlname.
  60066. + if test "$module" = yes || test "$export_dynamic" = yes; then
  60067. + # On all known operating systems, these are identical.
  60068. + dlname="$soname"
  60069. + fi
  60070. + fi
  60071. ;;
  60072. - esac
  60073. - exit 0
  60074. - ;;
  60075. - # libtool install mode
  60076. - install)
  60077. - modename="$modename: install"
  60078. + obj)
  60079. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  60080. + func_warning "\`-dlopen' is ignored for objects"
  60081. + fi
  60082. - # There may be an optional sh(1) argument at the beginning of
  60083. - # install_prog (especially on Windows NT).
  60084. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  60085. - # Allow the use of GNU shtool's install command.
  60086. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  60087. - # Aesthetically quote it.
  60088. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  60089. - case $arg in
  60090. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  60091. - arg="\"$arg\""
  60092. - ;;
  60093. + case " $deplibs" in
  60094. + *\ -l* | *\ -L*)
  60095. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  60096. esac
  60097. - install_prog="$arg "
  60098. - arg="$1"
  60099. - shift
  60100. - else
  60101. - install_prog=
  60102. - arg="$nonopt"
  60103. - fi
  60104. - # The real first argument should be the name of the installation program.
  60105. - # Aesthetically quote it.
  60106. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  60107. - case $arg in
  60108. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  60109. - arg="\"$arg\""
  60110. - ;;
  60111. - esac
  60112. - install_prog="$install_prog$arg"
  60113. + test -n "$rpath" && \
  60114. + func_warning "\`-rpath' is ignored for objects"
  60115. - # We need to accept at least all the BSD install flags.
  60116. - dest=
  60117. - files=
  60118. - opts=
  60119. - prev=
  60120. - install_type=
  60121. - isdir=no
  60122. - stripme=
  60123. - for arg
  60124. - do
  60125. - if test -n "$dest"; then
  60126. - files="$files $dest"
  60127. - dest="$arg"
  60128. - continue
  60129. - fi
  60130. + test -n "$xrpath" && \
  60131. + func_warning "\`-R' is ignored for objects"
  60132. - case $arg in
  60133. - -d) isdir=yes ;;
  60134. - -f) prev="-f" ;;
  60135. - -g) prev="-g" ;;
  60136. - -m) prev="-m" ;;
  60137. - -o) prev="-o" ;;
  60138. - -s)
  60139. - stripme=" -s"
  60140. - continue
  60141. - ;;
  60142. - -*) ;;
  60143. + test -n "$vinfo" && \
  60144. + func_warning "\`-version-info' is ignored for objects"
  60145. +
  60146. + test -n "$release" && \
  60147. + func_warning "\`-release' is ignored for objects"
  60148. +
  60149. + case $output in
  60150. + *.lo)
  60151. + test -n "$objs$old_deplibs" && \
  60152. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  60153. + libobj=$output
  60154. + func_lo2o "$libobj"
  60155. + obj=$func_lo2o_result
  60156. + ;;
  60157. *)
  60158. - # If the previous option needed an argument, then skip it.
  60159. - if test -n "$prev"; then
  60160. - prev=
  60161. - else
  60162. - dest="$arg"
  60163. - continue
  60164. - fi
  60165. + libobj=
  60166. + obj="$output"
  60167. ;;
  60168. esac
  60169. - # Aesthetically quote the argument.
  60170. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  60171. - case $arg in
  60172. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  60173. - arg="\"$arg\""
  60174. - ;;
  60175. - esac
  60176. - install_prog="$install_prog $arg"
  60177. - done
  60178. + # Delete the old objects.
  60179. + $opt_dry_run || $RM $obj $libobj
  60180. - if test -z "$install_prog"; then
  60181. - $echo "$modename: you must specify an install program" 1>&2
  60182. - $echo "$help" 1>&2
  60183. - exit 1
  60184. - fi
  60185. + # Objects from convenience libraries. This assumes
  60186. + # single-version convenience libraries. Whenever we create
  60187. + # different ones for PIC/non-PIC, this we'll have to duplicate
  60188. + # the extraction.
  60189. + reload_conv_objs=
  60190. + gentop=
  60191. + # reload_cmds runs $LD directly, so let us get rid of
  60192. + # -Wl from whole_archive_flag_spec and hope we can get by with
  60193. + # turning comma into space..
  60194. + wl=
  60195. - if test -n "$prev"; then
  60196. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  60197. - $echo "$help" 1>&2
  60198. - exit 1
  60199. - fi
  60200. + if test -n "$convenience"; then
  60201. + if test -n "$whole_archive_flag_spec"; then
  60202. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  60203. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  60204. + else
  60205. + gentop="$output_objdir/${obj}x"
  60206. + generated="$generated $gentop"
  60207. - if test -z "$files"; then
  60208. - if test -z "$dest"; then
  60209. - $echo "$modename: no file or destination specified" 1>&2
  60210. - else
  60211. - $echo "$modename: you must specify a destination" 1>&2
  60212. + func_extract_archives $gentop $convenience
  60213. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  60214. + fi
  60215. fi
  60216. - $echo "$help" 1>&2
  60217. - exit 1
  60218. - fi
  60219. - # Strip any trailing slash from the destination.
  60220. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  60221. + # Create the old-style object.
  60222. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  60223. - # Check to see that the destination is a directory.
  60224. - test -d "$dest" && isdir=yes
  60225. - if test "$isdir" = yes; then
  60226. - destdir="$dest"
  60227. - destname=
  60228. - else
  60229. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  60230. - test "X$destdir" = "X$dest" && destdir=.
  60231. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  60232. + output="$obj"
  60233. + func_execute_cmds "$reload_cmds" 'exit $?'
  60234. - # Not a directory, so check to see that there is only one file specified.
  60235. - set dummy $files
  60236. - if test "$#" -gt 2; then
  60237. - $echo "$modename: \`$dest' is not a directory" 1>&2
  60238. - $echo "$help" 1>&2
  60239. - exit 1
  60240. + # Exit if we aren't doing a library object file.
  60241. + if test -z "$libobj"; then
  60242. + if test -n "$gentop"; then
  60243. + func_show_eval '${RM}r "$gentop"'
  60244. + fi
  60245. +
  60246. + exit $EXIT_SUCCESS
  60247. fi
  60248. - fi
  60249. - case $destdir in
  60250. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  60251. - *)
  60252. - for file in $files; do
  60253. - case $file in
  60254. - *.lo) ;;
  60255. - *)
  60256. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  60257. - $echo "$help" 1>&2
  60258. - exit 1
  60259. - ;;
  60260. - esac
  60261. - done
  60262. +
  60263. + if test "$build_libtool_libs" != yes; then
  60264. + if test -n "$gentop"; then
  60265. + func_show_eval '${RM}r "$gentop"'
  60266. + fi
  60267. +
  60268. + # Create an invalid libtool object if no PIC, so that we don't
  60269. + # accidentally link it into a program.
  60270. + # $show "echo timestamp > $libobj"
  60271. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  60272. + exit $EXIT_SUCCESS
  60273. + fi
  60274. +
  60275. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  60276. + # Only do commands if we really have different PIC objects.
  60277. + reload_objs="$libobjs $reload_conv_objs"
  60278. + output="$libobj"
  60279. + func_execute_cmds "$reload_cmds" 'exit $?'
  60280. + fi
  60281. +
  60282. + if test -n "$gentop"; then
  60283. + func_show_eval '${RM}r "$gentop"'
  60284. + fi
  60285. +
  60286. + exit $EXIT_SUCCESS
  60287. ;;
  60288. - esac
  60289. - # This variable tells wrapper scripts just to set variables rather
  60290. - # than running their programs.
  60291. - libtool_install_magic="$magic"
  60292. + prog)
  60293. + case $host in
  60294. + *cygwin*) func_stripname '' '.exe' "$output"
  60295. + output=$func_stripname_result.exe;;
  60296. + esac
  60297. + test -n "$vinfo" && \
  60298. + func_warning "\`-version-info' is ignored for programs"
  60299. - staticlibs=
  60300. - future_libdirs=
  60301. - current_libdirs=
  60302. - for file in $files; do
  60303. + test -n "$release" && \
  60304. + func_warning "\`-release' is ignored for programs"
  60305. - # Do each installation.
  60306. - case $file in
  60307. - *.$libext)
  60308. - # Do the static libraries later.
  60309. - staticlibs="$staticlibs $file"
  60310. + test "$preload" = yes \
  60311. + && test "$dlopen_support" = unknown \
  60312. + && test "$dlopen_self" = unknown \
  60313. + && test "$dlopen_self_static" = unknown && \
  60314. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  60315. +
  60316. + case $host in
  60317. + *-*-rhapsody* | *-*-darwin1.[012])
  60318. + # On Rhapsody replace the C library is the System framework
  60319. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  60320. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  60321. ;;
  60322. + esac
  60323. - *.la)
  60324. - # Check to see that this really is a libtool archive.
  60325. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  60326. - else
  60327. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  60328. - $echo "$help" 1>&2
  60329. - exit 1
  60330. + case $host in
  60331. + *-*-darwin*)
  60332. + # Don't allow lazy linking, it breaks C++ global constructors
  60333. + # But is supposedly fixed on 10.4 or later (yay!).
  60334. + if test "$tagname" = CXX ; then
  60335. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  60336. + 10.[0123])
  60337. + compile_command="$compile_command ${wl}-bind_at_load"
  60338. + finalize_command="$finalize_command ${wl}-bind_at_load"
  60339. + ;;
  60340. + esac
  60341. fi
  60342. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  60343. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  60344. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  60345. + ;;
  60346. + esac
  60347. - library_names=
  60348. - old_library=
  60349. - relink_command=
  60350. - # If there is no directory component, then add one.
  60351. - case $file in
  60352. - */* | *\\*) . $file ;;
  60353. - *) . ./$file ;;
  60354. - esac
  60355. - # Add the libdir to current_libdirs if it is the destination.
  60356. - if test "X$destdir" = "X$libdir"; then
  60357. - case "$current_libdirs " in
  60358. - *" $libdir "*) ;;
  60359. - *) current_libdirs="$current_libdirs $libdir" ;;
  60360. + # move library search paths that coincide with paths to not yet
  60361. + # installed libraries to the beginning of the library search list
  60362. + new_libs=
  60363. + for path in $notinst_path; do
  60364. + case " $new_libs " in
  60365. + *" -L$path/$objdir "*) ;;
  60366. + *)
  60367. + case " $compile_deplibs " in
  60368. + *" -L$path/$objdir "*)
  60369. + new_libs="$new_libs -L$path/$objdir" ;;
  60370. esac
  60371. - else
  60372. - # Note the libdir as a future libdir.
  60373. - case "$future_libdirs " in
  60374. - *" $libdir "*) ;;
  60375. - *) future_libdirs="$future_libdirs $libdir" ;;
  60376. + ;;
  60377. + esac
  60378. + done
  60379. + for deplib in $compile_deplibs; do
  60380. + case $deplib in
  60381. + -L*)
  60382. + case " $new_libs " in
  60383. + *" $deplib "*) ;;
  60384. + *) new_libs="$new_libs $deplib" ;;
  60385. esac
  60386. - fi
  60387. + ;;
  60388. + *) new_libs="$new_libs $deplib" ;;
  60389. + esac
  60390. + done
  60391. + compile_deplibs="$new_libs"
  60392. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  60393. - test "X$dir" = "X$file/" && dir=
  60394. - dir="$dir$objdir"
  60395. - if test -n "$relink_command"; then
  60396. - # Determine the prefix the user has applied to our future dir.
  60397. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  60398. + compile_command="$compile_command $compile_deplibs"
  60399. + finalize_command="$finalize_command $finalize_deplibs"
  60400. - # Don't allow the user to place us outside of our expected
  60401. - # location b/c this prevents finding dependent libraries that
  60402. - # are installed to the same prefix.
  60403. - # At present, this check doesn't affect windows .dll's that
  60404. - # are installed into $libdir/../bin (currently, that works fine)
  60405. - # but it's something to keep an eye on.
  60406. - if test "$inst_prefix_dir" = "$destdir"; then
  60407. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  60408. - exit 1
  60409. - fi
  60410. + if test -n "$rpath$xrpath"; then
  60411. + # If the user specified any rpath flags, then add them.
  60412. + for libdir in $rpath $xrpath; do
  60413. + # This is the magic to use -rpath.
  60414. + case "$finalize_rpath " in
  60415. + *" $libdir "*) ;;
  60416. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  60417. + esac
  60418. + done
  60419. + fi
  60420. - if test -n "$inst_prefix_dir"; then
  60421. - # Stick the inst_prefix_dir data into the link command.
  60422. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  60423. + # Now hardcode the library paths
  60424. + rpath=
  60425. + hardcode_libdirs=
  60426. + for libdir in $compile_rpath $finalize_rpath; do
  60427. + if test -n "$hardcode_libdir_flag_spec"; then
  60428. + if test -n "$hardcode_libdir_separator"; then
  60429. + if test -z "$hardcode_libdirs"; then
  60430. + hardcode_libdirs="$libdir"
  60431. + else
  60432. + # Just accumulate the unique libdirs.
  60433. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60434. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60435. + ;;
  60436. + *)
  60437. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60438. + ;;
  60439. + esac
  60440. + fi
  60441. else
  60442. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  60443. + eval flag=\"$hardcode_libdir_flag_spec\"
  60444. + rpath="$rpath $flag"
  60445. fi
  60446. + elif test -n "$runpath_var"; then
  60447. + case "$perm_rpath " in
  60448. + *" $libdir "*) ;;
  60449. + *) perm_rpath="$perm_rpath $libdir" ;;
  60450. + esac
  60451. + fi
  60452. + case $host in
  60453. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  60454. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  60455. + case :$dllsearchpath: in
  60456. + *":$libdir:"*) ;;
  60457. + ::) dllsearchpath=$libdir;;
  60458. + *) dllsearchpath="$dllsearchpath:$libdir";;
  60459. + esac
  60460. + case :$dllsearchpath: in
  60461. + *":$testbindir:"*) ;;
  60462. + ::) dllsearchpath=$testbindir;;
  60463. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  60464. + esac
  60465. + ;;
  60466. + esac
  60467. + done
  60468. + # Substitute the hardcoded libdirs into the rpath.
  60469. + if test -n "$hardcode_libdir_separator" &&
  60470. + test -n "$hardcode_libdirs"; then
  60471. + libdir="$hardcode_libdirs"
  60472. + eval rpath=\" $hardcode_libdir_flag_spec\"
  60473. + fi
  60474. + compile_rpath="$rpath"
  60475. - $echo "$modename: warning: relinking \`$file'" 1>&2
  60476. - $show "$relink_command"
  60477. - if $run eval "$relink_command"; then :
  60478. + rpath=
  60479. + hardcode_libdirs=
  60480. + for libdir in $finalize_rpath; do
  60481. + if test -n "$hardcode_libdir_flag_spec"; then
  60482. + if test -n "$hardcode_libdir_separator"; then
  60483. + if test -z "$hardcode_libdirs"; then
  60484. + hardcode_libdirs="$libdir"
  60485. + else
  60486. + # Just accumulate the unique libdirs.
  60487. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60488. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60489. + ;;
  60490. + *)
  60491. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60492. + ;;
  60493. + esac
  60494. + fi
  60495. else
  60496. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  60497. - exit 1
  60498. + eval flag=\"$hardcode_libdir_flag_spec\"
  60499. + rpath="$rpath $flag"
  60500. fi
  60501. + elif test -n "$runpath_var"; then
  60502. + case "$finalize_perm_rpath " in
  60503. + *" $libdir "*) ;;
  60504. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  60505. + esac
  60506. fi
  60507. + done
  60508. + # Substitute the hardcoded libdirs into the rpath.
  60509. + if test -n "$hardcode_libdir_separator" &&
  60510. + test -n "$hardcode_libdirs"; then
  60511. + libdir="$hardcode_libdirs"
  60512. + eval rpath=\" $hardcode_libdir_flag_spec\"
  60513. + fi
  60514. + finalize_rpath="$rpath"
  60515. - # See the names of the shared library.
  60516. - set dummy $library_names
  60517. - if test -n "$2"; then
  60518. - realname="$2"
  60519. - shift
  60520. - shift
  60521. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  60522. + # Transform all the library objects into standard objects.
  60523. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60524. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60525. + fi
  60526. - srcname="$realname"
  60527. - test -n "$relink_command" && srcname="$realname"T
  60528. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  60529. - # Install the shared library and build the symlinks.
  60530. - $show "$install_prog $dir/$srcname $destdir/$realname"
  60531. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  60532. - if test -n "$stripme" && test -n "$striplib"; then
  60533. - $show "$striplib $destdir/$realname"
  60534. - $run eval "$striplib $destdir/$realname" || exit $?
  60535. - fi
  60536. + # template prelinking step
  60537. + if test -n "$prelink_cmds"; then
  60538. + func_execute_cmds "$prelink_cmds" 'exit $?'
  60539. + fi
  60540. - if test "$#" -gt 0; then
  60541. - # Delete the old symlinks, and create new ones.
  60542. - for linkname
  60543. - do
  60544. - if test "$linkname" != "$realname"; then
  60545. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  60546. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  60547. - fi
  60548. - done
  60549. - fi
  60550. + wrappers_required=yes
  60551. + case $host in
  60552. + *cygwin* | *mingw* )
  60553. + if test "$build_libtool_libs" != yes; then
  60554. + wrappers_required=no
  60555. + fi
  60556. + ;;
  60557. + *cegcc)
  60558. + # Disable wrappers for cegcc, we are cross compiling anyway.
  60559. + wrappers_required=no
  60560. + ;;
  60561. + *)
  60562. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  60563. + wrappers_required=no
  60564. + fi
  60565. + ;;
  60566. + esac
  60567. + if test "$wrappers_required" = no; then
  60568. + # Replace the output file specification.
  60569. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  60570. + link_command="$compile_command$compile_rpath"
  60571. - # Do each command in the postinstall commands.
  60572. - lib="$destdir/$realname"
  60573. - cmds=$postinstall_cmds
  60574. - save_ifs="$IFS"; IFS='~'
  60575. - for cmd in $cmds; do
  60576. - IFS="$save_ifs"
  60577. - eval cmd=\"$cmd\"
  60578. - $show "$cmd"
  60579. - $run eval "$cmd" || exit $?
  60580. - done
  60581. - IFS="$save_ifs"
  60582. - fi
  60583. + # We have no uninstalled library dependencies, so finalize right now.
  60584. + exit_status=0
  60585. + func_show_eval "$link_command" 'exit_status=$?'
  60586. - # Install the pseudo-library for information purposes.
  60587. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60588. - instname="$dir/$name"i
  60589. - $show "$install_prog $instname $destdir/$name"
  60590. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  60591. + # Delete the generated files.
  60592. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  60593. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  60594. + fi
  60595. - # Maybe install the static library, too.
  60596. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  60597. - ;;
  60598. + exit $exit_status
  60599. + fi
  60600. - *.lo)
  60601. - # Install (i.e. copy) a libtool object.
  60602. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  60603. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  60604. + fi
  60605. + if test -n "$finalize_shlibpath"; then
  60606. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  60607. + fi
  60608. - # Figure out destination file name, if it wasn't already specified.
  60609. - if test -n "$destname"; then
  60610. - destfile="$destdir/$destname"
  60611. - else
  60612. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60613. - destfile="$destdir/$destfile"
  60614. + compile_var=
  60615. + finalize_var=
  60616. + if test -n "$runpath_var"; then
  60617. + if test -n "$perm_rpath"; then
  60618. + # We should set the runpath_var.
  60619. + rpath=
  60620. + for dir in $perm_rpath; do
  60621. + rpath="$rpath$dir:"
  60622. + done
  60623. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  60624. fi
  60625. -
  60626. - # Deduce the name of the destination old-style object file.
  60627. - case $destfile in
  60628. - *.lo)
  60629. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  60630. - ;;
  60631. - *.$objext)
  60632. - staticdest="$destfile"
  60633. - destfile=
  60634. - ;;
  60635. - *)
  60636. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  60637. - $echo "$help" 1>&2
  60638. - exit 1
  60639. - ;;
  60640. - esac
  60641. -
  60642. - # Install the libtool object if requested.
  60643. - if test -n "$destfile"; then
  60644. - $show "$install_prog $file $destfile"
  60645. - $run eval "$install_prog $file $destfile" || exit $?
  60646. + if test -n "$finalize_perm_rpath"; then
  60647. + # We should set the runpath_var.
  60648. + rpath=
  60649. + for dir in $finalize_perm_rpath; do
  60650. + rpath="$rpath$dir:"
  60651. + done
  60652. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  60653. fi
  60654. + fi
  60655. - # Install the old object if enabled.
  60656. - if test "$build_old_libs" = yes; then
  60657. - # Deduce the name of the old-style object file.
  60658. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  60659. + if test "$no_install" = yes; then
  60660. + # We don't need to create a wrapper script.
  60661. + link_command="$compile_var$compile_command$compile_rpath"
  60662. + # Replace the output file specification.
  60663. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  60664. + # Delete the old output file.
  60665. + $opt_dry_run || $RM $output
  60666. + # Link the executable and exit
  60667. + func_show_eval "$link_command" 'exit $?'
  60668. + exit $EXIT_SUCCESS
  60669. + fi
  60670. - $show "$install_prog $staticobj $staticdest"
  60671. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  60672. - fi
  60673. - exit 0
  60674. - ;;
  60675. + if test "$hardcode_action" = relink; then
  60676. + # Fast installation is not supported
  60677. + link_command="$compile_var$compile_command$compile_rpath"
  60678. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  60679. - *)
  60680. - # Figure out destination file name, if it wasn't already specified.
  60681. - if test -n "$destname"; then
  60682. - destfile="$destdir/$destname"
  60683. + func_warning "this platform does not like uninstalled shared libraries"
  60684. + func_warning "\`$output' will be relinked during installation"
  60685. + else
  60686. + if test "$fast_install" != no; then
  60687. + link_command="$finalize_var$compile_command$finalize_rpath"
  60688. + if test "$fast_install" = yes; then
  60689. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  60690. + else
  60691. + # fast_install is set to needless
  60692. + relink_command=
  60693. + fi
  60694. else
  60695. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60696. - destfile="$destdir/$destfile"
  60697. + link_command="$compile_var$compile_command$compile_rpath"
  60698. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  60699. fi
  60700. + fi
  60701. - # If the file is missing, and there is a .exe on the end, strip it
  60702. - # because it is most likely a libtool script we actually want to
  60703. - # install
  60704. - stripped_ext=""
  60705. - case $file in
  60706. - *.exe)
  60707. - if test ! -f "$file"; then
  60708. - file=`$echo $file|${SED} 's,.exe$,,'`
  60709. - stripped_ext=".exe"
  60710. - fi
  60711. - ;;
  60712. - esac
  60713. -
  60714. - # Do a test to see if this is really a libtool program.
  60715. - case $host in
  60716. - *cygwin*|*mingw*)
  60717. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  60718. - ;;
  60719. - *)
  60720. - wrapper=$file
  60721. - ;;
  60722. - esac
  60723. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  60724. - notinst_deplibs=
  60725. - relink_command=
  60726. -
  60727. - # To insure that "foo" is sourced, and not "foo.exe",
  60728. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  60729. - # which disallows the automatic-append-.exe behavior.
  60730. - case $build in
  60731. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  60732. - *) wrapperdot=${wrapper} ;;
  60733. - esac
  60734. - # If there is no directory component, then add one.
  60735. - case $file in
  60736. - */* | *\\*) . ${wrapperdot} ;;
  60737. - *) . ./${wrapperdot} ;;
  60738. - esac
  60739. -
  60740. - # Check the variables that should have been set.
  60741. - if test -z "$notinst_deplibs"; then
  60742. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  60743. - exit 1
  60744. - fi
  60745. + # Replace the output file specification.
  60746. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  60747. - finalize=yes
  60748. - for lib in $notinst_deplibs; do
  60749. - # Check to see that each library is installed.
  60750. - libdir=
  60751. - if test -f "$lib"; then
  60752. - # If there is no directory component, then add one.
  60753. - case $lib in
  60754. - */* | *\\*) . $lib ;;
  60755. - *) . ./$lib ;;
  60756. - esac
  60757. - fi
  60758. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  60759. - if test -n "$libdir" && test ! -f "$libfile"; then
  60760. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  60761. - finalize=no
  60762. - fi
  60763. - done
  60764. + # Delete the old output files.
  60765. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  60766. - relink_command=
  60767. - # To insure that "foo" is sourced, and not "foo.exe",
  60768. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  60769. - # which disallows the automatic-append-.exe behavior.
  60770. - case $build in
  60771. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  60772. - *) wrapperdot=${wrapper} ;;
  60773. - esac
  60774. - # If there is no directory component, then add one.
  60775. - case $file in
  60776. - */* | *\\*) . ${wrapperdot} ;;
  60777. - *) . ./${wrapperdot} ;;
  60778. - esac
  60779. + func_show_eval "$link_command" 'exit $?'
  60780. - outputname=
  60781. - if test "$fast_install" = no && test -n "$relink_command"; then
  60782. - if test "$finalize" = yes && test -z "$run"; then
  60783. - tmpdir="/tmp"
  60784. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  60785. - tmpdir="$tmpdir/libtool-$$"
  60786. - if $mkdir "$tmpdir" && chmod 700 "$tmpdir"; then :
  60787. - else
  60788. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  60789. - continue
  60790. - fi
  60791. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  60792. - outputname="$tmpdir/$file"
  60793. - # Replace the output file specification.
  60794. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  60795. + # Now create the wrapper script.
  60796. + func_verbose "creating $output"
  60797. - $show "$relink_command"
  60798. - if $run eval "$relink_command"; then :
  60799. - else
  60800. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  60801. - ${rm}r "$tmpdir"
  60802. - continue
  60803. - fi
  60804. - file="$outputname"
  60805. - else
  60806. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  60807. - fi
  60808. + # Quote the relink command for shipping.
  60809. + if test -n "$relink_command"; then
  60810. + # Preserve any variables that may affect compiler behavior
  60811. + for var in $variables_saved_for_relink; do
  60812. + if eval test -z \"\${$var+set}\"; then
  60813. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60814. + elif eval var_value=\$$var; test -z "$var_value"; then
  60815. + relink_command="$var=; export $var; $relink_command"
  60816. else
  60817. - # Install the binary that we compiled earlier.
  60818. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  60819. + func_quote_for_eval "$var_value"
  60820. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60821. fi
  60822. - fi
  60823. + done
  60824. + relink_command="(cd `pwd`; $relink_command)"
  60825. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60826. + fi
  60827. - # remove .exe since cygwin /usr/bin/install will append another
  60828. - # one anyways
  60829. - case $install_prog,$host in
  60830. - */usr/bin/install*,*cygwin*)
  60831. - case $file:$destfile in
  60832. - *.exe:*.exe)
  60833. - # this is ok
  60834. - ;;
  60835. - *.exe:*)
  60836. - destfile=$destfile.exe
  60837. - ;;
  60838. - *:*.exe)
  60839. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  60840. - ;;
  60841. - esac
  60842. - ;;
  60843. + # Quote $ECHO for shipping.
  60844. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  60845. + case $progpath in
  60846. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  60847. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  60848. esac
  60849. - $show "$install_prog$stripme $file $destfile"
  60850. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  60851. - test -n "$outputname" && ${rm}r "$tmpdir"
  60852. - ;;
  60853. - esac
  60854. - done
  60855. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  60856. + else
  60857. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  60858. + fi
  60859. - for file in $staticlibs; do
  60860. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60861. + # Only actually do things if not in dry run mode.
  60862. + $opt_dry_run || {
  60863. + # win32 will think the script is a binary if it has
  60864. + # a .exe suffix, so we strip it off here.
  60865. + case $output in
  60866. + *.exe) func_stripname '' '.exe' "$output"
  60867. + output=$func_stripname_result ;;
  60868. + esac
  60869. + # test for cygwin because mv fails w/o .exe extensions
  60870. + case $host in
  60871. + *cygwin*)
  60872. + exeext=.exe
  60873. + func_stripname '' '.exe' "$outputname"
  60874. + outputname=$func_stripname_result ;;
  60875. + *) exeext= ;;
  60876. + esac
  60877. + case $host in
  60878. + *cygwin* | *mingw* )
  60879. + func_dirname_and_basename "$output" "" "."
  60880. + output_name=$func_basename_result
  60881. + output_path=$func_dirname_result
  60882. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  60883. + cwrapper="$output_path/$output_name.exe"
  60884. + $RM $cwrappersource $cwrapper
  60885. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  60886. +
  60887. + func_emit_cwrapperexe_src > $cwrappersource
  60888. +
  60889. + # The wrapper executable is built using the $host compiler,
  60890. + # because it contains $host paths and files. If cross-
  60891. + # compiling, it, like the target executable, must be
  60892. + # executed on the $host or under an emulation environment.
  60893. + $opt_dry_run || {
  60894. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  60895. + $STRIP $cwrapper
  60896. + }
  60897. +
  60898. + # Now, create the wrapper script for func_source use:
  60899. + func_ltwrapper_scriptname $cwrapper
  60900. + $RM $func_ltwrapper_scriptname_result
  60901. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  60902. + $opt_dry_run || {
  60903. + # note: this script will not be executed, so do not chmod.
  60904. + if test "x$build" = "x$host" ; then
  60905. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  60906. + else
  60907. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  60908. + fi
  60909. + }
  60910. + ;;
  60911. + * )
  60912. + $RM $output
  60913. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  60914. - # Set up the ranlib parameters.
  60915. - oldlib="$destdir/$name"
  60916. + func_emit_wrapper no > $output
  60917. + chmod +x $output
  60918. + ;;
  60919. + esac
  60920. + }
  60921. + exit $EXIT_SUCCESS
  60922. + ;;
  60923. + esac
  60924. - $show "$install_prog $file $oldlib"
  60925. - $run eval "$install_prog \$file \$oldlib" || exit $?
  60926. + # See if we need to build an old-fashioned archive.
  60927. + for oldlib in $oldlibs; do
  60928. - if test -n "$stripme" && test -n "$old_striplib"; then
  60929. - $show "$old_striplib $oldlib"
  60930. - $run eval "$old_striplib $oldlib" || exit $?
  60931. + if test "$build_libtool_libs" = convenience; then
  60932. + oldobjs="$libobjs_save $symfileobj"
  60933. + addlibs="$convenience"
  60934. + build_libtool_libs=no
  60935. + else
  60936. + if test "$build_libtool_libs" = module; then
  60937. + oldobjs="$libobjs_save"
  60938. + build_libtool_libs=no
  60939. + else
  60940. + oldobjs="$old_deplibs $non_pic_objects"
  60941. + if test "$preload" = yes && test -f "$symfileobj"; then
  60942. + oldobjs="$oldobjs $symfileobj"
  60943. + fi
  60944. + fi
  60945. + addlibs="$old_convenience"
  60946. fi
  60947. - # Do each command in the postinstall commands.
  60948. - cmds=$old_postinstall_cmds
  60949. - save_ifs="$IFS"; IFS='~'
  60950. - for cmd in $cmds; do
  60951. - IFS="$save_ifs"
  60952. - eval cmd=\"$cmd\"
  60953. - $show "$cmd"
  60954. - $run eval "$cmd" || exit $?
  60955. - done
  60956. - IFS="$save_ifs"
  60957. - done
  60958. + if test -n "$addlibs"; then
  60959. + gentop="$output_objdir/${outputname}x"
  60960. + generated="$generated $gentop"
  60961. - if test -n "$future_libdirs"; then
  60962. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  60963. - fi
  60964. + func_extract_archives $gentop $addlibs
  60965. + oldobjs="$oldobjs $func_extract_archives_result"
  60966. + fi
  60967. - if test -n "$current_libdirs"; then
  60968. - # Maybe just do a dry run.
  60969. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  60970. - exec_cmd='$SHELL $0 $preserve_args --finish$current_libdirs'
  60971. - else
  60972. - exit 0
  60973. - fi
  60974. - ;;
  60975. + # Do each command in the archive commands.
  60976. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  60977. + cmds=$old_archive_from_new_cmds
  60978. + else
  60979. - # libtool finish mode
  60980. - finish)
  60981. - modename="$modename: finish"
  60982. - libdirs="$nonopt"
  60983. - admincmds=
  60984. + # Add any objects from preloaded convenience libraries
  60985. + if test -n "$dlprefiles"; then
  60986. + gentop="$output_objdir/${outputname}x"
  60987. + generated="$generated $gentop"
  60988. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  60989. - for dir
  60990. - do
  60991. - libdirs="$libdirs $dir"
  60992. - done
  60993. + func_extract_archives $gentop $dlprefiles
  60994. + oldobjs="$oldobjs $func_extract_archives_result"
  60995. + fi
  60996. - for libdir in $libdirs; do
  60997. - if test -n "$finish_cmds"; then
  60998. - # Do each command in the finish commands.
  60999. - cmds=$finish_cmds
  61000. - save_ifs="$IFS"; IFS='~'
  61001. - for cmd in $cmds; do
  61002. - IFS="$save_ifs"
  61003. - eval cmd=\"$cmd\"
  61004. - $show "$cmd"
  61005. - $run eval "$cmd" || admincmds="$admincmds
  61006. - $cmd"
  61007. + # POSIX demands no paths to be encoded in archives. We have
  61008. + # to avoid creating archives with duplicate basenames if we
  61009. + # might have to extract them afterwards, e.g., when creating a
  61010. + # static archive out of a convenience library, or when linking
  61011. + # the entirety of a libtool archive into another (currently
  61012. + # not supported by libtool).
  61013. + if (for obj in $oldobjs
  61014. + do
  61015. + func_basename "$obj"
  61016. + $ECHO "$func_basename_result"
  61017. + done | sort | sort -uc >/dev/null 2>&1); then
  61018. + :
  61019. + else
  61020. + $ECHO "copying selected object files to avoid basename conflicts..."
  61021. + gentop="$output_objdir/${outputname}x"
  61022. + generated="$generated $gentop"
  61023. + func_mkdir_p "$gentop"
  61024. + save_oldobjs=$oldobjs
  61025. + oldobjs=
  61026. + counter=1
  61027. + for obj in $save_oldobjs
  61028. + do
  61029. + func_basename "$obj"
  61030. + objbase="$func_basename_result"
  61031. + case " $oldobjs " in
  61032. + " ") oldobjs=$obj ;;
  61033. + *[\ /]"$objbase "*)
  61034. + while :; do
  61035. + # Make sure we don't pick an alternate name that also
  61036. + # overlaps.
  61037. + newobj=lt$counter-$objbase
  61038. + func_arith $counter + 1
  61039. + counter=$func_arith_result
  61040. + case " $oldobjs " in
  61041. + *[\ /]"$newobj "*) ;;
  61042. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  61043. + esac
  61044. + done
  61045. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  61046. + oldobjs="$oldobjs $gentop/$newobj"
  61047. + ;;
  61048. + *) oldobjs="$oldobjs $obj" ;;
  61049. + esac
  61050. done
  61051. - IFS="$save_ifs"
  61052. - fi
  61053. - if test -n "$finish_eval"; then
  61054. - # Do the single finish_eval.
  61055. - eval cmds=\"$finish_eval\"
  61056. - $run eval "$cmds" || admincmds="$admincmds
  61057. - $cmds"
  61058. fi
  61059. - done
  61060. - fi
  61061. -
  61062. - # Exit here if they wanted silent mode.
  61063. - test "$show" = : && exit 0
  61064. + eval cmds=\"$old_archive_cmds\"
  61065. - $echo "----------------------------------------------------------------------"
  61066. - $echo "Libraries have been installed in:"
  61067. - for libdir in $libdirs; do
  61068. - $echo " $libdir"
  61069. + func_len " $cmds"
  61070. + len=$func_len_result
  61071. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  61072. + cmds=$old_archive_cmds
  61073. + else
  61074. + # the command line is too long to link in one step, link in parts
  61075. + func_verbose "using piecewise archive linking..."
  61076. + save_RANLIB=$RANLIB
  61077. + RANLIB=:
  61078. + objlist=
  61079. + concat_cmds=
  61080. + save_oldobjs=$oldobjs
  61081. + oldobjs=
  61082. + # Is there a better way of finding the last object in the list?
  61083. + for obj in $save_oldobjs
  61084. + do
  61085. + last_oldobj=$obj
  61086. + done
  61087. + eval test_cmds=\"$old_archive_cmds\"
  61088. + func_len " $test_cmds"
  61089. + len0=$func_len_result
  61090. + len=$len0
  61091. + for obj in $save_oldobjs
  61092. + do
  61093. + func_len " $obj"
  61094. + func_arith $len + $func_len_result
  61095. + len=$func_arith_result
  61096. + func_append objlist " $obj"
  61097. + if test "$len" -lt "$max_cmd_len"; then
  61098. + :
  61099. + else
  61100. + # the above command should be used before it gets too long
  61101. + oldobjs=$objlist
  61102. + if test "$obj" = "$last_oldobj" ; then
  61103. + RANLIB=$save_RANLIB
  61104. + fi
  61105. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  61106. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  61107. + objlist=
  61108. + len=$len0
  61109. + fi
  61110. + done
  61111. + RANLIB=$save_RANLIB
  61112. + oldobjs=$objlist
  61113. + if test "X$oldobjs" = "X" ; then
  61114. + eval cmds=\"\$concat_cmds\"
  61115. + else
  61116. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  61117. + fi
  61118. + fi
  61119. + fi
  61120. + func_execute_cmds "$cmds" 'exit $?'
  61121. done
  61122. - $echo
  61123. - $echo "If you ever happen to want to link against installed libraries"
  61124. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  61125. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  61126. - $echo "flag during linking and do at least one of the following:"
  61127. - if test -n "$shlibpath_var"; then
  61128. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  61129. - $echo " during execution"
  61130. - fi
  61131. - if test -n "$runpath_var"; then
  61132. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  61133. - $echo " during linking"
  61134. - fi
  61135. - if test -n "$hardcode_libdir_flag_spec"; then
  61136. - libdir=LIBDIR
  61137. - eval flag=\"$hardcode_libdir_flag_spec\"
  61138. -
  61139. - $echo " - use the \`$flag' linker flag"
  61140. - fi
  61141. - if test -n "$admincmds"; then
  61142. - $echo " - have your system administrator run these commands:$admincmds"
  61143. - fi
  61144. - if test -f /etc/ld.so.conf; then
  61145. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  61146. - fi
  61147. - $echo
  61148. - $echo "See any operating system documentation about shared libraries for"
  61149. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  61150. - $echo "----------------------------------------------------------------------"
  61151. - exit 0
  61152. - ;;
  61153. -
  61154. - # libtool execute mode
  61155. - execute)
  61156. - modename="$modename: execute"
  61157. - # The first argument is the command name.
  61158. - cmd="$nonopt"
  61159. - if test -z "$cmd"; then
  61160. - $echo "$modename: you must specify a COMMAND" 1>&2
  61161. - $echo "$help"
  61162. - exit 1
  61163. - fi
  61164. + test -n "$generated" && \
  61165. + func_show_eval "${RM}r$generated"
  61166. - # Handle -dlopen flags immediately.
  61167. - for file in $execute_dlfiles; do
  61168. - if test ! -f "$file"; then
  61169. - $echo "$modename: \`$file' is not a file" 1>&2
  61170. - $echo "$help" 1>&2
  61171. - exit 1
  61172. - fi
  61173. + # Now create the libtool archive.
  61174. + case $output in
  61175. + *.la)
  61176. + old_library=
  61177. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  61178. + func_verbose "creating $output"
  61179. - dir=
  61180. - case $file in
  61181. - *.la)
  61182. - # Check to see that this really is a libtool archive.
  61183. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  61184. + # Preserve any variables that may affect compiler behavior
  61185. + for var in $variables_saved_for_relink; do
  61186. + if eval test -z \"\${$var+set}\"; then
  61187. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  61188. + elif eval var_value=\$$var; test -z "$var_value"; then
  61189. + relink_command="$var=; export $var; $relink_command"
  61190. else
  61191. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  61192. - $echo "$help" 1>&2
  61193. - exit 1
  61194. + func_quote_for_eval "$var_value"
  61195. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  61196. fi
  61197. + done
  61198. + # Quote the link command for shipping.
  61199. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  61200. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  61201. + if test "$hardcode_automatic" = yes ; then
  61202. + relink_command=
  61203. + fi
  61204. - # Read the libtool library.
  61205. - dlname=
  61206. - library_names=
  61207. + # Only create the output if not a dry run.
  61208. + $opt_dry_run || {
  61209. + for installed in no yes; do
  61210. + if test "$installed" = yes; then
  61211. + if test -z "$install_libdir"; then
  61212. + break
  61213. + fi
  61214. + output="$output_objdir/$outputname"i
  61215. + # Replace all uninstalled libtool libraries with the installed ones
  61216. + newdependency_libs=
  61217. + for deplib in $dependency_libs; do
  61218. + case $deplib in
  61219. + *.la)
  61220. + func_basename "$deplib"
  61221. + name="$func_basename_result"
  61222. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  61223. + test -z "$libdir" && \
  61224. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  61225. + newdependency_libs="$newdependency_libs $libdir/$name"
  61226. + ;;
  61227. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  61228. + esac
  61229. + done
  61230. + dependency_libs="$newdependency_libs"
  61231. + newdlfiles=
  61232. +
  61233. + for lib in $dlfiles; do
  61234. + case $lib in
  61235. + *.la)
  61236. + func_basename "$lib"
  61237. + name="$func_basename_result"
  61238. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  61239. + test -z "$libdir" && \
  61240. + func_fatal_error "\`$lib' is not a valid libtool archive"
  61241. + newdlfiles="$newdlfiles $libdir/$name"
  61242. + ;;
  61243. + *) newdlfiles="$newdlfiles $lib" ;;
  61244. + esac
  61245. + done
  61246. + dlfiles="$newdlfiles"
  61247. + newdlprefiles=
  61248. + for lib in $dlprefiles; do
  61249. + case $lib in
  61250. + *.la)
  61251. + # Only pass preopened files to the pseudo-archive (for
  61252. + # eventual linking with the app. that links it) if we
  61253. + # didn't already link the preopened objects directly into
  61254. + # the library:
  61255. + func_basename "$lib"
  61256. + name="$func_basename_result"
  61257. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  61258. + test -z "$libdir" && \
  61259. + func_fatal_error "\`$lib' is not a valid libtool archive"
  61260. + newdlprefiles="$newdlprefiles $libdir/$name"
  61261. + ;;
  61262. + esac
  61263. + done
  61264. + dlprefiles="$newdlprefiles"
  61265. + else
  61266. + newdlfiles=
  61267. + for lib in $dlfiles; do
  61268. + case $lib in
  61269. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  61270. + *) abs=`pwd`"/$lib" ;;
  61271. + esac
  61272. + newdlfiles="$newdlfiles $abs"
  61273. + done
  61274. + dlfiles="$newdlfiles"
  61275. + newdlprefiles=
  61276. + for lib in $dlprefiles; do
  61277. + case $lib in
  61278. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  61279. + *) abs=`pwd`"/$lib" ;;
  61280. + esac
  61281. + newdlprefiles="$newdlprefiles $abs"
  61282. + done
  61283. + dlprefiles="$newdlprefiles"
  61284. + fi
  61285. + $RM $output
  61286. + # place dlname in correct position for cygwin
  61287. + tdlname=$dlname
  61288. + case $host,$output,$installed,$module,$dlname in
  61289. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  61290. + esac
  61291. + $ECHO > $output "\
  61292. +# $outputname - a libtool library file
  61293. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  61294. +#
  61295. +# Please DO NOT delete this file!
  61296. +# It is necessary for linking the library.
  61297. - # If there is no directory component, then add one.
  61298. - case $file in
  61299. - */* | *\\*) . $file ;;
  61300. - *) . ./$file ;;
  61301. - esac
  61302. +# The name that we can dlopen(3).
  61303. +dlname='$tdlname'
  61304. - # Skip this library if it cannot be dlopened.
  61305. - if test -z "$dlname"; then
  61306. - # Warn if it was a shared library.
  61307. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  61308. - continue
  61309. - fi
  61310. +# Names of this library.
  61311. +library_names='$library_names'
  61312. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  61313. - test "X$dir" = "X$file" && dir=.
  61314. +# The name of the static archive.
  61315. +old_library='$old_library'
  61316. - if test -f "$dir/$objdir/$dlname"; then
  61317. - dir="$dir/$objdir"
  61318. - else
  61319. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  61320. - exit 1
  61321. - fi
  61322. - ;;
  61323. +# Linker flags that can not go in dependency_libs.
  61324. +inherited_linker_flags='$new_inherited_linker_flags'
  61325. - *.lo)
  61326. - # Just add the directory containing the .lo file.
  61327. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  61328. - test "X$dir" = "X$file" && dir=.
  61329. - ;;
  61330. +# Libraries that this one depends upon.
  61331. +dependency_libs='$dependency_libs'
  61332. - *)
  61333. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  61334. - continue
  61335. - ;;
  61336. - esac
  61337. +# Names of additional weak libraries provided by this library
  61338. +weak_library_names='$weak_libs'
  61339. - # Get the absolute pathname.
  61340. - absdir=`cd "$dir" && pwd`
  61341. - test -n "$absdir" && dir="$absdir"
  61342. +# Version information for $libname.
  61343. +current=$current
  61344. +age=$age
  61345. +revision=$revision
  61346. - # Now add the directory to shlibpath_var.
  61347. - if eval "test -z \"\$$shlibpath_var\""; then
  61348. - eval "$shlibpath_var=\"\$dir\""
  61349. - else
  61350. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  61351. - fi
  61352. - done
  61353. +# Is this an already installed library?
  61354. +installed=$installed
  61355. - # This variable tells wrapper scripts just to set shlibpath_var
  61356. - # rather than running their programs.
  61357. - libtool_execute_magic="$magic"
  61358. +# Should we warn about portability when linking against -modules?
  61359. +shouldnotlink=$module
  61360. - # Check if any of the arguments is a wrapper script.
  61361. - args=
  61362. - for file
  61363. - do
  61364. - case $file in
  61365. - -*) ;;
  61366. - *)
  61367. - # Do a test to see if this is really a libtool program.
  61368. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61369. - # If there is no directory component, then add one.
  61370. - case $file in
  61371. - */* | *\\*) . $file ;;
  61372. - *) . ./$file ;;
  61373. - esac
  61374. +# Files to dlopen/dlpreopen
  61375. +dlopen='$dlfiles'
  61376. +dlpreopen='$dlprefiles'
  61377. - # Transform arg to wrapped name.
  61378. - file="$progdir/$program"
  61379. - fi
  61380. - ;;
  61381. - esac
  61382. - # Quote arguments (to preserve shell metacharacters).
  61383. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  61384. - args="$args \"$file\""
  61385. - done
  61386. +# Directory that this library needs to be installed in:
  61387. +libdir='$install_libdir'"
  61388. + if test "$installed" = no && test "$need_relink" = yes; then
  61389. + $ECHO >> $output "\
  61390. +relink_command=\"$relink_command\""
  61391. + fi
  61392. + done
  61393. + }
  61394. - if test -z "$run"; then
  61395. - if test -n "$shlibpath_var"; then
  61396. - # Export the shlibpath_var.
  61397. - eval "export $shlibpath_var"
  61398. - fi
  61399. + # Do a symbolic link so that the libtool archive can be found in
  61400. + # LD_LIBRARY_PATH before the program is installed.
  61401. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  61402. + ;;
  61403. + esac
  61404. + exit $EXIT_SUCCESS
  61405. +}
  61406. - # Restore saved environment variables
  61407. - if test "${save_LC_ALL+set}" = set; then
  61408. - LC_ALL="$save_LC_ALL"; export LC_ALL
  61409. - fi
  61410. - if test "${save_LANG+set}" = set; then
  61411. - LANG="$save_LANG"; export LANG
  61412. - fi
  61413. +{ test "$mode" = link || test "$mode" = relink; } &&
  61414. + func_mode_link ${1+"$@"}
  61415. - # Now prepare to actually exec the command.
  61416. - exec_cmd="\$cmd$args"
  61417. - else
  61418. - # Display what would be done.
  61419. - if test -n "$shlibpath_var"; then
  61420. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  61421. - $echo "export $shlibpath_var"
  61422. - fi
  61423. - $echo "$cmd$args"
  61424. - exit 0
  61425. - fi
  61426. - ;;
  61427. - # libtool clean and uninstall mode
  61428. - clean | uninstall)
  61429. - modename="$modename: $mode"
  61430. - rm="$nonopt"
  61431. +# func_mode_uninstall arg...
  61432. +func_mode_uninstall ()
  61433. +{
  61434. + $opt_debug
  61435. + RM="$nonopt"
  61436. files=
  61437. rmforce=
  61438. exit_status=0
  61439. @@ -5992,30 +8209,28 @@
  61440. for arg
  61441. do
  61442. case $arg in
  61443. - -f) rm="$rm $arg"; rmforce=yes ;;
  61444. - -*) rm="$rm $arg" ;;
  61445. + -f) RM="$RM $arg"; rmforce=yes ;;
  61446. + -*) RM="$RM $arg" ;;
  61447. *) files="$files $arg" ;;
  61448. esac
  61449. done
  61450. - if test -z "$rm"; then
  61451. - $echo "$modename: you must specify an RM program" 1>&2
  61452. - $echo "$help" 1>&2
  61453. - exit 1
  61454. - fi
  61455. + test -z "$RM" && \
  61456. + func_fatal_help "you must specify an RM program"
  61457. rmdirs=
  61458. origobjdir="$objdir"
  61459. for file in $files; do
  61460. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  61461. - if test "X$dir" = "X$file"; then
  61462. - dir=.
  61463. + func_dirname "$file" "" "."
  61464. + dir="$func_dirname_result"
  61465. + if test "X$dir" = X.; then
  61466. objdir="$origobjdir"
  61467. else
  61468. objdir="$dir/$origobjdir"
  61469. fi
  61470. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  61471. + func_basename "$file"
  61472. + name="$func_basename_result"
  61473. test "$mode" = uninstall && objdir="$dir"
  61474. # Remember objdir for removal later, being careful to avoid duplicates
  61475. @@ -6027,9 +8242,9 @@
  61476. fi
  61477. # Don't error if the file doesn't exist and rm -f was used.
  61478. - if (test -L "$file") >/dev/null 2>&1 \
  61479. - || (test -h "$file") >/dev/null 2>&1 \
  61480. - || test -f "$file"; then
  61481. + if { test -L "$file"; } >/dev/null 2>&1 ||
  61482. + { test -h "$file"; } >/dev/null 2>&1 ||
  61483. + test -f "$file"; then
  61484. :
  61485. elif test -d "$file"; then
  61486. exit_status=1
  61487. @@ -6043,69 +8258,56 @@
  61488. case $name in
  61489. *.la)
  61490. # Possibly a libtool archive, so verify it.
  61491. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61492. - . $dir/$name
  61493. + if func_lalib_p "$file"; then
  61494. + func_source $dir/$name
  61495. # Delete the libtool libraries and symlinks.
  61496. for n in $library_names; do
  61497. rmfiles="$rmfiles $objdir/$n"
  61498. done
  61499. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  61500. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  61501. - if test "$mode" = uninstall; then
  61502. + case "$mode" in
  61503. + clean)
  61504. + case " $library_names " in
  61505. + # " " in the beginning catches empty $dlname
  61506. + *" $dlname "*) ;;
  61507. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  61508. + esac
  61509. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  61510. + ;;
  61511. + uninstall)
  61512. if test -n "$library_names"; then
  61513. # Do each command in the postuninstall commands.
  61514. - cmds=$postuninstall_cmds
  61515. - save_ifs="$IFS"; IFS='~'
  61516. - for cmd in $cmds; do
  61517. - IFS="$save_ifs"
  61518. - eval cmd=\"$cmd\"
  61519. - $show "$cmd"
  61520. - $run eval "$cmd"
  61521. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  61522. - exit_status=1
  61523. - fi
  61524. - done
  61525. - IFS="$save_ifs"
  61526. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  61527. fi
  61528. if test -n "$old_library"; then
  61529. # Do each command in the old_postuninstall commands.
  61530. - cmds=$old_postuninstall_cmds
  61531. - save_ifs="$IFS"; IFS='~'
  61532. - for cmd in $cmds; do
  61533. - IFS="$save_ifs"
  61534. - eval cmd=\"$cmd\"
  61535. - $show "$cmd"
  61536. - $run eval "$cmd"
  61537. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  61538. - exit_status=1
  61539. - fi
  61540. - done
  61541. - IFS="$save_ifs"
  61542. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  61543. fi
  61544. # FIXME: should reinstall the best remaining shared library.
  61545. - fi
  61546. + ;;
  61547. + esac
  61548. fi
  61549. ;;
  61550. *.lo)
  61551. # Possibly a libtool object, so verify it.
  61552. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61553. + if func_lalib_p "$file"; then
  61554. # Read the .lo file
  61555. - . $dir/$name
  61556. + func_source $dir/$name
  61557. # Add PIC object to the list of files to remove.
  61558. - if test -n "$pic_object" \
  61559. - && test "$pic_object" != none; then
  61560. + if test -n "$pic_object" &&
  61561. + test "$pic_object" != none; then
  61562. rmfiles="$rmfiles $dir/$pic_object"
  61563. fi
  61564. # Add non-PIC object to the list of files to remove.
  61565. - if test -n "$non_pic_object" \
  61566. - && test "$non_pic_object" != none; then
  61567. + if test -n "$non_pic_object" &&
  61568. + test "$non_pic_object" != none; then
  61569. rmfiles="$rmfiles $dir/$non_pic_object"
  61570. fi
  61571. fi
  61572. @@ -6115,18 +8317,27 @@
  61573. if test "$mode" = clean ; then
  61574. noexename=$name
  61575. case $file in
  61576. - *.exe)
  61577. - file=`$echo $file|${SED} 's,.exe$,,'`
  61578. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  61579. + *.exe)
  61580. + func_stripname '' '.exe' "$file"
  61581. + file=$func_stripname_result
  61582. + func_stripname '' '.exe' "$name"
  61583. + noexename=$func_stripname_result
  61584. # $file with .exe has already been added to rmfiles,
  61585. # add $file without .exe
  61586. rmfiles="$rmfiles $file"
  61587. ;;
  61588. esac
  61589. # Do a test to see if this is a libtool program.
  61590. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61591. - relink_command=
  61592. - . $dir/$noexename
  61593. + if func_ltwrapper_p "$file"; then
  61594. + if func_ltwrapper_executable_p "$file"; then
  61595. + func_ltwrapper_scriptname "$file"
  61596. + relink_command=
  61597. + func_source $func_ltwrapper_scriptname_result
  61598. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  61599. + else
  61600. + relink_command=
  61601. + func_source $dir/$noexename
  61602. + fi
  61603. # note $name still contains .exe if it was in $file originally
  61604. # as does the version of $file that was added into $rmfiles
  61605. @@ -6141,237 +8352,38 @@
  61606. fi
  61607. ;;
  61608. esac
  61609. - $show "$rm $rmfiles"
  61610. - $run $rm $rmfiles || exit_status=1
  61611. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  61612. done
  61613. objdir="$origobjdir"
  61614. # Try to remove the ${objdir}s in the directories where we deleted files
  61615. for dir in $rmdirs; do
  61616. if test -d "$dir"; then
  61617. - $show "rmdir $dir"
  61618. - $run rmdir $dir >/dev/null 2>&1
  61619. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  61620. fi
  61621. done
  61622. exit $exit_status
  61623. - ;;
  61624. +}
  61625. - "")
  61626. - $echo "$modename: you must specify a MODE" 1>&2
  61627. - $echo "$generic_help" 1>&2
  61628. - exit 1
  61629. - ;;
  61630. - esac
  61631. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  61632. + func_mode_uninstall ${1+"$@"}
  61633. - if test -z "$exec_cmd"; then
  61634. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  61635. - $echo "$generic_help" 1>&2
  61636. - exit 1
  61637. - fi
  61638. -fi # test -z "$show_help"
  61639. +test -z "$mode" && {
  61640. + help="$generic_help"
  61641. + func_fatal_help "you must specify a MODE"
  61642. +}
  61643. +
  61644. +test -z "$exec_cmd" && \
  61645. + func_fatal_help "invalid operation mode \`$mode'"
  61646. if test -n "$exec_cmd"; then
  61647. - eval exec $exec_cmd
  61648. - exit 1
  61649. + eval exec "$exec_cmd"
  61650. + exit $EXIT_FAILURE
  61651. fi
  61652. -# We need to display help for each of the modes.
  61653. -case $mode in
  61654. -"") $echo \
  61655. -"Usage: $modename [OPTION]... [MODE-ARG]...
  61656. -
  61657. -Provide generalized library-building support services.
  61658. -
  61659. - --config show all configuration variables
  61660. - --debug enable verbose shell tracing
  61661. --n, --dry-run display commands without modifying any files
  61662. - --features display basic configuration information and exit
  61663. - --finish same as \`--mode=finish'
  61664. - --help display this help message and exit
  61665. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  61666. - --quiet same as \`--silent'
  61667. - --silent don't print informational messages
  61668. - --tag=TAG use configuration variables from tag TAG
  61669. - --version print version information
  61670. -
  61671. -MODE must be one of the following:
  61672. -
  61673. - clean remove files from the build directory
  61674. - compile compile a source file into a libtool object
  61675. - execute automatically set library path, then run a program
  61676. - finish complete the installation of libtool libraries
  61677. - install install libraries or executables
  61678. - link create a library or an executable
  61679. - uninstall remove libraries from an installed directory
  61680. -
  61681. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  61682. -a more detailed description of MODE.
  61683. -
  61684. -Report bugs to <bug-libtool@gnu.org>."
  61685. - exit 0
  61686. - ;;
  61687. -
  61688. -clean)
  61689. - $echo \
  61690. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  61691. -
  61692. -Remove files from the build directory.
  61693. -
  61694. -RM is the name of the program to use to delete files associated with each FILE
  61695. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  61696. -to RM.
  61697. -
  61698. -If FILE is a libtool library, object or program, all the files associated
  61699. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  61700. - ;;
  61701. -
  61702. -compile)
  61703. - $echo \
  61704. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  61705. -
  61706. -Compile a source file into a libtool library object.
  61707. -
  61708. -This mode accepts the following additional options:
  61709. -
  61710. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  61711. - -prefer-pic try to building PIC objects only
  61712. - -prefer-non-pic try to building non-PIC objects only
  61713. - -static always build a \`.o' file suitable for static linking
  61714. -
  61715. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  61716. -from the given SOURCEFILE.
  61717. -
  61718. -The output file name is determined by removing the directory component from
  61719. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  61720. -library object suffix, \`.lo'."
  61721. - ;;
  61722. -
  61723. -execute)
  61724. - $echo \
  61725. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  61726. -
  61727. -Automatically set library path, then run a program.
  61728. -
  61729. -This mode accepts the following additional options:
  61730. -
  61731. - -dlopen FILE add the directory containing FILE to the library path
  61732. -
  61733. -This mode sets the library path environment variable according to \`-dlopen'
  61734. -flags.
  61735. -
  61736. -If any of the ARGS are libtool executable wrappers, then they are translated
  61737. -into their corresponding uninstalled binary, and any of their required library
  61738. -directories are added to the library path.
  61739. -
  61740. -Then, COMMAND is executed, with ARGS as arguments."
  61741. - ;;
  61742. -
  61743. -finish)
  61744. - $echo \
  61745. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  61746. -
  61747. -Complete the installation of libtool libraries.
  61748. -
  61749. -Each LIBDIR is a directory that contains libtool libraries.
  61750. -
  61751. -The commands that this mode executes may require superuser privileges. Use
  61752. -the \`--dry-run' option if you just want to see what would be executed."
  61753. - ;;
  61754. -
  61755. -install)
  61756. - $echo \
  61757. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  61758. -
  61759. -Install executables or libraries.
  61760. -
  61761. -INSTALL-COMMAND is the installation command. The first component should be
  61762. -either the \`install' or \`cp' program.
  61763. -
  61764. -The rest of the components are interpreted as arguments to that command (only
  61765. -BSD-compatible install options are recognized)."
  61766. - ;;
  61767. -
  61768. -link)
  61769. - $echo \
  61770. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  61771. -
  61772. -Link object files or libraries together to form another library, or to
  61773. -create an executable program.
  61774. -
  61775. -LINK-COMMAND is a command using the C compiler that you would use to create
  61776. -a program from several object files.
  61777. -
  61778. -The following components of LINK-COMMAND are treated specially:
  61779. -
  61780. - -all-static do not do any dynamic linking at all
  61781. - -avoid-version do not add a version suffix if possible
  61782. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  61783. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  61784. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  61785. - -export-symbols SYMFILE
  61786. - try to export only the symbols listed in SYMFILE
  61787. - -export-symbols-regex REGEX
  61788. - try to export only the symbols matching REGEX
  61789. - -LLIBDIR search LIBDIR for required installed libraries
  61790. - -lNAME OUTPUT-FILE requires the installed library libNAME
  61791. - -module build a library that can dlopened
  61792. - -no-fast-install disable the fast-install mode
  61793. - -no-install link a not-installable executable
  61794. - -no-undefined declare that a library does not refer to external symbols
  61795. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  61796. - -objectlist FILE Use a list of object files found in FILE to specify objects
  61797. - -precious-files-regex REGEX
  61798. - don't remove output files matching REGEX
  61799. - -release RELEASE specify package release information
  61800. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  61801. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  61802. - -static do not do any dynamic linking of libtool libraries
  61803. - -version-info CURRENT[:REVISION[:AGE]]
  61804. - specify library version info [each variable defaults to 0]
  61805. -
  61806. -All other options (arguments beginning with \`-') are ignored.
  61807. -
  61808. -Every other argument is treated as a filename. Files ending in \`.la' are
  61809. -treated as uninstalled libtool libraries, other files are standard or library
  61810. -object files.
  61811. -
  61812. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  61813. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  61814. -required, except when creating a convenience library.
  61815. -
  61816. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  61817. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  61818. -
  61819. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  61820. -is created, otherwise an executable program is created."
  61821. - ;;
  61822. -
  61823. -uninstall)
  61824. - $echo \
  61825. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  61826. -
  61827. -Remove libraries from an installation directory.
  61828. -
  61829. -RM is the name of the program to use to delete files associated with each FILE
  61830. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  61831. -to RM.
  61832. -
  61833. -If FILE is a libtool library, all the files associated with it are deleted.
  61834. -Otherwise, only FILE itself is deleted using RM."
  61835. - ;;
  61836. +exit $exit_status
  61837. -*)
  61838. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  61839. - $echo "$help" 1>&2
  61840. - exit 1
  61841. - ;;
  61842. -esac
  61843. -
  61844. -$echo
  61845. -$echo "Try \`$modename --help' for more information about other modes."
  61846. -
  61847. -exit 0
  61848. # The TAGs below are defined such that we never get into a situation
  61849. # in which we disable both kinds of libraries. Given conflicting
  61850. @@ -6390,10 +8402,12 @@
  61851. # ### END LIBTOOL TAG CONFIG: disable-shared
  61852. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  61853. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  61854. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  61855. # ### END LIBTOOL TAG CONFIG: disable-static
  61856. # Local Variables:
  61857. # mode:shell-script
  61858. # sh-indentation:2
  61859. # End:
  61860. +# vi:sw=2
  61861. +
  61862. diff -Nur libmad-0.15.1b.orig/Makefile.in libmad-0.15.1b/Makefile.in
  61863. --- libmad-0.15.1b.orig/Makefile.in 2004-02-17 03:33:23.000000000 +0100
  61864. +++ libmad-0.15.1b/Makefile.in 2011-02-17 17:22:46.633558470 +0100
  61865. @@ -1,8 +1,9 @@
  61866. -# Makefile.in generated by automake 1.8.2 from Makefile.am.
  61867. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61868. # @configure_input@
  61869. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61870. -# 2003, 2004 Free Software Foundation, Inc.
  61871. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61872. +# Inc.
  61873. # This Makefile.in is free software; the Free Software Foundation
  61874. # gives unlimited permission to copy and/or distribute it,
  61875. # with or without modifications, as long as this notice is preserved.
  61876. @@ -15,17 +16,12 @@
  61877. @SET_MAKE@
  61878. -SOURCES = $(libmad_la_SOURCES) $(EXTRA_libmad_la_SOURCES) $(minimad_SOURCES)
  61879. -
  61880. -srcdir = @srcdir@
  61881. -top_srcdir = @top_srcdir@
  61882. VPATH = @srcdir@
  61883. pkgdatadir = $(datadir)/@PACKAGE@
  61884. -pkglibdir = $(libdir)/@PACKAGE@
  61885. pkgincludedir = $(includedir)/@PACKAGE@
  61886. -top_builddir = .
  61887. +pkglibdir = $(libdir)/@PACKAGE@
  61888. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61889. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61890. -INSTALL = @INSTALL@
  61891. install_sh_DATA = $(install_sh) -c -m 644
  61892. install_sh_PROGRAM = $(install_sh) -c
  61893. install_sh_SCRIPT = $(install_sh) -c
  61894. @@ -37,25 +33,48 @@
  61895. NORMAL_UNINSTALL = :
  61896. PRE_UNINSTALL = :
  61897. POST_UNINSTALL = :
  61898. +build_triplet = @build@
  61899. host_triplet = @host@
  61900. EXTRA_PROGRAMS = minimad$(EXEEXT)
  61901. +subdir = .
  61902. DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
  61903. $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  61904. $(srcdir)/config.h.in $(srcdir)/libmad.list.in \
  61905. - $(top_srcdir)/configure COPYING INSTALL TODO config.guess \
  61906. - config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
  61907. -subdir = .
  61908. + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
  61909. + TODO config.guess config.sub depcomp install-sh ltmain.sh \
  61910. + missing mkinstalldirs
  61911. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  61912. am__aclocal_m4_deps = $(top_srcdir)/configure.ac
  61913. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61914. $(ACLOCAL_M4)
  61915. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  61916. - configure.lineno configure.status.lineno
  61917. + configure.lineno config.status.lineno
  61918. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  61919. CONFIG_HEADER = config.h
  61920. CONFIG_CLEAN_FILES = libmad.list
  61921. -am__installdirs = $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
  61922. -libLTLIBRARIES_INSTALL = $(INSTALL)
  61923. +CONFIG_CLEAN_VPATH_FILES =
  61924. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  61925. +am__vpath_adj = case $$p in \
  61926. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  61927. + *) f=$$p;; \
  61928. + esac;
  61929. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  61930. +am__install_max = 40
  61931. +am__nobase_strip_setup = \
  61932. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  61933. +am__nobase_strip = \
  61934. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  61935. +am__nobase_list = $(am__nobase_strip_setup); \
  61936. + for p in $$list; do echo "$$p $$p"; done | \
  61937. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  61938. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  61939. + if (++n[$$2] == $(am__install_max)) \
  61940. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  61941. + END { for (dir in files) print dir, files[dir] }'
  61942. +am__base_list = \
  61943. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  61944. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  61945. +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
  61946. LTLIBRARIES = $(lib_LTLIBRARIES)
  61947. am__objects_1 =
  61948. am__objects_2 = $(am__objects_1)
  61949. @@ -63,57 +82,86 @@
  61950. frame.lo synth.lo decoder.lo layer12.lo layer3.lo huffman.lo \
  61951. $(am__objects_2) $(am__objects_1)
  61952. libmad_la_OBJECTS = $(am_libmad_la_OBJECTS)
  61953. +libmad_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  61954. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61955. + $(libmad_la_LDFLAGS) $(LDFLAGS) -o $@
  61956. am_minimad_OBJECTS = minimad.$(OBJEXT)
  61957. minimad_OBJECTS = $(am_minimad_OBJECTS)
  61958. minimad_DEPENDENCIES = libmad.la
  61959. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
  61960. +DEFAULT_INCLUDES = -I.@am__isrc@
  61961. depcomp = $(SHELL) $(top_srcdir)/depcomp
  61962. am__depfiles_maybe = depfiles
  61963. -@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/bit.Plo ./$(DEPDIR)/decoder.Plo \
  61964. -@AMDEP_TRUE@ ./$(DEPDIR)/fixed.Plo ./$(DEPDIR)/frame.Plo \
  61965. -@AMDEP_TRUE@ ./$(DEPDIR)/huffman.Plo ./$(DEPDIR)/layer12.Plo \
  61966. -@AMDEP_TRUE@ ./$(DEPDIR)/layer3.Plo ./$(DEPDIR)/minimad.Po \
  61967. -@AMDEP_TRUE@ ./$(DEPDIR)/stream.Plo ./$(DEPDIR)/synth.Plo \
  61968. -@AMDEP_TRUE@ ./$(DEPDIR)/timer.Plo ./$(DEPDIR)/version.Plo
  61969. -CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
  61970. -LTCCASCOMPILE = $(LIBTOOL) --mode=compile $(CCAS) $(AM_CCASFLAGS) \
  61971. - $(CCASFLAGS)
  61972. +am__mv = mv -f
  61973. +CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61974. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
  61975. +LTCPPASCOMPILE = $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61976. + --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61977. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
  61978. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  61979. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61980. -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  61981. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  61982. - $(AM_CFLAGS) $(CFLAGS)
  61983. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61984. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  61985. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  61986. CCLD = $(CC)
  61987. -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  61988. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  61989. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  61990. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  61991. + $(LDFLAGS) -o $@
  61992. SOURCES = $(libmad_la_SOURCES) $(EXTRA_libmad_la_SOURCES) \
  61993. $(minimad_SOURCES)
  61994. DIST_SOURCES = $(libmad_la_SOURCES) $(EXTRA_libmad_la_SOURCES) \
  61995. $(minimad_SOURCES)
  61996. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61997. html-recursive info-recursive install-data-recursive \
  61998. - install-exec-recursive install-info-recursive \
  61999. - install-recursive installcheck-recursive installdirs-recursive \
  62000. - pdf-recursive ps-recursive uninstall-info-recursive \
  62001. - uninstall-recursive
  62002. -includeHEADERS_INSTALL = $(INSTALL_HEADER)
  62003. + install-dvi-recursive install-exec-recursive \
  62004. + install-html-recursive install-info-recursive \
  62005. + install-pdf-recursive install-ps-recursive install-recursive \
  62006. + installcheck-recursive installdirs-recursive pdf-recursive \
  62007. + ps-recursive uninstall-recursive
  62008. HEADERS = $(include_HEADERS)
  62009. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  62010. + distclean-recursive maintainer-clean-recursive
  62011. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  62012. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  62013. + distdir dist dist-all distcheck
  62014. ETAGS = etags
  62015. CTAGS = ctags
  62016. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62017. distdir = $(PACKAGE)-$(VERSION)
  62018. top_distdir = $(distdir)
  62019. am__remove_distdir = \
  62020. - { test ! -d $(distdir) \
  62021. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  62022. - && rm -fr $(distdir); }; }
  62023. + { test ! -d "$(distdir)" \
  62024. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  62025. + && rm -fr "$(distdir)"; }; }
  62026. +am__relativize = \
  62027. + dir0=`pwd`; \
  62028. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  62029. + sed_rest='s,^[^/]*/*,,'; \
  62030. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  62031. + sed_butlast='s,/*[^/]*$$,,'; \
  62032. + while test -n "$$dir1"; do \
  62033. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  62034. + if test "$$first" != "."; then \
  62035. + if test "$$first" = ".."; then \
  62036. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  62037. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  62038. + else \
  62039. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  62040. + if test "$$first2" = "$$first"; then \
  62041. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  62042. + else \
  62043. + dir2="../$$dir2"; \
  62044. + fi; \
  62045. + dir0="$$dir0"/"$$first"; \
  62046. + fi; \
  62047. + fi; \
  62048. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  62049. + done; \
  62050. + reldir="$$dir2"
  62051. DIST_ARCHIVES = $(distdir).tar.gz
  62052. GZIP_ENV = --best
  62053. distuninstallcheck_listfiles = find . -type f -print
  62054. distcleancheck_listfiles = find . -type f -print
  62055. ACLOCAL = @ACLOCAL@
  62056. -AMDEP_FALSE = @AMDEP_FALSE@
  62057. -AMDEP_TRUE = @AMDEP_TRUE@
  62058. AMTAR = @AMTAR@
  62059. AR = @AR@
  62060. ASO = @ASO@
  62061. @@ -124,93 +172,113 @@
  62062. AWK = @AWK@
  62063. CC = @CC@
  62064. CCAS = @CCAS@
  62065. +CCASDEPMODE = @CCASDEPMODE@
  62066. CCASFLAGS = @CCASFLAGS@
  62067. CCDEPMODE = @CCDEPMODE@
  62068. CFLAGS = @CFLAGS@
  62069. CPP = @CPP@
  62070. CPPFLAGS = @CPPFLAGS@
  62071. -CXX = @CXX@
  62072. -CXXCPP = @CXXCPP@
  62073. -CXXDEPMODE = @CXXDEPMODE@
  62074. -CXXFLAGS = @CXXFLAGS@
  62075. CYGPATH_W = @CYGPATH_W@
  62076. DEFS = @DEFS@
  62077. DEPDIR = @DEPDIR@
  62078. -ECHO = @ECHO@
  62079. +DSYMUTIL = @DSYMUTIL@
  62080. +DUMPBIN = @DUMPBIN@
  62081. ECHO_C = @ECHO_C@
  62082. ECHO_N = @ECHO_N@
  62083. ECHO_T = @ECHO_T@
  62084. EGREP = @EGREP@
  62085. EXEEXT = @EXEEXT@
  62086. -F77 = @F77@
  62087. -FFLAGS = @FFLAGS@
  62088. +FGREP = @FGREP@
  62089. FPM = @FPM@
  62090. +GREP = @GREP@
  62091. +INSTALL = @INSTALL@
  62092. INSTALL_DATA = @INSTALL_DATA@
  62093. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62094. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62095. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62096. +LD = @LD@
  62097. LDFLAGS = @LDFLAGS@
  62098. LIBOBJS = @LIBOBJS@
  62099. LIBS = @LIBS@
  62100. LIBTOOL = @LIBTOOL@
  62101. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  62102. +LIPO = @LIPO@
  62103. LN_S = @LN_S@
  62104. LTLIBOBJS = @LTLIBOBJS@
  62105. MAKEINFO = @MAKEINFO@
  62106. +MKDIR_P = @MKDIR_P@
  62107. +NM = @NM@
  62108. +NMEDIT = @NMEDIT@
  62109. +OBJDUMP = @OBJDUMP@
  62110. OBJEXT = @OBJEXT@
  62111. +OTOOL = @OTOOL@
  62112. +OTOOL64 = @OTOOL64@
  62113. PACKAGE = @PACKAGE@
  62114. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62115. PACKAGE_NAME = @PACKAGE_NAME@
  62116. PACKAGE_STRING = @PACKAGE_STRING@
  62117. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62118. +PACKAGE_URL = @PACKAGE_URL@
  62119. PACKAGE_VERSION = @PACKAGE_VERSION@
  62120. PATH_SEPARATOR = @PATH_SEPARATOR@
  62121. RANLIB = @RANLIB@
  62122. +SED = @SED@
  62123. SET_MAKE = @SET_MAKE@
  62124. SHELL = @SHELL@
  62125. STRIP = @STRIP@
  62126. VERSION = @VERSION@
  62127. -ac_ct_AR = @ac_ct_AR@
  62128. +abs_builddir = @abs_builddir@
  62129. +abs_srcdir = @abs_srcdir@
  62130. +abs_top_builddir = @abs_top_builddir@
  62131. +abs_top_srcdir = @abs_top_srcdir@
  62132. ac_ct_CC = @ac_ct_CC@
  62133. -ac_ct_CXX = @ac_ct_CXX@
  62134. -ac_ct_F77 = @ac_ct_F77@
  62135. -ac_ct_RANLIB = @ac_ct_RANLIB@
  62136. -ac_ct_STRIP = @ac_ct_STRIP@
  62137. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  62138. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  62139. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  62140. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  62141. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62142. am__include = @am__include@
  62143. am__leading_dot = @am__leading_dot@
  62144. am__quote = @am__quote@
  62145. +am__tar = @am__tar@
  62146. +am__untar = @am__untar@
  62147. bindir = @bindir@
  62148. build = @build@
  62149. build_alias = @build_alias@
  62150. build_cpu = @build_cpu@
  62151. build_os = @build_os@
  62152. build_vendor = @build_vendor@
  62153. +builddir = @builddir@
  62154. datadir = @datadir@
  62155. +datarootdir = @datarootdir@
  62156. +docdir = @docdir@
  62157. +dvidir = @dvidir@
  62158. exec_prefix = @exec_prefix@
  62159. host = @host@
  62160. host_alias = @host_alias@
  62161. host_cpu = @host_cpu@
  62162. host_os = @host_os@
  62163. host_vendor = @host_vendor@
  62164. +htmldir = @htmldir@
  62165. includedir = @includedir@
  62166. infodir = @infodir@
  62167. install_sh = @install_sh@
  62168. libdir = @libdir@
  62169. libexecdir = @libexecdir@
  62170. +localedir = @localedir@
  62171. localstatedir = @localstatedir@
  62172. +lt_ECHO = @lt_ECHO@
  62173. mandir = @mandir@
  62174. mkdir_p = @mkdir_p@
  62175. oldincludedir = @oldincludedir@
  62176. +pdfdir = @pdfdir@
  62177. prefix = @prefix@
  62178. program_transform_name = @program_transform_name@
  62179. +psdir = @psdir@
  62180. sbindir = @sbindir@
  62181. sharedstatedir = @sharedstatedir@
  62182. +srcdir = @srcdir@
  62183. sysconfdir = @sysconfdir@
  62184. target_alias = @target_alias@
  62185. +top_build_prefix = @top_build_prefix@
  62186. +top_builddir = @top_builddir@
  62187. +top_srcdir = @top_srcdir@
  62188. SUBDIRS =
  62189. DIST_SUBDIRS = msvc++
  62190. lib_LTLIBRARIES = libmad.la
  62191. @@ -256,15 +324,15 @@
  62192. @for dep in $?; do \
  62193. case '$(am__configure_deps)' in \
  62194. *$$dep*) \
  62195. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  62196. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  62197. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  62198. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  62199. && exit 0; \
  62200. exit 1;; \
  62201. esac; \
  62202. done; \
  62203. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  62204. - cd $(top_srcdir) && \
  62205. - $(AUTOMAKE) --foreign Makefile
  62206. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  62207. + $(am__cd) $(top_srcdir) && \
  62208. + $(AUTOMAKE) --gnu Makefile
  62209. .PRECIOUS: Makefile
  62210. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62211. @case '$?' in \
  62212. @@ -280,21 +348,22 @@
  62213. $(SHELL) ./config.status --recheck
  62214. $(top_srcdir)/configure: $(am__configure_deps)
  62215. - cd $(srcdir) && $(AUTOCONF)
  62216. + $(am__cd) $(srcdir) && $(AUTOCONF)
  62217. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62218. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  62219. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  62220. +$(am__aclocal_m4_deps):
  62221. config.h: stamp-h1
  62222. @if test ! -f $@; then \
  62223. rm -f stamp-h1; \
  62224. - $(MAKE) stamp-h1; \
  62225. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  62226. else :; fi
  62227. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  62228. @rm -f stamp-h1
  62229. cd $(top_builddir) && $(SHELL) ./config.status config.h
  62230. $(srcdir)/config.h.in: $(am__configure_deps)
  62231. - cd $(top_srcdir) && $(AUTOHEADER)
  62232. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  62233. rm -f stamp-h1
  62234. touch $@
  62235. @@ -304,36 +373,40 @@
  62236. cd $(top_builddir) && $(SHELL) ./config.status $@
  62237. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  62238. @$(NORMAL_INSTALL)
  62239. - $(mkdir_p) $(DESTDIR)$(libdir)
  62240. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62241. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  62242. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62243. + list2=; for p in $$list; do \
  62244. if test -f $$p; then \
  62245. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  62246. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
  62247. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
  62248. + list2="$$list2 $$p"; \
  62249. else :; fi; \
  62250. - done
  62251. + done; \
  62252. + test -z "$$list2" || { \
  62253. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  62254. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  62255. + }
  62256. uninstall-libLTLIBRARIES:
  62257. @$(NORMAL_UNINSTALL)
  62258. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62259. - p="`echo $$p | sed -e 's|^.*/||'`"; \
  62260. - echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
  62261. - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  62262. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62263. + for p in $$list; do \
  62264. + $(am__strip_dir) \
  62265. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  62266. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  62267. done
  62268. clean-libLTLIBRARIES:
  62269. -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  62270. @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62271. dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  62272. - test "$$dir" = "$$p" && dir=.; \
  62273. + test "$$dir" != "$$p" || dir=.; \
  62274. echo "rm -f \"$${dir}/so_locations\""; \
  62275. rm -f "$${dir}/so_locations"; \
  62276. done
  62277. libmad.la: $(libmad_la_OBJECTS) $(libmad_la_DEPENDENCIES)
  62278. - $(LINK) -rpath $(libdir) $(libmad_la_LDFLAGS) $(libmad_la_OBJECTS) $(libmad_la_LIBADD) $(LIBS)
  62279. + $(libmad_la_LINK) -rpath $(libdir) $(libmad_la_OBJECTS) $(libmad_la_LIBADD) $(LIBS)
  62280. minimad$(EXEEXT): $(minimad_OBJECTS) $(minimad_DEPENDENCIES)
  62281. @rm -f minimad$(EXEEXT)
  62282. - $(LINK) $(minimad_LDFLAGS) $(minimad_OBJECTS) $(minimad_LDADD) $(LIBS)
  62283. + $(LINK) $(minimad_OBJECTS) $(minimad_LDADD) $(LIBS)
  62284. mostlyclean-compile:
  62285. -rm -f *.$(OBJEXT)
  62286. @@ -346,6 +419,7 @@
  62287. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fixed.Plo@am__quote@
  62288. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frame.Plo@am__quote@
  62289. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/huffman.Plo@am__quote@
  62290. +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/imdct_l_arm.Plo@am__quote@
  62291. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/layer12.Plo@am__quote@
  62292. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/layer3.Plo@am__quote@
  62293. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/minimad.Po@am__quote@
  62294. @@ -355,36 +429,45 @@
  62295. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/version.Plo@am__quote@
  62296. .S.o:
  62297. - $(CCASCOMPILE) -c $<
  62298. +@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62299. +@am__fastdepCCAS_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62300. +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62301. +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62302. +@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ $<
  62303. .S.obj:
  62304. - $(CCASCOMPILE) -c `$(CYGPATH_W) '$<'`
  62305. +@am__fastdepCCAS_TRUE@ $(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62306. +@am__fastdepCCAS_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62307. +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62308. +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62309. +@am__fastdepCCAS_FALSE@ $(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
  62310. .S.lo:
  62311. - $(LTCCASCOMPILE) -c -o $@ $<
  62312. +@am__fastdepCCAS_TRUE@ $(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62313. +@am__fastdepCCAS_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62314. +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62315. +@AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62316. +@am__fastdepCCAS_FALSE@ $(LTCPPASCOMPILE) -c -o $@ $<
  62317. .c.o:
  62318. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  62319. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62320. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62321. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62322. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62323. -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
  62324. -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62325. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62326. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  62327. .c.obj:
  62328. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  62329. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62330. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62331. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62332. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62333. -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
  62334. -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62335. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62336. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  62337. .c.lo:
  62338. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  62339. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62340. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62341. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62342. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62343. -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
  62344. -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62345. +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62346. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62347. mostlyclean-libtool:
  62348. @@ -394,25 +477,27 @@
  62349. -rm -rf .libs _libs
  62350. distclean-libtool:
  62351. - -rm -f libtool
  62352. -uninstall-info-am:
  62353. + -rm -f libtool config.lt
  62354. install-includeHEADERS: $(include_HEADERS)
  62355. @$(NORMAL_INSTALL)
  62356. - $(mkdir_p) $(DESTDIR)$(includedir)
  62357. - @list='$(include_HEADERS)'; for p in $$list; do \
  62358. + test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
  62359. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  62360. + for p in $$list; do \
  62361. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  62362. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  62363. - echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
  62364. - $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
  62365. + echo "$$d$$p"; \
  62366. + done | $(am__base_list) | \
  62367. + while read files; do \
  62368. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(includedir)'"; \
  62369. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(includedir)" || exit $$?; \
  62370. done
  62371. uninstall-includeHEADERS:
  62372. @$(NORMAL_UNINSTALL)
  62373. - @list='$(include_HEADERS)'; for p in $$list; do \
  62374. - f="`echo $$p | sed -e 's|^.*/||'`"; \
  62375. - echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
  62376. - rm -f $(DESTDIR)$(includedir)/$$f; \
  62377. - done
  62378. + @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
  62379. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  62380. + test -n "$$files" || exit 0; \
  62381. + echo " ( cd '$(DESTDIR)$(includedir)' && rm -f" $$files ")"; \
  62382. + cd "$(DESTDIR)$(includedir)" && rm -f $$files
  62383. # This directory's subdirectories are mostly independent; you can cd
  62384. # into them and run `make' without going through this Makefile.
  62385. @@ -421,7 +506,13 @@
  62386. # (which will cause the Makefiles to be regenerated when you run `make');
  62387. # (2) otherwise, pass the desired values on the `make' command line.
  62388. $(RECURSIVE_TARGETS):
  62389. - @set fnord $$MAKEFLAGS; amf=$$2; \
  62390. + @fail= failcom='exit 1'; \
  62391. + for f in x $$MAKEFLAGS; do \
  62392. + case $$f in \
  62393. + *=* | --[!k]*);; \
  62394. + *k*) failcom='fail=yes';; \
  62395. + esac; \
  62396. + done; \
  62397. dot_seen=no; \
  62398. target=`echo $@ | sed s/-recursive//`; \
  62399. list='$(SUBDIRS)'; for subdir in $$list; do \
  62400. @@ -432,16 +523,21 @@
  62401. else \
  62402. local_target="$$target"; \
  62403. fi; \
  62404. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  62405. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  62406. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  62407. + || eval $$failcom; \
  62408. done; \
  62409. if test "$$dot_seen" = "no"; then \
  62410. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  62411. fi; test -z "$$fail"
  62412. -mostlyclean-recursive clean-recursive distclean-recursive \
  62413. -maintainer-clean-recursive:
  62414. - @set fnord $$MAKEFLAGS; amf=$$2; \
  62415. +$(RECURSIVE_CLEAN_TARGETS):
  62416. + @fail= failcom='exit 1'; \
  62417. + for f in x $$MAKEFLAGS; do \
  62418. + case $$f in \
  62419. + *=* | --[!k]*);; \
  62420. + *k*) failcom='fail=yes';; \
  62421. + esac; \
  62422. + done; \
  62423. dot_seen=no; \
  62424. case "$@" in \
  62425. distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  62426. @@ -461,16 +557,16 @@
  62427. else \
  62428. local_target="$$target"; \
  62429. fi; \
  62430. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  62431. - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  62432. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  62433. + || eval $$failcom; \
  62434. done && test -z "$$fail"
  62435. tags-recursive:
  62436. list='$(SUBDIRS)'; for subdir in $$list; do \
  62437. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  62438. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  62439. done
  62440. ctags-recursive:
  62441. list='$(SUBDIRS)'; for subdir in $$list; do \
  62442. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  62443. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  62444. done
  62445. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  62446. @@ -478,116 +574,151 @@
  62447. unique=`for i in $$list; do \
  62448. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62449. done | \
  62450. - $(AWK) ' { files[$$0] = 1; } \
  62451. - END { for (i in files) print i; }'`; \
  62452. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62453. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62454. mkid -fID $$unique
  62455. tags: TAGS
  62456. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  62457. $(TAGS_FILES) $(LISP)
  62458. - tags=; \
  62459. + set x; \
  62460. here=`pwd`; \
  62461. - if (etags --etags-include --version) >/dev/null 2>&1; then \
  62462. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  62463. include_option=--etags-include; \
  62464. + empty_fix=.; \
  62465. else \
  62466. include_option=--include; \
  62467. + empty_fix=; \
  62468. fi; \
  62469. list='$(SUBDIRS)'; for subdir in $$list; do \
  62470. if test "$$subdir" = .; then :; else \
  62471. - test -f $$subdir/TAGS && \
  62472. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  62473. + test ! -f $$subdir/TAGS || \
  62474. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  62475. fi; \
  62476. done; \
  62477. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  62478. unique=`for i in $$list; do \
  62479. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62480. done | \
  62481. - $(AWK) ' { files[$$0] = 1; } \
  62482. - END { for (i in files) print i; }'`; \
  62483. - test -z "$(ETAGS_ARGS)$$tags$$unique" \
  62484. - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62485. - $$tags $$unique
  62486. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62487. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62488. + shift; \
  62489. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62490. + test -n "$$unique" || unique=$$empty_fix; \
  62491. + if test $$# -gt 0; then \
  62492. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62493. + "$$@" $$unique; \
  62494. + else \
  62495. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62496. + $$unique; \
  62497. + fi; \
  62498. + fi
  62499. ctags: CTAGS
  62500. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  62501. $(TAGS_FILES) $(LISP)
  62502. - tags=; \
  62503. - here=`pwd`; \
  62504. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  62505. unique=`for i in $$list; do \
  62506. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62507. done | \
  62508. - $(AWK) ' { files[$$0] = 1; } \
  62509. - END { for (i in files) print i; }'`; \
  62510. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62511. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62512. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62513. + test -z "$(CTAGS_ARGS)$$unique" \
  62514. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62515. - $$tags $$unique
  62516. + $$unique
  62517. GTAGS:
  62518. here=`$(am__cd) $(top_builddir) && pwd` \
  62519. - && cd $(top_srcdir) \
  62520. - && gtags -i $(GTAGS_ARGS) $$here
  62521. + && $(am__cd) $(top_srcdir) \
  62522. + && gtags -i $(GTAGS_ARGS) "$$here"
  62523. distclean-tags:
  62524. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62525. distdir: $(DISTFILES)
  62526. $(am__remove_distdir)
  62527. - mkdir $(distdir)
  62528. - $(mkdir_p) $(distdir)/.
  62529. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62530. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62531. - list='$(DISTFILES)'; for file in $$list; do \
  62532. - case $$file in \
  62533. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62534. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62535. - esac; \
  62536. + test -d "$(distdir)" || mkdir "$(distdir)"
  62537. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62538. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62539. + list='$(DISTFILES)'; \
  62540. + dist_files=`for file in $$list; do echo $$file; done | \
  62541. + sed -e "s|^$$srcdirstrip/||;t" \
  62542. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62543. + case $$dist_files in \
  62544. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62545. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62546. + sort -u` ;; \
  62547. + esac; \
  62548. + for file in $$dist_files; do \
  62549. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62550. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62551. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62552. - dir="/$$dir"; \
  62553. - $(mkdir_p) "$(distdir)$$dir"; \
  62554. - else \
  62555. - dir=''; \
  62556. - fi; \
  62557. if test -d $$d/$$file; then \
  62558. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62559. + if test -d "$(distdir)/$$file"; then \
  62560. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62561. + fi; \
  62562. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62563. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62564. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62565. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62566. fi; \
  62567. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62568. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62569. else \
  62570. - test -f $(distdir)/$$file \
  62571. - || cp -p $$d/$$file $(distdir)/$$file \
  62572. + test -f "$(distdir)/$$file" \
  62573. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62574. || exit 1; \
  62575. fi; \
  62576. done
  62577. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  62578. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  62579. if test "$$subdir" = .; then :; else \
  62580. test -d "$(distdir)/$$subdir" \
  62581. - || mkdir "$(distdir)/$$subdir" \
  62582. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  62583. || exit 1; \
  62584. - (cd $$subdir && \
  62585. + fi; \
  62586. + done
  62587. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  62588. + if test "$$subdir" = .; then :; else \
  62589. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  62590. + $(am__relativize); \
  62591. + new_distdir=$$reldir; \
  62592. + dir1=$$subdir; dir2="$(top_distdir)"; \
  62593. + $(am__relativize); \
  62594. + new_top_distdir=$$reldir; \
  62595. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  62596. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  62597. + ($(am__cd) $$subdir && \
  62598. $(MAKE) $(AM_MAKEFLAGS) \
  62599. - top_distdir="../$(top_distdir)" \
  62600. - distdir="../$(distdir)/$$subdir" \
  62601. + top_distdir="$$new_top_distdir" \
  62602. + distdir="$$new_distdir" \
  62603. + am__remove_distdir=: \
  62604. + am__skip_length_check=: \
  62605. + am__skip_mode_fix=: \
  62606. distdir) \
  62607. || exit 1; \
  62608. fi; \
  62609. done
  62610. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  62611. + -test -n "$(am__skip_mode_fix)" \
  62612. + || find "$(distdir)" -type d ! -perm -755 \
  62613. + -exec chmod u+rwx,go+rx {} \; -o \
  62614. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  62615. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  62616. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  62617. - || chmod -R a+r $(distdir)
  62618. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  62619. + || chmod -R a+r "$(distdir)"
  62620. dist-gzip: distdir
  62621. - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  62622. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  62623. $(am__remove_distdir)
  62624. dist-bzip2: distdir
  62625. - $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
  62626. + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  62627. + $(am__remove_distdir)
  62628. +
  62629. +dist-lzma: distdir
  62630. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  62631. + $(am__remove_distdir)
  62632. +
  62633. +dist-xz: distdir
  62634. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  62635. $(am__remove_distdir)
  62636. dist-tarZ: distdir
  62637. - $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
  62638. + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  62639. $(am__remove_distdir)
  62640. dist-shar: distdir
  62641. @@ -600,7 +731,7 @@
  62642. $(am__remove_distdir)
  62643. dist dist-all: distdir
  62644. - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  62645. + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  62646. $(am__remove_distdir)
  62647. # This target untars the dist file and tries a VPATH configuration. Then
  62648. @@ -609,13 +740,17 @@
  62649. distcheck: dist
  62650. case '$(DIST_ARCHIVES)' in \
  62651. *.tar.gz*) \
  62652. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
  62653. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  62654. *.tar.bz2*) \
  62655. - bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
  62656. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  62657. + *.tar.lzma*) \
  62658. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  62659. + *.tar.xz*) \
  62660. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  62661. *.tar.Z*) \
  62662. - uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
  62663. + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  62664. *.shar.gz*) \
  62665. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | unshar ;;\
  62666. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  62667. *.zip*) \
  62668. unzip $(distdir).zip ;;\
  62669. esac
  62670. @@ -623,9 +758,11 @@
  62671. mkdir $(distdir)/_build
  62672. mkdir $(distdir)/_inst
  62673. chmod a-w $(distdir)
  62674. + test -d $(distdir)/_build || exit 0; \
  62675. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  62676. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  62677. - && cd $(distdir)/_build \
  62678. + && am__cwd=`pwd` \
  62679. + && $(am__cd) $(distdir)/_build \
  62680. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  62681. $(DISTCHECK_CONFIGURE_FLAGS) \
  62682. && $(MAKE) $(AM_MAKEFLAGS) \
  62683. @@ -638,7 +775,7 @@
  62684. distuninstallcheck \
  62685. && chmod -R a-w "$$dc_install_base" \
  62686. && ({ \
  62687. - (cd ../.. && $(mkdir_p) "$$dc_destdir") \
  62688. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  62689. && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  62690. && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  62691. && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  62692. @@ -647,13 +784,15 @@
  62693. && rm -rf "$$dc_destdir" \
  62694. && $(MAKE) $(AM_MAKEFLAGS) dist \
  62695. && rm -rf $(DIST_ARCHIVES) \
  62696. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  62697. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  62698. + && cd "$$am__cwd" \
  62699. + || exit 1
  62700. $(am__remove_distdir)
  62701. @(echo "$(distdir) archives ready for distribution: "; \
  62702. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  62703. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  62704. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  62705. distuninstallcheck:
  62706. - @cd $(distuninstallcheck_dir) \
  62707. + @$(am__cd) '$(distuninstallcheck_dir)' \
  62708. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  62709. || { echo "ERROR: files left after uninstall:" ; \
  62710. if test -n "$(DESTDIR)"; then \
  62711. @@ -676,7 +815,9 @@
  62712. all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
  62713. installdirs: installdirs-recursive
  62714. installdirs-am:
  62715. - $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
  62716. + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
  62717. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  62718. + done
  62719. install: $(BUILT_SOURCES)
  62720. $(MAKE) $(AM_MAKEFLAGS) install-recursive
  62721. install-exec: install-exec-recursive
  62722. @@ -698,7 +839,8 @@
  62723. -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
  62724. distclean-generic:
  62725. - -rm -f $(CONFIG_CLEAN_FILES)
  62726. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62727. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62728. maintainer-clean-generic:
  62729. @echo "This command is intended for maintainers to use"
  62730. @@ -722,18 +864,38 @@
  62731. html: html-recursive
  62732. +html-am:
  62733. +
  62734. info: info-recursive
  62735. info-am:
  62736. install-data-am: install-includeHEADERS
  62737. +install-dvi: install-dvi-recursive
  62738. +
  62739. +install-dvi-am:
  62740. +
  62741. install-exec-am: install-libLTLIBRARIES
  62742. +install-html: install-html-recursive
  62743. +
  62744. +install-html-am:
  62745. +
  62746. install-info: install-info-recursive
  62747. +install-info-am:
  62748. +
  62749. install-man:
  62750. +install-pdf: install-pdf-recursive
  62751. +
  62752. +install-pdf-am:
  62753. +
  62754. +install-ps: install-ps-recursive
  62755. +
  62756. +install-ps-am:
  62757. +
  62758. installcheck-am:
  62759. maintainer-clean: maintainer-clean-recursive
  62760. @@ -756,29 +918,30 @@
  62761. ps-am:
  62762. -uninstall-am: uninstall-includeHEADERS uninstall-info-am \
  62763. - uninstall-libLTLIBRARIES
  62764. -
  62765. -uninstall-info: uninstall-info-recursive
  62766. +uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
  62767. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  62768. - check-am clean clean-generic clean-libLTLIBRARIES \
  62769. - clean-libtool clean-recursive ctags ctags-recursive dist \
  62770. - dist-all dist-bzip2 dist-gzip dist-shar dist-tarZ dist-zip \
  62771. - distcheck distclean distclean-compile distclean-generic \
  62772. - distclean-hdr distclean-libtool distclean-recursive \
  62773. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all check \
  62774. + ctags-recursive install install-am install-strip \
  62775. + tags-recursive
  62776. +
  62777. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  62778. + all all-am am--refresh check check-am clean clean-generic \
  62779. + clean-libLTLIBRARIES clean-libtool ctags ctags-recursive dist \
  62780. + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \
  62781. + dist-xz dist-zip distcheck distclean distclean-compile \
  62782. + distclean-generic distclean-hdr distclean-libtool \
  62783. distclean-tags distcleancheck distdir distuninstallcheck dvi \
  62784. dvi-am html html-am info info-am install install-am \
  62785. - install-data install-data-am install-exec install-exec-am \
  62786. + install-data install-data-am install-dvi install-dvi-am \
  62787. + install-exec install-exec-am install-html install-html-am \
  62788. install-includeHEADERS install-info install-info-am \
  62789. - install-libLTLIBRARIES install-man install-strip installcheck \
  62790. + install-libLTLIBRARIES install-man install-pdf install-pdf-am \
  62791. + install-ps install-ps-am install-strip installcheck \
  62792. installcheck-am installdirs installdirs-am maintainer-clean \
  62793. - maintainer-clean-generic maintainer-clean-recursive \
  62794. - mostlyclean mostlyclean-compile mostlyclean-generic \
  62795. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  62796. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  62797. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  62798. tags tags-recursive uninstall uninstall-am \
  62799. - uninstall-includeHEADERS uninstall-info-am \
  62800. - uninstall-libLTLIBRARIES
  62801. + uninstall-includeHEADERS uninstall-libLTLIBRARIES
  62802. mad.h: config.status config.h Makefile.am \
  62803. @@ -816,6 +979,7 @@
  62804. $(MAKE)
  62805. .PHONY: again
  62806. +
  62807. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62808. # Otherwise a system limit (for SysV at least) may be exceeded.
  62809. .NOEXPORT:
  62810. diff -Nur libmad-0.15.1b.orig/missing libmad-0.15.1b/missing
  62811. --- libmad-0.15.1b.orig/missing 2003-03-28 11:44:21.000000000 +0100
  62812. +++ libmad-0.15.1b/missing 2011-02-17 17:22:46.503556702 +0100
  62813. @@ -1,6 +1,10 @@
  62814. #! /bin/sh
  62815. # Common stub for a few missing GNU programs while installing.
  62816. -# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
  62817. +
  62818. +scriptversion=2009-04-28.21; # UTC
  62819. +
  62820. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  62821. +# 2008, 2009 Free Software Foundation, Inc.
  62822. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  62823. # This program is free software; you can redistribute it and/or modify
  62824. @@ -14,9 +18,7 @@
  62825. # GNU General Public License for more details.
  62826. # You should have received a copy of the GNU General Public License
  62827. -# along with this program; if not, write to the Free Software
  62828. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  62829. -# 02111-1307, USA.
  62830. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  62831. # As a special exception to the GNU General Public License, if you
  62832. # distribute this file as part of a program that contains a
  62833. @@ -29,6 +31,8 @@
  62834. fi
  62835. run=:
  62836. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  62837. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  62838. # In the cases where this matters, `missing' is being run in the
  62839. # srcdir already.
  62840. @@ -38,18 +42,24 @@
  62841. configure_ac=configure.in
  62842. fi
  62843. -case "$1" in
  62844. +msg="missing on your system"
  62845. +
  62846. +case $1 in
  62847. --run)
  62848. # Try to run requested program, and just exit if it succeeds.
  62849. run=
  62850. shift
  62851. "$@" && exit 0
  62852. + # Exit code 63 means version mismatch. This often happens
  62853. + # when the user try to use an ancient version of a tool on
  62854. + # a file that requires a minimum version. In this case we
  62855. + # we should proceed has if the program had been absent, or
  62856. + # if --run hadn't been passed.
  62857. + if test $? = 63; then
  62858. + run=:
  62859. + msg="probably too old"
  62860. + fi
  62861. ;;
  62862. -esac
  62863. -
  62864. -# If it does not exist, or fails to run (possibly an outdated version),
  62865. -# try to emulate it.
  62866. -case "$1" in
  62867. -h|--h|--he|--hel|--help)
  62868. echo "\
  62869. @@ -67,6 +77,7 @@
  62870. aclocal touch file \`aclocal.m4'
  62871. autoconf touch file \`configure'
  62872. autoheader touch file \`config.h.in'
  62873. + autom4te touch the output file, or create a stub one
  62874. automake touch all \`Makefile.in' files
  62875. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  62876. flex create \`lex.yy.c', if possible, from existing .c
  62877. @@ -74,11 +85,18 @@
  62878. lex create \`lex.yy.c', if possible, from existing .c
  62879. makeinfo touch the output file
  62880. tar try tar, gnutar, gtar, then tar without non-portable flags
  62881. - yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
  62882. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  62883. +
  62884. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  62885. +\`g' are ignored when checking the name.
  62886. +
  62887. +Send bug reports to <bug-automake@gnu.org>."
  62888. + exit $?
  62889. ;;
  62890. -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  62891. - echo "missing 0.4 - GNU automake"
  62892. + echo "missing $scriptversion (GNU Automake)"
  62893. + exit $?
  62894. ;;
  62895. -*)
  62896. @@ -87,42 +105,69 @@
  62897. exit 1
  62898. ;;
  62899. - aclocal*)
  62900. +esac
  62901. +
  62902. +# normalize program name to check for.
  62903. +program=`echo "$1" | sed '
  62904. + s/^gnu-//; t
  62905. + s/^gnu//; t
  62906. + s/^g//; t'`
  62907. +
  62908. +# Now exit if we have it, but it failed. Also exit now if we
  62909. +# don't have it and --version was passed (most likely to detect
  62910. +# the program). This is about non-GNU programs, so use $1 not
  62911. +# $program.
  62912. +case $1 in
  62913. + lex*|yacc*)
  62914. + # Not GNU programs, they don't have --version.
  62915. + ;;
  62916. +
  62917. + tar*)
  62918. + if test -n "$run"; then
  62919. + echo 1>&2 "ERROR: \`tar' requires --run"
  62920. + exit 1
  62921. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  62922. + exit 1
  62923. + fi
  62924. + ;;
  62925. +
  62926. + *)
  62927. if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62928. # We have it, but it failed.
  62929. exit 1
  62930. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  62931. + # Could not run --version or --help. This is probably someone
  62932. + # running `$TOOL --version' or `$TOOL --help' to check whether
  62933. + # $TOOL exists and not knowing $TOOL uses missing.
  62934. + exit 1
  62935. fi
  62936. + ;;
  62937. +esac
  62938. +# If it does not exist, or fails to run (possibly an outdated version),
  62939. +# try to emulate it.
  62940. +case $program in
  62941. + aclocal*)
  62942. echo 1>&2 "\
  62943. -WARNING: \`$1' is missing on your system. You should only need it if
  62944. +WARNING: \`$1' is $msg. You should only need it if
  62945. you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  62946. to install the \`Automake' and \`Perl' packages. Grab them from
  62947. any GNU archive site."
  62948. touch aclocal.m4
  62949. ;;
  62950. - autoconf)
  62951. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62952. - # We have it, but it failed.
  62953. - exit 1
  62954. - fi
  62955. -
  62956. + autoconf*)
  62957. echo 1>&2 "\
  62958. -WARNING: \`$1' is missing on your system. You should only need it if
  62959. +WARNING: \`$1' is $msg. You should only need it if
  62960. you modified \`${configure_ac}'. You might want to install the
  62961. \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  62962. archive site."
  62963. touch configure
  62964. ;;
  62965. - autoheader)
  62966. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62967. - # We have it, but it failed.
  62968. - exit 1
  62969. - fi
  62970. -
  62971. + autoheader*)
  62972. echo 1>&2 "\
  62973. -WARNING: \`$1' is missing on your system. You should only need it if
  62974. +WARNING: \`$1' is $msg. You should only need it if
  62975. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  62976. to install the \`Autoconf' and \`GNU m4' packages. Grab them
  62977. from any GNU archive site."
  62978. @@ -130,7 +175,7 @@
  62979. test -z "$files" && files="config.h"
  62980. touch_files=
  62981. for f in $files; do
  62982. - case "$f" in
  62983. + case $f in
  62984. *:*) touch_files="$touch_files "`echo "$f" |
  62985. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  62986. *) touch_files="$touch_files $f.in";;
  62987. @@ -140,13 +185,8 @@
  62988. ;;
  62989. automake*)
  62990. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62991. - # We have it, but it failed.
  62992. - exit 1
  62993. - fi
  62994. -
  62995. echo 1>&2 "\
  62996. -WARNING: \`$1' is missing on your system. You should only need it if
  62997. +WARNING: \`$1' is $msg. You should only need it if
  62998. you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  62999. You might want to install the \`Automake' and \`Perl' packages.
  63000. Grab them from any GNU archive site."
  63001. @@ -155,21 +195,16 @@
  63002. while read f; do touch "$f"; done
  63003. ;;
  63004. - autom4te)
  63005. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  63006. - # We have it, but it failed.
  63007. - exit 1
  63008. - fi
  63009. -
  63010. + autom4te*)
  63011. echo 1>&2 "\
  63012. -WARNING: \`$1' is needed, and you do not seem to have it handy on your
  63013. - system. You might have modified some files without having the
  63014. +WARNING: \`$1' is needed, but is $msg.
  63015. + You might have modified some files without having the
  63016. proper tools for further handling them.
  63017. - You can get \`$1Help2man' as part of \`Autoconf' from any GNU
  63018. + You can get \`$1' as part of \`Autoconf' from any GNU
  63019. archive site."
  63020. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  63021. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  63022. + file=`echo "$*" | sed -n "$sed_output"`
  63023. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  63024. if test -f "$file"; then
  63025. touch $file
  63026. else
  63027. @@ -183,111 +218,108 @@
  63028. fi
  63029. ;;
  63030. - bison|yacc)
  63031. + bison*|yacc*)
  63032. echo 1>&2 "\
  63033. -WARNING: \`$1' is missing on your system. You should only need it if
  63034. +WARNING: \`$1' $msg. You should only need it if
  63035. you modified a \`.y' file. You may need the \`Bison' package
  63036. in order for those modifications to take effect. You can get
  63037. \`Bison' from any GNU archive site."
  63038. rm -f y.tab.c y.tab.h
  63039. - if [ $# -ne 1 ]; then
  63040. + if test $# -ne 1; then
  63041. eval LASTARG="\${$#}"
  63042. - case "$LASTARG" in
  63043. + case $LASTARG in
  63044. *.y)
  63045. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  63046. - if [ -f "$SRCFILE" ]; then
  63047. + if test -f "$SRCFILE"; then
  63048. cp "$SRCFILE" y.tab.c
  63049. fi
  63050. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  63051. - if [ -f "$SRCFILE" ]; then
  63052. + if test -f "$SRCFILE"; then
  63053. cp "$SRCFILE" y.tab.h
  63054. fi
  63055. ;;
  63056. esac
  63057. fi
  63058. - if [ ! -f y.tab.h ]; then
  63059. + if test ! -f y.tab.h; then
  63060. echo >y.tab.h
  63061. fi
  63062. - if [ ! -f y.tab.c ]; then
  63063. + if test ! -f y.tab.c; then
  63064. echo 'main() { return 0; }' >y.tab.c
  63065. fi
  63066. ;;
  63067. - lex|flex)
  63068. + lex*|flex*)
  63069. echo 1>&2 "\
  63070. -WARNING: \`$1' is missing on your system. You should only need it if
  63071. +WARNING: \`$1' is $msg. You should only need it if
  63072. you modified a \`.l' file. You may need the \`Flex' package
  63073. in order for those modifications to take effect. You can get
  63074. \`Flex' from any GNU archive site."
  63075. rm -f lex.yy.c
  63076. - if [ $# -ne 1 ]; then
  63077. + if test $# -ne 1; then
  63078. eval LASTARG="\${$#}"
  63079. - case "$LASTARG" in
  63080. + case $LASTARG in
  63081. *.l)
  63082. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  63083. - if [ -f "$SRCFILE" ]; then
  63084. + if test -f "$SRCFILE"; then
  63085. cp "$SRCFILE" lex.yy.c
  63086. fi
  63087. ;;
  63088. esac
  63089. fi
  63090. - if [ ! -f lex.yy.c ]; then
  63091. + if test ! -f lex.yy.c; then
  63092. echo 'main() { return 0; }' >lex.yy.c
  63093. fi
  63094. ;;
  63095. - help2man)
  63096. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  63097. - # We have it, but it failed.
  63098. - exit 1
  63099. - fi
  63100. -
  63101. + help2man*)
  63102. echo 1>&2 "\
  63103. -WARNING: \`$1' is missing on your system. You should only need it if
  63104. +WARNING: \`$1' is $msg. You should only need it if
  63105. you modified a dependency of a manual page. You may need the
  63106. \`Help2man' package in order for those modifications to take
  63107. effect. You can get \`Help2man' from any GNU archive site."
  63108. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  63109. - if test -z "$file"; then
  63110. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  63111. - fi
  63112. - if [ -f "$file" ]; then
  63113. + file=`echo "$*" | sed -n "$sed_output"`
  63114. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  63115. + if test -f "$file"; then
  63116. touch $file
  63117. else
  63118. test -z "$file" || exec >$file
  63119. echo ".ab help2man is required to generate this page"
  63120. - exit 1
  63121. + exit $?
  63122. fi
  63123. ;;
  63124. - makeinfo)
  63125. - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  63126. - # We have makeinfo, but it failed.
  63127. - exit 1
  63128. - fi
  63129. -
  63130. + makeinfo*)
  63131. echo 1>&2 "\
  63132. -WARNING: \`$1' is missing on your system. You should only need it if
  63133. +WARNING: \`$1' is $msg. You should only need it if
  63134. you modified a \`.texi' or \`.texinfo' file, or any other file
  63135. indirectly affecting the aspect of the manual. The spurious
  63136. call might also be the consequence of using a buggy \`make' (AIX,
  63137. DU, IRIX). You might want to install the \`Texinfo' package or
  63138. the \`GNU make' package. Grab either from any GNU archive site."
  63139. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  63140. + # The file to touch is that specified with -o ...
  63141. + file=`echo "$*" | sed -n "$sed_output"`
  63142. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  63143. if test -z "$file"; then
  63144. - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  63145. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  63146. - fi
  63147. + # ... or it is the one specified with @setfilename ...
  63148. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  63149. + file=`sed -n '
  63150. + /^@setfilename/{
  63151. + s/.* \([^ ]*\) *$/\1/
  63152. + p
  63153. + q
  63154. + }' $infile`
  63155. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  63156. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  63157. + fi
  63158. + # If the file does not exist, the user really needs makeinfo;
  63159. + # let's fail without touching anything.
  63160. + test -f $file || exit 1
  63161. touch $file
  63162. ;;
  63163. - tar)
  63164. + tar*)
  63165. shift
  63166. - if test -n "$run"; then
  63167. - echo 1>&2 "ERROR: \`tar' requires --run"
  63168. - exit 1
  63169. - fi
  63170. # We have already tried tar in the generic part.
  63171. # Look for gnutar/gtar before invocation to avoid ugly error
  63172. @@ -300,13 +332,13 @@
  63173. fi
  63174. firstarg="$1"
  63175. if shift; then
  63176. - case "$firstarg" in
  63177. + case $firstarg in
  63178. *o*)
  63179. firstarg=`echo "$firstarg" | sed s/o//`
  63180. tar "$firstarg" "$@" && exit 0
  63181. ;;
  63182. esac
  63183. - case "$firstarg" in
  63184. + case $firstarg in
  63185. *h*)
  63186. firstarg=`echo "$firstarg" | sed s/h//`
  63187. tar "$firstarg" "$@" && exit 0
  63188. @@ -323,10 +355,10 @@
  63189. *)
  63190. echo 1>&2 "\
  63191. -WARNING: \`$1' is needed, and you do not seem to have it handy on your
  63192. - system. You might have modified some files without having the
  63193. +WARNING: \`$1' is needed, and is $msg.
  63194. + You might have modified some files without having the
  63195. proper tools for further handling them. Check the \`README' file,
  63196. - it often tells you about the needed prerequirements for installing
  63197. + it often tells you about the needed prerequisites for installing
  63198. this package. You may also peek at any GNU archive site, in case
  63199. some other package would contain this missing \`$1' program."
  63200. exit 1
  63201. @@ -334,3 +366,11 @@
  63202. esac
  63203. exit 0
  63204. +
  63205. +# Local variables:
  63206. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  63207. +# time-stamp-start: "scriptversion="
  63208. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  63209. +# time-stamp-time-zone: "UTC"
  63210. +# time-stamp-end: "; # UTC"
  63211. +# End:
  63212. diff -Nur libmad-0.15.1b.orig/mkinstalldirs libmad-0.15.1b/mkinstalldirs
  63213. --- libmad-0.15.1b.orig/mkinstalldirs 2003-03-28 11:44:21.000000000 +0100
  63214. +++ libmad-0.15.1b/mkinstalldirs 2011-02-17 17:22:46.573554424 +0100
  63215. @@ -1,21 +1,36 @@
  63216. #! /bin/sh
  63217. # mkinstalldirs --- make directory hierarchy
  63218. -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  63219. -# Created: 1993-05-16
  63220. -# Public domain
  63221. +scriptversion=2009-04-28.21; # UTC
  63222. +
  63223. +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  63224. +# Created: 1993-05-16
  63225. +# Public domain.
  63226. +#
  63227. +# This file is maintained in Automake, please report
  63228. +# bugs to <bug-automake@gnu.org> or send patches to
  63229. +# <automake-patches@gnu.org>.
  63230. +
  63231. +nl='
  63232. +'
  63233. +IFS=" "" $nl"
  63234. errstatus=0
  63235. -dirmode=""
  63236. +dirmode=
  63237. usage="\
  63238. -Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
  63239. +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
  63240. +
  63241. +Create each directory DIR (with mode MODE, if specified), including all
  63242. +leading file name components.
  63243. +
  63244. +Report bugs to <bug-automake@gnu.org>."
  63245. # process command line arguments
  63246. while test $# -gt 0 ; do
  63247. case $1 in
  63248. -h | --help | --h*) # -h for help
  63249. - echo "$usage" 1>&2
  63250. - exit 0
  63251. + echo "$usage"
  63252. + exit $?
  63253. ;;
  63254. -m) # -m PERM arg
  63255. shift
  63256. @@ -23,6 +38,10 @@
  63257. dirmode=$1
  63258. shift
  63259. ;;
  63260. + --version)
  63261. + echo "$0 $scriptversion"
  63262. + exit $?
  63263. + ;;
  63264. --) # stop option processing
  63265. shift
  63266. break
  63267. @@ -50,30 +69,58 @@
  63268. 0) exit 0 ;;
  63269. esac
  63270. +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
  63271. +# mkdir -p a/c at the same time, both will detect that a is missing,
  63272. +# one will create a, then the other will try to create a and die with
  63273. +# a "File exists" error. This is a problem when calling mkinstalldirs
  63274. +# from a parallel make. We use --version in the probe to restrict
  63275. +# ourselves to GNU mkdir, which is thread-safe.
  63276. case $dirmode in
  63277. '')
  63278. - if mkdir -p -- . 2>/dev/null; then
  63279. + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  63280. echo "mkdir -p -- $*"
  63281. exec mkdir -p -- "$@"
  63282. + else
  63283. + # On NextStep and OpenStep, the `mkdir' command does not
  63284. + # recognize any option. It will interpret all options as
  63285. + # directories to create, and then abort because `.' already
  63286. + # exists.
  63287. + test -d ./-p && rmdir ./-p
  63288. + test -d ./--version && rmdir ./--version
  63289. fi
  63290. ;;
  63291. *)
  63292. - if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
  63293. + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
  63294. + test ! -d ./--version; then
  63295. echo "mkdir -m $dirmode -p -- $*"
  63296. exec mkdir -m "$dirmode" -p -- "$@"
  63297. + else
  63298. + # Clean up after NextStep and OpenStep mkdir.
  63299. + for d in ./-m ./-p ./--version "./$dirmode";
  63300. + do
  63301. + test -d $d && rmdir $d
  63302. + done
  63303. fi
  63304. ;;
  63305. esac
  63306. for file
  63307. do
  63308. - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  63309. + case $file in
  63310. + /*) pathcomp=/ ;;
  63311. + *) pathcomp= ;;
  63312. + esac
  63313. + oIFS=$IFS
  63314. + IFS=/
  63315. + set fnord $file
  63316. shift
  63317. + IFS=$oIFS
  63318. - pathcomp=
  63319. for d
  63320. do
  63321. - pathcomp="$pathcomp$d"
  63322. + test "x$d" = x && continue
  63323. +
  63324. + pathcomp=$pathcomp$d
  63325. case $pathcomp in
  63326. -*) pathcomp=./$pathcomp ;;
  63327. esac
  63328. @@ -84,21 +131,21 @@
  63329. mkdir "$pathcomp" || lasterr=$?
  63330. if test ! -d "$pathcomp"; then
  63331. - errstatus=$lasterr
  63332. + errstatus=$lasterr
  63333. else
  63334. - if test ! -z "$dirmode"; then
  63335. + if test ! -z "$dirmode"; then
  63336. echo "chmod $dirmode $pathcomp"
  63337. - lasterr=""
  63338. - chmod "$dirmode" "$pathcomp" || lasterr=$?
  63339. + lasterr=
  63340. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  63341. - if test ! -z "$lasterr"; then
  63342. - errstatus=$lasterr
  63343. - fi
  63344. - fi
  63345. + if test ! -z "$lasterr"; then
  63346. + errstatus=$lasterr
  63347. + fi
  63348. + fi
  63349. fi
  63350. fi
  63351. - pathcomp="$pathcomp/"
  63352. + pathcomp=$pathcomp/
  63353. done
  63354. done
  63355. @@ -107,5 +154,9 @@
  63356. # Local Variables:
  63357. # mode: shell-script
  63358. # sh-indentation: 2
  63359. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  63360. +# time-stamp-start: "scriptversion="
  63361. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  63362. +# time-stamp-time-zone: "UTC"
  63363. +# time-stamp-end: "; # UTC"
  63364. # End:
  63365. -# mkinstalldirs ends here
  63366. diff -Nur libmad-0.15.1b.orig/msvc++/Makefile.in libmad-0.15.1b/msvc++/Makefile.in
  63367. --- libmad-0.15.1b.orig/msvc++/Makefile.in 2004-02-05 10:34:02.000000000 +0100
  63368. +++ libmad-0.15.1b/msvc++/Makefile.in 2011-02-17 17:22:46.553562892 +0100
  63369. @@ -1,8 +1,9 @@
  63370. -# Makefile.in generated by automake 1.8.2 from Makefile.am.
  63371. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  63372. # @configure_input@
  63373. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  63374. -# 2003, 2004 Free Software Foundation, Inc.
  63375. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  63376. +# Inc.
  63377. # This Makefile.in is free software; the Free Software Foundation
  63378. # gives unlimited permission to copy and/or distribute it,
  63379. # with or without modifications, as long as this notice is preserved.
  63380. @@ -13,15 +14,12 @@
  63381. # PARTICULAR PURPOSE.
  63382. @SET_MAKE@
  63383. -srcdir = @srcdir@
  63384. -top_srcdir = @top_srcdir@
  63385. VPATH = @srcdir@
  63386. pkgdatadir = $(datadir)/@PACKAGE@
  63387. -pkglibdir = $(libdir)/@PACKAGE@
  63388. pkgincludedir = $(includedir)/@PACKAGE@
  63389. -top_builddir = ..
  63390. +pkglibdir = $(libdir)/@PACKAGE@
  63391. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  63392. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  63393. -INSTALL = @INSTALL@
  63394. install_sh_DATA = $(install_sh) -c -m 644
  63395. install_sh_PROGRAM = $(install_sh) -c
  63396. install_sh_SCRIPT = $(install_sh) -c
  63397. @@ -33,6 +31,7 @@
  63398. NORMAL_UNINSTALL = :
  63399. PRE_UNINSTALL = :
  63400. POST_UNINSTALL = :
  63401. +build_triplet = @build@
  63402. host_triplet = @host@
  63403. subdir = msvc++
  63404. DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
  63405. @@ -43,12 +42,11 @@
  63406. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  63407. CONFIG_HEADER = $(top_builddir)/config.h
  63408. CONFIG_CLEAN_FILES =
  63409. +CONFIG_CLEAN_VPATH_FILES =
  63410. SOURCES =
  63411. DIST_SOURCES =
  63412. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  63413. ACLOCAL = @ACLOCAL@
  63414. -AMDEP_FALSE = @AMDEP_FALSE@
  63415. -AMDEP_TRUE = @AMDEP_TRUE@
  63416. AMTAR = @AMTAR@
  63417. AR = @AR@
  63418. ASO = @ASO@
  63419. @@ -59,93 +57,113 @@
  63420. AWK = @AWK@
  63421. CC = @CC@
  63422. CCAS = @CCAS@
  63423. +CCASDEPMODE = @CCASDEPMODE@
  63424. CCASFLAGS = @CCASFLAGS@
  63425. CCDEPMODE = @CCDEPMODE@
  63426. CFLAGS = @CFLAGS@
  63427. CPP = @CPP@
  63428. CPPFLAGS = @CPPFLAGS@
  63429. -CXX = @CXX@
  63430. -CXXCPP = @CXXCPP@
  63431. -CXXDEPMODE = @CXXDEPMODE@
  63432. -CXXFLAGS = @CXXFLAGS@
  63433. CYGPATH_W = @CYGPATH_W@
  63434. DEFS = @DEFS@
  63435. DEPDIR = @DEPDIR@
  63436. -ECHO = @ECHO@
  63437. +DSYMUTIL = @DSYMUTIL@
  63438. +DUMPBIN = @DUMPBIN@
  63439. ECHO_C = @ECHO_C@
  63440. ECHO_N = @ECHO_N@
  63441. ECHO_T = @ECHO_T@
  63442. EGREP = @EGREP@
  63443. EXEEXT = @EXEEXT@
  63444. -F77 = @F77@
  63445. -FFLAGS = @FFLAGS@
  63446. +FGREP = @FGREP@
  63447. FPM = @FPM@
  63448. +GREP = @GREP@
  63449. +INSTALL = @INSTALL@
  63450. INSTALL_DATA = @INSTALL_DATA@
  63451. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  63452. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  63453. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  63454. +LD = @LD@
  63455. LDFLAGS = @LDFLAGS@
  63456. LIBOBJS = @LIBOBJS@
  63457. LIBS = @LIBS@
  63458. LIBTOOL = @LIBTOOL@
  63459. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  63460. +LIPO = @LIPO@
  63461. LN_S = @LN_S@
  63462. LTLIBOBJS = @LTLIBOBJS@
  63463. MAKEINFO = @MAKEINFO@
  63464. +MKDIR_P = @MKDIR_P@
  63465. +NM = @NM@
  63466. +NMEDIT = @NMEDIT@
  63467. +OBJDUMP = @OBJDUMP@
  63468. OBJEXT = @OBJEXT@
  63469. +OTOOL = @OTOOL@
  63470. +OTOOL64 = @OTOOL64@
  63471. PACKAGE = @PACKAGE@
  63472. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  63473. PACKAGE_NAME = @PACKAGE_NAME@
  63474. PACKAGE_STRING = @PACKAGE_STRING@
  63475. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  63476. +PACKAGE_URL = @PACKAGE_URL@
  63477. PACKAGE_VERSION = @PACKAGE_VERSION@
  63478. PATH_SEPARATOR = @PATH_SEPARATOR@
  63479. RANLIB = @RANLIB@
  63480. +SED = @SED@
  63481. SET_MAKE = @SET_MAKE@
  63482. SHELL = @SHELL@
  63483. STRIP = @STRIP@
  63484. VERSION = @VERSION@
  63485. -ac_ct_AR = @ac_ct_AR@
  63486. +abs_builddir = @abs_builddir@
  63487. +abs_srcdir = @abs_srcdir@
  63488. +abs_top_builddir = @abs_top_builddir@
  63489. +abs_top_srcdir = @abs_top_srcdir@
  63490. ac_ct_CC = @ac_ct_CC@
  63491. -ac_ct_CXX = @ac_ct_CXX@
  63492. -ac_ct_F77 = @ac_ct_F77@
  63493. -ac_ct_RANLIB = @ac_ct_RANLIB@
  63494. -ac_ct_STRIP = @ac_ct_STRIP@
  63495. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  63496. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  63497. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  63498. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  63499. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  63500. am__include = @am__include@
  63501. am__leading_dot = @am__leading_dot@
  63502. am__quote = @am__quote@
  63503. +am__tar = @am__tar@
  63504. +am__untar = @am__untar@
  63505. bindir = @bindir@
  63506. build = @build@
  63507. build_alias = @build_alias@
  63508. build_cpu = @build_cpu@
  63509. build_os = @build_os@
  63510. build_vendor = @build_vendor@
  63511. +builddir = @builddir@
  63512. datadir = @datadir@
  63513. +datarootdir = @datarootdir@
  63514. +docdir = @docdir@
  63515. +dvidir = @dvidir@
  63516. exec_prefix = @exec_prefix@
  63517. host = @host@
  63518. host_alias = @host_alias@
  63519. host_cpu = @host_cpu@
  63520. host_os = @host_os@
  63521. host_vendor = @host_vendor@
  63522. +htmldir = @htmldir@
  63523. includedir = @includedir@
  63524. infodir = @infodir@
  63525. install_sh = @install_sh@
  63526. libdir = @libdir@
  63527. libexecdir = @libexecdir@
  63528. +localedir = @localedir@
  63529. localstatedir = @localstatedir@
  63530. +lt_ECHO = @lt_ECHO@
  63531. mandir = @mandir@
  63532. mkdir_p = @mkdir_p@
  63533. oldincludedir = @oldincludedir@
  63534. +pdfdir = @pdfdir@
  63535. prefix = @prefix@
  63536. program_transform_name = @program_transform_name@
  63537. +psdir = @psdir@
  63538. sbindir = @sbindir@
  63539. sharedstatedir = @sharedstatedir@
  63540. +srcdir = @srcdir@
  63541. sysconfdir = @sysconfdir@
  63542. target_alias = @target_alias@
  63543. +top_build_prefix = @top_build_prefix@
  63544. +top_builddir = @top_builddir@
  63545. +top_srcdir = @top_srcdir@
  63546. EXTRA_DIST = mad.h config.h libmad.dsp
  63547. all: all-am
  63548. @@ -154,14 +172,14 @@
  63549. @for dep in $?; do \
  63550. case '$(am__configure_deps)' in \
  63551. *$$dep*) \
  63552. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  63553. - && exit 0; \
  63554. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  63555. + && { if test -f $@; then exit 0; else break; fi; }; \
  63556. exit 1;; \
  63557. esac; \
  63558. done; \
  63559. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign msvc++/Makefile'; \
  63560. - cd $(top_srcdir) && \
  63561. - $(AUTOMAKE) --foreign msvc++/Makefile
  63562. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu msvc++/Makefile'; \
  63563. + $(am__cd) $(top_srcdir) && \
  63564. + $(AUTOMAKE) --gnu msvc++/Makefile
  63565. .PRECIOUS: Makefile
  63566. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  63567. @case '$?' in \
  63568. @@ -179,16 +197,13 @@
  63569. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63570. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  63571. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  63572. +$(am__aclocal_m4_deps):
  63573. mostlyclean-libtool:
  63574. -rm -f *.lo
  63575. clean-libtool:
  63576. -rm -rf .libs _libs
  63577. -
  63578. -distclean-libtool:
  63579. - -rm -f libtool
  63580. -uninstall-info-am:
  63581. tags: TAGS
  63582. TAGS:
  63583. @@ -197,29 +212,32 @@
  63584. distdir: $(DISTFILES)
  63585. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  63586. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  63587. - list='$(DISTFILES)'; for file in $$list; do \
  63588. - case $$file in \
  63589. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  63590. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  63591. - esac; \
  63592. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63593. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63594. + list='$(DISTFILES)'; \
  63595. + dist_files=`for file in $$list; do echo $$file; done | \
  63596. + sed -e "s|^$$srcdirstrip/||;t" \
  63597. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  63598. + case $$dist_files in \
  63599. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  63600. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  63601. + sort -u` ;; \
  63602. + esac; \
  63603. + for file in $$dist_files; do \
  63604. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63605. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  63606. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  63607. - dir="/$$dir"; \
  63608. - $(mkdir_p) "$(distdir)$$dir"; \
  63609. - else \
  63610. - dir=''; \
  63611. - fi; \
  63612. if test -d $$d/$$file; then \
  63613. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63614. + if test -d "$(distdir)/$$file"; then \
  63615. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63616. + fi; \
  63617. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63618. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63619. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63620. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63621. fi; \
  63622. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63623. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63624. else \
  63625. - test -f $(distdir)/$$file \
  63626. - || cp -p $$d/$$file $(distdir)/$$file \
  63627. + test -f "$(distdir)/$$file" \
  63628. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63629. || exit 1; \
  63630. fi; \
  63631. done
  63632. @@ -246,7 +264,8 @@
  63633. clean-generic:
  63634. distclean-generic:
  63635. - -rm -f $(CONFIG_CLEAN_FILES)
  63636. + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63637. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63638. maintainer-clean-generic:
  63639. @echo "This command is intended for maintainers to use"
  63640. @@ -257,7 +276,7 @@
  63641. distclean: distclean-am
  63642. -rm -f Makefile
  63643. -distclean-am: clean-am distclean-generic distclean-libtool
  63644. +distclean-am: clean-am distclean-generic
  63645. dvi: dvi-am
  63646. @@ -265,18 +284,38 @@
  63647. html: html-am
  63648. +html-am:
  63649. +
  63650. info: info-am
  63651. info-am:
  63652. install-data-am:
  63653. +install-dvi: install-dvi-am
  63654. +
  63655. +install-dvi-am:
  63656. +
  63657. install-exec-am:
  63658. +install-html: install-html-am
  63659. +
  63660. +install-html-am:
  63661. +
  63662. install-info: install-info-am
  63663. +install-info-am:
  63664. +
  63665. install-man:
  63666. +install-pdf: install-pdf-am
  63667. +
  63668. +install-pdf-am:
  63669. +
  63670. +install-ps: install-ps-am
  63671. +
  63672. +install-ps-am:
  63673. +
  63674. installcheck-am:
  63675. maintainer-clean: maintainer-clean-am
  63676. @@ -295,17 +334,21 @@
  63677. ps-am:
  63678. -uninstall-am: uninstall-info-am
  63679. +uninstall-am:
  63680. +
  63681. +.MAKE: install-am install-strip
  63682. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  63683. distclean distclean-generic distclean-libtool distdir dvi \
  63684. dvi-am html html-am info info-am install install-am \
  63685. - install-data install-data-am install-exec install-exec-am \
  63686. - install-info install-info-am install-man install-strip \
  63687. + install-data install-data-am install-dvi install-dvi-am \
  63688. + install-exec install-exec-am install-html install-html-am \
  63689. + install-info install-info-am install-man install-pdf \
  63690. + install-pdf-am install-ps install-ps-am install-strip \
  63691. installcheck installcheck-am installdirs maintainer-clean \
  63692. maintainer-clean-generic mostlyclean mostlyclean-generic \
  63693. - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  63694. - uninstall-info-am
  63695. + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  63696. +
  63697. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63698. # Otherwise a system limit (for SysV at least) may be exceeded.